• Home
  • History
  • Annotate
  • only in /frameworks/base/core/java/android/bluetooth/le/
History log of /frameworks/base/core/java/android/bluetooth/le/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
02bc0086071b5faff260566b4d3713861703eee3 10-Nov-2015 Wei Wang <weiwa@google.com> Properly handle registration timeout in BLE.

Bug:25384098
Change-Id: I7877f6368c4982fcd91e68810c4da0ab7b5fc6b7
luetoothLeAdvertiser.java
luetoothLeScanner.java
2f463d4c8b0e9a515cb9c0548aa752678f722a7c 06-May-2016 Pavlin Radoslavov <pavlin@google.com> Fix divergent equals and hashCode behavior

Calling Objects.hash with a byte[] will call the identity hashCode on
the byte[] and this doesn't agree with the use of Objects.deepEquals
in equals.
Bug caught by error prone.

Also, replaced usage of Objects.deepEquals(mServiceDataUuid, ...) with
Objects.equals(mServiceDataUuid, ...), because mServiceDataUuid
is an Object of type ParcelUuid.

Bug: 28585195
Change-Id: Id92734874339985fedafe1a28286a6a4dcd88d3b
canFilter.java
6771d629b5ad0b9296f0febaa2300fdaf1f90515 16-Jan-2016 Adam Lesinski <adamlesinski@google.com> Add WorkSource to BLE scanning API

This will allow apps that do work on behalf of others to correctly blame
those apps for the power implications of BLE scanning.
Bug:22718669

Change-Id: Ib64af0b6a5d37721a6067ac4e5c39c01f921b56b
luetoothLeScanner.java
7bd8be0019cb5896c27d0a2d39be19274c442ba5 17-Jul-2015 Fyodor Kupolov <fkupolov@google.com> Added a note about location permission

ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission is required to get
results.

Bug: 21852542
Change-Id: I3a2746d691f4d7024b0bb7b884d4436c73ce82e6
luetoothLeScanner.java
a179030483a1f3f672be41797dc6e0f077ef4748 20-Jun-2015 Fyodor Kupolov <fkupolov@google.com> Do not return devices when caller has no location permission

During startLeScan, do not return devices if calling process has no location
permission/appop

Bug: 21852542
Change-Id: Idce8f4704558574e373e8144390f2a2fa1a7e84a
luetoothLeScanner.java
cd62b10bd612e0c49083cc03f4ac63376a52fe8c 25-Jun-2015 Jerome Poichet <jpoichet@google.com> Preventing leak

When transitioning from ON to OFF with LE Advertisers, advertiser do not
get a chance to unregister themselves as the stopAdvertising checks the
state of the stack and throws before unregistering the object.

It will then never remove the callback objects causing a leak.

b/22092678 | Remote service crash after switching to restricted profile

Change-Id: I04817026a524d10d60abdd8b533554a71a0112e2
luetoothLeAdvertiser.java
f5e368ff2643f4060e5c55143560554e207d40b0 19-May-2015 Prerepa Viswanadham <dham@google.com> setCallbackType should be public for onlost/onfound apis

Bug: 21304922
Change-Id: I27ed4f3e00ac13354e3ef75e5686916be0d10918
canSettings.java
2d49752ee050ab7f1cd848933f6c62a73707e2d9 24-Apr-2015 Tor Norbye <tnorbye@google.com> Add bluetooth permission annotations

Change-Id: I5bc86f8ec6ea5c873f1e14dab0e0c47c5c9df7f7
luetoothLeScanner.java
971cd2b952cda860bc4e40800abde04005c21fd0 01-May-2015 Prerepa Viswanadham <dham@google.com> Merge commit 'eba66c3' into master_merge
c5065ee98d9ac9ff10ee89f42595cb6f135ddc65 01-May-2015 Wei Wang <weiwa@google.com> Fix a bug in ScanSettings constructor.

Change-Id: I36e6effe8063bacddd61fe2c47c0360d7ffaee71
canSettings.java
fc9f2d71a6ea6cc2f3b4490b4a4db6cac01cfad4 29-Apr-2015 Wei Wang <weiwa@google.com> Temp workaround to track max beacons.

Change-Id: Ia65a7a0ec98d0181cf62db343e00c4a0b01c32d8
canSettings.java
b271d27dbc0c1cec0c2bb0dff9390dc91842e3ee 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'db1dbb8' into merge2
5882f5455f6a9e7e4d6b5f7d9f2ae650de0f2b5c 22-Apr-2015 Prerepa Viswanadham <dham@google.com> Make onlost/onfound APIs public

Change-Id: I455124478d953d652f216f71d5813782fc9633ab
canCallback.java
canSettings.java
db1dbb889588505cd340e954acbde7ebf7c086d6 10-Apr-2015 Prerepa Viswanadham <dham@google.com> Manage onfound/lost resources (1/2)

Provide error callback to app if advertisement tracking resources
can't be reserved

Change-Id: Ie66b2ec7a64b24bbdf3bb22003a4a7eb46623792
luetoothLeScanner.java
d055adbe2c1c65d9346e65209fa8790190bc239e 03-Mar-2015 Nitin Arora <niarora@codeaurora.org> Bluetooth LE background operation mode (2/2)

Changes include new framework APIs to enable and disable Bluetooth LE
separately from Bluetooth Classic. Along with handling the new states
in the Bluetooth manager service.

Change-Id: Idf667981f48fcbcb6dfda1aa77ea8bab1b2361f0
luetoothLeUtils.java
6ddbb5e55f72e870899731ff12af9945fa970e6e 03-Mar-2015 Nitin Arora <niarora@codeaurora.org> Bluetooth LE background operation mode (2/2)

Changes include new framework APIs to enable and disable Bluetooth LE
separately from Bluetooth Classic. Along with handling the new states
in the Bluetooth manager service.

Change-Id: Idf667981f48fcbcb6dfda1aa77ea8bab1b2361f0
luetoothLeUtils.java
80047faad914c9b9b4966d6b58fc22800c3fcebc 15-Apr-2015 Vinit Deshpande <vinitd@google.com> am b5e0cfb..557d2f5 from mirror-m-wireless-internal-release

557d2f5 Merge "Add ConnectivityManager.reportNetworkConnectivity() API" into m-wireless-dev
ab5267a Fix onLost/onFound logic in isSettingsAndFilterComboAllowed
bfd17b7 Add ConnectivityManager.reportNetworkConnectivity() API
238e0f9 OBEX Over L2CAP + SDP search API for BT profiles
31a94f4 Add ConnectivityManager.getActiveNetwork(). Rework NetID allocation in ConnectivityService so registerNetworkAgent() can return the allocated NetID.
bf18bed Merge "Non-functional code cleanup of ConnectivityService." into m-wireless-dev
db8784e Merge "Cleanup of Video Call pause functionality." into m-wireless-dev
e75b9e3 Non-functional code cleanup of ConnectivityService.
e593d0a Onfound onlost feature.
0326f58 Merge "API for config app." into m-wireless-dev
e9b056f API for config app.
d5351e7 RTT framework interface update
582b868 Unhide Network.openConnection(URL, Proxy).
0d719ca Fix typos in ConnectivityManager documentation.

Change-Id: Ib4c88f6d7ad1b24227b032555c62a5804194384b
ab5267a4033c47761aeabad34d4228e59e6a0b07 13-Apr-2015 tturney <tturney@google.com> Fix onLost/onFound logic in isSettingsAndFilterComboAllowed

bug: b/20185066

Change-Id: If9e3fecd12ee86aa12fa63688babeff694bee62e
luetoothLeScanner.java
d4ea01b4aca807cc914a96addefcc2c64ce1a6f5 12-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge "Merge commit 'e593d0a' into merge_work"
57bf2a8a38e929f00f3323cf97a8ea7a9af900ce 11-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit 'e593d0a' into merge_work

Change-Id: I4f8ae40fc446cd9cda4d5c6ec99469a98dda595b
e7b03631d2a64c3ad5a739cedfd7d40fe5421844 10-Apr-2015 Scott Kennedy <skennedy@google.com> Fix a typo in BluetoothLeScanner documentation

Change-Id: Id19dae9a583c0ef621789604277e3f6c6aead80c
luetoothLeScanner.java
e593d0aec6430d98731d9751facd0414a1c9c6a2 07-Apr-2015 Prerepa Viswanadham <dham@google.com> Onfound onlost feature.

Change-Id: I5475cb21183abab8cf04af486ff7692396801b92
Signed-off-by: Prerepa Viswanadham <dham@google.com>
luetoothLeScanner.java
canCallback.java
canFilter.java
canSettings.java
4209a28270a70016ee5ee6cae3dc96d6df0ade26 24-Mar-2015 Prerepa Viswanadham <dham@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into master_merge

Change-Id: I49aab437af220f1139cfd2d0a9c362acce31074e
e1d0f58aa85531e261f10ff132018a0e8fac8370 19-Mar-2015 Wei Wang <weiwa@google.com> Make Opportunistic Scan API public.

Change-Id: I47da0f7e385f0a72815e493852283a44370aa1ce
canSettings.java
4190762d94e05e6c51e25e2743f8d622848d0945 13-Jan-2015 Wei Wang <weiwa@google.com> Add opportunistic ble scan mode. (1/2)

Bug: 19003667
Change-Id: Ibed7e9ec604cb11a58736d168d3d19ece53fc77a
(cherry picked from commit 7508ddf8b53bf350a3424ef71f1ce62ea17006b8)
canSettings.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
runcatedFilter.java
e77adabeafa16f9b401a6ad67405205bd96f2219 16-Jan-2015 Prerepa Viswanadham <dham@google.com> Don't compute flags length for scan response

Bug 19041626

Change-Id: I7d8aa12e133477fc60d12b474f57313961021975
luetoothLeAdvertiser.java
29230ceab9ea7b6913f0a898411b213f199e18c2 13-Nov-2014 Tom Turney <tturney@google.com> Feature request: Increasing advertise data size on
non-connectable adv.
When the advertisement is non-connectable, give back the
bytes to the advertiser where the adv flags would have been.
This increases the non-connectable advertisement's advertise
data from 24 to 27 bytes.

Bug:18359570
Change-Id: Ia3cc48dca50cc3c51095ee92a489f143f6d350b1
luetoothLeAdvertiser.java
020bd7b861dfd560fad9f761f2778ebbac8be20e 17-Oct-2014 Wei Wang <weiwa@google.com> Remove spammy log information for BLE scan.

Bug:17574681
Change-Id: Ic5761ad7262200f38f2b67659c37f8a3f01d80d5
luetoothLeScanner.java
35cd4c853f748e295352bda708b26ee39544d06d 26-Sep-2014 Wei Wang <weiwa@google.com> Add support of advertising through standard instance.(1/4)

Use config overlay to check whether peripheral mode is supported.

Bug: 17552672
Change-Id: I1081bc84da9fe033426f82ece2ec74c2d663e3aa
luetoothLeAdvertiser.java
833559d9f3f0bd6ddb1cf9c1571975751830e045 29-Aug-2014 Wei Wang <weiwa@google.com> Unregister app when advertise failed after registration.

Also moved bluetooth state check to common utils class.

Bug:17364837
Change-Id: I25ff7afae723d47f701236d5a68eab8015de9bbb
dvertiseData.java
luetoothLeAdvertiser.java
luetoothLeScanner.java
luetoothLeUtils.java
canRecord.java
tils.java
b1e066bc27dc3ab7a619855336490c67994cb8a2 25-Aug-2014 Wei Wang <weiwa@google.com> Merge "Fix API council review comments. Also hide certain APIs(1/3)." into lmp-dev
7cb10ac3928c1c298768f9a0dbeb2e5906527b68 21-Aug-2014 Wei Wang <weiwa@google.com> Merge "Fix threading issue for advertising." into lmp-dev
9a974be631a3ff2e7e754f79167eb024ee55925e 19-Aug-2014 Wei Wang <weiwa@google.com> Fix threading issue for advertising.

Post callback to main thread to execute. In general we should avoid
running app's callback method from binder thread as the callback method
may block.
Also removed callback from advertisers on stop advertising callback.
This fixes the issue of not being able to restart adv for limited
advertising.

Bug: 17045567

Change-Id: I56cd2bdf4b1ad120a0358fa4065ad77be4bff144
luetoothLeAdvertiser.java
b661bb79584f83ae95713e502fc14363c80c0278 19-Aug-2014 Wei Wang <weiwa@google.com> Fix race condition for BluetoothLeScanner.

Root cause of the issue:
Client registeration was done on caller's thread, while
onClientRegistered was called from binder thread. There is a slight
chance that onClientRegistered was called before registerClient
returned, causing a premature notifyAll before wait was called.

By forcing acquiring the same lock now it's guaranteed wait would
happen before onClientRegistered callback was executed.

Bug: 16707401
Change-Id: Ic60adec475085741d14ecd2d2bb462246f88da58
luetoothLeScanner.java
9960b576533041d07b141008c5925dcecb8c9224 15-Aug-2014 Wei Wang <weiwa@google.com> Fix API council review comments. Also hide certain APIs(1/3).

b/17006825.

Change-Id: Iee64b11920152e0ab3da54decf37fa4a83be5dc7
dvertiseData.java
dvertiseSettings.java
canCallback.java
canFilter.java
canResult.java
canSettings.java
621085e50f59647d745d12488b88c41077d70ee9 14-Aug-2014 Prerepa Viswanadham <dham@google.com> Protect from malformed advt with invalid manf_id/data combo

Bug: 16979645
Change-Id: Ie7ea00ed20cbad1120c7582bb2bafd44b4295052
canRecord.java
ee80922c6a1228886589dcd4598a1cadf0bd1ff8 13-Aug-2014 Wei Wang <weiwa@google.com> Clean up advertise and scan clients upon bluetooth down.

Fixes b/16528460

This allows Advertiser and Scanner to be reused after bluetooth recycle,
which follows same behavior for BluetoothAdapter.

Also prints manufacturer data array for ScanRecord.

Change-Id: I78bca40ac294433782a054bf2a00a775dac02d96
luetoothLeAdvertiser.java
luetoothLeScanner.java
tils.java
0d0df3ce258f569c76dc7c4b5250c4e50029d6e6 31-Jul-2014 Wei Wang <weiwa@google.com> Add a TLV to support different result storage

Change-Id: Ic20a1720b783508cf85b234950b7fd0c79e9e7c3
luetoothLeScanner.java
esultStorageDescriptor.aidl
esultStorageDescriptor.java
runcatedFilter.java
d5324e4183c97ae7271b6eda4204d9f0dc003023 07-Aug-2014 Prerepa Viswanadham <dham@google.com> OnLost/OnFound integration - onfound match is done in framework,
whereas hw signal is used to report onlost.

Bug 16733710

Change-Id: I7b177b7afd730341c336818857436c095735b53b
luetoothLeScanner.java
e0d4afb2d4caecb264852a35f6e3cfc1248e08c4 30-Jul-2014 Wei Wang <weiwa@google.com> Add a default impelementation of IBluetoothGattCallback(1/2).

Also cleaned up a few TODOs and fixed bug.
b/16410260 AdvertiseCallback null onSuccess callback

Change-Id: I75a582c03be1e2ef6964c2cbeba42aaaf9f9e17c
luetoothLeAdvertiser.java
luetoothLeScanner.java
6bf513d32db7fbc157681bd642e12a201cf20a89 01-Aug-2014 Wei Wang <weiwa@google.com> Revert "Revert "Service data and manufacturer data can be repeated fields.""

This reverts commit 14c797702543bb5ced989565d90abcfa55c7db46.
dvertiseData.java
luetoothLeAdvertiser.java
canFilter.java
canRecord.java
tils.java
67c01a4b6d890212fb4647973a627e25a3a9788b 01-Aug-2014 Sungsoo Lim <sungsoo@google.com> Revert "Service data and manufacturer data can be repeated fields."

This reverts commit 26dc9b99b17ca9d8ce3632c48e8b6c1450ee53e9.

Change-Id: I1846d0a6491c5b2ba5905411bd98f5d17909b705
dvertiseData.java
luetoothLeAdvertiser.java
canFilter.java
canRecord.java
tils.java
3f7a39063ab7b3d7a38b773449ba2b37674e3458 29-Jul-2014 Wei Wang <weiwa@google.com> Service data and manufacturer data can be repeated fields.

b/16635899

Change-Id: I73f1f4effd3f0e38cd427297eb9d22f3ba285d61
dvertiseData.java
luetoothLeAdvertiser.java
canFilter.java
canRecord.java
tils.java
64d2b567c38d626b0f2da470e3451d7a957e8961 30-Jul-2014 Wei Wang <weiwa@google.com> Merge "Make scan filter accepts prefix. Add tests." into lmp-dev
0462468aaff1089f08d0859e4920f90e4378b66b 29-Jul-2014 Wei Wang <weiwa@google.com> Make scan filter accepts prefix. Add tests.

Change-Id: I714dd6d95ad2bc874dce1106b325762b19159119
canFilter.java
f6b3d8ca364f3008730741258ceb07c7039a5528 29-Jul-2014 Prerepa Viswanadham <dham@google.com> Fix crash in Stopping/Starting BLE advertising after
BluetoothAdapter cycling

Bug 16528460
Change-Id: Iad852bc93d307c5ca5f7e42f24248aa02c105e8a
luetoothLeAdvertiser.java
luetoothLeScanner.java
ab2ed62f15d0dac0f8ef825ff2d3677c9ae18f44 26-Jul-2014 Wei Wang <weiwa@google.com> Split manu id and manu data.

b/16407380

Change-Id: I39f6ce0ab4cccadec809f0a4f518f5d2c77a90b7
canFilter.java
canRecord.java
canResult.java
ec64dbfbc0c7ecf41e17f3872c2d0109096f1c7a 25-Jul-2014 Wei Wang <weiwa@google.com> Fix bug of ScanSettings. Add unit test.

b/16318637.

Change-Id: I3fbc1212c1712faa0c29132f3dc9cfc1d58af26b
canSettings.java
c3059ccfb07837d7760b24f552ec8ff6098d4350 24-Jul-2014 Wei Wang <weiwa@google.com> Use Scanner for legacy LE scans(1/2).

Also removed different scan methods from IBluetoothGatt and make
BluetoothLeScanner and BluetoothLEAdvertiser singleton.

Change-Id: Ifa2e950b50f100f5507a6dace3bd70db18d7f9ca
luetoothLeScanner.java
0e81ca25432b3606eba841206b7a4a6ed74bd54b 24-Jul-2014 Wei Wang <weiwa@google.com> Move AdvertiseData length check to BluetoothAdvertiser.

This will keep AdvertiseData simple and avoid coupling with
BluetoothAdapter.

Change-Id: I3609652bdea1c6e757bac7d2dada7f8ddf20a5e3
dvertiseData.java
luetoothLeAdvertiser.java
03259472b19fef586f5eec5d4e7d61c34a6cd298 23-Jul-2014 Wei Wang <weiwa@google.com> Fix parcel issues with empty service uuid. Added tests.

