summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/le/ScanSettings.java
AgeCommit message (Collapse)Author
2022-02-09Merge TP1A.220126.001Haamed Gheibi
Change-Id: Ibe4916c42b096976ac917991cf0c73f02512f3d4
2022-02-04Merge TP1A.220120.003Haamed Gheibi
Change-Id: I202f5093bbd13b381ea11f969fee6154ba91fa11
2022-01-24BLE scan time optimizationKai Shi
BLE scan time optimization to reduce scan latency: 1)Reduce scan interval and window for low power, balanced and ambient scan modes. Balanced and ambient modes now have effectively the same settings. 2)Add screen off and screen off balanced modes with longer interval for the internal use. 3)For regular apps: Foregroud: original scan mode. Background + screen on: low power mode. Screen off: screen off mode. For foreground service: Screen on: original scan mode. Scree off: fall back to screen off/screen off balanced mode unless it requests low latency mode. 4)When App requests a new scan without recent request, its scan mode is upgraded temporarily for 6 seconds (configurable). Tag: #feature Bug: 214595841 Test: Run scan in low power, low latency and balanced scan modes with filtered and unfiltered settings both continuously and periodically. Make sure the scan mode is set correctly during screen on/off transition and background/foreground transition. Tested with multiple scan clients from both test app and other service apps. Change-Id: I291a1a80f24d431b681aae485692241dfb474c5a
2021-04-20Update docs to reflect LE batch scan report delay floorRahul Sabnis
Tag: #feature Bug: 167340030 Test: Manual Change-Id: Ieeb0e6bccfc316fd4c8cdc40f6865b4185d6d9e8
2021-04-20Update docs to reflect LE batch scan report delay floorRahul Sabnis
Tag: #feature Bug: 167340030 Test: Manual Change-Id: Ieeb0e6bccfc316fd4c8cdc40f6865b4185d6d9e8
2021-03-16Le Scan: Add ambient discovery mode (1/2)Chienyuan
Bug: 177466875 Test: manual Change-Id: I4a5c8a0768903ef0838dcf55cf5cfba9a0a18eef
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-09-05Update ScanSettings documentation for scan modesVinay Kalia
SCAN_MODE_LOW_POWER is enforced for applications running in background. Test: BLE scanning applications. BUG: 38198694 BUG: 62491228 Change-Id: Ib2b6c297298e05f1b088411e94cfe4789dde0821
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-04-12Bluetooth 5 PHY simplificationJakub Pawlowski
Having PHY_LE_* constants defined in four different places, with one value being different than others is misleading. Leave just PHY_LE_* definitions in BluetoothDevice, and add PHY_LE*_MASK for the mask used in PHY update API. This patch also removes need to translate PHY value between PHY update request and event, as mask is used for request, and the value is returned in event. Bug: 30622771 Test: manual Change-Id: I897effa1204a024465d55501c83c542566c4d37c
2017-03-08Bluetooth 5 enhanced scanning APIJakub Pawlowski
Bug: 30622771 Test: manual Change-Id: I2c8065fbcedf48777ce18c7d8fe621e568b3fd75 (cherry picked from commit 9de522c6e48497028d36a1f8ad8f8adf4b7b1ae6)
2015-05-19setCallbackType should be public for onlost/onfound apisPrerepa Viswanadham
Bug: 21304922 Change-Id: I27ed4f3e00ac13354e3ef75e5686916be0d10918
2015-05-01Merge commit 'eba66c3' into master_mergePrerepa Viswanadham
2015-05-01Fix a bug in ScanSettings constructor.Wei Wang
Change-Id: I36e6effe8063bacddd61fe2c47c0360d7ffaee71
2015-04-30Temp workaround to track max beacons.Wei Wang
Change-Id: Ia65a7a0ec98d0181cf62db343e00c4a0b01c32d8
2015-04-22Make onlost/onfound APIs publicPrerepa Viswanadham
Change-Id: I455124478d953d652f216f71d5813782fc9633ab
2015-04-07Onfound onlost feature.Prerepa Viswanadham
Change-Id: I5475cb21183abab8cf04af486ff7692396801b92 Signed-off-by: Prerepa Viswanadham <dham@google.com>
2015-03-18Make Opportunistic Scan API public.Wei Wang
Change-Id: I47da0f7e385f0a72815e493852283a44370aa1ce
2015-03-17Add opportunistic ble scan mode. (1/2)Wei Wang
Bug: 19003667 Change-Id: Ibed7e9ec604cb11a58736d168d3d19ece53fc77a (cherry picked from commit 7508ddf8b53bf350a3424ef71f1ce62ea17006b8)
2014-08-15Fix API council review comments. Also hide certain APIs(1/3).Wei Wang
b/17006825. Change-Id: Iee64b11920152e0ab3da54decf37fa4a83be5dc7
2014-07-25Fix bug of ScanSettings. Add unit test.Wei Wang
b/16318637. Change-Id: I3fbc1212c1712faa0c29132f3dc9cfc1d58af26b
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
2014-07-09OnFound and Onlost callback integrationPrerepa Viswanadham
Change-Id: I23473b18484f041c4dd808c85bb92545a77e20c2
2014-07-08Implement batch scan APIWei Wang
Change-Id: Ibb527280a221fbdd0fc6b805a7527c29079294b4
2014-05-29Address API review comments.Wei Wang
1. Moved le stuff to it's subpackage. Remove BluetoothLe for all classes except *Scanner, *ScanSetting, *Advertiser and *AdvertiseSettings. 2. Make all callbacks abstract classes instead of interfaces. 3. Moved AdvertisementData and ScanRecord out and removed AdvertiseBaseData 4. Removed newBuild and use new Builder for all builders. 5. Using setxxx in builders. 6. Misc other changes. Fixes b/15140940 Change-Id: I32ae3d24a9491baf96048040b5ac78f6f731e468 NO_SQ: multi-project submit