aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/le/AdvertiseData.java
Commit message (Collapse)AuthorAgeFilesLines
* Bluetooth: make it possible to advertise Transport Discovery DataJakub Pawlowski2021-11-181-5/+53
| | | | | | | Bug: 159363165 Tag: #feature Test: called the API in test app, verified advertisement content Change-Id: I92fe0671717bda2de1be3ff022713133ad681ab6
* Merge "AdvertiseData: fix nullable collection" am: 85f8cf7488 am: 8f608a49b5 ↵Treehugger Robot2021-02-031-3/+3
|\ | | | | | | | | | | | | | | | | | | am: 0a328d9fe2 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1563681 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I6cad0419179b893a4b936ec03bc2f3ab9a92e5c5
| * AdvertiseData: fix nullable collectionAdrian Roos2021-01-281-3/+3
| | | | | | | | | | | | Bug: 152525509 Test: make checkapi Change-Id: Ia400cb2bda55b26594bc3a253612583134294edb
* | Add @Nullable annotation to the parameter of Object.equals() methods.Roman Kalukiewicz2020-10-151-1/+1
|/ | | | | | | | | | | | | | | | | | Those annotations could be inferred by some tools (like Kotlin), but the https://checkerframework.org/ doesn't check inherited annotations complaining about all equals() invocations that get nullable argument. The change was generated by running find . -name \*.java | xargs sed -i 's/public boolean equals(Object /public boolean equals(@Nullable Object /' in the frameworks/base directory and by automatically adding and formatting required imports if needed. No manual edits. Bug: 170883422 Test: Annotation change only. Should have not impact. Exempt-From-Owner-Approval: Mechanical change not specific to any component. Change-Id: I5eedb571c9d78862115dfdc5dae1cf2a35343580
* Bluetooth: make it possible to advertise service solicitation UUIDJakub Pawlowski2020-10-081-7/+47
| | | | | | | Bug: 159827149 Tag: #feature Test: called the API in test app, verified advertisement content Change-Id: I3ab43e39bb7fd8fef97e141eeb981419aa3ec35a
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Fix checkstyle errors (2/2)Jack He2017-08-241-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * Manual style corrections with IDE assistance * Variable name refactors are done through IDE * Corrected general style errors such as: - "final private var" -> "private final var" - "&&", "+", "||" should not be at the end of line - Non-static private variable should be like "mVar" - Private static variable should be like "sVar" - Code file should always end with newline - Inherited methods should be annotated with @Override and no @hide tags - Public methods should always have a JavaDoc entry - "int[] array" is preferred over "int array[]" - private methods should be accessed without "this." when there is no name collisions. - "boolean ? true : false" -> boolean - "boolean ? false : true" -> !boolean - "boolean == true" OR "boolean != false" -> boolean - "boolean != true" OR "boolean == false" -> !boolean Bug: 63596319 Test: make checkbuild, no functional changes Change-Id: Iabdc2be912a32dd63a53213d175cf1bfef268ccd
* Fix checkstyle errors (1/2)Jack He2017-08-241-8/+9
| | | | | | | | * Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
* Bluetooth: AdvertiseData parceling simplificationJakub Pawlowski2017-08-091-38/+13
| | | | | | | | | | Use writeTypedArray instead of writeList - this will not serialize string with type name, which is unnecessary Use createByteArray instead of readByteArra - it takes care of null and empty array handling Test: sl4a FilteringTest, BleAdvertiseApiTest Change-Id: I6a22674a0bf9933e39691de7f2b2b52a060ae368
* Unregister app when advertise failed after registration.Wei Wang2014-09-021-4/+4
| | | | | | | Also moved bluetooth state check to common utils class. Bug:17364837 Change-Id: I25ff7afae723d47f701236d5a68eab8015de9bbb
* Fix API council review comments. Also hide certain APIs(1/3).Wei Wang2014-08-151-3/+0
| | | | | | b/17006825. Change-Id: Iee64b11920152e0ab3da54decf37fa4a83be5dc7
* Revert "Revert "Service data and manufacturer data can be repeated fields.""Wei Wang2014-08-011-91/+71
| | | | This reverts commit 14c797702543bb5ced989565d90abcfa55c7db46.
* Revert "Service data and manufacturer data can be repeated fields."Sungsoo Lim2014-08-011-71/+91
| | | | | | This reverts commit 26dc9b99b17ca9d8ce3632c48e8b6c1450ee53e9. Change-Id: I1846d0a6491c5b2ba5905411bd98f5d17909b705
* Service data and manufacturer data can be repeated fields.Wei Wang2014-07-311-91/+71
| | | | | | b/16635899 Change-Id: I73f1f4effd3f0e38cd427297eb9d22f3ba285d61
* Move AdvertiseData length check to BluetoothAdvertiser.Wei Wang2014-07-231-50/+1
| | | | | | | This will keep AdvertiseData simple and avoid coupling with BluetoothAdapter. Change-Id: I3609652bdea1c6e757bac7d2dada7f8ddf20a5e3
* Fix parcel issues with empty service uuid. Added tests.Wei Wang2014-07-231-30/+49
| | | | | | b/16490816 Change-Id: If26a4731f22e83df4f5ded2ad76901de6c49a010
* More API modification of BLE APIs (1/2).Wei Wang2014-07-181-30/+48
| | | | | | | | | | | | | | | Changed include: 1) Add serviceDataUuid to filter so it matches sanRecord and AdvertiseData. 2) Add raw bytes to ScanRecord and make ScanResult take a ScanRecord instead of raw bytes. 3) Change from setServiceUuid(List) to addServiceUuid(ParcelUuid). 4) Added include device name 5) Removed service not registered and added ADVERTISE_DATA_TOO_LARGE. 6) Fixed a few comments. Change-Id: Ibbe07183b1293835c4a84728d1cd2d61e5d627d3
* Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (1/2)Wei Wang2014-07-111-0/+345
Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457