aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/le/ScanSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* BLE scan time optimizationKai Shi2022-01-241-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update docs to reflect LE batch scan report delay floorRahul Sabnis2021-04-201-5/+7
| | | | | | | Tag: #feature Bug: 167340030 Test: Manual Change-Id: Ieeb0e6bccfc316fd4c8cdc40f6865b4185d6d9e8
* Le Scan: Add ambient discovery mode (1/2)Chienyuan2021-03-161-3/+20
| | | | | | Bug: 177466875 Test: manual Change-Id: I4a5c8a0768903ef0838dcf55cf5cfba9a0a18eef
* 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
* Update ScanSettings documentation for scan modesVinay Kalia2017-09-051-1/+1
| | | | | | | | | | SCAN_MODE_LOW_POWER is enforced for applications running in background. Test: BLE scanning applications. BUG: 38198694 BUG: 62491228 Change-Id: Ib2b6c297298e05f1b088411e94cfe4789dde0821
* 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-31/+26
| | | | | | | | * Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
* Bluetooth 5 PHY simplificationJakub Pawlowski2017-04-121-12/+3
| | | | | | | | | | | | | | | 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
* Bluetooth 5 enhanced scanning APIJakub Pawlowski2017-03-081-2/+84
| | | | | | | Bug: 30622771 Test: manual Change-Id: I2c8065fbcedf48777ce18c7d8fe621e568b3fd75 (cherry picked from commit 9de522c6e48497028d36a1f8ad8f8adf4b7b1ae6)
* setCallbackType should be public for onlost/onfound apisPrerepa Viswanadham2015-05-191-2/+0
| | | | | Bug: 21304922 Change-Id: I27ed4f3e00ac13354e3ef75e5686916be0d10918
* Merge commit 'eba66c3' into master_mergePrerepa Viswanadham2015-05-011-11/+0
|\
| * Make onlost/onfound APIs publicPrerepa Viswanadham2015-04-221-11/+0
| | | | | | | | Change-Id: I455124478d953d652f216f71d5813782fc9633ab
* | Fix a bug in ScanSettings constructor.Wei Wang2015-05-011-1/+1
| | | | | | | | Change-Id: I36e6effe8063bacddd61fe2c47c0360d7ffaee71
* | Temp workaround to track max beacons.Wei Wang2015-04-301-1/+1
|/ | | | Change-Id: Ia65a7a0ec98d0181cf62db343e00c4a0b01c32d8
* Onfound onlost feature.Prerepa Viswanadham2015-04-071-7/+106
| | | | | Change-Id: I5475cb21183abab8cf04af486ff7692396801b92 Signed-off-by: Prerepa Viswanadham <dham@google.com>
* Make Opportunistic Scan API public.Wei Wang2015-03-181-2/+0
| | | | Change-Id: I47da0f7e385f0a72815e493852283a44370aa1ce
* Add opportunistic ble scan mode. (1/2)Wei Wang2015-03-171-1/+10
| | | | | | Bug: 19003667 Change-Id: Ibed7e9ec604cb11a58736d168d3d19ece53fc77a (cherry picked from commit 7508ddf8b53bf350a3424ef71f1ce62ea17006b8)
* Fix API council review comments. Also hide certain APIs(1/3).Wei Wang2014-08-151-8/+16
| | | | | | b/17006825. Change-Id: Iee64b11920152e0ab3da54decf37fa4a83be5dc7
* Fix bug of ScanSettings. Add unit test.Wei Wang2014-07-251-28/+37
| | | | | | b/16318637. Change-Id: I3fbc1212c1712faa0c29132f3dc9cfc1d58af26b
* More API modification of BLE APIs (1/2).Wei Wang2014-07-181-13/+21
| | | | | | | | | | | | | | | 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-39/+54
| | | | Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457
* OnFound and Onlost callback integrationPrerepa Viswanadham2014-07-091-3/+0
| | | | Change-Id: I23473b18484f041c4dd808c85bb92545a77e20c2
* Implement batch scan APIWei Wang2014-07-081-1/+1
| | | | Change-Id: Ibb527280a221fbdd0fc6b805a7527c29079294b4
* Address API review comments.Wei Wang2014-05-291-0/+221
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