/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowHandlerThreadTest.java | 23 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 …]
|
D | ShadowContextWrapperTest.java | 120 HandlerThread handlerThread = new HandlerThread("test"); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() local 121 handlerThread.start(); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() 123 Handler handler = new Handler(handlerThread.getLooper()); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() 132 shadowOf(handlerThread.getLooper()).idle(); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/ |
D | MultiLockAsyncMediaCodecAdapterTest.java | 50 private TestHandlerThread handlerThread; field in MultiLockAsyncMediaCodecAdapterTest 55 handlerThread = new TestHandlerThread("TestHandlerThread"); in setUp() 58 codec, /* enableAsynchronousQueueing= */ false, C.TRACK_TYPE_VIDEO, handlerThread); in setUp() 89 Shadows.shadowOf(handlerThread.getLooper()).idle(); in dequeueInputBufferIndex_withAfterFlushFailed_throwsException() 121 Looper looper = handlerThread.getLooper(); in dequeueInputBufferIndex_withFlushCompletedAndInputBuffer_returnsInputBuffer() 133 Shadows.shadowOf(handlerThread.getLooper()).idle(); in dequeueInputBufferIndex_withFlushCompletedAndInputBuffer_returnsInputBuffer() 159 Shadows.shadowOf(handlerThread.getLooper()).idle(); in dequeueOutputBufferIndex_withInternalException_throwsException() 195 Looper looper = handlerThread.getLooper(); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer() 211 Shadows.shadowOf(handlerThread.getLooper()).idle(); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer() 262 Shadows.shadowOf(handlerThread.getLooper()).idle(); in getOutputFormat_afterFlush_returnsPreviousFormat() [all …]
|
D | DedicatedThreadAsyncMediaCodecAdapterTest.java | 49 private TestHandlerThread handlerThread; field in DedicatedThreadAsyncMediaCodecAdapterTest 55 handlerThread = new TestHandlerThread("TestHandlerThread"); in setUp() 61 handlerThread); in setUp() 92 Shadows.shadowOf(handlerThread.getLooper()).idle(); in dequeueInputBufferIndex_withAfterFlushFailed_throwsException() 123 Looper looper = handlerThread.getLooper(); in dequeueInputBufferIndex_withFlushCompletedAndInputBuffer_returnsInputBuffer() 135 Shadows.shadowOf(handlerThread.getLooper()).idle(); in dequeueInputBufferIndex_withFlushCompletedAndInputBuffer_returnsInputBuffer() 160 Shadows.shadowOf(handlerThread.getLooper()).idle(); in dequeueOutputBufferIndex_withInternalException_throwsException() 195 Looper looper = handlerThread.getLooper(); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer() 211 Shadows.shadowOf(handlerThread.getLooper()).idle(); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer() 264 Shadows.shadowOf(handlerThread.getLooper()).idle(); in getOutputFormat_afterFlush_returnsPreviousFormat() [all …]
|
D | AsynchronousMediaCodecBufferEnqueuerTest.java | 49 private TestHandlerThread handlerThread; field in AsynchronousMediaCodecBufferEnqueuerTest 55 handlerThread = new TestHandlerThread("TestHandlerThread"); in setUp() 57 new AsynchronousMediaCodecBufferEnqueuer(codec, handlerThread, mockConditionVariable); in setUp() 102 Looper looper = handlerThread.getLooper(); in queueInputBuffer_multipleTimes_limitsObjectsAllocation() 160 Looper looper = handlerThread.getLooper(); in queueSecureInputBuffer_multipleTimes_limitsObjectsAllocation()
|
D | AsynchronousMediaCodecAdapterTest.java | 45 private HandlerThread handlerThread; field in AsynchronousMediaCodecAdapterTest 51 handlerThread = new HandlerThread("TestHandler"); in setUp() 52 handlerThread.start(); in setUp() 53 looper = handlerThread.getLooper(); in setUp() 63 handlerThread.quit(); in tearDown()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/ |
D | DedicatedThreadAsyncMediaCodecAdapter.java | 57 private final HandlerThread handlerThread; field in DedicatedThreadAsyncMediaCodecAdapter 103 HandlerThread handlerThread) { in DedicatedThreadAsyncMediaCodecAdapter() argument 106 this.handlerThread = handlerThread; in DedicatedThreadAsyncMediaCodecAdapter() 118 handlerThread.start(); in start() 119 handler = new Handler(handlerThread.getLooper()); in start() 179 handlerThread.quit(); in shutdown()
|
D | MultiLockAsyncMediaCodecAdapter.java | 93 private final HandlerThread handlerThread; field in MultiLockAsyncMediaCodecAdapter 140 HandlerThread handlerThread) { in MultiLockAsyncMediaCodecAdapter() argument 150 this.handlerThread = handlerThread; in MultiLockAsyncMediaCodecAdapter() 163 handlerThread.start(); in start() 164 handler = new Handler(handlerThread.getLooper()); in start() 238 handlerThread.quit(); in shutdown()
|
D | AsynchronousMediaCodecBufferEnqueuer.java | 55 private final HandlerThread handlerThread; field in AsynchronousMediaCodecBufferEnqueuer 77 MediaCodec codec, HandlerThread handlerThread, ConditionVariable conditionVariable) { in AsynchronousMediaCodecBufferEnqueuer() argument 79 this.handlerThread = handlerThread; in AsynchronousMediaCodecBufferEnqueuer() 88 handlerThread.start(); in start() 90 new Handler(handlerThread.getLooper()) { in start() 141 handlerThread.quit(); in shutdown()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/ |
D | PlayerMessageTest.java | 48 private HandlerThread handlerThread; field in PlayerMessageTest 56 handlerThread = new HandlerThread("TestHandler"); in setUp() 57 handlerThread.start(); in setUp() 58 Handler handler = new Handler(handlerThread.getLooper()); in setUp() 65 handlerThread.quit(); in tearDown()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/drm/ |
D | OfflineLicenseHelper.java | 41 private final HandlerThread handlerThread; field in OfflineLicenseHelper 153 handlerThread = new HandlerThread("ExoPlayer:OfflineLicenseHelper"); in OfflineLicenseHelper() 154 handlerThread.start(); in OfflineLicenseHelper() 179 new Handler(handlerThread.getLooper()), eventListener, DrmSessionEventListener.class); in OfflineLicenseHelper() 253 handlerThread.quit(); in release() 277 drmSessionManager.acquireSession(handlerThread.getLooper(), eventDispatcher, drmInitData); in openBlockingKeyRequest()
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/ |
D | FacadeService.java | 65 HandlerThread handlerThread = new HandlerThread("MessageHandlerThread"); in onBind() local 66 handlerThread.start(); in onBind() 67 Messenger aMessenger = new Messenger(new MessageHandler(handlerThread, in onBind()
|
D | MessageHandler.java | 57 public MessageHandler(HandlerThread handlerThread, in MessageHandler() argument 59 super(handlerThread.getLooper()); in MessageHandler()
|
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/ |
D | CameraActivity.java | 60 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()
|
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/ |
D | FakeClockTest.java | 111 HandlerThread handlerThread = new HandlerThread("FakeClockTest"); in testPostDelayed() local 112 handlerThread.start(); in testPostDelayed() 115 fakeClock.createHandler(handlerThread.getLooper(), /* callback= */ null); in testPostDelayed()
|
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
D | WebSocketRTCClient.java | 60 final HandlerThread handlerThread = new HandlerThread(TAG); in WebSocketRTCClient() local 61 handlerThread.start(); in WebSocketRTCClient() 62 handler = new Handler(handlerThread.getLooper()); in WebSocketRTCClient()
|