Home
last modified time | relevance | path

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

12

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DLooperTest.java71 Looper looper = ht.getLooper(); in shouldNotQueueMessagesIfLooperIsQuit() local
72 looper.quit(); in shouldNotQueueMessagesIfLooperIsQuit()
73 assertTrue(shadowOf(looper).hasQuit()); in shouldNotQueueMessagesIfLooperIsQuit()
74 assertFalse(shadowOf(looper).post(new Runnable() { in shouldNotQueueMessagesIfLooperIsQuit()
78 assertFalse(shadowOf(looper).postAtFrontOfQueue(new Runnable() { in shouldNotQueueMessagesIfLooperIsQuit()
83 assertFalse(shadowOf(looper).getScheduler().areAnyRunnable()); in shouldNotQueueMessagesIfLooperIsQuit()
90 Looper looper = ht.getLooper(); in shouldThrowawayRunnableQueueIfLooperQuits() local
91 shadowOf(looper).pause(); in shouldThrowawayRunnableQueueIfLooperQuits()
92 shadowOf(looper).post(new Runnable() { in shouldThrowawayRunnableQueueIfLooperQuits()
97 looper.quit(); in shouldThrowawayRunnableQueueIfLooperQuits()
[all …]
DHandlerThreadTest.java59 Looper looper = handlerThread.getLooper(); in shouldStopThreadIfLooperIsQuit() local
60 assertFalse(shadowOf(looper).quit); in shouldStopThreadIfLooperIsQuit()
61 looper.quit(); in shouldStopThreadIfLooperIsQuit()
64 assertTrue(shadowOf(looper).quit); in shouldStopThreadIfLooperIsQuit()
DHandlerTest.java47 Looper looper = newInstanceOf(Looper.class); in testInsertsRunnablesBasedOnLooper() local
49 Handler handler1 = new Handler(looper); in testInsertsRunnablesBasedOnLooper()
52 Handler handler2 = new Handler(looper); in testInsertsRunnablesBasedOnLooper()
55 shadowOf(looper).idle(); in testInsertsRunnablesBasedOnLooper()
/external/skia/tests/
DDeviceLooperTest.cpp48 SkDeviceLooper looper(pmap, rc, gRec[i].fRect, SkToBool(aa)); in test_simple() local
50 bool valid = looper.next(); in test_simple()
53 REPORTER_ASSERT(reporter, looper.getPixmap().width() == pmap.width()); in test_simple()
54 REPORTER_ASSERT(reporter, looper.getPixmap().height() == pmap.height()); in test_simple()
55 REPORTER_ASSERT(reporter, equal(looper.getRC(), rc)); in test_simple()
57 REPORTER_ASSERT(reporter, !looper.next()); in test_simple()
64 SkDeviceLooper looper(pmap, rc, r, false); in test_simple() local
65 REPORTER_ASSERT(reporter, !looper.next()); in test_simple()
127 SkDeviceLooper looper(pmap, rc, rect, gRec[i].fAA); in test_complex() local
128 while (looper.next()) { in test_complex()
[all …]
DLayerDrawLooperTest.cpp61 SkAutoTUnref<SkLayerDrawLooper> looper(looperBuilder.detachLooper()); in test_frontToBack() local
63 void* buffer = allocator.reserveT<SkDrawLooper::Context>(looper->contextSize()); in test_frontToBack()
64 SkDrawLooper::Context* context = looper->createContext(&canvas, buffer); in test_frontToBack()
101 SkAutoTUnref<SkLayerDrawLooper> looper(looperBuilder.detachLooper()); in test_backToFront() local
103 void* buffer = allocator.reserveT<SkDrawLooper::Context>(looper->contextSize()); in test_backToFront()
104 SkDrawLooper::Context* context = looper->createContext(&canvas, buffer); in test_backToFront()
141 SkAutoTUnref<SkLayerDrawLooper> looper(looperBuilder.detachLooper()); in test_mixed() local
143 void* buffer = allocator.reserveT<SkDrawLooper::Context>(looper->contextSize()); in test_mixed()
144 SkDrawLooper::Context* context = looper->createContext(&canvas, buffer); in test_mixed()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyStateListeners.java63 public CallStateChangeListener(EventFacade ef, int subId, Looper looper) { in CallStateChangeListener() argument
64 super(subId, looper); in CallStateChangeListener()
128 public DataConnectionRealTimeInfoChangeListener(EventFacade ef, int subId, Looper looper) { in DataConnectionRealTimeInfoChangeListener() argument
129 super(subId, looper); in DataConnectionRealTimeInfoChangeListener()
167 EventFacade ef, TelephonyManager tm, int subId, Looper looper) { in DataConnectionStateChangeListener() argument
168 super(subId, looper); in DataConnectionStateChangeListener()
203 public ServiceStateChangeListener(EventFacade ef, int subId, Looper looper) { in ServiceStateChangeListener() argument
204 super(subId, looper); in ServiceStateChangeListener()
233 public CellInfoChangeListener(EventFacade ef, int subId, Looper looper) { in CellInfoChangeListener() argument
234 super(subId, looper); in CellInfoChangeListener()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowLooper.java46 final ShadowLooper looper = shadowOf(myLooper());
47 if (looper != shadowOf(getMainLooper())) {
48 while (!looper.quit) {
50 synchronized (looper) {
51 looper.wait();
83 public static void pauseLooper(Looper looper) {
84 shadowOf(looper).pause();
87 public static void unPauseLooper(Looper looper) {
88 shadowOf(looper).unPause();
DShadowHandlerThread.java15 private Looper looper; field in ShadowHandlerThread
32 looper = Looper.myLooper(); in run()
47 while (thread.isAlive() && looper == null) { in getLooper()
54 return looper; in getLooper()
59 Looper looper = getLooper(); in quit() local
60 if (looper != null) { in quit()
61 looper.quit(); in quit()
DShadowHandler.java29 private Looper looper = Looper.myLooper(); field in ShadowHandler
34 this.looper = Looper.myLooper(); in __constructor__()
37 public void __constructor__(Looper looper) { in __constructor__() argument
38 this.looper = looper; in __constructor__()
52 return shadowOf(looper).post(r, delayMillis); in postDelayed()
57 return shadowOf(looper).postAtFrontOfQueue(runnable); in postAtFrontOfQueue()
98 …Robolectric.shadowOf(msg).setWhen(Robolectric.shadowOf(looper).getScheduler().getCurrentTime()+del… in sendMessageDelayed()
134 … Robolectric.shadowOf(msg).setWhen(Robolectric.shadowOf(looper).getScheduler().getCurrentTime()); in sendMessageAtFrontOfQueue()
150 return looper; in getLooper()
155 shadowOf(looper).getScheduler().remove(r); in removeCallbacks()
/external/valgrind/none/tests/amd64/
Dlooper.vgtest1 prereq: test -e looper
2 prog: looper
DMakefile.am56 looper.stderr.exp looper.stdout.exp looper.vgtest \
153 looper \ program
/external/skia/src/effects/
DSkLayerDrawLooper.cpp131 const SkLayerDrawLooper* looper) : fCurrRec(looper->fRecs) {} in LayerDrawLooperContext() argument
348 SkLayerDrawLooper* looper = new SkLayerDrawLooper; in detachLooper() local
349 looper->fCount = fCount; in detachLooper()
350 looper->fRecs = fRecs; in detachLooper()
356 return looper; in detachLooper()
DSkBlurDrawLooper.cpp110 const SkBlurDrawLooper* looper) in BlurDrawLooperContext() argument
111 : fLooper(looper), fState(SkBlurDrawLooper::kBeforeEdge) {} in BlurDrawLooperContext()
/external/skia/src/core/
DSkCanvas.cpp495 if (SkDrawLooper* looper = paint.getLooper()) { in AutoDrawLooper() local
497 looper->contextSize()); in AutoDrawLooper()
498 fLooperContext = looper->createContext(canvas, buffer); in AutoDrawLooper()
604 AutoDrawLooper looper(this, fProps, paint, skipLayerForFilter, bounds); \
605 while (looper.next(SkDrawFilter::kBitmap_Type)) { \
611 AutoDrawLooper looper(this, fProps, paint, true); \
612 while (looper.next(type)) { \
617 AutoDrawLooper looper(this, fProps, paint, false, bounds); \
618 while (looper.next(type)) { \
623 AutoDrawLooper looper(this, fProps, paint, false, bounds); \
[all …]
/external/chromium-trace/catapult/third_party/Paste/tests/
Dtest_template.txt89 There's a handyish looper thing you can also use in your templates (or
92 >>> from paste.util.looper import looper
94 >>> for loop, item in looper(seq):
/external/skia/gm/
Dtextbloblooper.cpp239 for (int looper = 0; looper < fLoopers.count(); looper++) { in onDraw() local
240 paint.setLooper(fLoopers[looper]); in onDraw()
/external/valgrind/none/tests/x86/
DMakefile.am68 looper.stderr.exp looper.stdout.exp looper.vgtest \
107 looper \ program
Dlooper.vgtest1 prog: looper
/external/skia/platform_tools/android/third_party/native_app_glue/
Dandroid_native_app_glue.c100 android_app->looper, LOOPER_ID_INPUT, NULL, in android_app_pre_exec_cmd()
222 ALooper* looper = ALooper_prepare(ALOOPER_PREPARE_ALLOW_NON_CALLBACKS); in android_app_entry() local
223 ALooper_addFd(looper, android_app->msgread, LOOPER_ID_MAIN, ALOOPER_EVENT_INPUT, NULL, in android_app_entry()
225 android_app->looper = looper; in android_app_entry()
Dandroid_native_app_glue.h143 ALooper* looper; member
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiNanManagerFacade.java289 public NanEventListenerPostsEvents(Looper looper) { in NanEventListenerPostsEvents() argument
290 super(looper); in NanEventListenerPostsEvents()
325 public NanSessionListenerPostsEvents(Looper looper, int listenerId) { in NanSessionListenerPostsEvents() argument
326 super(looper); in NanSessionListenerPostsEvents()
/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/skia/samplecode/
DSampleUnpremul.cpp86 SkAutoTUnref<SkDrawLooper> looper( in onDrawContent() local
90 paint.setLooper(looper); in onDrawContent()
/external/skia/include/effects/
DSkBlurDrawLooper.h75 explicit BlurDrawLooperContext(const SkBlurDrawLooper* looper);
DSkLayerDrawLooper.h102 explicit LayerDrawLooperContext(const SkLayerDrawLooper* looper);

12