/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
D | TelephonyStateListeners.java | 62 public CallStateChangeListener(EventFacade ef, int subId, Looper looper) { in CallStateChangeListener() argument 63 super(looper); in CallStateChangeListener() 127 public DataConnectionRealTimeInfoChangeListener(EventFacade ef, int subId, Looper looper) { in DataConnectionRealTimeInfoChangeListener() argument 128 super(looper); in DataConnectionRealTimeInfoChangeListener() 166 EventFacade ef, TelephonyManager tm, int subId, Looper looper) { in DataConnectionStateChangeListener() argument 167 super(looper); in DataConnectionStateChangeListener() 207 EventFacade ef, TelephonyManager tm, int subId, Looper looper) { in ActiveDataSubIdChangeListener() argument 208 super(looper); in ActiveDataSubIdChangeListener() 244 EventFacade ef, TelephonyManager tm, int subId, Looper looper) { in DisplayInfoStateChangeListener() argument 245 super(looper); in DisplayInfoStateChangeListener() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLooperTest.java | 48 private Looper looper; field in ShadowLooperTest.QuitThread 58 looper = Looper.myLooper(); in run() 96 assertThat(ShadowLooper.getLooperForThread(qt)).isSameInstanceAs(qt.looper); in getLooperForThread_returnsLooperForAThreadThatHasOne() 143 Looper looper = ht.getLooper(); in shouldNotQueueMessagesIfLooperIsQuit() local 144 looper.quit(); in shouldNotQueueMessagesIfLooperIsQuit() 145 assertWithMessage("hasQuit").that(shadowOf(looper).hasQuit()).isTrue(); in shouldNotQueueMessagesIfLooperIsQuit() 146 assertWithMessage("postAtFrontOfQueue").that(shadowOf(looper).post(new Runnable() { in shouldNotQueueMessagesIfLooperIsQuit() 152 assertThat(shadowOf(looper).postAtFrontOfQueue(new Runnable() { in shouldNotQueueMessagesIfLooperIsQuit() 157 …assertWithMessage("areAnyRunnable").that(shadowOf(looper).getScheduler().areAnyRunnable()).isFalse… in shouldNotQueueMessagesIfLooperIsQuit() 163 Looper looper = ht.getLooper(); in shouldThrowawayRunnableQueueIfLooperQuits() local [all …]
|
D | ShadowHandlerThreadTest.java | 66 Looper looper = handlerThread.getLooper(); in shouldStopThreadIfLooperIsQuit() local 67 assertFalse(shadowOf(looper).quit); in shouldStopThreadIfLooperIsQuit() 68 looper.quit(); in shouldStopThreadIfLooperIsQuit() 71 assertTrue(shadowOf(looper).quit); in shouldStopThreadIfLooperIsQuit()
|
D | ShadowMessageQueueTest.java | 33 private Looper looper; field in ShadowMessageQueueTest 44 public TestHandler(Looper looper) { in TestHandler() argument 45 super(looper); in TestHandler() 65 looper = newLooper(); in setUp() 66 handler = new TestHandler(looper); in setUp() 67 queue = looper.getQueue(); in setUp() 156 Handler handler = new Handler(looper) { in dispatchedMessage_isMarkedInUse_andRecycled()
|
D | ShadowMessengerTest.java | 27 Looper looper = Looper.myLooper(); in testMessengerSend() local 28 shadowOf(looper).runOneTask(); in testMessengerSend()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | BaseMediaSource.java | 42 @Nullable private Looper looper; field in BaseMediaSource 180 Looper looper = Looper.myLooper(); in prepareSource() local 181 Assertions.checkArgument(this.looper == null || this.looper == looper); in prepareSource() 184 if (this.looper == null) { in prepareSource() 185 this.looper = looper; in prepareSource() 196 Assertions.checkNotNull(looper); in enable() 217 looper = null; in releaseSource()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLooper.java | 56 for (Looper looper : loopingLoopers.values()) { in resetThreadLoopers() 57 synchronized (looper) { in resetThreadLoopers() 58 if (!shadowOf(looper).quit) { in resetThreadLoopers() 59 looper.quit(); in resetThreadLoopers() 63 shadowOf(looper).getScheduler().reset(); in resetThreadLoopers() 64 shadowOf(looper.getQueue()).reset(); in resetThreadLoopers() 160 public static void pauseLooper(Looper looper) { in pauseLooper() argument 161 shadowOf(looper).pause(); in pauseLooper() 176 public static void unPauseLooper(Looper looper) { in unPauseLooper() argument 177 shadowOf(looper).unPause(); in unPauseLooper() [all …]
|
D | ShadowChoreographer.java | 35 Looper looper = Looper.myLooper(); in makeThreadLocal() 36 if (looper == null) { in makeThreadLocal() 43 … return Shadow.newInstance(Choreographer.class, new Class[]{Looper.class}, new Object[]{looper}); in makeThreadLocal() 45 …ow.newInstance(Choreographer.class, new Class[]{Looper.class, int.class}, new Object[]{looper, 0}); in makeThreadLocal()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | ExoPlayerFactory.java | 156 Looper looper) { in newSimpleInstance() argument 163 looper); in newSimpleInstance() 175 Looper looper) { in newSimpleInstance() argument 183 looper); in newSimpleInstance() 196 Looper looper) { in newSimpleInstance() argument 207 looper); in newSimpleInstance() 234 Looper looper) { in newInstance() argument 241 looper); in newInstance() 252 Looper looper) { in newInstance() argument 262 looper); in newInstance()
|
D | ExoPlayer.java | 146 private Looper looper; field in ExoPlayer.Builder 211 Looper looper, in Builder() argument 221 this.looper = looper; in Builder() 314 public Builder setLooper(Looper looper) { in setLooper() argument 316 this.looper = looper; in setLooper() 383 looper); in build()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/ |
D | AsynchronousMediaCodecAdapterTest.java | 46 private Looper looper; field in AsynchronousMediaCodecAdapterTest 53 looper = handlerThread.getLooper(); in setUp() 55 adapter = new AsynchronousMediaCodecAdapter(codec, looper); in setUp() 94 Handler handler = new Handler(looper); in dequeueInputBufferIndex_afterFlushCompletes_returnsNextInputBuffer() 102 Shadows.shadowOf(looper).idle(); in dequeueInputBufferIndex_afterFlushCompletes_returnsNextInputBuffer() 119 Shadows.shadowOf(looper).idle(); in dequeueInputBufferIndex_afterFlushCompletesWithError_throwsException() 160 Handler handler = new Handler(looper); in dequeueOutputBufferIndex_afterFlushCompletes_returnsNextOutputBuffer() 171 Shadows.shadowOf(looper).idle(); in dequeueOutputBufferIndex_afterFlushCompletes_returnsNextOutputBuffer() 189 Shadows.shadowOf(looper).idle(); in dequeueOutputBufferIndex_afterFlushCompletesWithError_throwsException() 226 Shadows.shadowOf(looper).idle(); in getOutputFormat_afterFlush_returnsPreviousFormat() [all …]
|
D | MultiLockAsyncMediaCodecAdapterTest.java | 121 Looper looper = handlerThread.getLooper(); in dequeueInputBufferIndex_withFlushCompletedAndInputBuffer_returnsInputBuffer() local 122 Handler handler = new Handler(looper); in dequeueInputBufferIndex_withFlushCompletedAndInputBuffer_returnsInputBuffer() 195 Looper looper = handlerThread.getLooper(); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer() local 196 Handler handler = new Handler(looper); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer() 271 Looper looper = handlerThread.getLooper(); in flush_multipleTimes_onlyLastFlushExecutes() local 272 Handler handler = new Handler(looper); in flush_multipleTimes_onlyLastFlushExecutes() 283 ShadowLooper shadowLooper = shadowOf(looper); in flush_multipleTimes_onlyLastFlushExecutes() 301 Looper looper = handlerThread.getLooper(); in flush_andImmediatelyShutdown_flushIsNoOp() local 305 Shadows.shadowOf(looper).idle(); in flush_andImmediatelyShutdown_flushIsNoOp()
|
D | DedicatedThreadAsyncMediaCodecAdapterTest.java | 123 Looper looper = handlerThread.getLooper(); in dequeueInputBufferIndex_withFlushCompletedAndInputBuffer_returnsInputBuffer() local 124 Handler handler = new Handler(looper); in dequeueInputBufferIndex_withFlushCompletedAndInputBuffer_returnsInputBuffer() 195 Looper looper = handlerThread.getLooper(); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer() local 196 Handler handler = new Handler(looper); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer() 273 Looper looper = handlerThread.getLooper(); in flush_multipleTimes_onlyLastFlushExecutes() local 274 Handler handler = new Handler(looper); in flush_multipleTimes_onlyLastFlushExecutes() 285 ShadowLooper shadowLooper = shadowOf(looper); in flush_multipleTimes_onlyLastFlushExecutes() 304 Looper looper = handlerThread.getLooper(); in flush_andImmediatelyShutdown_flushIsNoOp() local 309 Shadows.shadowOf(looper).idle(); in flush_andImmediatelyShutdown_flushIsNoOp()
|
D | AsynchronousMediaCodecBufferEnqueuerTest.java | 102 Looper looper = handlerThread.getLooper(); in queueInputBuffer_multipleTimes_limitsObjectsAllocation() local 103 ShadowLooper shadowLooper = Shadows.shadowOf(looper); in queueInputBuffer_multipleTimes_limitsObjectsAllocation() 160 Looper looper = handlerThread.getLooper(); in queueSecureInputBuffer_multipleTimes_limitsObjectsAllocation() local 162 ShadowLooper shadowLooper = Shadows.shadowOf(looper); in queueSecureInputBuffer_multipleTimes_limitsObjectsAllocation()
|
/external/libchrome/base/android/java/src/org/chromium/base/ |
D | ThreadUtils.java | 36 public static void setUiThread(Looper looper) { in setUiThread() argument 38 if (looper == null) { in setUiThread() 43 if (sUiThreadHandler != null && sUiThreadHandler.getLooper() != looper) { in setUiThread() 46 + Looper.getMainLooper() + "), cannot set to new looper " + looper); in setUiThread() 48 sUiThreadHandler = new Handler(looper); in setUiThread()
|
/external/skqp/src/effects/ |
D | SkLayerDrawLooper.cpp | 142 const SkLayerDrawLooper* looper) : fCurrRec(looper->fRecs) {} in LayerDrawLooperContext() argument 215 auto looper = sk_sp<SkLayerDrawLooper>(new SkLayerDrawLooper()); in onMakeColorSpace() local 216 looper->fCount = fCount; in onMakeColorSpace() 237 looper->fRecs = newTopRec; in onMakeColorSpace() 238 return std::move(looper); in onMakeColorSpace() 335 SkLayerDrawLooper* looper = new SkLayerDrawLooper; in detach() local 336 looper->fCount = fCount; in detach() 337 looper->fRecs = fRecs; in detach() 343 return sk_sp<SkDrawLooper>(looper); in detach()
|
/external/skqp/tests/ |
D | LayerDrawLooperTest.cpp | 61 auto looper(looperBuilder.detach()); in test_frontToBack() local 63 SkDrawLooper::Context* context = looper->makeContext(&canvas, &alloc); in test_frontToBack() 100 auto looper(looperBuilder.detach()); in test_backToFront() local 102 SkDrawLooper::Context* context = looper->makeContext(&canvas, &alloc); in test_backToFront() 139 sk_sp<SkDrawLooper> looper(looperBuilder.detach()); in test_mixed() local 141 SkDrawLooper::Context* context = looper->makeContext(&canvas, &alloc); in test_mixed()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | TestExoPlayer.java | 84 private @MonotonicNonNull Looper looper; field in TestExoPlayer.Builder 94 looper = myLooper; in Builder() 239 public Builder setLooper(Looper looper) { in setLooper() argument 240 this.looper = looper; in setLooper() 250 return looper; in getLooper() 273 looper, "TestExoPlayer builder run on a thread without Looper and no Looper specified."); in build() 299 .setLooper(looper) in build()
|
D | FakeClock.java | 115 public HandlerWrapper createHandler(Looper looper, @Nullable Callback callback) { in createHandler() argument 116 return new ClockHandler(looper, callback); in createHandler() 180 public ClockHandler(Looper looper, @Nullable Callback callback) { in ClockHandler() argument 181 handler = new android.os.Handler(looper, callback); in ClockHandler()
|
/external/toybox/tests/ |
D | find.test | 122 ln -s looper dir/looper 126 rm -f dir/looper err
|
/external/skia/src/effects/ |
D | SkLayerDrawLooper.cpp | 136 const SkLayerDrawLooper* looper) : fCurrRec(looper->fRecs) {} in LayerDrawLooperContext() argument 296 SkLayerDrawLooper* looper = new SkLayerDrawLooper; in detach() local 297 looper->fCount = fCount; in detach() 298 looper->fRecs = fRecs; in detach() 304 return sk_sp<SkDrawLooper>(looper); in detach()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/ |
D | SystemClock.java | 49 public HandlerWrapper createHandler(Looper looper, @Nullable Callback callback) { in createHandler() argument 50 return new SystemHandlerWrapper(new Handler(looper, callback)); in createHandler()
|
/external/skia/modules/androidkit/src/ |
D | SurfaceThread.cpp | 60 ALooper* looper = ALooper_prepare(ALOOPER_PREPARE_ALLOW_NON_CALLBACKS); in pthread_main() local 61 ALooper_addFd(looper, surfaceThread->fPipe[0], 1, ALOOPER_EVENT_INPUT, in pthread_main()
|
/external/skqp/src/core/ |
D | SkCanvas.cpp | 419 if (SkDrawLooper* looper = paint.getLooper()) { in AutoDrawLooper() local 420 fLooperContext = looper->makeContext(canvas, &fAlloc); in AutoDrawLooper() 501 AutoDrawLooper looper(this, paint, skipLayerForFilter, bounds); \ 502 while (looper.next()) { \ 508 AutoDrawLooper looper(this, paint, true); \ 509 while (looper.next()) { \ 514 AutoDrawLooper looper(this, paint, false, bounds); \ 515 while (looper.next()) { \ 520 AutoDrawLooper looper(this, paint, false, bounds); \ 521 while (looper.next()) { \ [all …]
|
/external/skqp/gm/ |
D | textbloblooper.cpp | 232 for (int looper = 0; looper < fLoopers.count(); looper++) { in onDraw() local 233 paint.setLooper(fLoopers[looper]); in onDraw()
|