OSDN Git Service

Add extra logging for BLE scans
authorAjay Panicker <apanicke@google.com>
Fri, 15 Jan 2016 01:59:10 +0000 (17:59 -0800)
committerAjay Panicker <apanicke@google.com>
Thu, 21 Jan 2016 00:04:40 +0000 (16:04 -0800)
commit9fa95f7c39df16aa059391a637b4469f97e7d987
tree0f319e8d2ee32967110e85474c9ed6b9c866fafa
parent28ca6b2d791358a1938c5ab1693f01522c4338f4
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
src/com/android/bluetooth/gatt/ContextMap.java
src/com/android/bluetooth/gatt/GattService.java