Home
last modified time | relevance | path

Searched refs:getLooper (Results 1 – 25 of 91) sorted by relevance

1234

/external/libchrome/base/android/java/src/org/chromium/base/
DJavaHandlerThread.java41 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()
DThreadUtils.java43 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/
DMediaSourceTestRunner.java76 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 …]
DDummyMainThread.java45 handler = new Handler(thread.getLooper()); in DummyMainThread()
87 if (Looper.myLooper() == handler.getLooper()) { in runTestOnMainThread()
DFakeClock.java185 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/
DShadowHandlerThreadTest.java38 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()
DShadowLooperTest.java80 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 …]
DShadowContextWrapperTest.java123 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/
DDedicatedThreadAsyncMediaCodecAdapterTest.java92 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()
DMultiLockAsyncMediaCodecAdapterTest.java89 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()
DAsynchronousMediaCodecBufferEnqueuerTest.java102 Looper looper = handlerThread.getLooper(); in queueInputBuffer_multipleTimes_limitsObjectsAllocation()
160 Looper looper = handlerThread.getLooper(); in queueSecureInputBuffer_multipleTimes_limitsObjectsAllocation()
/external/webrtc/sdk/android/api/org/webrtc/
DSurfaceTextureHelper.java64 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();
DVideoFileRenderer.java61 renderThreadHandler = new Handler(renderThread.getLooper()); in VideoFileRenderer()
65 fileThreadHandler = new Handler(fileThread.getLooper()); in VideoFileRenderer()
DEglRenderer.java221 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/
DExoPlayerFactory.java108 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()
DPlayerMessage.java288 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/
DSystemHandlerWrapper.java32 public Looper getLooper() { in getLooper() method in SystemHandlerWrapper
33 return handler.getLooper(); in getLooper()
DHandlerWrapper.java30 Looper getLooper(); in getLooper() method
/external/skqp/src/core/
DSkPaint.cpp385 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()
DSkRecordOpts.cpp101 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/
DOfflineLicenseHelper.java179 new Handler(handlerThread.getLooper()), eventListener, DrmSessionEventListener.class); in OfflineLicenseHelper()
277 drmSessionManager.acquireSession(handlerThread.getLooper(), eventDispatcher, drmInitData); in openBlockingKeyRequest()
/external/skqp/include/core/
DSkPaint.h567 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/
DJavaHandlerThreadHelpers.java40 Handler handler = new Handler(thread.getLooper()); in testAndGetJavaHandlerThread()
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/
DTestThread.java141 assert Looper.myLooper() == mMainThreadHandler.getLooper(); in checkOnMainThread()
/external/webrtc/examples/androidnativeapi/java/org/webrtc/examples/androidnativeapi/
DCallClient.java39 handler = new Handler(thread.getLooper()); in CallClient()

1234