Home
last modified time | relevance | path

Searched refs:keyCode (Results 1 – 6 of 6) sorted by relevance

/platform_testing/utils/dpad/src/android/platform/test/utils/
DDPadUtil.java121 public boolean pressKeyCode(int keyCode) { in pressKeyCode() argument
122 return pressKeyCodeAndWait(keyCode); in pressKeyCode()
124 public boolean pressKeyCodeAndWait(int keyCode) { in pressKeyCodeAndWait() argument
125 boolean retVal = mDevice.pressKeyCode(keyCode); in pressKeyCodeAndWait()
140 public boolean longPressKeyCode(int keyCode) { in longPressKeyCode() argument
142 mDevice.executeShellCommand(String.format("input keyevent --longpress %d", keyCode)); in longPressKeyCode()
147 Log.w(TAG, String.format("Failed to long press the key code: %d", keyCode)); in longPressKeyCode()
161 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, boolean longpress, in pressKeyCodeAndWait() argument
163 return mDevice.performActionAndWait(new KeyEventRunnable(keyCode, longpress), condition, in pressKeyCodeAndWait()
167 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, long timeout) { in pressKeyCodeAndWait() argument
[all …]
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DHelperTestUtility.java89 public static void sendKeyCode(String keyCode) { in sendKeyCode() argument
90 executeShellCommand(String.format(KEYEVENT_CMD_TEMPLATE, keyCode)); in sendKeyCode()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTestsHelper.java151 public void pressKeyCode(int keyCode) { in pressKeyCode() argument
153 mDevice.pressKeyCode(keyCode); in pressKeyCode()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DTvLauncherStrategy.java884 int keyCode = KeyEvent.KEYCODE_UNKNOWN;
887 keyCode = KeyEvent.KEYCODE_DPAD_LEFT;
890 keyCode = KeyEvent.KEYCODE_DPAD_RIGHT;
893 keyCode = KeyEvent.KEYCODE_DPAD_UP;
896 keyCode = KeyEvent.KEYCODE_DPAD_DOWN;
904 mDPadUtil.pressKeyCodeAndWait(keyCode);
/platform_testing/libraries/aoa-helper/src/com/android/helper/aoa/
DAoaDevice.java265 Integer keyCode = it.next(); in pressKeys() local
266 send(HID.KEYBOARD, new byte[] {keyCode.byteValue()}, STEP_DELAY); in pressKeys()
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/
DUiBenchJankHelper.java269 void pressKeyCode(int keyCode) { in pressKeyCode() argument
271 mDevice.pressKeyCode(keyCode); in pressKeyCode()