HomeSort by relevance Sort by last modified time
    Searched refs:Looper (Results 51 - 75 of 928) sorted by null

1 23 4 5 6 7 8 91011>>

  /frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/
BaseDataBinderTest.java 20 import android.os.Looper;
51 return Looper.myLooper() == Looper.getMainLooper();
64 if (Looper.myLooper() == Looper.getMainLooper()) {
76 if (Looper.myLooper() != Looper.getMainLooper()) {
  /cts/tests/tests/telephony/src/android/telephony/cts/
PhoneStateListenerTest.java 21 import android.os.Looper;
74 Looper.prepare();
91 Looper.prepare();
104 Looper.loop();
128 Looper.prepare();
141 Looper.loop();
165 Looper.prepare();
178 Looper.loop();
213 Looper.prepare();
227 Looper.loop()
    [all...]
  /platform_testing/tests/androidbvt/src/com/android/androidbvt/
MediaPlaybackTests.java 20 import android.os.Looper;
39 private Looper mLooper;
54 // start the MediaPlayer on a Looper thread, so it does not deadlock itself
58 Looper.prepare();
59 mLooper = Looper.myLooper();
65 Looper.loop();
68 // make sure the looper is really started before we proceed
  /frameworks/base/graphics/java/android/graphics/
SurfaceTexture.java 23 import android.os.Looper;
70 private final Looper mCreatorLooper;
132 mCreatorLooper = Looper.myLooper();
159 mCreatorLooper = Looper.myLooper();
196 // prefer to send the callback on the creating looper or the main looper
198 Looper looper = handler != null ? handler.getLooper() : local
199 mCreatorLooper != null ? mCreatorLooper : Looper.getMainLooper();
200 mOnFrameAvailableHandler = new Handler(looper, null, true /*async*/)
    [all...]
  /frameworks/base/libs/androidfw/
DisplayEventDispatcher.cpp 25 #include <utils/Looper.h>
36 DisplayEventDispatcher::DisplayEventDispatcher(const sp<Looper>& looper) :
37 mLooper(looper), mWaitingForVsync(false) {
48 int rc = mLooper->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT,
89 if (events & (Looper::EVENT_ERROR | Looper::EVENT_HANGUP)) {
95 if (!(events & Looper::EVENT_INPUT)) {
  /frameworks/native/services/surfaceflinger/
MessageQueue.cpp 89 mLooper = new Looper(true);
98 mLooper->addFd(mEventTube->getFd(), 0, Looper::EVENT_INPUT,
107 case Looper::POLL_WAKE:
108 case Looper::POLL_CALLBACK:
110 case Looper::POLL_ERROR:
111 ALOGE("Looper::POLL_ERROR");
113 case Looper::POLL_TIMEOUT:
118 ALOGE("Looper::pollOnce() returned unknown status %d", ret);
  /packages/services/Car/service/src/com/android/car/
CarServiceUtils.java 27 import android.os.Looper;
73 runOnLooper(Looper.getMainLooper(), action);
77 * Execute a runnable in the given looper
78 * @param looper Looper to run the action.
81 public static void runOnLooper(Looper looper, Runnable action) {
82 new Handler(looper).post(action);
93 runOnLooperSync(Looper.getMainLooper(), action);
97 * Execute a call on the given Looper thread, blocking until it i
    [all...]
  /system/core/libutils/tests/
Looper_test.cpp 5 #include <utils/Looper.h>
27 sp<Looper> mLooper;
30 DelayedWake(int delayMillis, const sp<Looper> looper) :
31 DelayedTask(delayMillis), mLooper(looper) {
56 void setCallback(const sp<Looper>& looper, int fd, int events) {
57 looper->addFd(fd, 0, events, staticHandler, this);
103 sp<Looper> mLooper;
106 mLooper = new Looper(true)
383 sp<Looper> looper = new Looper(false \/*allowNonCallbacks*\/); local
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
PostProcTestBase.java 23 import android.os.Looper;
31 protected Looper mLooper = null;
  /cts/tests/tests/view/src/android/view/cts/
ScaleGestureDetectorTest.java 21 import android.os.Looper;
49 mContext, new SimpleOnScaleGestureListener(), new Handler(Looper.getMainLooper()));
  /frameworks/base/core/java/android/view/
BatchedInputEventReceiver.java 19 import android.os.Looper;
30 InputChannel inputChannel, Looper looper, Choreographer choreographer) {
31 super(inputChannel, looper);
  /frameworks/base/core/tests/coretests/src/android/app/activity/
TestedActivity.java 21 import android.os.Looper;
45 Looper.myLooper().myQueue().addIdleHandler(new Idler());
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
DejankUtils.java 20 import android.os.Looper;
75 if (!Looper.getMainLooper().isCurrentThread()) {
  /frameworks/base/tests/utils/testutils/java/android/os/test/
TestLooper.java 21 import android.os.Looper;
33 * Creates a looper whose message queue can be manipulated
34 * This allows testing code that uses a looper to dispatch messages in a deterministic manner
35 * Creating a TestLooper will also install it as the looper for the current thread
38 protected final Looper mLooper;
40 private static final Constructor<Looper> LOOPER_CONSTRUCTOR;
52 LOOPER_CONSTRUCTOR = Looper.class.getDeclaredConstructor(Boolean.TYPE);
54 THREAD_LOCAL_LOOPER_FIELD = Looper.class.getDeclaredField("sThreadLocal");
74 ThreadLocal<Looper> threadLocalLooper = (ThreadLocal<Looper>) THREAD_LOCAL_LOOPER_FIEL
    [all...]
  /frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
HistoryHandler.java 20 import android.os.Looper;
30 HistoryHandler(Looper looper) {
31 super(looper);
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
MockLooper.java 21 import android.os.Looper;
33 * Creates a looper whose message queue can be manipulated
34 * This allows testing code that uses a looper to dispatch messages in a deterministic manner
35 * Creating a MockLooper will also install it as the looper for the current thread
38 protected final Looper mLooper;
40 private static final Constructor<Looper> LOOPER_CONSTRUCTOR;
52 LOOPER_CONSTRUCTOR = Looper.class.getDeclaredConstructor(Boolean.TYPE);
54 THREAD_LOCAL_LOOPER_FIELD = Looper.class.getDeclaredField("sThreadLocal");
74 ThreadLocal<Looper> threadLocalLooper = (ThreadLocal<Looper>) THREAD_LOCAL_LOOPER_FIEL
    [all...]
  /frameworks/volley/src/main/java/com/android/volley/toolbox/
ClearCacheRequest.java 25 import android.os.Looper;
51 Handler handler = new Handler(Looper.getMainLooper());
  /packages/apps/TV/common/src/com/android/tv/common/
WeakHandler.java 20 import android.os.Looper;
41 * Looper instead of the default one.
43 * @param looper The looper, must not be null.
46 public WeakHandler(@NonNull Looper looper, T ref) {
47 super(looper);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
CountryMonitor.java 23 import android.os.Looper;
63 }, Looper.getMainLooper());
  /frameworks/base/core/tests/coretests/src/android/content/
ContentQueryMapTest.java 24 import android.os.Looper;
36 /** Helper class to run test code in a new thread with a Looper. */
45 Looper.prepare();
47 Looper.loop();
86 Looper.myLooper().quit();
  /frameworks/base/include/android_runtime/
android_app_NativeActivity.h 20 #include <utils/Looper.h>
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
GLEnvironment.java 22 import android.os.Looper;
82 if (Looper.myLooper() != null && Looper.myLooper().equals(Looper.getMainLooper())) {
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
LooperAcceleration.java 25 import android.os.Looper;
78 Looper.prepare();
87 Looper.myLooper().quit();
90 dlg.setTitle("Not Looper.getMainLooper() check");
92 Looper.loop();
  /external/droiddriver/droiddriver-android_support_test/src/io/appium/droiddriver/android_support_test/
D2AndroidJUnitRunner.java 21 import android.os.Looper;
68 if (Looper.myLooper() == Looper.getMainLooper()) {
  /external/zxing/qr_scanner/src/com/google/zxing/client/android/
DecodeThread.java 24 import android.os.Looper;
73 Looper.prepare();
76 Looper.loop();

Completed in 598 milliseconds

1 23 4 5 6 7 8 91011>>