Home
last modified time | relevance | path

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

/platform_testing/utils/dpad/src/android/platform/test/utils/
DDPadUtil2.java122 public boolean pressKeyCode(int keyCode) { in pressKeyCode() argument
123 return pressKeyCodeAndWait(keyCode); in pressKeyCode()
125 public boolean pressKeyCodeAndWait(int keyCode) { in pressKeyCodeAndWait() argument
126 boolean retVal = mDevice.pressKeyCode(keyCode); in pressKeyCodeAndWait()
141 public boolean longPressKeyCode(int keyCode) { in longPressKeyCode() argument
143 mDevice.executeShellCommand(String.format("input keyevent --longpress %d", keyCode)); in longPressKeyCode()
148 Log.w(TAG, String.format("Failed to long press the key code: %d", keyCode)); in longPressKeyCode()
162 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, boolean longpress, in pressKeyCodeAndWait() argument
164 return mDevice.performActionAndWait(new KeyEventRunnable(keyCode, longpress), condition, in pressKeyCodeAndWait()
168 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, long timeout) { in pressKeyCodeAndWait() argument
[all …]
DDPadUtil.java123 public boolean pressKeyCode(int keyCode) { in pressKeyCode() argument
124 return pressKeyCodeAndWait(keyCode); in pressKeyCode()
126 public boolean pressKeyCodeAndWait(int keyCode) { in pressKeyCodeAndWait() argument
127 boolean retVal = mDevice.pressKeyCode(keyCode); in pressKeyCodeAndWait()
142 public boolean longPressKeyCode(int keyCode) { in longPressKeyCode() argument
144 mDevice.executeShellCommand(String.format("input keyevent --longpress %d", keyCode)); in longPressKeyCode()
149 Log.w(TAG, String.format("Failed to long press the key code: %d", keyCode)); in longPressKeyCode()
163 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, boolean longpress, in pressKeyCodeAndWait() argument
165 return mDevice.performActionAndWait(new KeyEventRunnable(keyCode, longpress), condition, in pressKeyCodeAndWait()
169 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.java91 public static void sendKeyCode(String keyCode) { in sendKeyCode() argument
92 executeShellCommand(String.format(KEYEVENT_CMD_TEMPLATE, keyCode)); in sendKeyCode()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTestsHelper.java154 public void pressKeyCode(int keyCode) { in pressKeyCode() argument
156 mDevice.pressKeyCode(keyCode); in pressKeyCode()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
DTvLauncherStrategy.java875 int keyCode = KeyEvent.KEYCODE_UNKNOWN;
878 keyCode = KeyEvent.KEYCODE_DPAD_LEFT;
881 keyCode = KeyEvent.KEYCODE_DPAD_RIGHT;
884 keyCode = KeyEvent.KEYCODE_DPAD_UP;
887 keyCode = KeyEvent.KEYCODE_DPAD_DOWN;
895 mDPadUtil.pressKeyCodeAndWait(keyCode);
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DTvLauncherStrategy.java896 int keyCode = KeyEvent.KEYCODE_UNKNOWN;
899 keyCode = KeyEvent.KEYCODE_DPAD_LEFT;
902 keyCode = KeyEvent.KEYCODE_DPAD_RIGHT;
905 keyCode = KeyEvent.KEYCODE_DPAD_UP;
908 keyCode = KeyEvent.KEYCODE_DPAD_DOWN;
916 mDPadUtil.pressKeyCodeAndWait(keyCode);
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/
DWorkflowTask.java363 int keyCode = Integer.parseInt(key); in validateAndPressKey() local
365 spectatioUiUtil.longPressKey(keyCode); in validateAndPressKey()
367 spectatioUiUtil.pressKeyCode(keyCode); in validateAndPressKey()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/utils/
DSpectatioUiUtil.java150 public boolean pressKeyCode(int keyCode) { in pressKeyCode() argument
151 return mDevice.pressKeyCode(keyCode); in pressKeyCode()
178 public boolean longPressKey(int keyCode) { in longPressKey() argument
182 String.format(Locale.ENGLISH, "input keyevent --longpress %d", keyCode)); in longPressKey()
191 keyCode, e.getMessage())); in longPressKey()
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/
DUiBenchJankHelper.java300 void pressKeyCode(int keyCode) { in pressKeyCode() argument
302 mDevice.pressKeyCode(keyCode); in pressKeyCode()