summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-01-09 17:53:04 -0800
committerJerry Zhang <zhangjerry@google.com>2018-01-31 11:40:48 -0800
commit327b809ad11a5094248652014227470c4be329e6 (patch)
tree9779e98e6ab294d0455b67d7a764a892007cce6a /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1810393c5a5fa0d9f8579e0eeabd7b334482163c (diff)
Refactor and clean up USB, add tests
Change UsbManager apis to use long instead of string, to match usb hal. Change UsbDeviceManager internals to match as well. Remove isFunctionEnabled and add getEnabledFunctions. Callers would often call isFunctionEnabled for every possible function to get the list of functions, so getEnabledFunctions reduces the number of aidl calls. Separate out dependencies between UsbHandler and UsbDeviceManager and staticize the UsbHandler classes. Add unit tests with mocked out dependencies to test state transitions for UsbHandler. Bug: 62876645 Test: atest UsbTests Change-Id: I785c4c24121a70e725de9742c6af50a6bf1baea0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions