OSDN Git Service

Use the incoming WorkSource to notify batterystats of BLE scans
authorAdam Lesinski <adamlesinski@google.com>
Sat, 16 Jan 2016 02:20:19 +0000 (18:20 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 27 Jan 2016 14:14:18 +0000 (14:14 +0000)
commit44f6d970c611bb13000f4eae052a6de316191fa4
tree001263451bac7c636bd1736d8d2ae1f6336f1b5f
parentd8f88f77836e24c20b67cd872105eb7700f59942
Use the incoming WorkSource to notify batterystats of BLE scans

BatteryStats is going to start tracking bluetooth scanning, so
we start by passing along the WorkSource we were given (or we created
if none was specified).

This is only done for BLE scanning at the moment, and only for regular scans.
Batched scans will also need to be considered.
Bug:22718669

Change-Id: I3ff042d6c344f13b600602c5966aef60b4587916
AndroidManifest.xml
src/com/android/bluetooth/gatt/GattService.java
src/com/android/bluetooth/gatt/ScanClient.java
src/com/android/bluetooth/gatt/ScanManager.java