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

1 2 34 5 6 7 8 91011>>

  /frameworks/base/core/java/android/app/
IntentService.java 25 import android.os.Looper;
55 private volatile Looper mServiceLooper;
61 public ServiceHandler(Looper looper) {
62 super(looper);
  /frameworks/base/core/java/android/service/vr/
VrListenerService.java 28 import android.os.Looper;
79 public VrListenerHandler(Looper looper) {
80 super(looper);
99 mHandler = new VrListenerHandler(Looper.getMainLooper());
  /frameworks/base/core/jni/
android_os_MessageQueue.cpp 22 #include <utils/Looper.h>
35 // Must be kept in sync with the constants in Looper.FileDescriptorCallback
80 mLooper = Looper::getForThread();
82 mLooper = new Looper(false);
83 Looper::setForThread(mLooper);
129 looperEvents |= Looper::EVENT_INPUT;
132 looperEvents |= Looper::EVENT_OUTPUT;
134 mLooper->addFd(fd, Looper::POLL_CALLBACK, looperEvents, this,
143 if (looperEvents & Looper::EVENT_INPUT) {
146 if (looperEvents & Looper::EVENT_OUTPUT)
    [all...]
  /frameworks/base/location/java/android/location/
CountryDetector.java 22 import android.os.Looper;
55 * looper once the country changed and detected.
63 public ListenerTransport(CountryListener listener, Looper looper) {
65 if (looper != null) {
66 mHandler = new Handler(looper);
116 * @param looper a Looper object whose message queue will be used to
117 * implement the callback mechanism. If looper is null then the
120 public void addCountryListener(CountryListener listener, Looper looper)
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/os/
HandlerThread_Delegate.java 70 Looper.prepare();
72 theThread.mLooper = Looper.myLooper();
77 Looper.loop();
  /frameworks/native/services/surfaceflinger/tests/vsync/
vsync.cpp 17 #include <android/looper.h>
19 #include <utils/Looper.h>
55 sp<Looper> loop = new Looper(false);
  /packages/apps/PhoneCommon/src/com/android/phone/common/
CallLogAsync.java 20 import android.os.Looper;
112 if (!Looper.getMainLooper().equals(Looper.myLooper())) {
  /cts/tests/app/app/src/android/app/stubs/
TestedScreen.java 23 import android.os.Looper;
66 Looper.myLooper();
67 Looper.myQueue().addIdleHandler(new Idler());
70 Looper.myLooper();
71 Looper.myQueue().addIdleHandler(new Idler());
  /cts/tests/tests/os/src/android/os/cts/
TestedScreen.java 23 import android.os.Looper;
66 Looper.myLooper();
67 Looper.myQueue().addIdleHandler(new Idler());
70 Looper.myLooper();
71 Looper.myQueue().addIdleHandler(new Idler());
  /packages/apps/Messaging/src/com/android/messaging/util/
Assert.java 18 import android.os.Looper;
151 if (Looper.myLooper() != Looper.getMainLooper()
158 if (Looper.myLooper() == Looper.getMainLooper()
  /frameworks/base/media/java/android/media/
MediaSync.java 25 import android.os.Looper;
197 private Looper mAudioLooper = null;
258 Looper looper; local
259 if ((looper = Looper.myLooper()) == null) {
260 looper = Looper.getMainLooper();
262 if (looper == null) {
265 mCallbackHandler = new Handler(looper);
291 Looper looper; local
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
EnumDevicesTest.java 27 import android.os.Looper;
157 * tests if the Looper for the current thread has been prepared,
160 * on the returned Looper.
162 private Looper prepareIfNeededLooper() {
164 Looper myLooper = null;
165 if (Looper.myLooper() == null) {
166 Looper.prepare();
167 myLooper = Looper.myLooper();
191 Looper myLooper = prepareIfNeededLooper();
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowHandler.java 4 import android.os.Looper;
29 private Looper looper = Looper.myLooper(); field in class:ShadowHandler
34 this.looper = Looper.myLooper();
37 public void __constructor__(Looper looper) {
38 this.looper = looper;
    [all...]
  /frameworks/base/native/android/
choreographer.cpp 27 #include <utils/Looper.h>
67 Choreographer(const sp<Looper>& looper);
80 const sp<Looper> mLooper;
88 sp<Looper> looper = Looper::getForThread(); local
89 if (!looper.get()) {
90 ALOGW("No looper prepared for thread");
93 gChoreographer = new Choreographer(looper);
    [all...]
  /system/core/include/utils/
Looper.h 30 * NOTE: Since Looper is used to implement the NDK ALooper, the Looper
43 * to have this file descriptor and callback unregistered from the looper.
48 * A message that can be posted to a Looper.
60 * Interface for a Looper message handler.
62 * The Looper holds a strong reference to the message handler whenever it has
63 * a message to deliver to it. Make sure to call Looper::removeMessages
96 * A looper callback.
110 * to have this file descriptor and callback unregistered from the looper.
134 * A looper can be associated with a thread although there is no requirement that it must be
    [all...]
  /cts/tests/tests/telephony/src/android/telephony/cts/
CellLocationTest.java 22 import android.os.Looper;
81 Looper.prepare();
93 Looper.loop();
  /external/glide/library/src/main/java/com/bumptech/glide/util/
Util.java 6 import android.os.Looper;
132 return Looper.myLooper() == Looper.getMainLooper();
  /frameworks/base/core/java/android/view/
InputFilter.java 20 import android.os.Looper;
124 * @param looper The looper to run callbacks on.
126 public InputFilter(Looper looper) {
127 mH = new H(looper);
220 public H(Looper looper) {
221 super(looper);
  /frameworks/native/include/gui/
SensorEventQueue.h 37 ALooper* looper; member in struct:ASensorEventQueue
46 class Looper;
97 sp<Looper> getLooper() const;
101 mutable sp<Looper> mLooper;
  /frameworks/native/services/sensorservice/tests/
sensorservicetest.cpp 22 #include <utils/Looper.h>
84 sp<Looper> loop = new Looper(false);
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
WifiScannerImpl.java 22 import android.os.Looper;
38 WifiScannerImpl create(Context context, Looper looper, Clock clock);
46 public WifiScannerImpl create(Context context, Looper looper, Clock clock) {
49 return new HalWifiScannerImpl(context, wifiNative, looper, clock);
51 return new SupplicantWifiScannerImpl(context, wifiNative, looper, clock);
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
TelephonyStateListeners.java 22 import android.os.Looper;
63 public CallStateChangeListener(EventFacade ef, int subId, Looper looper) {
64 super(subId, looper);
128 public DataConnectionRealTimeInfoChangeListener(EventFacade ef, int subId, Looper looper) {
129 super(subId, looper);
167 EventFacade ef, TelephonyManager tm, int subId, Looper looper) {
168 super(subId, looper);
    [all...]
  /packages/services/Car/car-support-lib/src/android/support/car/
Car.java 26 import android.os.Looper;
139 private final Looper mLooper;
188 * @param looper Looper to dispatch all listeners. If null, it will use main thread. Note that
189 * service connection listener will be always in main thread regardless of this Looper.
193 ServiceConnectionListener serviceConnectionListener, @Nullable Looper looper) {
195 return new Car(context, serviceConnectionListener, looper);
204 * Looper}.
206 * @see #createCar(Context, ServiceConnectionListener, Looper)
    [all...]
  /packages/services/Car/service/src/com/android/car/cluster/renderer/
ThreadSafeNavigationRenderer.java 22 import android.os.Looper;
27 * looper. It is guaranteed that all calls will be invoked in order they were called.
40 public static NavigationRenderer createFor(Looper looper, NavigationRenderer renderer) {
41 return renderer == null ? null : new ThreadSafeNavigationRenderer(looper, renderer);
44 private ThreadSafeNavigationRenderer(Looper looper, NavigationRenderer renderer) {
45 mHandler = new NavigationRendererHandler(looper, renderer);
73 NavigationRendererHandler(Looper looper, NavigationRenderer renderer)
    [all...]
  /packages/services/Car/tests/carservice_test/src/com/android/support/car/test/
CarSensorManagerTest.java 21 import android.os.Looper;
65 assertTrue(Looper.getMainLooper().isCurrentThread());

Completed in 1846 milliseconds

1 2 34 5 6 7 8 91011>>