Home
last modified time | relevance | path

Searched refs:backgroundThread (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewStartupTest.java198 HandlerThread backgroundThread = new HandlerThread("WebViewLooperCtsHandlerThread"); in run() local
199 backgroundThread.start(); in run()
200 Handler backgroundHandler = new Handler(backgroundThread.getLooper()); in run()
211 assertEquals(backgroundThread.getLooper(), webview.getWebViewLooper()); in run()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandMultiUserTest.kt147 private var backgroundThread = HandlerThread("PackageManagerShellCommandMultiUserTest") variable
348 if (!backgroundThread.isAlive) { in testPackageRemovedBroadcastsMultiUser()
349 backgroundThread.start() in testPackageRemovedBroadcastsMultiUser()
351 val backgroundHandler = Handler(backgroundThread.looper) in testPackageRemovedBroadcastsMultiUser()
549 backgroundThread.interrupt() in testPackageRemovedBroadcastsMultiUser()
1026 if (!backgroundThread.isAlive) { in testUpdateMimeGroup_changed_onlyInstalledUserReceivedBroadcast()
1027 backgroundThread.start() in testUpdateMimeGroup_changed_onlyInstalledUserReceivedBroadcast()
1029 val backgroundHandler = Handler(backgroundThread.looper) in testUpdateMimeGroup_changed_onlyInstalledUserReceivedBroadcast()
1124 backgroundThread.interrupt() in testUpdateMimeGroup_changed_onlyInstalledUserReceivedBroadcast()
1138 if (!backgroundThread.isAlive) { in testUpdateMimeGroup_changed()
[all …]
/cts/tests/app/src/android/app/cts/
DUiModeManagerTest.java816 final HandlerThread backgroundThread = new HandlerThread(handlerThreadName); in testAddContrastChangeListener() local
817 backgroundThread.start(); in testAddContrastChangeListener()
818 Handler backgroundHandler = new Handler(backgroundThread.getLooper()); in testAddContrastChangeListener()
829 backgroundThread, Thread.currentThread()); in testAddContrastChangeListener()
846 backgroundThread.quitSafely(); in testAddContrastChangeListener()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java882 final HandlerThread backgroundThread = new HandlerThread("testthread"); in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive() local
883 backgroundThread.start(); in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive()
906 Handler.createAsync(backgroundThread.getLooper()).post(() -> { in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive()
913 backgroundThread.quitSafely(); in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java137 private HandlerThread backgroundThread; field in TestActivity
143 backgroundThread = new HandlerThread("testBackground"); in onCreate()
144 backgroundThread.start(); in onCreate()
145 backgroundHandler = new Handler(backgroundThread.getLooper()); in onCreate()
156 backgroundThread.quitSafely(); in onDestroy()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1331 final HandlerThread backgroundThread = new HandlerThread("camera_bg"); in testCameraPermission() local
1332 backgroundThread.start(); in testCameraPermission()
1348 manager.openCamera(cameraIds[0], callback, new Handler(backgroundThread.getLooper())); in testCameraPermission()