Home
last modified time | relevance | path

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

/cts/tests/tests/print/src/android/print/cts/
DPrinterDiscoverySessionLifecycleTest.java20 import static android.print.test.Utils.runOnMainThread;
115 runOnMainThread(() -> addPrinter(localPrinterId, true)); in makeDefaultPrinter()
181 runOnMainThread(() -> addPrinter(FIRST_PRINTER_LOCAL_ID, true)); in defaultPrinterBecomesAvailableWhileInBackground()
222 runOnMainThread(() -> addPrinter(FIRST_PRINTER_LOCAL_ID, false)); in defaultPrinterBecomesUsableWhileInBackground()
230 runOnMainThread(() -> addPrinter(FIRST_PRINTER_LOCAL_ID, true)); in defaultPrinterBecomesUsableWhileInBackground()
270 runOnMainThread(() -> assertFalse(sSession.isDestroyed())); in normalLifecycle()
271 runOnMainThread(() -> assertEquals(0, sSession.getTrackedPrinters().size())); in normalLifecycle()
276 eventually(() -> runOnMainThread(() -> assertEquals(FIRST_PRINTER_LOCAL_ID, in normalLifecycle()
278 runOnMainThread(() -> assertTrue(sSession.isPrinterDiscoveryStarted())); in normalLifecycle()
279 runOnMainThread(() -> assertEquals(1, sSession.getTrackedPrinters().size())); in normalLifecycle()
[all …]
DPrintServicesTest.java22 import static android.print.test.Utils.runOnMainThread;
182 runOnMainThread(() -> printProgress[0] = sPrintJob.getInfo().getProgress()); in getProgress()
197 runOnMainThread(() -> printStatus[0] = sPrintJob.getInfo().getStatus(getActivity() in getStatus()
227 runOnMainThread(() -> { in setProgressAndStatus() method
319 runOnMainThread(sPrintJob::complete);
354 runOnMainThread(() -> {
509 runOnMainThread(() -> pm.print("job1", adapter, null));
519 runOnMainThread(() -> assertEquals(0, firstService.callGetActivePrintJobs().size()));
525 eventually(() -> runOnMainThread(
530 runOnMainThread(() -> pm.print("job2", adapter, null));
[all …]
DPrinterCapabilitiesChangeTest.java19 import static android.print.test.Utils.runOnMainThread;
151 runOnMainThread( in changeCapabilities()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java71 public static void runOnMainThread(@NonNull final Invokable r) throws Throwable { in runOnMainThread() method in Utils