dd26298bbf5d4b034f27db60d0aceba3902d5c86 |
|
05-Sep-2017 |
Amith Yamasani <yamasani@google.com> |
Check permissions when registering a scan pending intent Check the permissions when registering and use them when starting the scan. Bug: 65013767 Test: Manually modify the cts test to not include the permission and ensure the scan results are not delivered. Change-Id: Id9322182ae65a3e5fc5158a09d77c7ca28b2be2d
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
d4f3f444bc09eaa0b447557900f2d9d82ef44e1c |
|
15-May-2017 |
Ajay Panicker <apanicke@google.com> |
Track BLE Scanning statistics by UID instead of by package name Bug: 38315257 Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest Change-Id: I8a705f6f8169bf074a0eacc39c015bb1af04207d
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.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/ContextMap.java
|
d03408c87f740be8d87e706d8f43db6870b2733a |
|
14-Apr-2017 |
Amith Yamasani <yamasani@google.com> |
Handle PendingIntent-based callback for scan results This allows scan results to be returned to an app that is potentially not running at the moment. Bug: 37254611 Test: WIP for new tests. Existing cts bluetooth tests pass. Change-Id: Iaa24333605ebd06636bfd765cec4551692d0f4d4
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
00afbc90278b80415c9e847a3e97f05abe7fe313 |
|
03-Apr-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Fix unregAll throwing Concurrent exception unregAll does iterate over ContextMap.mApps without synchronization, and then call unregisterClient, which also iterate over same variable, and remove element. This cause ConcurrentModificationException. To fix that, make sure mApps access is always guarded by synchronized block. Also make mApps into private variable, to make sure no one would make similar errors in the future. Bug: 34805290 Test: manual Change-Id: I6254c809423ecc3901b64f1a2d60324efd1c4834 (cherry-picked from commit 98ca87dd893a7a3d1545e00a2a9a2419d83e22ef)
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
7efb7c69c45e71e96a035cdd0b2f9e57064aa0fe |
|
31-Mar-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Add missing mApps synchronization Test: manual Bug: 33227052 Change-Id: I29d50f706c64b3a46f4bcb868dee6e86484ebed7 (cherry picked from commit 9b093393eead74eb3f1a8c19418d3d3a6e86761c)
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
9b6f93f30cf382e00edef95f0b3fa628ee6fb2fa |
|
31-Aug-2016 |
Kyle Horimoto <khorimoto@google.com> |
ContextMap: Remove connection references when an app is removed am: 660208ad2e am: a17703b027 Change-Id: If182787e3d975976c77808729b946a5fa593537b
|
660208ad2ee2ea394adab0d1c1cea9b068bb70c6 |
|
31-Aug-2016 |
Kyle Horimoto <khorimoto@google.com> |
ContextMap: Remove connection references when an app is removed This fixes an issue which could cause a stale Bluetooth address to be used. The issue would manifest itself when an app is added with a connection ID, then the app is removed and app is re-added, causing the original connection ID (which could be stale) to be used. Bug: 30765855 Change-Id: Idacbbfb07d895bf9276fdd986100e832a54d81b0
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
05405f01802e6b5210575ad348ca441edb5cfb8b |
|
01-Apr-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
GATT Server refactoring (3/4) Bug: 27999121 Change-Id: I45fec0fa6d0e8e26e40e1856ba9fee6f7fbd4f7b
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
eb7b90f5b93db1230a5b64caa3d8d05a642e33a6 |
|
10-May-2016 |
Marie Janssen <jamuraa@google.com> |
Cleanup unused requires in java files Change-Id: I7b055c1d3d3f6a69e9f49c077853ab45fcad7106
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
b37b80b24a26a697d302583c900c5e9237acb03a |
|
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/ContextMap.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/ContextMap.java
|
62a730f79420bc4f335a520331ac31f314fda445 |
|
26-Mar-2016 |
Sharvil Nanavati <sharvil@google.com> |
Fix NPE when performing BLE scans. Bug: 27811549 Change-Id: I017b34745682dd9db5487921df5c01dfde93d67c
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
2a6d08a87c210918a0ad5b4c01bb5152cce2ba69 |
|
26-Mar-2016 |
Sharvil Nanavati <sharvil@google.com> |
Fix NPE when performing BLE scans. Bug: 27811549 Change-Id: I017b34745682dd9db5487921df5c01dfde93d67c
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
e90db937c008f365f47e7199d6d86f9eb13bed1e |
|
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/ContextMap.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/ContextMap.java
|
7a068c2a0861e12a3916cec313cf105395871999 |
|
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/ContextMap.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/ContextMap.java
|
337ee9418b0122e6a89ff38cd49f031ba80aa24c |
|
01-Mar-2016 |
Ajay Panicker <apanicke@google.com> |
Add more statistics to scan logs Added length of connection time to connections. Also added scan type (opportunistic/background) to last X scans. Example of new print: GATT Client Map Entries: 2 no.nordicsemi.android.mcp (Registered) LE scans (started/stopped) : 2 / 2 Scan time in ms (min/max/avg/total): 1604 / 7274 / 4439 / 8878 Last 2 scans : 1970/02/19 21:30:20 - 1604ms 1970/02/19 23:59:00 - 7274ms Application ID : 6 UUID : 0c452531-a57e-44df-9ac6-e2b780d2f715 Connections: 1 6: FF:08:11:53:44:A1 10008ms com.example.apanicke.bletest (Registered) LE scans (started/stopped) : 2 / 2 Scan time in ms (min/max/avg/total): 2946 / 9996 / 6471 / 12942 Last 2 scans : 1970/02/19 21:30:07 - 2946ms Opp 1970/02/19 21:30:17 - 9996ms Opp Application ID : 5 UUID : f25c1bdf-559f-43a6-8348-40ca92975b33 Connections: 0 Bug: 27294154 Change-Id: I7460fb1568f20a1ce13b01d101517852cf9aec4a
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
f6ca9c52dc4fd4a531e73c8cfbe01cb3a6065130 |
|
01-Mar-2016 |
Ajay Panicker <apanicke@google.com> |
Add more statistics to scan logs Added length of connection time to connections. Also added scan type (opportunistic/background) to last X scans. Example of new print: GATT Client Map Entries: 2 no.nordicsemi.android.mcp (Registered) LE scans (started/stopped) : 2 / 2 Scan time in ms (min/max/avg/total): 1604 / 7274 / 4439 / 8878 Last 2 scans : 1970/02/19 21:30:20 - 1604ms 1970/02/19 23:59:00 - 7274ms Application ID : 6 UUID : 0c452531-a57e-44df-9ac6-e2b780d2f715 Connections: 1 6: FF:08:11:53:44:A1 10008ms com.example.apanicke.bletest (Registered) LE scans (started/stopped) : 2 / 2 Scan time in ms (min/max/avg/total): 2946 / 9996 / 6471 / 12942 Last 2 scans : 1970/02/19 21:30:07 - 2946ms Opp 1970/02/19 21:30:17 - 9996ms Opp Application ID : 5 UUID : f25c1bdf-559f-43a6-8348-40ca92975b33 Connections: 0 Bug: 27294154 Change-Id: I7460fb1568f20a1ce13b01d101517852cf9aec4a
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
a0ff3af53c2299fc20d4c1cc2bcced4a0d2ff5c9 |
|
29-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Protect ScanStats from race conditions Bug: 27294154 Change-Id: Icc0b0a6cfb93fca4a9a2aee49b94c0be1d62527f
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
8ac61cea59b89be104fd66710cfd44eaf12153b9 |
|
29-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Protect ScanStats from race conditions Bug: 27294154 Change-Id: Icc0b0a6cfb93fca4a9a2aee49b94c0be1d62527f
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
ef437b17ba8b192488cb77ffd39daa3e83ba4aea |
|
27-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Fix logic for repeated record scan calls If recordStartScan or recordStopScan is called multiple times, there are issues where logged values are incorrect. Bug: 27294154 Change-Id: Ie049e917ae26fec4c50874ed703e404146c15044
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
9d48f7ed161cb7c201b91f21fb1be36522a562e0 |
|
27-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Fix logic for repeated record scan calls If recordStartScan or recordStopScan is called multiple times, there are issues where logged values are incorrect. Bug: 27294154 Change-Id: Ie049e917ae26fec4c50874ed703e404146c15044
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
f0202e094a55e51d1e1399f18ad255fb636dd381 |
|
25-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Mark background and opportunistic scans in scan statistics Bug: 27294154 Change-Id: I71d8f388aa83da581958d2169ca9a5eb6088a367
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
45c63ddeca7ccb3bbf1cb3a7234c89c9eee177cf |
|
25-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Mark background and opportunistic scans in scan statistics Bug: 27294154 Change-Id: I71d8f388aa83da581958d2169ca9a5eb6088a367
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
5c07523b0b5d32176d7ff3ab28555123123261dd |
|
24-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Add timestamps to last LE scan log Ex: no.nordicsemi.android.mcp (Registered) LE scans (started/stopped) : 5 / 4 Scan time in ms (min/max/avg) : 97 / 1476 / 897 Last 4 scans (timestamp - duration): 1970/02/13 21:10:19 - 1476ms 1970/02/13 21:10:21 - 97ms 1970/02/13 21:10:23 - 929ms 1970/02/13 21:10:25 - 531ms Application ID : 5 UUID : f77437a1-5e86-4e2d-8223-6193a095c7f5 Current scan duration in ms : 1452 Connections: 0 Bug: 27294154 Change-Id: I66ba6b4bc2d45ced7d6414db007394a16a30956e
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
899ebeb890b5564b1515ee289b7877399a4b47fe |
|
24-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Add timestamp to last scans Ex: no.nordicsemi.android.mcp (Registered) LE scans (started/stopped) : 5 / 4 Scan time in ms (min/max/avg) : 97 / 1476 / 897 Last 4 scans (timestamp - duration): 1970/02/13 21:10:19 - 1476ms 1970/02/13 21:10:21 - 97ms 1970/02/13 21:10:23 - 929ms 1970/02/13 21:10:25 - 531ms Application ID : 5 UUID : f77437a1-5e86-4e2d-8223-6193a095c7f5 Current scan duration in ms : 1452 Connections: 0 Bug: 27294154 Change-Id: I66ba6b4bc2d45ced7d6414db007394a16a30956e
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
3122e5171ef26ff487f10826786606df848ca25e |
|
16-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Add Java Protobuf dump and ScanEvent Protobuf Add Protobuf dumping for the Java layer. Also add ScanEvent Protobuf to already existing scan event logging. Change-Id: Ib05973c8d98df3bead84b22b3773c42effb25c87
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
f7435f2f832ab1faa9ca254143796e9516905c63 |
|
16-Feb-2016 |
Ajay Panicker <apanicke@google.com> |
Add Java Protobuf dump and ScanEvent Protobuf Add Protobuf dumping for the Java layer. Also add ScanEvent Protobuf to already existing scan event logging. Change-Id: Ib05973c8d98df3bead84b22b3773c42effb25c87
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
9fa95f7c39df16aa059391a637b4469f97e7d987 |
|
15-Jan-2016 |
Ajay Panicker <apanicke@google.com> |
Add extra logging for BLE scans Added logging for application name, number of scans, and scan times for each application that uses gatt scanning. Example output: GATT Client Map Entries: 1 Application Name: com.broadcom.app.leexplorer (Registered) LE scans (started/stopped) : 4 / 4 Scan time in ms (min/max/avg) : 6 / 7321 / 2744 Time since last scan ended in ms : 3522 Last 4 scans in ms (oldest first): 763 6 7321 2887 Application ID : 5 UUID : f69badb3-212b-40b5-b5b3-3bf9214310f9 Connections: 1 5: 6B:1F:6C:45:3D:DC Bug: 26463429 Change-Id: I52376541a5b5874d0e40978990149a1283fd9c6a
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
8a0bc0a61e97f8923cb362e1dbb7ff66ffe51507 |
|
15-Jan-2016 |
Ajay Panicker <apanicke@google.com> |
Add extra logging for BLE scans Added logging for application name, number of scans, and scan times for each application that uses gatt scanning. Example output: GATT Client Map Entries: 1 Application Name: com.broadcom.app.leexplorer (Registered) LE scans (started/stopped) : 4 / 4 Scan time in ms (min/max/avg) : 6 / 7321 / 2744 Time since last scan ended in ms : 3522 Last 4 scans in ms (oldest first): 763 6 7321 2887 Application ID : 5 UUID : f69badb3-212b-40b5-b5b3-3bf9214310f9 Connections: 1 5: 6B:1F:6C:45:3D:DC Bug: 26463429 Change-Id: I52376541a5b5874d0e40978990149a1283fd9c6a
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
f19f1ac64a5fefb248ab15b918d009b926c99dde |
|
11-Mar-2015 |
Nitin Arora <niarora@codeaurora.org> |
Bluetooth LE background operation mode (1/2) Changes to BluetoothAdapter state machine for handling new states BLE_STATE_ON and intermediate states BLE_TURNING_ON and BLE_TURNING_OFF. Also includes the actions required while migrating in and out of these states including start and stop of GATT services and other profiles. Change-Id: I08d6ff05c2cefe559d5bb5789a1a488afefbe544
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
3f8164cd8c4bcce5e79770ee7c02fe00ba9581d5 |
|
16-Jan-2015 |
Andre Eisenbach <eisenbach@google.com> |
Remove GATT context if client registration did not succeed Bug: 19028495 Change-Id: I25827e365621fa9b3ef6e85ef9c103cf03654b7c
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
a02de6484f9b6cac6b8c811edae11be55746b555 |
|
02-Dec-2014 |
Andre Eisenbach <eisenbach@google.com> |
Add GATT debug information to dumpsys/bugreport Bug: 17894347 Change-Id: I70a2e237e4aa6a1057e5ff519f3f6148a27b3a98
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
934dee789c0c68607a704c5c31ae2e4b956dc227 |
|
19-Sep-2014 |
Prerepa Viswanadham <dham@google.com> |
Defer callbacks if the transport is congested Hold client characteristic write callbacks and server notification callbacks if the transport is congested. When the congestion clears up, all queued callbacks are sent to the application. Bug: 17289507 Change-Id: Ib22d7857ac3990fd3cc922aedd4258013e1af54c
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
6af1f25031e4378efb1a4fc286974c1038a357ba |
|
05-Apr-2013 |
Andre Eisenbach <andre@broadcom.com> |
Add binder DeathRecipient to GATT service Bluetooth stack connections are now released if a GATT client or server application closes unexpectedly. Bug: 8362526 Change-Id: I13b0711f65dcc752f4ed5c5a6e469b6fea41de75
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|
03b8386de26ba6500af2d66687bff9b01f2cbbd7 |
|
06-Feb-2013 |
Ganesh Ganapathi Batta <ganeshg@broadcom.com> |
Initial version of BLE support for Bluedroid Change-Id: I9579b3074bc4bc59dd45f71c0937e8879196555e
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ContextMap.java
|