Home
last modified time | relevance | path

Searched refs:looper (Results 1 – 25 of 51) sorted by relevance

123

/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyStateListeners.java62 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()
239 public ServiceStateChangeListener(EventFacade ef, int subId, Looper looper) { in ServiceStateChangeListener() argument
240 super(looper); in ServiceStateChangeListener()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLooperTest.java47 private Looper looper; field in ShadowLooperTest.QuitThread
57 looper = Looper.myLooper(); in run()
95 assertThat(ShadowLooper.getLooperForThread(qt)).isSameAs(qt.looper); in getLooperForThread_returnsLooperForAThreadThatHasOne()
142 Looper looper = ht.getLooper(); in shouldNotQueueMessagesIfLooperIsQuit() local
143 looper.quit(); in shouldNotQueueMessagesIfLooperIsQuit()
144 assertThat(shadowOf(looper).hasQuit()).named("hasQuit").isTrue(); in shouldNotQueueMessagesIfLooperIsQuit()
145 assertThat(shadowOf(looper).post(new Runnable() { in shouldNotQueueMessagesIfLooperIsQuit()
151 assertThat(shadowOf(looper).postAtFrontOfQueue(new Runnable() { in shouldNotQueueMessagesIfLooperIsQuit()
156 assertThat(shadowOf(looper).getScheduler().areAnyRunnable()).named("areAnyRunnable").isFalse(); in shouldNotQueueMessagesIfLooperIsQuit()
162 Looper looper = ht.getLooper(); in shouldThrowawayRunnableQueueIfLooperQuits() local
[all …]
DShadowHandlerThreadTest.java66 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()
DShadowMessageQueueTest.java32 private Looper looper; field in ShadowMessageQueueTest
43 public TestHandler(Looper looper) { in TestHandler() argument
44 super(looper); in TestHandler()
64 looper = newLooper(); in setUp()
65 handler = new TestHandler(looper); in setUp()
66 queue = looper.getQueue(); in setUp()
155 Handler handler = new Handler(looper) { in dispatchedMessage_isMarkedInUse_andRecycled()
DShadowMessengerTest.java27 Looper looper = Looper.myLooper(); in testMessengerSend() local
28 shadowOf(looper).runOneTask(); in testMessengerSend()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLooper.java56 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 …]
DShadowChoreographer.java35 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()
DShadowMessage.java136 private static ShadowLooper shadowOf(Looper looper) { in shadowOf() argument
137 return Shadow.extract(looper); in shadowOf()
DShadowWifiP2pManager.java54 Context context, Looper looper, WifiP2pManager.ChannelListener listener) { in initialize() argument
55 handler = new Handler(looper); in initialize()
/external/skqp/src/effects/
DSkLayerDrawLooper.cpp142 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/skia/src/effects/
DSkLayerDrawLooper.cpp142 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/libchrome/base/android/java/src/org/chromium/base/
DThreadUtils.java36 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/tests/
DLayerDrawLooperTest.cpp61 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/skia/tests/
DLayerDrawLooperTest.cpp61 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/catch2/include/internal/
Dcatch_benchmark.h55 for( Catch::BenchmarkLooper looper( name ); looper; looper.increment() )
/external/skqp/src/core/
DSkCanvas.cpp419 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/skia/src/core/
DSkCanvas.cpp418 if (SkDrawLooper* looper = paint.getLooper()) { in AutoDrawLooper() local
419 fLooperContext = looper->makeContext(canvas, &fAlloc); in AutoDrawLooper()
500 AutoDrawLooper looper(this, paint, skipLayerForFilter, bounds); \
501 while (looper.next()) { \
507 AutoDrawLooper looper(this, paint, true); \
508 while (looper.next()) { \
513 AutoDrawLooper looper(this, paint, false, bounds); \
514 while (looper.next()) { \
519 AutoDrawLooper looper(this, paint, false, bounds); \
520 while (looper.next()) { \
[all …]
DSkColorSpaceXformer.cpp172 if (auto looper = src.getDrawLooper()) { in apply() local
173 dst.setDrawLooper(looper->makeColorSpace(this)); in apply()
/external/skia/gm/
Dtextbloblooper.cpp232 for (int looper = 0; looper < fLoopers.count(); looper++) { in onDraw() local
233 paint.setLooper(fLoopers[looper]); in onDraw()
/external/skqp/gm/
Dtextbloblooper.cpp232 for (int looper = 0; looper < fLoopers.count(); looper++) { in onDraw() local
233 paint.setLooper(fLoopers[looper]); in onDraw()
/external/tensorflow/tensorflow/python/training/
Dcoordinator.py478 looper = LooperThread(coord, timer_interval_secs, target=target, args=args,
480 looper.start()
481 return looper
/external/toybox/toys/pending/
Dfdisk.c573 int sys_id, looper = 0; in delete_partition() local
589 for (looper = 4; looper < num_parts; looper++) { in delete_partition()
590 pe = &partitions[looper]; in delete_partition()
625 if (i == 4) looper = i+2; in delete_partition()
626 else if (i > 4) looper = i+1; in delete_partition()
627 for (; looper < num_parts; looper++) in delete_partition()
628 partitions[looper-1] = partitions[looper]; in delete_partition()
/external/skqp/samplecode/
DSampleUnpremul.cpp81 auto looper( in onDrawContent() local
84 paint.setLooper(looper); in onDrawContent()
/external/skia/samplecode/
DSampleUnpremul.cpp81 auto looper( in onDrawContent() local
84 paint.setLooper(looper); in onDrawContent()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPersistService.java115 public ServiceHandler(Looper looper) { in ServiceHandler() argument
116 super(looper); in ServiceHandler()

123