HomeSort by relevance Sort by last modified time
    Searched refs:Looper (Results 1 - 25 of 686) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
MockLooper.java 3 import android.os.Looper;
13 @MockClass(realClass = Looper.class)
17 public static Looper myLooper() {
22 public static Looper getMainLooper() {
  /frameworks/base/core/java/com/android/internal/view/
WindowManagerPolicyThread.java 19 import android.os.Looper;
27 static Looper mLooper;
29 public static void set(Thread thread, Looper looper) {
31 mLooper = looper;
38 public static Looper getLooper() {
  /packages/apps/Messaging/src/com/android/messaging/util/
ThreadUtil.java 20 import android.os.Looper;
23 private static final Handler sHandler = new Handler(Looper.getMainLooper());
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
LooperCompatUtils.java 19 import android.os.Looper;
24 * Helper to call Looper#quitSafely, which was introduced in API
33 Looper.class, "quitSafely");
35 public static void quitSafely(final Looper looper) {
37 CompatUtils.invoke(looper, null /* default return value */, METHOD_quitSafely);
39 looper.quit();
  /packages/services/Telecomm/src/com/android/server/telecom/
ThreadUtil.java 19 import android.os.Looper;
31 return Looper.getMainLooper() == Looper.myLooper();
  /frameworks/base/core/java/android/os/
HandlerThread.java 20 * Handy class for starting a new thread that has a looper. The looper can then be
26 Looper mLooper;
46 * setup before Looper loops.
54 Looper.prepare();
56 mLooper = Looper.myLooper();
61 Looper.loop();
66 * This method returns the Looper associated with this thread. If this thread not been started
68 * has been started, this method will block until the looper has been initialized.
69 * @return The looper
108 Looper looper = getLooper(); local
135 Looper looper = getLooper(); local
    [all...]
Looper.java 33 * <p>This is a typical example of the implementation of a Looper thread,
35 * initial Handler to communicate with the Looper.
42 * Looper.prepare();
50 * Looper.loop();
54 public final class Looper {
60 * defined on MessageQueue or Handler rather than on Looper itself. For example,
62 * thread, looping, and quitting are defined on the looper.
65 private static final String TAG = "Looper";
68 static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>();
    [all...]
  /frameworks/base/core/jni/
android_os_MessageQueue.h 21 #include <utils/Looper.h>
27 /* Gets the message queue's looper. */
28 inline sp<Looper> getLooper() const {
62 sp<Looper> mLooper;
  /cts/tests/tests/os/src/android/os/cts/
LooperTest.java 21 import android.os.Looper;
35 private Looper mLooper = null;
42 Looper.getMainLooper().dump(printer, prefix);
46 Looper looper = Looper.getMainLooper(); local
47 assertNotNull(looper);
53 Looper.prepare();
61 Looper.loop();
72 assertNull(Looper.myLooper())
82 final Looper[] looper = new Looper[1]; local
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
LooperTest.java 5 import android.os.Looper;
19 assertSame(Looper.myLooper(), Looper.getMainLooper());
41 Looper mainLooper = Looper.getMainLooper();
42 Looper thisThreadsLooper = Looper.myLooper();
44 assertSame("junit test's thread should use the main looper", mainLooper, thisThreadsLooper);
46 final Looper[] thread1Looper = new Looper[1]
71 Looper looper = ht.getLooper(); local
90 Looper looper = ht.getLooper(); local
    [all...]
  /frameworks/base/native/android/
looper.cpp 20 #include <android/looper.h>
21 #include <utils/Looper.h>
24 using android::Looper;
28 static inline Looper* ALooper_to_Looper(ALooper* alooper) {
29 return reinterpret_cast<Looper*>(alooper);
32 static inline ALooper* Looper_to_ALooper(Looper* looper) {
33 return reinterpret_cast<ALooper*>(looper);
37 return Looper_to_ALooper(Looper::getForThread().get());
41 return Looper_to_ALooper(Looper::prepare(opts).get())
53 sp<Looper> looper = Looper::getForThread(); local
64 sp<Looper> looper = Looper::getForThread(); local
    [all...]
  /packages/apps/Camera2/src/com/android/camera/async/
MainThreadExecutor.java 20 import android.os.Looper;
28 return new MainThreadExecutor(new Handler(Looper.getMainLooper()));
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowLooper.java 3 import android.os.Looper;
12 * Shadow for {@code Looper} that enqueues posted {@link Runnable}s to be run (on this thread) later. {@code Runnable}s
18 @Implements(Looper.class)
20 private static ThreadLocal<Looper> looperForThread = makeThreadLocalLoopers();
26 private static synchronized ThreadLocal<Looper> makeThreadLocalLoopers() {
27 return new ThreadLocal<Looper>() {
29 protected Looper initialValue() {
30 return Robolectric.Reflection.newInstanceOf(Looper.class);
40 public static Looper getMainLooper() {
46 final ShadowLooper looper = shadowOf(myLooper())
    [all...]
ShadowHandlerThread.java 8 import android.os.Looper;
15 private Looper looper; field in class:ShadowHandlerThread
30 Looper.prepare();
32 looper = Looper.myLooper();
36 Looper.loop();
40 public Looper getLooper() {
45 // If the thread has been started, wait until the looper has been created.
47 while (thread.isAlive() && looper == null)
59 Looper looper = getLooper(); local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/os/
HandlerTester.java 20 import android.os.Looper;
61 Looper.prepare();
62 mLooper = Looper.myLooper();
64 Looper.loop();
87 private Looper mLooper;
TestHandlerThread.java 20 import android.os.Looper;
28 private Looper mLooper;
61 public Looper getLooper() {
82 Looper.prepare();
83 mLooper = Looper.myLooper();
85 Looper.loop();
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
LeakGuardHandlerWrapper.java 20 import android.os.Looper;
31 this(ownerInstance, Looper.myLooper());
34 public LeakGuardHandlerWrapper(@Nonnull final T ownerInstance, final Looper looper) {
35 super(looper);
  /frameworks/base/cmds/hid/jni/
com_android_commands_hid_Device.h 20 #include <utils/Looper.h>
42 std::unique_ptr<DeviceCallback> callback, sp<Looper> looper);
44 Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper);
56 sp<Looper> mLooper;
  /packages/apps/Launcher3/src/com/android/launcher3/
MainThreadExecutor.java 20 import android.os.Looper;
33 private Handler mHandler = new Handler(Looper.getMainLooper());
37 if (Looper.getMainLooper() == Looper.myLooper()) {
  /frameworks/base/tools/layoutlib/bridge/src/android/os/
Looper_Accessor.java 26 // clean up the looper
27 Looper.sThreadLocal.remove();
29 Field sMainLooper = Looper.class.getDeclaredField("sMainLooper");
  /frameworks/base/tools/layoutlib/bridge/src/android/view/inputmethod/
InputMethodManager_Delegate.java 23 import android.os.Looper;
43 new BridgeIInputMethodManager(), Looper.getMainLooper());
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
GalleryContext.java 21 import android.os.Looper;
31 public Looper getMainLooper();
  /frameworks/base/include/android_runtime/
android_view_InputQueue.h 21 #include <utils/Looper.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;
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/
EngineResource.java 3 import android.os.Looper;
77 if (!Looper.getMainLooper().equals(Looper.myLooper())) {
96 if (!Looper.getMainLooper().equals(Looper.myLooper())) {
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
CameraTestThread.java 21 import android.os.Looper;
32 // Timeout for initializing looper and opening camera in Milliseconds.
34 private Looper mLooper = null;
38 * Create and start a looper thread, return the Handler
43 Log.w(TAG, "Looper thread already started");
51 Looper.prepare();
52 // Save the looper so that we can terminate this thread
54 mLooper = Looper.myLooper();
57 Looper.loop();
62 if (VERBOSE) Log.v(TAG, "start waiting for looper");
    [all...]

Completed in 718 milliseconds

1 2 3 4 5 6 7 8 91011>>