Searched refs:backgroundThread (Results 1 – 6 of 6) sorted by relevance
198 HandlerThread backgroundThread = new HandlerThread("WebViewLooperCtsHandlerThread"); in run() local199 backgroundThread.start(); in run()200 Handler backgroundHandler = new Handler(backgroundThread.getLooper()); in run()211 assertEquals(backgroundThread.getLooper(), webview.getWebViewLooper()); in run()
147 private var backgroundThread = HandlerThread("PackageManagerShellCommandMultiUserTest") variable348 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 …]
816 final HandlerThread backgroundThread = new HandlerThread(handlerThreadName); in testAddContrastChangeListener() local817 backgroundThread.start(); in testAddContrastChangeListener()818 Handler backgroundHandler = new Handler(backgroundThread.getLooper()); in testAddContrastChangeListener()829 backgroundThread, Thread.currentThread()); in testAddContrastChangeListener()846 backgroundThread.quitSafely(); in testAddContrastChangeListener()
882 final HandlerThread backgroundThread = new HandlerThread("testthread"); in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive() local883 backgroundThread.start(); in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive()906 Handler.createAsync(backgroundThread.getLooper()).post(() -> { in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive()913 backgroundThread.quitSafely(); in testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive()
137 private HandlerThread backgroundThread; field in TestActivity143 backgroundThread = new HandlerThread("testBackground"); in onCreate()144 backgroundThread.start(); in onCreate()145 backgroundHandler = new Handler(backgroundThread.getLooper()); in onCreate()156 backgroundThread.quitSafely(); in onDestroy()
1331 final HandlerThread backgroundThread = new HandlerThread("camera_bg"); in testCameraPermission() local1332 backgroundThread.start(); in testCameraPermission()1348 manager.openCamera(cameraIds[0], callback, new Handler(backgroundThread.getLooper())); in testCameraPermission()