/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterDiscoverySessionLifecycleTest.java | 20 import static android.print.test.Utils.runOnMainThread; 114 runOnMainThread(() -> addPrinter(localPrinterId, true)); in makeDefaultPrinter() 174 runOnMainThread(() -> addPrinter(FIRST_PRINTER_LOCAL_ID, true)); in defaultPrinterBecomesAvailableWhileInBackground() 220 runOnMainThread(() -> addPrinter(FIRST_PRINTER_LOCAL_ID, false)); in defaultPrinterBecomesUsableWhileInBackground() 228 runOnMainThread(() -> addPrinter(FIRST_PRINTER_LOCAL_ID, true)); in defaultPrinterBecomesUsableWhileInBackground() 273 runOnMainThread(() -> { in normalLifecycle() method 278 runOnMainThread(() -> assertFalse(sSession.isDestroyed())); in normalLifecycle() 279 runOnMainThread(() -> assertEquals(0, sSession.getTrackedPrinters().size())); in normalLifecycle() 284 eventually(() -> runOnMainThread(() -> assertEquals(FIRST_PRINTER_LOCAL_ID, in normalLifecycle() 286 runOnMainThread(() -> assertTrue(sSession.isPrinterDiscoveryStarted())); in normalLifecycle() [all …]
|
D | PrintServicesTest.java | 22 import static android.print.test.Utils.runOnMainThread; 164 runOnMainThread(() -> printProgress[0] = sPrintJob.getInfo().getProgress()); in getProgress() 179 runOnMainThread(() -> printStatus[0] = sPrintJob.getInfo().getStatus(getActivity() in getStatus() 209 runOnMainThread(() -> { in setProgressAndStatus() method 303 runOnMainThread(sPrintJob::complete); 338 runOnMainThread(() -> { 489 runOnMainThread(() -> pm.print("job1", adapter, null)); 499 runOnMainThread(() -> assertEquals(0, firstService.callGetActivePrintJobs().size())); 508 eventually(() -> runOnMainThread( 513 runOnMainThread(() -> pm.print("job2", adapter, null)); [all …]
|
D | InteractionBetweenPrintDocumentAndPrinterDiscovery.java | 23 import static android.print.test.Utils.runOnMainThread; 165 runOnMainThread(() -> addPrinter(session[0], STATUS_UNAVAILABLE)); in printerReappearsWhileCanceling() 172 runOnMainThread(() -> addPrinter(session[0], STATUS_IDLE)); in printerReappearsWhileCanceling()
|
D | PrinterCapabilitiesChangeTest.java | 19 import static android.print.test.Utils.runOnMainThread; 151 runOnMainThread( in changeCapabilities()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaBrowserTest.java | 112 runOnMainThread(() -> assertThat(mMediaBrowser.isConnected()).isFalse()); in testMediaBrowser() 115 runOnMainThread(() -> assertThat(mMediaBrowser.isConnected()).isTrue()); in testMediaBrowser() 117 runOnMainThread(() -> { in testMediaBrowser() method 129 runOnMainThread(() -> new PollingCheck(TIME_OUT_MS) { in testMediaBrowser() 141 runOnMainThread(() -> assertThat(mMediaBrowser.isConnected()).isFalse()); in testThrowingISEWhileNotConnected() 143 runOnMainThread(() -> { in testThrowingISEWhileNotConnected() method 163 runOnMainThread(() -> { in testConnectTwice() method 174 runOnMainThread(() -> mMediaBrowser.connect()); in testConnectionFailed() 190 runOnMainThread(() -> { in testReconnection() method 200 runOnMainThread(() -> mMediaBrowser.subscribe(StubMediaBrowserService.MEDIA_ID_ROOT, in testReconnection() [all …]
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/ |
D | CtsBasicVoiceInteractionService.java | 152 boolean runOnMainThread) { in createAlwaysOnHotwordDetectorNoHotwordDetectionService() argument 158 final Handler handler = runOnMainThread ? new Handler(Looper.getMainLooper()) : mHandler; in createAlwaysOnHotwordDetectorNoHotwordDetectionService() 182 public void createAlwaysOnHotwordDetector(boolean useExecutor, boolean runOnMainThread) { in createAlwaysOnHotwordDetector() argument 183 createAlwaysOnHotwordDetector(useExecutor, runOnMainThread, /* options= */ null); in createAlwaysOnHotwordDetector() 191 public void createAlwaysOnHotwordDetector(boolean useExecutor, boolean runOnMainThread, in createAlwaysOnHotwordDetector() argument 268 final Handler handler = runOnMainThread ? new Handler(Looper.getMainLooper()) : mHandler; in createAlwaysOnHotwordDetector() 327 boolean runOnMainThread) { in createAlwaysOnHotwordDetectorWithOnFailureCallback() argument 328 createAlwaysOnHotwordDetectorWithOnFailureCallback(useExecutor, runOnMainThread, in createAlwaysOnHotwordDetectorWithOnFailureCallback() 337 boolean runOnMainThread, @Nullable PersistableBundle options) { in createAlwaysOnHotwordDetectorWithOnFailureCallback() argument 341 final Handler handler = runOnMainThread ? new Handler(Looper.getMainLooper()) : mHandler; in createAlwaysOnHotwordDetectorWithOnFailureCallback() [all …]
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | VoiceInteractionServiceTest.java | 400 boolean runOnMainThread, boolean callbackShouldRunOnMainThread) throws Exception { in testCreateAlwaysOnHotwordDetectorNoHotwordDetectionService() argument 407 runOnMainThread); in testCreateAlwaysOnHotwordDetectorNoHotwordDetectionService() 447 private void testCreateAlwaysOnHotwordDetector(boolean useExecutor, boolean runOnMainThread, in testCreateAlwaysOnHotwordDetector() argument 453 mService.createAlwaysOnHotwordDetector(useExecutor, runOnMainThread); in testCreateAlwaysOnHotwordDetector() 527 private void testCreateHotwordDetector(boolean useExecutor, boolean runOnMainThread, in testCreateHotwordDetector() argument 533 mService.createSoftwareHotwordDetector(useExecutor, runOnMainThread); in testCreateHotwordDetector()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | Utils.java | 80 public static void runOnMainThread(@NonNull final Invokable r) throws Throwable { in runOnMainThread() method in Utils
|