Home
last modified time | relevance | path

Searched refs:runnable (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java521 private void recordEventInternal(@NonNull String eventName, @NonNull Runnable runnable) {
522 recordEventInternal(eventName, runnable, new Bundle());
525 private void recordEventInternal(@NonNull String eventName, @NonNull Runnable runnable,
528 runnable.run(); return null;
564 public void onCreate(@NonNull Runnable runnable) {
565 recordEventInternal("onCreate", runnable);
569 boolean isCandidatesOnly, @NonNull Runnable runnable) {
573 recordEventInternal("onConfigureWindow", runnable, arguments);
589 @NonNull Runnable runnable) {
593 recordEventInternal("onStartInput", runnable, arguments);
[all …]
/cts/libs/vogar-expect/src/vogar/util/
DThreads.java51 …@Override protected void afterExecute(Runnable runnable, Throwable throwable) { if … in fixedThreadsExecutor()
52 Log.info("Unexpected failure from " + runnable, throwable); in fixedThreadsExecutor()
/cts/tests/tests/telecom2/src/android/telecom/cts/
DDefaultDialerOperationsNoPermissionsTest.java145 private void verifyForReadPhoneStateOrDefaultDialer(Runnable runnable, String methodName) in verifyForReadPhoneStateOrDefaultDialer() argument
148 runnable.run(); in verifyForReadPhoneStateOrDefaultDialer()
155 runnable.run(); in verifyForReadPhoneStateOrDefaultDialer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DBiometricPromptBoundKeysTest.java35 private final Executor mExecutor = (runnable) -> {
36 mHandler.post(runnable);
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceActivityFlowPortraitTest.java201 protected void runOnUiThread(final Runnable runnable) { in runOnUiThread() argument
204 runnable.run(); in runOnUiThread()
DPreferenceActivityFlowLandscapeTest.java201 protected void runOnUiThread(final Runnable runnable) { in runOnUiThread() argument
204 runnable.run(); in runOnUiThread()
DPreferenceActivityLegacyFlowTest.java131 private void runOnUiThread(final Runnable runnable) { in runOnUiThread() argument
134 runnable.run(); in runOnUiThread()
/cts/tests/tests/media/src/android/media/cts/
DMockMediaSessionService2.java57 final Executor executor = (runnable) -> handler.post(runnable); in onCreateSession()
DTestUtils.java150 public void postAndSync(Runnable runnable) throws InterruptedException { in postAndSync() argument
152 runnable.run(); in postAndSync()
156 runnable.run(); in postAndSync()
DMockMediaLibraryService2.java112 final Executor executor = (runnable) -> handler.post(runnable); in onCreateSession()
DMediaSession2TestBase.java79 sHandlerExecutor = (runnable) -> { in setUpThread()
80 sHandler.post(runnable); in setUpThread()
DMediaSession2_PermissionTest.java137 private void testOnCommandRequest(int commandCode, PermissionTestRunnable runnable) in testOnCommandRequest() argument
140 runnable.run(createController(mSession.getToken())); in testOnCommandRequest()
147 runnable.run(createController(mSession.getToken())); in testOnCommandRequest()
/cts/tests/tests/hardware/src/android/hardware/biometrics/cts/
DBiometricPromptTest.java46 public void execute(Runnable runnable) {
47 mHandler.post(runnable);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DEmergencyCallUtil.java78 Runnable runnable = new Runnable() { in endCallWithDelay() local
89 new Thread(runnable).start(); in endCallWithDelay()
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionGroupChange.java70 private void eventually(ThrowingRunnable runnable, long timeoutSec) throws Throwable { in eventually() argument
74 runnable.run(); in eventually()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DAbstractApiTest.java103 void runWithTestResultObserver(RunnableWithTestResultObserver runnable) { in runWithTestResultObserver() argument
105 runnable.run(mResultObserver); in runWithTestResultObserver()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java618 Runnable runnable = mock(Runnable.class); in testScheduleSelf() local
619 mockDrawable.scheduleSelf(runnable, 1000L); in testScheduleSelf()
623 mockDrawable.scheduleSelf(runnable, 1000L); in testScheduleSelf()
624 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(1000L)); in testScheduleSelf()
626 mockDrawable.scheduleSelf(runnable, 0L); in testScheduleSelf()
627 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(0L)); in testScheduleSelf()
629 mockDrawable.scheduleSelf(runnable, -1000L); in testScheduleSelf()
630 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(-1000L)); in testScheduleSelf()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationInWindowTests.java159 private void runOnMainSync(Runnable runnable) { in runOnMainSync() argument
160 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in runOnMainSync()
DLocationOnScreenTests.java143 private void runOnMainSync(Runnable runnable) { in runOnMainSync() argument
144 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in runOnMainSync()
/cts/tests/camera/src/android/hardware/camera2/cts/
DAllocationTest.java758 public void forEachCamera(CameraBlock runnable) in forEachCamera() argument
760 forEachCamera(/*fullHwLevel*/false, runnable); in forEachCamera()
763 public void forEachCamera(boolean fullHwLevel, CameraBlock runnable) in forEachCamera() argument
790 runnable.run(mCamera); in forEachCamera()
826 public void forEachSize(int format, SizeBlock runnable) throws CameraAccessException { in forEachSize() argument
855 runnable.run(size); in forEachSize()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/
DComplexMovementFragment.java137 Runnable runnable = new Runnable() { in setupUILoop() local
168 super.initUIHandler(runnable); in setupUILoop()
DRobustnessFragment.java140 Runnable runnable = new Runnable() { in setupUILoop() local
178 super.initUIHandler(runnable); in setupUILoop()
DAccuracyFragment.java148 Runnable runnable = new Runnable() { in setupUILoop() local
217 super.initUIHandler(runnable); in setupUILoop()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java262 private void runOnUiThread(Runnable runnable) { in runOnUiThread() argument
272 mHandler.post(runnable); in runOnUiThread()
/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieManagerTest.java442 private void runTestOnUiThreadAndCatch(Runnable runnable) { in runTestOnUiThreadAndCatch() argument
444 runTestOnUiThread(runnable); in runTestOnUiThreadAndCatch()

12