Searched refs:handlerThread (Results 1 – 6 of 6) sorted by relevance
23 private HandlerThread handlerThread; field in ShadowHandlerThreadTest28 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 …]
115 HandlerThread handlerThread = new HandlerThread("test"); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() local116 handlerThread.start(); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()118 Handler handler = new Handler(handlerThread.getLooper()); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()127 shadowOf(handlerThread.getLooper()).idle(); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
65 HandlerThread handlerThread = new HandlerThread("MessageHandlerThread"); in onBind() local66 handlerThread.start(); in onBind()67 Messenger aMessenger = new Messenger(new MessageHandler(handlerThread, in onBind()
57 public MessageHandler(HandlerThread handlerThread, in MessageHandler() argument59 super(handlerThread.getLooper()); in MessageHandler()
60 private HandlerThread handlerThread; field in CameraActivity226 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()
60 private HandlerThread handlerThread; field in CameraActivity228 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()