/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/apps/Dialer/src/com/android/dialer/util/ |
Assert.java | 18 import android.os.Looper; 22 if (Looper.myLooper() == 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();
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
Preconditions.java | 19 import android.os.Looper; 42 if (ProviderConfig.IS_DOGFOOD_BUILD && !isSameLooper(Looper.getMainLooper())) { 48 if (ProviderConfig.IS_DOGFOOD_BUILD && isSameLooper(Looper.getMainLooper())) { 53 private static boolean isSameLooper(Looper looper) { 54 return Looper.myLooper() == looper;
|
/packages/services/Telephony/src/com/android/phone/ |
Assert.java | 20 import android.os.Looper; 40 isTrue(Looper.getMainLooper().equals(Looper.myLooper())); 48 isTrue(!Looper.getMainLooper().equals(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...] |
/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;
|
/packages/services/Car/libvehiclenetwork/include/ |
HandlerThread.h | 20 #include <utils/Looper.h> 33 sp<Looper> getLooper(); 41 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/v1/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...] |
/frameworks/base/core/java/android/net/ |
ConnectivityThread.java | 20 import android.os.Looper; 48 public static Looper getInstanceLooper() {
|
/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/v1/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;
|
/frameworks/base/include/androidfw/ |
DisplayEventDispatcher.h | 19 #include <utils/Looper.h> 25 DisplayEventDispatcher(const sp<Looper>& looper); 35 sp<Looper> mLooper;
|
/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()) {
|
/packages/apps/TV/src/com/android/tv/util/ |
MainThreadExecutor.java | 20 import android.os.Looper; 39 private final Handler mHandler = new Handler(Looper.getMainLooper()); 43 if (Looper.getMainLooper() == Looper.myLooper()) {
|
/packages/services/Car/car-support-lib/src/android/support/car/ |
CarServiceLoader.java | 20 import android.os.Looper; 30 private final Looper mLooper; 32 public CarServiceLoader(Context context, ServiceConnectionListener listener, Looper looper) { 35 mLooper = looper; 57 protected Looper getLooper() {
|