/frameworks/base/native/android/ |
D | looper.cpp | 24 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/ |
D | Looper.cpp | 54 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/ |
D | HandlerThread.java | 26 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()
|
D | Looper.java | 53 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
|
D | Handler.java | 119 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/ |
D | TestHandlerThread.java | 20 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()
|
D | HandlerTester.java | 20 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/ |
D | WindowManagerPolicyThread.java | 19 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/ |
D | android_os_MessageQueue.cpp | 40 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()
|
D | android_os_MessageQueue.h | 24 class Looper; variable 26 extern sp<Looper> android_os_MessageQueue_getLooper(JNIEnv* env, jobject messageQueueObj);
|
/frameworks/base/graphics/java/android/graphics/ |
D | SurfaceTexture.java | 21 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/ |
D | Looper.h | 98 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/ |
D | InputMethodManager_Delegate.java | 23 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/ |
D | ContentQueryMapTest.java | 24 import android.os.Looper; 43 Looper.prepare(); in run() 45 Looper.loop(); in run() 84 Looper.myLooper().quit(); in testContentQueryMap()
|
/frameworks/base/include/gui/ |
D | SensorEventQueue.h | 45 class Looper; variable 72 sp<Looper> getLooper() const; 76 mutable sp<Looper> mLooper;
|
/frameworks/base/libs/gui/ |
D | SensorEventQueue.cpp | 88 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/ |
D | IntentService.java | 23 import android.os.Looper; 53 private volatile Looper mServiceLooper; 59 public ServiceHandler(Looper looper) { in ServiceHandler()
|
/frameworks/base/tools/layoutlib/bridge/src/android/os/ |
D | HandlerThread_Delegate.java | 70 Looper.prepare(); in run() 72 theThread.mLooper = Looper.myLooper(); in run() 77 Looper.loop(); in run()
|
/frameworks/base/media/java/android/media/ |
D | SoundPool.java | 30 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/ |
D | CameraTest.java | 29 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/ |
D | CountryDetector.java | 22 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/ |
D | Visualizer.java | 23 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/ |
D | InputFilter.java | 20 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/ |
D | CallerInfoTest.java | 28 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/ |
D | WebSyncManager.java | 21 import android.os.Looper; 81 Looper.prepare(); in run() 90 Looper.loop(); in run()
|