Searched refs:backgroundThread (Results 1 – 3 of 3) sorted by relevance
249 HandlerThread backgroundThread = new HandlerThread("WebViewLooperCtsHandlerThread"); in testGetWebViewLooperCreatedOnBackgroundThreadFromInstThread() local250 backgroundThread.start(); in testGetWebViewLooperCreatedOnBackgroundThreadFromInstThread()251 new Handler(backgroundThread.getLooper()).post(new Runnable() { in testGetWebViewLooperCreatedOnBackgroundThreadFromInstThread()257 backgroundThread.join(TEST_TIMEOUT_MS); in testGetWebViewLooperCreatedOnBackgroundThreadFromInstThread()258 assertEquals(backgroundThread.getLooper(), webviewHolder[0].getWebViewLooper()); in testGetWebViewLooperCreatedOnBackgroundThreadFromInstThread()
109 private HandlerThread backgroundThread; field in TestActivity114 backgroundThread = new HandlerThread("testBackground"); in onCreate()115 backgroundThread.start(); in onCreate()116 backgroundHandler = new Handler(backgroundThread.getLooper()); in onCreate()124 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()