Home
last modified time | relevance | path

Searched refs:HID (Results 1 – 3 of 3) sorted by relevance

/platform_testing/libraries/aoa-helper/src/com/android/helper/aoa/
DAoaDevice.java124 for (HID hid : HID.values()) { in registerHIDs()
147 for (HID hid : HID.values()) { in unregisterHIDs()
243 send(HID.TOUCH_SCREEN, data, pause); in touch()
266 send(HID.KEYBOARD, new byte[] {keyCode.byteValue()}, STEP_DELAY); in pressKeys()
267 send(HID.KEYBOARD, new byte[] {(byte) 0}, it.hasNext() ? STEP_DELAY : ACTION_DELAY); in pressKeys()
273 send(AoaDevice.HID.SYSTEM, new byte[] {SYSTEM_WAKE}, ACTION_DELAY); in wakeUp()
278 send(AoaDevice.HID.SYSTEM, new byte[] {SYSTEM_HOME}, ACTION_DELAY); in goHome()
283 send(AoaDevice.HID.SYSTEM, new byte[] {SYSTEM_BACK}, ACTION_DELAY); in goBack()
287 private void send(HID hid, byte[] data, Duration pause) { in send()
319 enum HID { enum in AoaDevice
[all …]
/platform_testing/libraries/aoa-helper/tests/src/com/android/helper/aoa/
DAoaDeviceTest.java76 private static final int HID_COUNT = AoaDevice.HID.values().length;
254 verifyHidRequest(order, times(1), AoaDevice.HID.KEYBOARD, (byte) 1); in testPressKeys()
255 verifyHidRequest(order, times(1), AoaDevice.HID.KEYBOARD, (byte) 0); in testPressKeys()
257 verifyHidRequest(order, times(1), AoaDevice.HID.KEYBOARD, (byte) 2); in testPressKeys()
258 verifyHidRequest(order, times(1), AoaDevice.HID.KEYBOARD, (byte) 0); in testPressKeys()
266 verifyHidRequest(times(1), AoaDevice.HID.SYSTEM, SYSTEM_WAKE); in testWakeUp()
274 verifyHidRequest(times(1), AoaDevice.HID.SYSTEM, SYSTEM_HOME); in testGoHome()
282 verifyHidRequest(times(1), AoaDevice.HID.SYSTEM, SYSTEM_BACK); in testGoBack()
334 private void verifyHidRequest(VerificationMode mode, AoaDevice.HID hid, byte... data) { in verifyHidRequest()
339 InOrder order, VerificationMode mode, AoaDevice.HID hid, byte... data) { in verifyHidRequest()
[all …]
/platform_testing/libraries/aoa-helper/
DREADME.md17 Write alphanumeric text, or press key combinations using [USB HID usages](https://source.android.co…