Home
last modified time | relevance | path

Searched refs:Looper (Results 1 – 25 of 52) sorted by relevance

123

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DLooperTest.java5 import android.os.Looper;
19 assertSame(Looper.myLooper(), Looper.getMainLooper()); in testMainLooperAndMyLooperAreTheSameInstanceOnMainThread()
41 Looper mainLooper = Looper.getMainLooper(); in differentThreadsGetDifferentLoopers()
42 Looper thisThreadsLooper = Looper.myLooper(); in differentThreadsGetDifferentLoopers()
46 final Looper[] thread1Looper = new Looper[1]; in differentThreadsGetDifferentLoopers()
50 Looper.prepare(); in differentThreadsGetDifferentLoopers()
51 thread1Looper[0] = Looper.myLooper(); in differentThreadsGetDifferentLoopers()
64 Looper.getMainLooper().quit(); in shouldThrowRuntimeExceptionIfTryingToQuitMainLooper()
71 Looper looper = ht.getLooper(); in shouldNotQueueMessagesIfLooperIsQuit()
90 Looper looper = ht.getLooper(); in shouldThrowawayRunnableQueueIfLooperQuits()
[all …]
DHandlerTest.java4 import android.os.Looper;
47 Looper looper = newInstanceOf(Looper.class); in testInsertsRunnablesBasedOnLooper()
65 Handler handler2 = new Handler(Looper.myLooper()); in testDefaultConstructorUsesDefaultLooper()
68 shadowOf(Looper.myLooper()).idle(); in testDefaultConstructorUsesDefaultLooper()
75 Looper looper1 = Robolectric.newInstanceOf(Looper.class); in testDifferentLoopersGetDifferentQueues()
78 Looper looper2 = Robolectric.newInstanceOf(Looper.class); in testDifferentLoopersGetDifferentQueues()
375 Handler h = new Handler(Looper.myLooper()) { in shouldRemoveMessageFromQueueBeforeDispatching()
DHandlerThreadTest.java14 import android.os.Looper;
59 Looper looper = handlerThread.getLooper(); in shouldStopThreadIfLooperIsQuit()
/external/qemu/android/
Dlooper.h72 typedef struct Looper Looper; typedef
75 Looper* looper_newGeneric(void);
81 Looper* looper_newCore(void);
90 struct Looper { struct
91 Duration (*now) (Looper* looper); argument
92 void (*timer_init)(Looper* looper, LoopTimer* timer, LoopTimerFunc callback, void* opaque); argument
93 void (*io_init) (Looper* looper, LoopIo* io, int fd, LoopIoFunc callback, void* opaque); argument
94 int (*run) (Looper* looper, Duration deadline_ms); argument
95 void (*forceQuit) (Looper* looper); argument
96 void (*destroy) (Looper* looper); argument
[all …]
Dlooper-generic.c44 static Duration glooper_now(Looper* ll);
86 glooptimer_startAbsolute(tt, timeout_ms + glooper_now((Looper*)tt->looper)); in glooptimer_startRelative()
118 glooper_timer_init(Looper* looper, in glooper_timer_init()
234 glooper_io_init(Looper* looper, LoopIo* user, int fd, LoopIoFunc callback, void* opaque) in glooper_io_init()
264 Looper looper;
350 glooper_now(Looper* ll) in glooper_now()
356 glooper_forceQuit(Looper* ll) in glooper_forceQuit()
363 glooper_run(Looper* ll, Duration loop_deadline_ms) in glooper_run()
465 glooper_free(Looper* ll) in glooper_free()
481 Looper* looper_newGeneric(void) in looper_newGeneric()
Dlooper-qemu.c82 qlooper_timer_init(Looper* looper, in qlooper_timer_init()
274 qlooper_io_init(Looper* looper, in qlooper_io_init()
289 Looper looper;
371 qlooper_now(Looper* ll) in qlooper_now()
379 qlooper_forceQuit(Looper* ll) in qlooper_forceQuit()
387 qlooper_run(Looper* ll, Duration deadline_ms) in qlooper_run()
394 qlooper_destroy(Looper* ll) in qlooper_destroy()
406 Looper*
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowLooper.java3 import android.os.Looper;
18 @Implements(Looper.class)
20 private static ThreadLocal<Looper> looperForThread = makeThreadLocalLoopers();
26 private static synchronized ThreadLocal<Looper> makeThreadLocalLoopers() { in makeThreadLocalLoopers()
27 return new ThreadLocal<Looper>() { in makeThreadLocalLoopers()
29 protected Looper initialValue() { in makeThreadLocalLoopers()
30 return Robolectric.Reflection.newInstanceOf(Looper.class); in makeThreadLocalLoopers()
40 public static Looper getMainLooper() {
60 public static synchronized Looper myLooper() {
83 public static void pauseLooper(Looper looper) {
[all …]
DShadowHandlerThread.java8 import android.os.Looper;
15 private Looper looper;
30 Looper.prepare(); in run()
32 looper = Looper.myLooper(); in run()
36 Looper.loop(); in run()
40 public Looper getLooper() { in getLooper()
59 Looper looper = getLooper(); in quit()
DShadowHandler.java4 import android.os.Looper;
29 private Looper looper = Looper.myLooper();
34 this.looper = Looper.myLooper(); in __constructor__()
37 public void __constructor__(Looper looper) { in __constructor__()
149 public final Looper getLooper() { in getLooper()
207 shadowOf(Looper.myLooper()).idle(); in idleMainLooper()
214 shadowOf(Looper.myLooper()).runToEndOfTasks(); in runMainLooperToEndOfTasks()
222 shadowOf(Looper.myLooper()).runOneTask(); in runMainLooperOneTask()
229 shadowOf(Looper.myLooper()).runToNextTask(); in runMainLooperToNextTask()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/
DResource.java3 import android.os.Looper;
62 if (!Looper.getMainLooper().equals(Looper.myLooper())) { in acquire()
72 if (!Looper.getMainLooper().equals(Looper.myLooper())) { in release()
/external/chromium_org/base/android/java/src/org/chromium/base/
DThreadUtils.java8 import android.os.Looper;
32 public static void setUiThread(Looper looper) { in setUiThread()
37 Looper.getMainLooper() + "), cannot set to new looper " + looper); in setUiThread()
50 sUiThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()
194 return getUiThreadHandler().getLooper() == Looper.myLooper(); in runningOnUiThread()
197 public static Looper getUiThreadLooper() { in getUiThreadLooper()
DPowerMonitor.java12 import android.os.Looper;
27 private final Handler mHandler = new Handler(Looper.getMainLooper());
DTraceEvent.java7 import android.os.Looper;
97 Looper.myQueue().addIdleHandler(this); in syncIdleMonitoring()
101 Looper.myQueue().removeIdleHandler(this); in syncIdleMonitoring()
/external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/
DTestThread.java8 import android.os.Looper;
60 Looper.prepare(); in run()
71 Looper.loop(); in run()
141 assert Looper.myLooper() == mMainThreadHandler.getLooper(); in checkOnMainThread()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DDecodeThread.java24 import android.os.Looper;
73 Looper.prepare(); in run()
76 Looper.loop(); in run()
DDecodeHandler.java28 import android.os.Looper;
57 Looper.myLooper().quit(); in handleMessage()
/external/chromium_org/content/public/android/java/src/org/chromium/content/app/
DContentApplication.java7 import android.os.Looper;
33 Looper.myQueue().addIdleHandler(new MessageQueue.IdleHandler() { in onCreate()
/external/droiddriver/src/com/google/android/droiddriver/base/
DDroidDriverContext.java20 import android.os.Looper;
143 if (Looper.myLooper() == Looper.getMainLooper()) { in validateNotAppThread()
/external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/
DMockGrantCredentialsPermissionActivity.java12 import android.os.Looper;
49 Handler handler = new Handler(Looper.getMainLooper()); in onResume()
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/jni/
DJniInterface.java15 import android.os.Looper;
385 if (Looper.myLooper() == Looper.getMainLooper()) { in getVideoFrame()
399 if (Looper.myLooper() == Looper.getMainLooper()) { in setVideoFrame()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/banners/
DInstallerDelegate.java10 import android.os.Looper;
67 Looper looper, PackageManager packageManager, Observer observer, String packageName) { in InstallerDelegate()
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/
DNestedSystemMessageHandler.java8 import android.os.Looper;
44 MessageQueue queue = Looper.myQueue(); in runNestedLoopTillIdle()
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
DAwContentsClientCallbackHelper.java9 import android.os.Looper;
93 private MyHandler(Looper looper) { in MyHandler()
152 public AwContentsClientCallbackHelper(Looper looper, AwContentsClient contentsClient) { in AwContentsClientCallbackHelper()
/external/chromium_org/third_party/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/
DVideoCaptureAndroid.java27 import android.os.Looper;
103 Looper.prepare(); in run()
105 Looper.loop(); in run()
222 Looper.myLooper().quit(); in stopCaptureOnCameraThread()
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/
DAwContentsClientCallbackHelperTest.java9 import android.os.Looper;
84 private Looper mLooper;
89 mLooper = Looper.getMainLooper(); in setUp()

123