diff options
author | Jack He <siyuanh@google.com> | 2018-03-02 13:08:36 -0800 |
---|---|---|
committer | Jack He <siyuanh@google.com> | 2018-03-09 00:59:15 +0000 |
commit | f2f77ed3ada721e23e636f07648a254584f7c979 (patch) | |
tree | 66cbd028f1f74f54bc47f4fc9aa53aae30eec7d9 /framework/java/android/bluetooth/BluetoothHidDeviceCallback.java | |
parent | 27128c930b398b0e24074db93396b793058c204f (diff) |
Bluetooth: Separate enable and disable Reasons from package name
* Reasons to enable or disable Bluetooth should be in a separate
namespace away from package names that initiated the enable or disable
* Delcare reason code in android/bluetooth/enums.proto as
EnableDisableReasonEnum and use these reason code together with
package names to log Bluetooth enable and disable events
* When reason is ENABLE_DISABLE_REASON_APPLICATION_REQUEST, the external
package name is the real reason why Bluetooth is enabled or disabled
* Change START_CRASH to START_ERROR since it represents a disable event
when Bluetooth failed to start
* Change UNEXPECTED_CRASH to CRASH since no crash is expected
* Add getEnableDisableReasonString() method to covert reason code to
human readable strings in dumpsys output
Bug: 74090881
Test: Toggle Bluetooth, airplane mode, BLE scanning
Change-Id: I06aa413e2a0a5f016c87759a1b694ef643c9cdee
(cherry picked from commit 0dbe66460fa2a5ebb05ca757e58141c213038bc1)
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothHidDeviceCallback.java')
0 files changed, 0 insertions, 0 deletions