b4650c79c67ba13773724ef4af9a82c1bb7c808c |
|
31-May-2017 |
Joe Onorato <joeo@google.com> |
Merge "Send ble scan type to Batterystats" into oc-dev
|
ca4e714ae37050265379fc6604a4e01db9ecae15 |
|
24-May-2017 |
Ajay Panicker <apanicke@google.com> |
Switch GATT scan timekeeping to use a different clock System.currentTimeMillis() could cause a scan to have a negative scan time if the system time changed during a scan. Switch to SystemClock.elapsedRealtime which is guaranteed to be monotonic. Test: Start a scan and change system time Bug: 62057540 Change-Id: Ie4d88df96c0a133955f46c355660756e587d29c5 (cherry picked from commit 4e58faa3aa59332e4d2394e6e54d8d1579e5cc73)
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
ffec5afaea207f22ceeab0eeb73a4ec5000f91fc |
|
23-May-2017 |
Bookatz <bookatz@google.com> |
Send ble scan type to Batterystats Batterystats is now informed whether the ble scan is unoptimized or not. In this context, unoptimized means that it is none of filtered, background, or opportunistic. Bug: 38461344 Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest#testUnoptimizedBleScans Change-Id: Idb199666830db24b2ef92797cdcc59e8eab16be3
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
8dc1ac7b011ff262830a0a28f66ae53fe5f63f74 |
|
09-May-2017 |
Ajay Panicker <apanicke@google.com> |
Add scan result tracking to battery stats Bug: 37720787 Test: View volta stats and check for results Change-Id: I92f116686fe394b4205fc684fd4872bbc88766a5
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
edbc90eb917a8a509d2d03fb304763b768ec5517 |
|
03-May-2017 |
Ajay Panicker <apanicke@google.com> |
Move Bluetooth battery stats tracking (2/2) Move Bluetooth battery stats tracking to AppScanStats for a more unified tracking system. Bug: 37720787 Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest#testBleScans Perform BLE scan and check battery stats Change-Id: I6129a83d275c7d72edc6abfc5cc72641adde8767
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
65e839fa45222955a605f6270a240edc68b21617 |
|
20-Jan-2017 |
Ajay Panicker <apanicke@google.com> |
Change scan downgrading to be app independent Before this patch, every time an app started a new scan it would reset the timer to downgrade apps down to opportunistic. Now each app is kept track of individually so that another app doing frequent short scans doesn't cause a long scanning app to avoid downgrading. Bug: 34224062 Test: Tested scanning multiple times with multiple apps / TestTracker:73279 Change-Id: Ibcae9115dcd0fb5325f7bc9fc5d6e0fe4bf6e062
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
bd11ad34482a898a53bbd9f55bf3607c40c648ec |
|
04-Jan-2017 |
Ajay Panicker <apanicke@google.com> |
Add the Filter statistic to scan statistics Test: sl4a FilterTest Change-Id: Ic16e523524022803107b5e0653a35e3f2cbc5186
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
c82ac85eacc5607433592f476dbbe73d7670efe1 |
|
06-May-2016 |
Ajay Panicker <apanicke@google.com> |
Allow scan statistics to be displayed even if app hasn't scanned. Bug: 28622714 Change-Id: I220d3110346e7d6f67ecfd7468779072d71b5788
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
1fdc7c138db776b02bc751fd7a80c519ea3324d1 |
|
13-Apr-2016 |
Ajay Panicker <apanicke@google.com> |
Add protection against LE scanning abuse Added two checks to prevent abuse. The first check ensures that an app doesn't scan too frequently in a certain time period. It is allowed to scan again after its oldest scan exceedes said time period. The second check ensures that an app doesn't scan for too long. Upon starting a scan, this code waits a certain amount of time. If the app is still scanning by that point, this code stops the scan and forces the app to use opportunistic scanning instead. Bug: 27357274 Change-Id: Ic99ac1f838e15ed99fe2fae643ef073d74b5c96b
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
a86ae2ce4305fb0af5522b3f46513b137e98836f |
|
20-Apr-2016 |
Ajay Panicker <apanicke@google.com> |
Properly label app as unregistered and add NPE protection Bug: 28252914 Change-Id: I1e28a9af96bcf0d56914fcc676a8ff85400bc1c4
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
3d69ae195b8d3918958ea703a188cc77e511da6c |
|
05-Apr-2016 |
Ajay Panicker <apanicke@google.com> |
Fix name collected for scan initiator Private information was being collected for the scan statistics. Bug: 27996307 Change-Id: Idab438967f80f86f4f92e7f03cc5787f8d54e8a1
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
c30f06668bc683b13319a33775ee8f9def3283c8 |
|
09-Mar-2016 |
Ajay Panicker <apanicke@google.com> |
Add scan results to scan stats Ex: GATT Client Map Entries: 1 no.nordicsemi.android.mcp LE scans (started/stopped) : 3 / 3 Scan time in ms (min/max/avg/total): 3050 / 6901 / 4815 / 14447 Total number of results : 338 Last 3 scans : 1970/01/01 08:20:06 - 6901ms 0 results 1970/01/01 08:20:13 - 4496ms 171 results 1970/01/01 08:20:39 - 3050ms 167 results Bug: 27294154 Change-Id: I32fd6da035f2c37302a105733ac6a9817547b7a3
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|
b7af521b6c2d1ccaaea687207dfbcd0c34489a3c |
|
02-Mar-2016 |
Ajay Panicker <apanicke@google.com> |
Move ScanStats to its own file ScanStats was growing too large and had many components so it was moved into its own file. Bug: 27294154 Change-Id: Ic20c9e74d5d8b074f7e966625fb1bffab6c94f2d
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/AppScanStats.java
|