History log of /frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
020bd7b861dfd560fad9f761f2778ebbac8be20e 17-Oct-2014 Wei Wang <weiwa@google.com> Remove spammy log information for BLE scan.

Bug:17574681
Change-Id: Ic5761ad7262200f38f2b67659c37f8a3f01d80d5
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.java
0d0df3ce258f569c76dc7c4b5250c4e50029d6e6 31-Jul-2014 Wei Wang <weiwa@google.com> Add a TLV to support different result storage

Change-Id: Ic20a1720b783508cf85b234950b7fd0c79e9e7c3
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.java
890b46a0d5c220bffedcf27520befb34bf8830ea 11-Jul-2014 Wei Wang <weiwa@google.com> Remove MR2 BLE Advertising hidden API from L codebase (1/2).

Change-Id: I78bb8b89de56bddb7422da1d1d4468c88a68ea11
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.java
af74e66e29a518157cb78fcef4b4fc532b7f60b0 09-Jul-2014 Wei Wang <weiwa@google.com> Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (1/2)

Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.java
8f2e74cac282afa0bcf98f5d7131268147d12efe 09-Jul-2014 Prerepa Viswanadham <dham@google.com> OnFound and Onlost callback integration

Change-Id: I23473b18484f041c4dd808c85bb92545a77e20c2
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.java
8e5270fdf5639461d67e9a898a85520abac6053d 09-Jul-2014 Prerepa Viswanadham <dham@google.com> Tie in BLE hw capabilities with api invocation and support.

Change-Id: Ic1f0b3f156cf2fdde8f04b5c4384e4fd3d79623a
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.java
9fb1791e1a6859bfb14006a6d101cdecc88f3f95 02-Jul-2014 Wei Wang <weiwa@google.com> Implement batch scan API

Change-Id: Ibb527280a221fbdd0fc6b805a7527c29079294b4
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.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
/frameworks/base/core/java/android/bluetooth/le/BluetoothLeScanner.java