/cts/tests/tests/view/src/android/view/cts/ |
GestureDetectorTest.java | 21 import android.os.Looper; 84 mContext, new SimpleOnGestureListener(), new Handler(Looper.getMainLooper())); 86 new GestureDetector(new SimpleOnGestureListener(), new Handler(Looper.getMainLooper()));
|
/cts/tests/tests/widget/src/android/widget/cts/ |
FilterTest.java | 23 import android.os.Looper; 41 Looper.prepare(); 52 Looper.prepare();
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
SoundTriggerModule.java | 20 import android.os.Looper; 131 // find the looper for our new event handler 132 Looper looper; local 134 looper = handler.getLooper(); 136 looper = Looper.getMainLooper(); 139 // construct the event handler with this looper 140 if (looper != null) { 142 mHandler = new Handler(looper) { [all...] |
/frameworks/base/core/java/android/view/ |
InputEventReceiver.java | 21 import android.os.Looper; 58 * @param looper The looper to use when invoking callbacks. 60 public InputEventReceiver(InputChannel inputChannel, Looper looper) { 64 if (looper == null) { 65 throw new IllegalArgumentException("looper must not be null"); 69 mMessageQueue = looper.getQueue(); 134 * Must be called on the same Looper thread to which the receiver is attached. 161 * Must be called on the same Looper thread to which the receiver is attached [all...] |
InputEventSender.java | 21 import android.os.Looper; 53 * @param looper The looper to use when invoking callbacks. 55 public InputEventSender(InputChannel inputChannel, Looper looper) { 59 if (looper == null) { 60 throw new IllegalArgumentException("looper must not be null"); 64 mMessageQueue = looper.getQueue(); 114 * Must be called on the same Looper thread to which the sender is attached.
|
/frameworks/base/wifi/java/android/net/wifi/nan/ |
WifiNanEventListener.java | 20 import android.os.Looper; 73 * Constructs a {@link WifiNanEventListener} using the looper of the current 77 this(Looper.myLooper()); 81 * Constructs a {@link WifiNanEventListener} using the specified looper. I.e. 82 * all callbacks will delivered on the thread of the specified looper. 84 * @param looper The looper on which to execute the callbacks. 86 public WifiNanEventListener(Looper looper) { 87 if (VDBG) Log.v(TAG, "ctor: looper=" + looper) [all...] |
/frameworks/native/services/sensorservice/ |
SensorEventConnection.h | 29 #include <utils/Looper.h> 113 // Add or remove the file descriptor associated with the BitTube to the looper. If mDead is set 115 // it has been previously added to the Looper. Depending on the state of the connection FD may 116 // be added to the Looper. The flags to set are determined by the internal state of the 117 // connection. FDs are added to the looper when wake-up sensors are registered (to poll for 120 void updateLooperRegistration(const sp<Looper>& looper); void 121 updateLooperRegistrationLocked(const sp<Looper>& looper); 132 // has been added to the Looper in SensorService. This flag is typically set when thi [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/ |
InstallTask.java | 22 import android.os.Looper; 69 if (Looper.myLooper() == Looper.getMainLooper()) {
|
/packages/apps/Settings/src/com/android/settings/applications/ |
AppStateBaseBridge.java | 19 import android.os.Looper; 47 : Looper.getMainLooper()); 128 public BackgroundHandler(Looper looper) { 129 super(looper);
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
AppStateBaseBridge.java | 19 import android.os.Looper; 47 : Looper.getMainLooper()); 128 public BackgroundHandler(Looper looper) { 129 super(looper);
|
/packages/services/Car/car-support-lib/src/android/support/car/ |
CarServiceLoaderEmbedded.java | 24 import android.os.Looper; 58 Looper looper) { 59 super(context, listener, looper); 60 mCar = android.car.Car.createCar(context, mServiceConnection, looper); 61 mHandler = new CallbackHandler(looper); 137 private CallbackHandler(Looper looper) { 138 super(looper);
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
Service.java | 22 import android.os.Looper; 30 * accessed from the {@link Looper} thread on which the transport was created.
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
GSMTestHandler.java.broken | 23 import android.os.Looper; 78 Looper looper = getLooper(); 79 if (looper != null) looper.quit();
|
/hardware/qcom/camera/QCamera2/util/ |
QCameraDisplay.h | 34 #include <android/looper.h> 35 #include <utils/Looper.h>
|
/packages/apps/TV/src/com/android/tv/dvr/ |
Scheduler.java | 24 import android.os.Looper; 56 HandlerWrapper(Looper looper, ScheduledRecording scheduledRecording, RecordingTask recordingTask) { 57 super(looper, recordingTask); 75 private final Looper mLooper; 84 public Scheduler(Looper looper, DvrManager dvrManager, DvrSessionManager sessionManager, 88 mLooper = looper;
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
ReceiveUriActivity.java | 25 import android.os.Looper; 73 Looper.myQueue().addIdleHandler(new IdleHandler() {
|
ReceiveUriService.java | 25 import android.os.Looper; 54 Looper.myQueue().addIdleHandler(new IdleHandler() {
|
/cts/tests/tests/content/src/android/content/cts/ |
SyncStorageEngineTest.java | 29 import android.os.Looper; 46 Looper.prepare();
|
/cts/tests/tests/media/src/android/media/cts/ |
RoutingTest.java | 31 import android.os.Looper; 108 * tests if the Looper for the current thread has been prepared, 111 * on the returned Looper. 113 private Looper prepareIfNeededLooper() { 115 Looper myLooper = null; 116 if (Looper.myLooper() == null) { 117 Looper.prepare(); 118 myLooper = Looper.myLooper(); 180 Looper myLooper = prepareIfNeededLooper(); 275 Looper myLooper = prepareIfNeededLooper() [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
HandlerThreadTest.java | 14 import android.os.Looper; 59 Looper looper = handlerThread.getLooper(); local 60 assertFalse(shadowOf(looper).quit); 61 looper.quit(); 64 assertTrue(shadowOf(looper).quit);
|
/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/ |
InterpreterInstaller.java | 23 import android.os.Looper; 113 Looper.myLooper().quit(); 116 Looper.myLooper().quit(); 148 Looper.myLooper().quit(); 223 if (Looper.myLooper() == null) { 224 Looper.prepare(); 226 mBackgroundHandler = new Handler(Looper.myLooper()); 228 Looper.loop();
|
/frameworks/base/core/java/android/app/ |
EphemeralResolverService.java | 28 import android.os.Looper; 81 public ServiceHandler(Looper looper) { 82 super(looper, null /*callback*/, true /*async*/);
|
/frameworks/base/core/java/android/printservice/recommendation/ |
RecommendationService.java | 26 import android.os.Looper; 107 super(Looper.getMainLooper());
|
/frameworks/base/libs/hwui/renderthread/ |
RenderThread.h | 27 #include <utils/Looper.h> 123 sp<Looper> mLooper;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
CallbackFilter.java | 26 import android.os.Looper; 76 mUiThreadHandler = new Handler(Looper.getMainLooper());
|