/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | KeyboardVisibilityControlTest.java | 99 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(5); field in KeyboardVisibilityControlTest 197 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); 198 notExpectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); 199 expectImeInvisible(TIMEOUT); 208 expectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT); 209 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); 211 View.VISIBLE, TIMEOUT); 212 expectImeVisible(TIMEOUT); 218 expectEvent(stream, hideSoftInputMatcher(), TIMEOUT); 219 expectEvent(stream, onFinishInputViewMatcher(false), TIMEOUT); [all …]
|
D | ImeInsetsVisibilityTest.java | 80 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(5); field in ImeInsetsVisibilityTest 108 notExpectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup() 109 expectImeInvisible(TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup() 114 TestUtils.waitOnMainUntil(() -> editText.hasFocus(), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup() local 116 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup() 117 expectEvent(stream, event -> "showSoftInput".equals(event.getEventName()), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup() 118 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup() 120 View.VISIBLE, TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup() 121 PollingCheck.check("Ime insets should be visible", TIMEOUT, in testImeVisibilityWhenImeFocusableChildPopup() 123 expectImeVisible(TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup() [all …]
|
D | FocusHandlingTest.java | 92 static final long TIMEOUT = TimeUnit.SECONDS.toMillis(5); field in FocusHandlingTest 149 expectBindInput(stream, Process.myPid(), TIMEOUT); in testOnStartInputCalledOnceIme() 157 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testOnStartInputCalledOnceIme() 198 notExpectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 201 TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 204 expectBindInput(stream, Process.myPid(), TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 206 expectEvent(stream, event -> "showSoftInput".equals(event.getEventName()), TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 233 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testEditorStartsInput() 259 expectBindInput(stream, Process.myPid(), TIMEOUT); in testSoftInputStateAlwaysVisibleFocusedEditorView() 261 expectEvent(stream, event -> "showSoftInput".equals(event.getEventName()), TIMEOUT); in testSoftInputStateAlwaysVisibleFocusedEditorView() [all …]
|
D | InputMethodStartInputLifecycleTest.java | 86 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(5); field in InputMethodStartInputLifecycleTest 130 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() 135 && editText.getWindowVisibility() != VISIBLE, TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() local 139 expectEvent(stream, onFinishInputMatcher(), TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() 140 notExpectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() 144 expectEvent(stream, onFinishInputMatcher(), TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() 148 expectCommand(stream, commit, TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() 149 TestUtils.waitOnMainUntil(() -> !TextUtils.equals(editText.getText(), "Hi!"), TIMEOUT, in testInputConnectionStateWhenScreenStateChanges() local 156 && editText.getWindowVisibility() == VISIBLE, TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() local 159 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() [all …]
|
D | InputMethodServiceStrictModeTest.java | 56 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(5); field in InputMethodServiceStrictModeTest 124 expectEvent(stream, event -> "onStartInput".equals(event.getEventName()), TIMEOUT); in verifyIms() 129 expectCommand(forkedStream, imeSession.callVerifyGetWindowManager(), TIMEOUT); in verifyIms() 133 imeSession.callVerifyGetViewConfiguration(), TIMEOUT); in verifyIms() 136 expectCommand(forkedStream, imeSession.callVerifyGetGestureDetector(), TIMEOUT); in verifyIms() 160 expectEvent(stream, event -> "onStartInput".equals(event.getEventName()), TIMEOUT); in testIncorrectContextUseOnImsDerivedDisplayContext() 166 TIMEOUT); in testIncorrectContextUseOnImsDerivedDisplayContext() 169 CHECK_ALL, TIMEOUT); in testIncorrectContextUseOnImsDerivedDisplayContext() 175 TIMEOUT); in testIncorrectContextUseOnImsDerivedDisplayContext() 178 CHECK_ALL, TIMEOUT); in testIncorrectContextUseOnImsDerivedDisplayContext() [all …]
|
D | InputMethodServiceTest.java | 99 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(20); field in InputMethodServiceTest 160 expectEvent(stream, event -> "onStartInputView".equals(event.getEventName()), TIMEOUT); 165 expectCommand(stream, command, TIMEOUT).getReturnBooleanValue()); 177 expectEvent(stream, event -> "onStartInputView".equals(event.getEventName()), TIMEOUT); 180 expectCommand(stream, command, TIMEOUT); 187 expectEvent(stream, backKeyDownMatcher(true), CHECK_EXIT_EVENT_ONLY, TIMEOUT); 229 expectEvent(stream, event -> "onStartInputView".equals(event.getEventName()), TIMEOUT); 231 expectImeVisible(TIMEOUT); 234 expectEvent(stream, event -> "hideSoftInput".equals(event.getEventName()), TIMEOUT); 235 expectEvent(stream, event -> "onFinishInputView".equals(event.getEventName()), TIMEOUT); [all …]
|
D | InputConnectionBlockingMethodTest.java | 77 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(5); field in InputConnectionBlockingMethodTest 152 MockTestActivityUtil.launchSync(isInstant, TIMEOUT); in triggerUnbindInput() 217 expectBindInput(stream, Process.myPid(), TIMEOUT); in testInputConnection() 220 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testInputConnection() 269 expectCommand(stream, command, TIMEOUT).getReturnCharSequenceValue(); in testGetTextAfterCursor() 298 blocker.expectMethodCalled("IC#getTextAfterCursor() must be called back", TIMEOUT); in testGetTextAfterCursorFailWithTimeout() 328 expectCommand(stream, session.memorizeCurrentInputConnection(), TIMEOUT); in testGetTextAfterCursorFailFastAfterUnbindInput() 332 expectEvent(stream, event -> "unbindInput".equals(event.getEventName()), TIMEOUT); in testGetTextAfterCursorFailFastAfterUnbindInput() 336 unexpectedResult.length(), InputConnection.GET_TEXT_WITH_STYLES), TIMEOUT); in testGetTextAfterCursorFailFastAfterUnbindInput() 370 expectCommand(stream, command, TIMEOUT).getReturnCharSequenceValue(); in testGetTextBeforeCursor() [all …]
|
D | SearchViewTest.java | 62 static final long TIMEOUT = TimeUnit.SECONDS.toMillis(5); field in SearchViewTest 136 expectBindInput(stream, Process.myPid(), TIMEOUT); in testTapThenSetQuery() 142 CHECK_EXIT_EVENT_ONLY, TIMEOUT); in testTapThenSetQuery() 144 expectImeVisible(TIMEOUT); in testTapThenSetQuery() 148 expectEvent(stream, event -> "hideSoftInput".equals(event.getEventName()), TIMEOUT); in testTapThenSetQuery() 150 expectImeInvisible(TIMEOUT); in testTapThenSetQuery() 165 expectBindInput(stream, Process.myPid(), TIMEOUT); in testShowImeWithSearchViewFocus() 175 CHECK_EXIT_EVENT_ONLY, TIMEOUT); in testShowImeWithSearchViewFocus() 177 expectImeVisible(TIMEOUT); in testShowImeWithSearchViewFocus() 196 expectBindInput(stream, Process.myPid(), TIMEOUT); in testShowImeWhenSearchViewFocusInListView() [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | InputMethodServiceDeviceTest.java | 72 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(20); field in InputMethodServiceDeviceTest 86 TIMEOUT, "CtsInputMethod1.onCreate is called"); in testCreateIme1() local 90 TIMEOUT, "CtsInputMethod1.onStartInput is called"); in testCreateIme1() local 105 TIMEOUT, "CtsInputMethod1.onCreate is called"); in testSwitchIme1ToIme2() local 109 TIMEOUT, "CtsInputMethod1.onStartInput is called"); in testSwitchIme1ToIme2() local 122 TIMEOUT, "CtsInputMethod2 is current IME"); in testSwitchIme1ToIme2() local 126 TIMEOUT, "CtsInputMethod1.onDestroy is called"); in testSwitchIme1ToIme2() local 132 TIMEOUT, in testSwitchIme1ToIme2() local 150 TIMEOUT, "CtsInputMethod1.onStartInput is called"); in testSwitchInputMethod() local 161 TIMEOUT, "CtsInputMethod2 is current IME"); in testSwitchInputMethod() local [all …]
|
D | InputMethodManagerDeviceTest.java | 46 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(5); field in InputMethodManagerDeviceTest 76 TIMEOUT, "Ime1 must exist."); in testIme1InInputMethodList() 98 TIMEOUT, "Ime1 must be enabled."); in testIme1InEnabledInputMethodList() 120 TIMEOUT, "Ime1 must exist."); in testIme2InInputMethodList() 142 TIMEOUT, "Ime1 must be enabled."); in testIme2InEnabledInputMethodList() 167 TIMEOUT, "Implicitly enabled Subtype must exist for IME1."); in testIme1ImplicitlyEnabledSubtypeExists() local
|
/cts/tests/openglperf2/src/android/opengl2/cts/primitive/ |
D | GLPrimitiveBenchmark.java | 31 private static final int TIMEOUT = 1000000; field in GLPrimitiveBenchmark 43 runBenchmark(BenchmarkName.FullPipeline, true, NUM_FRAMES, NUM_ITERATIONS, TIMEOUT, in testFullPipelineOffscreen() 52 runBenchmark(BenchmarkName.FullPipeline, false, NUM_FRAMES, NUM_ITERATIONS, TIMEOUT, in testFullPipelineOnscreen() 61 runBenchmark(BenchmarkName.PixelOutput, true, NUM_FRAMES, NUM_ITERATIONS, TIMEOUT, in testPixelOutputOffscreen() 70 runBenchmark(BenchmarkName.PixelOutput, false, NUM_FRAMES, NUM_ITERATIONS, TIMEOUT, in testPixelOutputOnscreen() 79 runBenchmark(BenchmarkName.ShaderPerf, true, NUM_FRAMES, NUM_ITERATIONS, TIMEOUT, in testShaderPerfOffscreen() 88 runBenchmark(BenchmarkName.ShaderPerf, false, NUM_FRAMES, NUM_ITERATIONS, TIMEOUT, in testShaderPerfOnscreen() 97 runBenchmark(BenchmarkName.ContextSwitch, true, NUM_FRAMES, NUM_ITERATIONS, TIMEOUT, in testContextSwitchOffscreen() 106 runBenchmark(BenchmarkName.ContextSwitch, false, NUM_FRAMES, NUM_ITERATIONS, TIMEOUT, in testContextSwitchOnscreen()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
D | ServReqRemoveRequestTestCase.java | 56 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 61 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 66 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 71 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 80 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 85 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 90 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 112 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 121 Timeout t = new Timeout(TIMEOUT); in executeTest()
|
D | ConnectReqTestCase.java | 96 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest() 101 WifiP2pDevice dev = mReceiverTest.waitDeviceFound(mTargetAddress, TIMEOUT); in connectTest() 130 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest() 148 if (mReceiverTest.waitPeerConnected(mTargetAddress, TIMEOUT) != true) { in connectTest() 157 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest() 167 p2pInfo = mReceiverTest.waitDisconnectionNotice(TIMEOUT); in connectTest() 175 if (mReceiverTest.waitPeerDisconnected(mTargetAddress, TIMEOUT) != true) { in connectTest() 197 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest() 206 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest() 241 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in connectTest() [all …]
|
D | ServReqClearRequestTestCase.java | 56 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 61 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 66 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 71 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 80 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 89 if (!actionListener.check(ActionListenerTest.FAIL_NO_SERVICE, TIMEOUT)) { in executeTest()
|
D | GoTestCase.java | 53 if (!listener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 63 if (!listener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 73 if (!listener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 82 if (!listener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 90 WifiP2pInfo info = mReceiverTest.waitConnectionNotice(TIMEOUT); in executeTest()
|
D | ServReqMultiClientTestCase03.java | 47 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 57 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 67 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 100 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 109 Timeout t = new Timeout(TIMEOUT); in executeTest()
|
D | ServRespTestCase.java | 55 if (!listenerTest.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 65 if (!listenerTest.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 75 if (!listenerTest.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 84 if (!listenerTest.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest()
|
D | GoWithConfigTestCase.java | 79 if (!listener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 89 if (!listener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 99 if (!listener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 117 if (!listener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 125 WifiP2pInfo info = mReceiverTest.waitConnectionNotice(TIMEOUT); in executeTest()
|
D | ServReqMultiClientTestCase02.java | 52 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 61 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 94 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 102 Timeout t = new Timeout(TIMEOUT); in executeTest()
|
D | ServReqMultiClientTestCase01.java | 52 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 61 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 94 if (!actionListener.check(ActionListenerTest.SUCCESS, TIMEOUT)) { in executeTest() 102 Timeout t = new Timeout(TIMEOUT); in executeTest()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsControllerTests.java | 104 private final static long TIMEOUT = 1000; // milliseconds field in WindowInsetsControllerTests 129 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testHideInternal() 147 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testShowInternal() 151 PollingCheck.waitFor(TIMEOUT, () -> rootView.getRootWindowInsets().isVisible(types)); in testShowInternal() 161 PollingCheck.waitFor(TIMEOUT, in testTopAppHidesStatusBarInternal() 173 for (long time = TIMEOUT; time >= 0; time -= TIME_SLICE) { in testTopAppHidesStatusBarInternal() 215 expectEvent(stream, editorMatcher("onStartInput", activity.mEditTextMarker), TIMEOUT); in testImeShowAndHide() 219 PollingCheck.waitFor(TIMEOUT, () -> rootView.getRootWindowInsets().isVisible(ime())); in testImeShowAndHide() 221 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(ime())); in testImeShowAndHide() 232 expectEvent(stream, editorMatcher("onStartInput", activity.mEditTextMarker), TIMEOUT); in testImeForceShowingNavigationBar() [all …]
|
D | WindowInsetsLayoutTests.java | 58 private final static long TIMEOUT = 1000; // milliseconds field in WindowInsetsLayoutTests 68 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsTypes() 87 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot.getWidth() > 0); in testSetFitInsetsTypesInner() 112 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsSides() 133 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot.getWidth() > 0); in testSetFitInsetsSidesInner() 158 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsIgnoringVisibility() 172 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot1.getWidth() > 0); in testSetFitInsetsIgnoringVisibility() 187 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot2.getWidth() > 0); in testSetFitInsetsIgnoringVisibility()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | IntentTest.kt | 58 assertEquals(RESULT_OK, installation.get(TIMEOUT, TimeUnit.MILLISECONDS)) in confirmInstallation() 74 assertEquals(RESULT_CANCELED, installation.get(TIMEOUT, TimeUnit.MILLISECONDS)) in cancelInstallation() 99 assertEquals(RESULT_OK, reinstall.get(TIMEOUT, TimeUnit.MILLISECONDS)) in reinstallViaPackageUri() 114 assertEquals(RESULT_CANCELED, installation.get(TIMEOUT, TimeUnit.MILLISECONDS)) in packageNotInstalledSecureFrp()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | SettingsPanelTest.java | 50 private static final int TIMEOUT = 8000; field in SettingsPanelTest 95 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in cleanUp() 149 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in internetDialog_doneClosesDialog() 263 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in launchInternetDialog() 272 mDevice.wait(Until.hasObject(By.pkg(SYSTEMUI_PACKAGE_NAME).depth(0)), TIMEOUT); in launchInternetDialog() 288 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in launchPanel() 296 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in launchPanel() 302 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in pressDone() 310 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in pressSeeMore()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/ |
D | CallbackUtils.java | 52 public static final int TIMEOUT = -1; field in CallbackUtils.AttachCb 57 private int mCallback = TIMEOUT; 84 return new Pair<>(TIMEOUT, null); in waitForAttach() 163 public static final int TIMEOUT = -1; field in CallbackUtils.DiscoveryCb 254 return new CallbackData(TIMEOUT); in waitForCallbacks() 367 public static final int TIMEOUT = -1; field in CallbackUtils.RangingCb 372 private int mStatus = TIMEOUT; 385 return new Pair<>(TIMEOUT, null); in waitForRangingResults()
|