summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2017-09-05 15:54:13 +0100
committerMichael Wright <michaelwr@google.com>2017-09-15 18:07:03 +0100
commit0a7e2ea766971beccf29516f641007b86779be32 (patch)
treec917e3c72aede810fc64ce80670f7a9342bdf956 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent9c60823279f5d4b27f193bb3d6ffa55b006e1a0c (diff)
Ignore only internal volume keys when in VR mode.
The concern here is that the elastic strap on some VR headsets will press the volume keys on the side of the device. Given that, external keys (e.g. bluetooth headsets, USB keyboards) aren't a concern and should be allowed to go through. I ran a couple quick traces and the initial fetch of the InputDevice takes ~0.1ms and each cache lookup following that takes ~0.01ms. This is probably okay to happen on the dispatcher thread since it's both rare and reasonably cheap, but if we find this to be a performance bottleneck in the future we could just add a flag to the input event itself denoting whether it comes from an internal or external input device. Fixes: 63909929 Test: flashed change, put the device in VR mode and saw that the side button volume keys didn't work but a USB-C headset's volume keys did. Change-Id: If3dfcd374abd79236c2c38e5b9439564c6b49ec8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions