summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/le/AdvertiseData.java
AgeCommit message (Collapse)Author
2021-11-18Bluetooth: make it possible to advertise Transport Discovery DataJakub Pawlowski
Bug: 159363165 Tag: #feature Test: called the API in test app, verified advertisement content Change-Id: I92fe0671717bda2de1be3ff022713133ad681ab6
2021-02-03Merge "AdvertiseData: fix nullable collection" am: 85f8cf7488 am: 8f608a49b5 ↵Treehugger Robot
am: 0a328d9fe2 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1563681 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I6cad0419179b893a4b936ec03bc2f3ab9a92e5c5
2021-01-28AdvertiseData: fix nullable collectionAdrian Roos
Bug: 152525509 Test: make checkapi Change-Id: Ia400cb2bda55b26594bc3a253612583134294edb
2020-10-15Add @Nullable annotation to the parameter of Object.equals() methods.Roman Kalukiewicz
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
2020-10-08Bluetooth: make it possible to advertise service solicitation UUIDJakub Pawlowski
Bug: 159827149 Tag: #feature Test: called the API in test app, verified advertisement content Change-Id: I3ab43e39bb7fd8fef97e141eeb981419aa3ec35a
2019-02-28All Parcelable CREATOR fields are @NonNull.Jeff Sharkey
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
2017-08-24Fix checkstyle errors (2/2)Jack He
* 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
2017-08-24Fix checkstyle errors (1/2)Jack He
* Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
2017-08-09Bluetooth: AdvertiseData parceling simplificationJakub Pawlowski
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
2014-09-02Unregister app when advertise failed after registration.Wei Wang
Also moved bluetooth state check to common utils class. Bug:17364837 Change-Id: I25ff7afae723d47f701236d5a68eab8015de9bbb
2014-08-15Fix API council review comments. Also hide certain APIs(1/3).Wei Wang
b/17006825. Change-Id: Iee64b11920152e0ab3da54decf37fa4a83be5dc7
2014-08-01Revert "Revert "Service data and manufacturer data can be repeated fields.""Wei Wang
This reverts commit 14c797702543bb5ced989565d90abcfa55c7db46.
2014-08-01Revert "Service data and manufacturer data can be repeated fields."Sungsoo Lim
This reverts commit 26dc9b99b17ca9d8ce3632c48e8b6c1450ee53e9. Change-Id: I1846d0a6491c5b2ba5905411bd98f5d17909b705
2014-07-31Service data and manufacturer data can be repeated fields.Wei Wang
b/16635899 Change-Id: I73f1f4effd3f0e38cd427297eb9d22f3ba285d61
2014-07-23Move AdvertiseData length check to BluetoothAdvertiser.Wei Wang
This will keep AdvertiseData simple and avoid coupling with BluetoothAdapter. Change-Id: I3609652bdea1c6e757bac7d2dada7f8ddf20a5e3
2014-07-23Fix parcel issues with empty service uuid. Added tests.Wei Wang
b/16490816 Change-Id: If26a4731f22e83df4f5ded2ad76901de6c49a010
2014-07-18More API modification of BLE APIs (1/2).Wei Wang
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
2014-07-11Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (1/2)Wei Wang
Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457