Home
last modified time | relevance | path

Searched refs:runOnMainThread (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/print/src/android/print/cts/
DPrinterDiscoverySessionLifecycleTest.java20 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 …]
DPrintServicesTest.java22 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 …]
DInteractionBetweenPrintDocumentAndPrinterDiscovery.java23 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()
DPrinterCapabilitiesChangeTest.java19 import static android.print.test.Utils.runOnMainThread;
151 runOnMainThread( in changeCapabilities()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java80 public static void runOnMainThread(@NonNull final Invokable r) throws Throwable { in runOnMainThread() method in Utils