summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2017-08-11 18:28:20 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2017-08-11 18:28:20 -0700
commit87d31ecdff739b423c99eeb0c860c743a5874a73 (patch)
tree521663cdfbbdeed998a1e44765dbc9011d34a05f /tools/aapt2/java/JavaClassGenerator.cpp
parentb6ba151a6ffecbd048bdc423dc4d3ad66de72dc4 (diff)
Fix logic for Intent.ACTION_HEADSET_PLUG for USB headsets
In the broadcast of Intent.ACTION_HEADSET_PLUG: - restore setting "microphone" to 0 for line and headphone as the input bit is never set for those devices - for USB_HEADSET: there is no input bit for this device, so: * when observing change for DEVICE_OUT, check status of DEVICE_IN * when observing change for DEVICE_IN, only send the intent if DEVICE_OUT is available. Test: test broadcast and extras for Intent.ACTION_HEADSET_PLUG Bug: 64250808 Change-Id: I0913933d03e21189bb552f60ae5dd35ffe28ddca
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions