Searched refs:runOnMainThread (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterDiscoverySessionLifecycleTest.java | 20 import static android.print.test.Utils.runOnMainThread; 116 runOnMainThread(() -> addPrinter(localPrinterId, true)); in makeDefaultPrinter() 186 runOnMainThread(() -> addPrinter(FIRST_PRINTER_LOCAL_ID, true)); in defaultPrinterBecomesAvailableWhileInBackground() 230 runOnMainThread(() -> addPrinter(FIRST_PRINTER_LOCAL_ID, false)); in defaultPrinterBecomesUsableWhileInBackground() 238 runOnMainThread(() -> addPrinter(FIRST_PRINTER_LOCAL_ID, true)); in defaultPrinterBecomesUsableWhileInBackground() 281 runOnMainThread(() -> assertFalse(sSession.isDestroyed())); in normalLifecycle() 282 runOnMainThread(() -> assertEquals(0, sSession.getTrackedPrinters().size())); in normalLifecycle() 287 eventually(() -> runOnMainThread(() -> assertEquals(FIRST_PRINTER_LOCAL_ID, in normalLifecycle() 289 runOnMainThread(() -> assertTrue(sSession.isPrinterDiscoveryStarted())); in normalLifecycle() 290 runOnMainThread(() -> assertEquals(1, sSession.getTrackedPrinters().size())); in normalLifecycle() [all …]
|
D | PrintServicesTest.java | 22 import static android.print.test.Utils.runOnMainThread; 169 runOnMainThread(() -> printProgress[0] = sPrintJob.getInfo().getProgress()); in getProgress() 184 runOnMainThread(() -> printStatus[0] = sPrintJob.getInfo().getStatus(getActivity() in getStatus() 214 runOnMainThread(() -> { in setProgressAndStatus() method 308 runOnMainThread(sPrintJob::complete); 343 runOnMainThread(() -> { 498 runOnMainThread(() -> pm.print("job1", adapter, null)); 508 runOnMainThread(() -> assertEquals(0, firstService.callGetActivePrintJobs().size())); 517 eventually(() -> runOnMainThread( 522 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/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
|