Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowHandlerThreadTest.java23 private HandlerThread handlerThread; field in ShadowHandlerThreadTest
28 if ( handlerThread != null ) { in tearDown()
29 handlerThread.quit(); in tearDown()
30 handlerThread.join(); in tearDown()
36 handlerThread = new HandlerThread("test"); in shouldReturnLooper()
37 handlerThread.start(); in shouldReturnLooper()
38 assertNotNull(handlerThread.getLooper()); in shouldReturnLooper()
40 handlerThread.getLooper(), ApplicationProvider.getApplicationContext().getMainLooper()); in shouldReturnLooper()
45 handlerThread = new HandlerThread("test"); in shouldReturnNullIfThreadHasNotBeenStarted()
46 assertNull(handlerThread.getLooper()); in shouldReturnNullIfThreadHasNotBeenStarted()
[all …]
DShadowContextWrapperTest.java115 HandlerThread handlerThread = new HandlerThread("test"); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() local
116 handlerThread.start(); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
118 Handler handler = new Handler(handlerThread.getLooper()); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
127 shadowOf(handlerThread.getLooper()).idle(); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/
DFacadeService.java65 HandlerThread handlerThread = new HandlerThread("MessageHandlerThread"); in onBind() local
66 handlerThread.start(); in onBind()
67 Messenger aMessenger = new Messenger(new MessageHandler(handlerThread, in onBind()
DMessageHandler.java57 public MessageHandler(HandlerThread handlerThread, in MessageHandler() argument
59 super(handlerThread.getLooper()); in MessageHandler()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DCameraActivity.java60 private HandlerThread handlerThread; field in CameraActivity
226 handlerThread = new HandlerThread("inference"); in onResume()
227 handlerThread.start(); in onResume()
228 handler = new Handler(handlerThread.getLooper()); in onResume()
240 handlerThread.quitSafely(); in onPause()
242 handlerThread.join(); in onPause()
243 handlerThread = null; in onPause()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DCameraActivity.java60 private HandlerThread handlerThread; field in CameraActivity
228 handlerThread = new HandlerThread("inference"); in onResume()
229 handlerThread.start(); in onResume()
230 handler = new Handler(handlerThread.getLooper()); in onResume()
242 handlerThread.quitSafely(); in onPause()
244 handlerThread.join(); in onPause()
245 handlerThread = null; in onPause()