summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJack He <siyuanh@google.com>2018-03-02 13:08:36 -0800
committerJack He <siyuanh@google.com>2018-03-08 01:38:48 +0000
commit0dbe66460fa2a5ebb05ca757e58141c213038bc1 (patch)
tree060bf15bb43476a838254600741ba9f5661f90f7 /tools/aapt2/java/JavaClassGenerator.cpp
parent36886b6f15adb1e3b047ec9243fdf108bb611a24 (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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions