/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/core/java/android/os/ |
D | Looper.java | 53 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
|
D | HandlerThread.java | 26 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()
|
D | Handler.java | 136 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/ |
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/include/android_runtime/ |
D | android_view_InputQueue.h | 39 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/ |
D | CameraTestThread.java | 21 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/ |
D | SurfaceTexture.java | 22 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/ |
D | GLEnvironment.java | 22 import android.os.Looper; 82 if (Looper.myLooper() != null && Looper.myLooper().equals(Looper.getMainLooper())) { in activate()
|
/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/native/include/gui/ |
D | SensorEventQueue.h | 45 class Looper; variable 80 sp<Looper> getLooper() const; 84 mutable sp<Looper> mLooper;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioManagerTest.java | 24 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/ |
D | SensorEventQueue.cpp | 79 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/ |
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()
|
D | Looper_Accessor.java | 27 Looper.sThreadLocal.remove(); in cleanupThread() 29 Field sMainLooper = Looper.class.getDeclaredField("sMainLooper"); in cleanupThread()
|
/frameworks/base/opengl/java/android/opengl/ |
D | ManagedEGLContext.java | 28 import android.os.Looper; 100 if (Looper.getMainLooper() != Looper.myLooper()) { in doTerminate()
|
/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/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CameraTest.java | 29 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/ |
D | android_os_MessageQueue.h | 28 inline sp<Looper> getLooper() const { in getLooper() 62 sp<Looper> mLooper;
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/inputmethod/ |
D | InputMethodManager_Delegate.java | 23 import android.os.Looper; 43 new BridgeIInputMethodManager(), Looper.getMainLooper()); in getInstance()
|
/frameworks/base/core/java/android/view/ |
D | InputFilter.java | 20 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/ |
D | WebViewChromiumFactoryProvider.java | 25 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()
|