Home
last modified time | relevance | path

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

1234567

/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/libs/utils/
DLooper.cpp54 Looper::Looper(bool allowNonCallbacks) : in Looper() function in android::Looper
117 Looper::~Looper() { in ~Looper()
125 void Looper::initTLSKey() { in initTLSKey()
130 void Looper::threadDestructor(void *st) { in threadDestructor()
131 Looper* const self = static_cast<Looper*>(st); in threadDestructor()
137 void Looper::setForThread(const sp<Looper>& looper) { in setForThread()
138 sp<Looper> old = getForThread(); // also has side-effect of initializing TLS in setForThread()
151 sp<Looper> Looper::getForThread() { in getForThread()
155 return (Looper*)pthread_getspecific(gTLSKey); in getForThread()
158 sp<Looper> Looper::prepare(int opts) { in prepare()
[all …]
/frameworks/base/core/java/android/os/
DHandlerThread.java26 Looper mLooper;
53 Looper.prepare(); in run()
55 mLooper = Looper.myLooper(); in run()
60 Looper.loop(); in run()
70 public Looper getLooper() { in getLooper()
94 Looper looper = getLooper(); in quit()
DLooper.java53 public class Looper { class
57 static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>();
64 private static Looper mMainLooper = null; // guarded by Looper.class
76 sThreadLocal.set(new Looper()); in prepare()
91 private synchronized static void setMainLooper(Looper looper) { in setMainLooper()
97 public synchronized static Looper getMainLooper() { in getMainLooper()
106 Looper me = myLooper(); in loop()
170 public static Looper myLooper() { in myLooper()
196 private Looper() { in Looper() method in Looper
DHandler.java119 mLooper = Looper.myLooper(); in Handler()
143 mLooper = Looper.myLooper(); in Handler()
155 public Handler(Looper looper) { in Handler()
165 public Handler(Looper looper, Callback callback) { in Handler()
555 public final Looper getLooper() { in getLooper()
609 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/core/jni/
Dandroid_os_MessageQueue.cpp40 inline sp<Looper> getLooper() { return mLooper; } in getLooper()
46 sp<Looper> mLooper;
52 mLooper = Looper::getForThread(); in NativeMessageQueue()
54 mLooper = new Looper(false); in NativeMessageQueue()
55 Looper::setForThread(mLooper); in NativeMessageQueue()
84 sp<Looper> android_os_MessageQueue_getLooper(JNIEnv* env, jobject messageQueueObj) { in android_os_MessageQueue_getLooper()
Dandroid_os_MessageQueue.h24 class Looper; variable
26 extern sp<Looper> android_os_MessageQueue_getLooper(JNIEnv* env, jobject messageQueueObj);
/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java21 import android.os.Looper;
111 Looper looper; in SurfaceTexture()
112 if ((looper = Looper.myLooper()) != null) { in SurfaceTexture()
114 } else if ((looper = Looper.getMainLooper()) != null) { in SurfaceTexture()
220 public EventHandler(Looper looper) { in EventHandler()
/frameworks/base/include/utils/
DLooper.h98 class Looper : public ALooper, public RefBase {
100 virtual ~Looper();
110 Looper(bool allowNonCallbacks);
266 static sp<Looper> prepare(int opts);
274 static void setForThread(const sp<Looper>& looper);
280 static sp<Looper> getForThread();
/frameworks/base/tools/layoutlib/bridge/src/android/view/inputmethod/
DInputMethodManager_Delegate.java23 import android.os.Looper;
38 /*package*/ static InputMethodManager getInstance(Looper mainLooper) { in getInstance()
58 Looper.myLooper()); in getInstance()
/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/base/include/gui/
DSensorEventQueue.h45 class Looper; variable
72 sp<Looper> getLooper() const;
76 mutable sp<Looper> mLooper;
/frameworks/base/libs/gui/
DSensorEventQueue.cpp88 sp<Looper> SensorEventQueue::getLooper() const in getLooper()
92 mLooper = new Looper(true); in getLooper()
101 sp<Looper> looper(getLooper()); in waitForEvent()
118 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()
/frameworks/base/media/java/android/media/
DSoundPool.java30 import android.os.Looper;
421 Looper looper; in setOnLoadCompleteListener()
422 if ((looper = Looper.myLooper()) != null) { in setOnLoadCompleteListener()
424 } else if ((looper = Looper.getMainLooper()) != null) { in setOnLoadCompleteListener()
440 public EventHandler(SoundPool soundPool, Looper looper) { in EventHandler()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java29 import android.os.Looper;
57 private Looper mLooper = null;
83 Looper.prepare(); in initializeMessageLooper()
87 mLooper = Looper.myLooper(); in initializeMessageLooper()
90 Looper.loop(); // Blocks forever until Looper.quit() is called. in initializeMessageLooper()
/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/java/android/media/audiofx/
DVisualizer.java23 import android.os.Looper;
440 Looper looper; in setDataCaptureListener()
441 if ((looper = Looper.myLooper()) != null) { in setDataCaptureListener()
443 } else if ((looper = Looper.getMainLooper()) != null) { in setDataCaptureListener()
461 public NativeEventHandler(Visualizer v, Looper looper) { in NativeEventHandler()
/frameworks/base/services/java/com/android/server/wm/
DInputFilter.java20 import android.os.Looper;
121 public InputFilter(Looper looper) { in InputFilter()
211 public H(Looper looper) { in H()
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCallerInfoTest.java28 import android.os.Looper;
169 private Looper mLooper;
187 Looper.prepare(); in run()
188 mLooper = Looper.myLooper(); in run()
/frameworks/base/core/java/android/webkit/
DWebSyncManager.java21 import android.os.Looper;
81 Looper.prepare(); in run()
90 Looper.loop(); in run()

1234567