Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/native/android/
Dlooper.cpp24 using android::Looper;
29 return Looper::getForThread().get(); in ALooper_forThread()
33 return Looper::prepare(opts).get(); in ALooper_prepare()
37 static_cast<Looper*>(looper)->incStrong((void*)ALooper_acquire); in ALooper_acquire()
41 static_cast<Looper*>(looper)->decStrong((void*)ALooper_acquire); in ALooper_release()
45 sp<Looper> looper = Looper::getForThread(); in ALooper_pollOnce()
56 sp<Looper> looper = Looper::getForThread(); in ALooper_pollAll()
67 static_cast<Looper*>(looper)->wake(); in ALooper_wake()
72 return static_cast<Looper*>(looper)->addFd(fd, ident, events, callback, data); in ALooper_addFd()
76 return static_cast<Looper*>(looper)->removeFd(fd); in ALooper_removeFd()
/frameworks/base/core/java/android/os/
DLooper.java53 public final class Looper { class
57 static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>();
58 private static Looper sMainLooper; // guarded by Looper.class
79 sThreadLocal.set(new Looper(quitAllowed)); in prepare()
90 synchronized (Looper.class) { in prepareMainLooper()
100 public static Looper getMainLooper() { in getMainLooper()
101 synchronized (Looper.class) { in getMainLooper()
111 final Looper me = myLooper(); in loop()
161 public static Looper myLooper() { in myLooper()
187 private Looper(boolean quitAllowed) { in Looper() method in Looper
DHandlerThread.java26 Looper mLooper;
54 Looper.prepare(); in run()
56 mLooper = Looper.myLooper(); in run()
61 Looper.loop(); in run()
71 public Looper getLooper() { in getLooper()
108 Looper looper = getLooper(); in quit()
135 Looper looper = getLooper(); in quitSafely()
DHandler.java136 public Handler(Looper looper) { in Handler()
147 public Handler(Looper looper, Callback callback) { in Handler()
198 mLooper = Looper.myLooper(); in Handler()
227 public Handler(Looper looper, Callback callback, boolean async) { in Handler()
465 if (Looper.myLooper() == mLooper) { in runWithScissors()
683 public final Looper getLooper() { in getLooper()
737 final Looper mLooper;
/frameworks/base/core/tests/coretests/src/android/os/
DTestHandlerThread.java20 import android.os.Looper;
28 private Looper mLooper;
61 public Looper getLooper() { in getLooper()
82 Looper.prepare(); in run()
83 mLooper = Looper.myLooper(); in run()
85 Looper.loop(); in run()
DHandlerTester.java20 import android.os.Looper;
61 Looper.prepare(); in run()
62 mLooper = Looper.myLooper(); in run()
64 Looper.loop(); in run()
87 private Looper mLooper;
/frameworks/base/core/java/com/android/internal/view/
DWindowManagerPolicyThread.java19 import android.os.Looper;
27 static Looper mLooper;
29 public static void set(Thread thread, Looper looper) { in set()
38 public static Looper getLooper() { in getLooper()
/frameworks/base/include/android_runtime/
Dandroid_view_InputQueue.h39 void attachLooper(Looper* looper, int ident, ALooper_callbackFunc callback, void* data);
59 static InputQueue* createQueue(jobject inputQueueObj, const sp<Looper>& looper);
65 InputQueue(jobject inputQueueObj, const sp<Looper>& looper,
73 Vector<Looper*> mAppLoopers;
74 sp<Looper> mDispatchLooper;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCameraTestThread.java21 import android.os.Looper;
34 private Looper mLooper = null;
51 Looper.prepare(); in start()
54 mLooper = Looper.myLooper(); in start()
57 Looper.loop(); in start()
/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java22 import android.os.Looper;
289 public EventHandler(Looper looper) { in EventHandler()
319 Looper looper; in init()
320 if ((looper = Looper.myLooper()) != null) { in init()
322 } else if ((looper = Looper.getMainLooper()) != null) { in init()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGLEnvironment.java22 import android.os.Looper;
82 if (Looper.myLooper() != null && Looper.myLooper().equals(Looper.getMainLooper())) { in activate()
/frameworks/base/core/tests/coretests/src/android/content/
DContentQueryMapTest.java24 import android.os.Looper;
43 Looper.prepare(); in run()
45 Looper.loop(); in run()
84 Looper.myLooper().quit(); in testContentQueryMap()
/frameworks/native/include/gui/
DSensorEventQueue.h45 class Looper; variable
80 sp<Looper> getLooper() const;
84 mutable sp<Looper> mLooper;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioManagerTest.java24 import android.os.Looper;
40 private Looper mAudioManagerLooper;
55 Looper.prepare(); in initializeAudioManagerWithLooper()
56 mAudioManagerLooper = Looper.myLooper(); in initializeAudioManagerWithLooper()
61 Looper.loop(); in initializeAudioManagerWithLooper()
/frameworks/native/libs/gui/
DSensorEventQueue.cpp79 sp<Looper> SensorEventQueue::getLooper() const in getLooper()
83 mLooper = new Looper(true); in getLooper()
92 sp<Looper> looper(getLooper()); in waitForEvent()
116 sp<Looper> looper(getLooper()); in wake()
/frameworks/base/core/java/android/app/
DIntentService.java23 import android.os.Looper;
53 private volatile Looper mServiceLooper;
59 public ServiceHandler(Looper looper) { in ServiceHandler()
/frameworks/base/tools/layoutlib/bridge/src/android/os/
DHandlerThread_Delegate.java70 Looper.prepare(); in run()
72 theThread.mLooper = Looper.myLooper(); in run()
77 Looper.loop(); in run()
DLooper_Accessor.java27 Looper.sThreadLocal.remove(); in cleanupThread()
29 Field sMainLooper = Looper.class.getDeclaredField("sMainLooper"); in cleanupThread()
/frameworks/base/opengl/java/android/opengl/
DManagedEGLContext.java28 import android.os.Looper;
100 if (Looper.getMainLooper() != Looper.myLooper()) { in doTerminate()
/frameworks/base/location/java/android/location/
DCountryDetector.java22 import android.os.Looper;
65 public ListenerTransport(CountryListener listener, Looper looper) { in ListenerTransport()
122 public void addCountryListener(CountryListener listener, Looper looper) { in addCountryListener()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java29 import android.os.Looper;
63 private Looper mLooper = null;
89 Looper.prepare(); in initializeMessageLooper()
93 mLooper = Looper.myLooper(); in initializeMessageLooper()
96 Looper.loop(); // Blocks forever until Looper.quit() is called. in initializeMessageLooper()
/frameworks/base/core/jni/
Dandroid_os_MessageQueue.h28 inline sp<Looper> getLooper() const { in getLooper()
62 sp<Looper> mLooper;
/frameworks/base/tools/layoutlib/bridge/src/android/view/inputmethod/
DInputMethodManager_Delegate.java23 import android.os.Looper;
43 new BridgeIInputMethodManager(), Looper.getMainLooper()); in getInstance()
/frameworks/base/core/java/android/view/
DInputFilter.java20 import android.os.Looper;
126 public InputFilter(Looper looper) { in InputFilter()
220 public H(Looper looper) { in H()
/frameworks/webview/chromium/java/com/android/webview/chromium/
DWebViewChromiumFactoryProvider.java25 import android.os.Looper;
106 Looper looper = !onMainThread ? Looper.myLooper() : Looper.getMainLooper(); in ensureChromiumStartedLocked()
108 (Looper.getMainLooper().equals(looper) ? "main":"background") + in ensureChromiumStartedLocked()
232 if (Looper.myLooper() != ThreadUtils.getUiThreadLooper()) { in setWebContentsDebuggingEnabled()

1234567891011