diff options
author | Hemant Gupta <hemantg@codeaurora.org> | 2014-08-14 13:58:26 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2014-11-04 08:26:04 -0700 |
commit | 89ba738388fb400ec9b13a8b3bd6d80418ea0269 (patch) | |
tree | 9f853d67510192579244989482f6e1881e3cd85d /src/com/android/bluetooth/map | |
parent | fdf073a106e79dc12596a216b8549a130987a8be (diff) | |
download | android_packages_apps_Bluetooth-89ba738388fb400ec9b13a8b3bd6d80418ea0269.tar.gz android_packages_apps_Bluetooth-89ba738388fb400ec9b13a8b3bd6d80418ea0269.tar.bz2 android_packages_apps_Bluetooth-89ba738388fb400ec9b13a8b3bd6d80418ea0269.zip |
Bluetooth: Dynamic Logging for data profiles
This patch adds dynamic logging support for MAP, PBAP
and OPP data profiles.
OPP: Control Verbose logging runtime from adb shell
Support runtime VERBOSE logging control for OPP Server
or Client app implementation through "BluetoothOpp" TAG.
PBAP: Control Verbose logging runtime from adb shell.
Support runtime VERBOSE logging control for PBAP Server
App implementation through BluetoothPbapService TAG.
MAP: Set BluetoothMapService.VERBOSE to false from
code. Mark DEBUG for logs to be enabled by default.
OPP: Dump timestamp while send and receive file.
Add appropriate verbose logging.
CRs-fixed: 608230, 604523
Change-Id: Ia0db1ff0847d1f6822d53ecedc3f7095abed1fa5
Diffstat (limited to 'src/com/android/bluetooth/map')
-rw-r--r-- | src/com/android/bluetooth/map/BluetoothMapObexServer.java | 1 | ||||
-rw-r--r-- | src/com/android/bluetooth/map/BluetoothMapService.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/map/BluetoothMapObexServer.java b/src/com/android/bluetooth/map/BluetoothMapObexServer.java index ddd67b865..9cff0f03b 100644 --- a/src/com/android/bluetooth/map/BluetoothMapObexServer.java +++ b/src/com/android/bluetooth/map/BluetoothMapObexServer.java @@ -538,6 +538,7 @@ public class BluetoothMapObexServer extends ServerRequestHandler { int value = appParams.getStatusValue(); long handle; BluetoothMapUtils.TYPE msgType; + if (D) Log.d(TAG, "setMessageStatus():"); if(indicator == BluetoothMapAppParams.INVALID_VALUE_PARAMETER || value == BluetoothMapAppParams.INVALID_VALUE_PARAMETER || diff --git a/src/com/android/bluetooth/map/BluetoothMapService.java b/src/com/android/bluetooth/map/BluetoothMapService.java index 9d06bd037..d32330834 100644 --- a/src/com/android/bluetooth/map/BluetoothMapService.java +++ b/src/com/android/bluetooth/map/BluetoothMapService.java @@ -314,7 +314,7 @@ public class BluetoothMapService extends ProfileService { private final Handler mSessionStatusHandler = new Handler() { @Override public void handleMessage(Message msg) { - if (VERBOSE) Log.v(TAG, "Handler(): got msg=" + msg.what); + if (DEBUG) Log.v(TAG, "Handler(): got msg=" + msg.what); switch (msg.what) { case UPDATE_MAS_INSTANCES: |