/external/libchrome/base/android/java/src/org/chromium/base/ |
D | JavaHandlerThread.java | 41 public Looper getLooper() { in getLooper() method in JavaHandlerThread 43 return mThread.getLooper(); in getLooper() 54 new Handler(mThread.getLooper()).post(new Runnable() { in startAndInitialize() 65 new Handler(mThread.getLooper()).post(new Runnable() { in quitThreadSafely() 74 mThread.getLooper().quitSafely(); in quitThreadSafely()
|
D | ThreadUtils.java | 43 if (sUiThreadHandler != null && sUiThreadHandler.getLooper() != looper) { in setUiThread() 45 + sUiThreadHandler.getLooper() + " (Main thread looper is " in setUiThread() 244 return getUiThreadHandler().getLooper() == Looper.myLooper(); in runningOnUiThread() 248 return getUiThreadHandler().getLooper(); in getUiThreadLooper()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | MediaSourceTestRunner.java | 76 Looper playbackLooper = playbackThread.getLooper(); in MediaSourceTestRunner() 352 Assertions.checkState(Looper.myLooper() == playbackThread.getLooper()); in onSourceInfoRefreshed() 360 Assertions.checkState(Looper.myLooper() == playbackThread.getLooper()); in onMediaPeriodCreated() 366 Assertions.checkState(Looper.myLooper() == playbackThread.getLooper()); in onMediaPeriodReleased() 376 Assertions.checkState(Looper.myLooper() == playbackThread.getLooper()); in onLoadStarted() 385 Assertions.checkState(Looper.myLooper() == playbackThread.getLooper()); in onLoadCompleted() 395 Assertions.checkState(Looper.myLooper() == playbackThread.getLooper()); in onLoadCanceled() 406 Assertions.checkState(Looper.myLooper() == playbackThread.getLooper()); in onLoadError() 411 Assertions.checkState(Looper.myLooper() == playbackThread.getLooper()); in onReadingStarted() 417 Assertions.checkState(Looper.myLooper() == playbackThread.getLooper()); in onUpstreamDiscarded() [all …]
|
D | DummyMainThread.java | 45 handler = new Handler(thread.getLooper()); in DummyMainThread() 87 if (Looper.myLooper() == handler.getLooper()) { in runTestOnMainThread()
|
D | FakeClock.java | 185 public Looper getLooper() { in getLooper() method in FakeClock.ClockHandler 186 return handler.getLooper(); in getLooper()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowHandlerThreadTest.java | 38 assertNotNull(handlerThread.getLooper()); in shouldReturnLooper() 40 handlerThread.getLooper(), ApplicationProvider.getApplicationContext().getMainLooper()); in shouldReturnLooper() 46 assertNull(handlerThread.getLooper()); in shouldReturnNullIfThreadHasNotBeenStarted() 66 Looper looper = handlerThread.getLooper(); in shouldStopThreadIfLooperIsQuit() 88 assertNotNull(handlerThread.getLooper()); in shouldCallOnLooperPrepared()
|
D | ShadowLooperTest.java | 80 assertThat(ht.getLooper()).isNotSameInstanceAs(Looper.getMainLooper()); in differentThreads_getDifferentLoopers() 143 Looper looper = ht.getLooper(); in shouldNotQueueMessagesIfLooperIsQuit() 163 Looper looper = ht.getLooper(); in shouldThrowawayRunnableQueueIfLooperQuits() 188 Looper looper = ht.getLooper(); in shouldResetQueue_whenLooperIsReset() 206 Looper looper = ht.getLooper(); in shouldSetNewScheduler_whenLooperIsReset() 301 ShadowLooper sLooper = shadowOf(ht.getLooper()); in reset_setsNewScheduler_forNonMainLooper_byDefault() 311 ShadowLooper sLooper = shadowOf(ht.getLooper()); in reset_setsSchedulerToMaster_forNonMainLooper_withAdvancedScheduling() 323 Looper backgroundLooper = backgroundThread.getLooper(); in resetThreadLoopers_resets_background_thread_schedulers() 383 …assertThat(shadowOf(ht.getLooper()).getScheduler()).isNotSameInstanceAs(RuntimeEnvironment.getMast… in schedulerOnAnotherLooper_shouldNotBeMaster_byDefault() 390 …assertThat(shadowOf(ht.getLooper()).getScheduler()).isSameInstanceAs(RuntimeEnvironment.getMasterS… in schedulerOnAnotherLooper_shouldBeMaster_ifAdvancedSchedulingEnabled() [all …]
|
D | ShadowContextWrapperTest.java | 123 Handler handler = new Handler(handlerThread.getLooper()); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() 124 assertNotSame(handler.getLooper(), Looper.getMainLooper()); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() 129 assertThat(shadowOf(handler.getLooper()).getScheduler().size()).isEqualTo(0); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() 131 assertThat(shadowOf(handler.getLooper()).getScheduler().size()).isEqualTo(1); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() 132 shadowOf(handlerThread.getLooper()).idle(); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided() 133 assertThat(shadowOf(handler.getLooper()).getScheduler().size()).isEqualTo(0); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/ |
D | DedicatedThreadAsyncMediaCodecAdapterTest.java | 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() 273 Looper looper = handlerThread.getLooper(); in flush_multipleTimes_onlyLastFlushExecutes() 304 Looper looper = handlerThread.getLooper(); in flush_andImmediatelyShutdown_flushIsNoOp()
|
D | MultiLockAsyncMediaCodecAdapterTest.java | 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() 271 Looper looper = handlerThread.getLooper(); in flush_multipleTimes_onlyLastFlushExecutes() 301 Looper looper = handlerThread.getLooper(); in flush_andImmediatelyShutdown_flushIsNoOp()
|
D | AsynchronousMediaCodecBufferEnqueuerTest.java | 102 Looper looper = handlerThread.getLooper(); in queueInputBuffer_multipleTimes_limitsObjectsAllocation() 160 Looper looper = handlerThread.getLooper(); in queueSecureInputBuffer_multipleTimes_limitsObjectsAllocation()
|
/external/webrtc/sdk/android/api/org/webrtc/ |
D | SurfaceTextureHelper.java | 64 final Handler handler = new Handler(thread.getLooper()); in create() 179 if (handler.getLooper().getThread() != Thread.currentThread()) { 195 handler.getLooper().quit(); 349 if (handler.getLooper().getThread() != Thread.currentThread()) { 385 if (handler.getLooper().getThread() != Thread.currentThread()) { 395 handler.getLooper().quit();
|
D | VideoFileRenderer.java | 61 renderThreadHandler = new Handler(renderThread.getLooper()); in VideoFileRenderer() 65 fileThreadHandler = new Handler(fileThread.getLooper()); in VideoFileRenderer()
|
D | EglRenderer.java | 221 new HandlerWithExceptionCallback(renderThread.getLooper(), new Runnable() { in init() 311 final Looper renderLooper = renderThreadHandler.getLooper(); in release() 348 (renderThreadHandler == null) ? null : renderThreadHandler.getLooper().getThread(); in printStackTrace() 482 if (Thread.currentThread() == renderThreadHandler.getLooper().getThread()) { in removeFrameListener()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | ExoPlayerFactory.java | 108 Util.getLooper()); in newSimpleInstance() 127 Util.getLooper()); in newSimpleInstance() 145 Util.getLooper()); in newSimpleInstance() 223 return newInstance(context, renderers, trackSelector, loadControl, Util.getLooper()); in newInstance()
|
D | PlayerMessage.java | 288 Assertions.checkState(handler.getLooper().getThread() != Thread.currentThread()); in blockUntilDelivered() 335 Assertions.checkState(handler.getLooper().getThread() != Thread.currentThread()); in experimental_blockUntilDelivered()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/ |
D | SystemHandlerWrapper.java | 32 public Looper getLooper() { in getLooper() method in SystemHandlerWrapper 33 return handler.getLooper(); in getLooper()
|
D | HandlerWrapper.java | 30 Looper getLooper(); in getLooper() method
|
/external/skqp/src/core/ |
D | SkPaint.cpp | 385 paint.getLooper() || in Flatten() 401 buffer.writeFlattenable(paint.getLooper()); in Flatten() 548 if (this->getLooper()) { in canComputeFastBounds() 549 return this->getLooper()->canComputeFastBounds(*this); in canComputeFastBounds() 564 if (this->getLooper()) { in doComputeFastBounds() 565 SkASSERT(this->getLooper()->canComputeFastBounds(*this)); in doComputeFastBounds() 566 this->getLooper()->computeFastBounds(*this, *src, storage); in doComputeFastBounds()
|
D | SkRecordOpts.cpp | 101 if (!paint->isSrcOver() || paint->getLooper()) { in fold_opacity_layer_color_to_paint() 137 layerPaint->getLooper() || in fold_opacity_layer_color_to_paint()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/drm/ |
D | OfflineLicenseHelper.java | 179 new Handler(handlerThread.getLooper()), eventListener, DrmSessionEventListener.class); in OfflineLicenseHelper() 277 drmSessionManager.acquireSession(handlerThread.getLooper(), eventDispatcher, drmInitData); in openBlockingKeyRequest()
|
/external/skqp/include/core/ |
D | SkPaint.h | 567 SkDrawLooper* getLooper() const { return fDrawLooper.get(); } in getLooper() function 633 uintptr_t effects = reinterpret_cast<uintptr_t>(this->getLooper()); in computeFastBounds()
|
/external/libchrome/base/test/android/java/src/org/chromium/base/ |
D | JavaHandlerThreadHelpers.java | 40 Handler handler = new Handler(thread.getLooper()); in testAndGetJavaHandlerThread()
|
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/ |
D | TestThread.java | 141 assert Looper.myLooper() == mMainThreadHandler.getLooper(); in checkOnMainThread()
|
/external/webrtc/examples/androidnativeapi/java/org/webrtc/examples/androidnativeapi/ |
D | CallClient.java | 39 handler = new Handler(thread.getLooper()); in CallClient()
|