b/16490816

Change-Id: If26a4731f22e83df4f5ded2ad76901de6c49a010
dvertiseData.java
685c1758902a42a7beb030d8bbaed3f7ce6f6135 17-Jul-2014 Wei Wang <weiwa@google.com> More API modification of BLE APIs (1/2).

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
dvertiseCallback.java
dvertiseData.java
dvertiseSettings.java
luetoothLeAdvertiser.java
luetoothLeScanner.java
canCallback.java
canFilter.java
canRecord.java
canResult.java
canSettings.java
890b46a0d5c220bffedcf27520befb34bf8830ea 11-Jul-2014 Wei Wang <weiwa@google.com> Remove MR2 BLE Advertising hidden API from L codebase (1/2).

Change-Id: I78bb8b89de56bddb7422da1d1d4468c88a68ea11
luetoothLeAdvertiser.java
luetoothLeScanner.java
af74e66e29a518157cb78fcef4b4fc532b7f60b0 09-Jul-2014 Wei Wang <weiwa@google.com> Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (1/2)

Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457
dvertiseCallback.java
dvertiseData.aidl
dvertiseData.java
dvertiseSettings.java
dvertisementData.aidl
dvertisementData.java
luetoothLeAdvertiser.java
luetoothLeScanner.java
canCallback.java
canFilter.java
canRecord.java
canSettings.java
8f2e74cac282afa0bcf98f5d7131268147d12efe 09-Jul-2014 Prerepa Viswanadham <dham@google.com> OnFound and Onlost callback integration

Change-Id: I23473b18484f041c4dd808c85bb92545a77e20c2
luetoothLeAdvertiser.java
luetoothLeScanner.java
canCallback.java
canSettings.java
8e5270fdf5639461d67e9a898a85520abac6053d 09-Jul-2014 Prerepa Viswanadham <dham@google.com> Tie in BLE hw capabilities with api invocation and support.

Change-Id: Ic1f0b3f156cf2fdde8f04b5c4384e4fd3d79623a
dvertiseCallback.java
luetoothLeAdvertiser.java
luetoothLeScanner.java
canCallback.java
9fb1791e1a6859bfb14006a6d101cdecc88f3f95 02-Jul-2014 Wei Wang <weiwa@google.com> Implement batch scan API

Change-Id: Ibb527280a221fbdd0fc6b805a7527c29079294b4
dvertiseCallback.java
luetoothLeAdvertiser.java
luetoothLeScanner.java
canSettings.java
dadefdad8ef424991feb45f02f923a2f8224285b 28-Mar-2014 Andre Eisenbach <andre@broadcom.com> LE: Add notification sent and congestion callbacks (3/4)

This change introduces two new callbacks for applications to better
handle LE notification flow control and transport congestion. The
notification callback is invoked when the remote platform confirms an
indication or when a local notification has been passed to the
controller. No new notifications should be sent until a callback is
received.

Congestion callbacks are triggered when a GATT operation cannot be sent
to the local Bluetooth controller. Repeatedly calling
writeCharacteristic() for example will eventually trigger a congestion
callback. Applications cannot send additional data until a further
callback is received, indicating that the congestion has cleared up.

Also made server callbacks "oneway" in the AIDL definition file.

Change-Id: I7fa3324712205c79efce58e5e3df8b80a265a442
luetoothLeAdvertiser.java
luetoothLeScanner.java
6d81118032b92caa0f5cfebe11af02a98f819d5e 22-May-2014 Wei Wang <weiwa@google.com> Address API review comments.
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
dvertiseCallback.java
dvertiseSettings.aidl
dvertiseSettings.java
dvertisementData.aidl
dvertisementData.java
luetoothLeAdvertiser.java
luetoothLeScanner.java
canCallback.java
canFilter.aidl
canFilter.java
canRecord.java
canResult.aidl
canResult.java
canSettings.aidl
canSettings.java