/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/ |
NotificationDNDTests.java | 12 import android.os.Looper; 64 mContext, new Handler(Looper.getMainLooper()), 69 return new ZenModeHelper(mContext, Looper.getMainLooper(), cps);
|
/cts/suite/audio_quality/lib/src/audio/ |
RemoteAudio.cpp | 22 #include <utils/Looper.h> 77 mLooper = new android::Looper(false); 82 android::Looper::setForThread(mLooper); 89 mLooper->addFd(mSocket.getFD(), EIdSocket, android::Looper::EVENT_INPUT, socketRxCallback, this); 141 if (events & android::Looper::EVENT_INPUT) {
|
/cts/tests/tests/content/src/android/content/cts/ |
ContentQueryMapTest.java | 27 import android.os.Looper; 215 Looper.prepare(); 221 Looper.loop(); 244 Looper.prepare(); 250 Looper.loop();
|
/cts/tests/tests/media/src/android/media/cts/ |
AudioHelper.java | 28 import android.os.Looper; 169 // used to construct an object in the context of an asynchronous thread with looper 173 volatile private Looper mLooper; 190 Looper.prepare(); 191 mLooper = Looper.myLooper(); 194 Looper.loop();
|
ClearKeySystemTest.java | 31 import android.os.Looper; 87 private Looper mLooper; 219 // Set up a looper to handle events 220 Looper.prepare(); 222 // Save the looper so that we can terminate this thread 224 mLooper = Looper.myLooper(); 251 Looper.loop(); // Blocks forever until Looper.quit() is called.
|
StreamingMediaPlayerTest.java | 23 import android.os.Looper; 411 private Looper mLooper; 416 * then runs a {@link android.os.Looper}. 440 Looper.prepare(); 441 mLooper = Looper.myLooper(); 445 Looper.loop();
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowApplication.java | 14 import android.os.Looper; 82 private Looper mainLooper = ShadowLooper.myLooper(); 202 shadowOf(Looper.getMainLooper()).post(new Runnable() { 214 shadowOf(Looper.getMainLooper()).post(new Runnable() { 482 public Looper getMainLooper() {
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
DownloadManagerBaseTest.java | 31 import android.os.Looper; 118 private Looper mLooper; 126 Looper.prepare(); 128 mLooper = Looper.myLooper(); 132 Looper.loop();
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
TestService.java | 45 import android.os.Looper; 707 if (Looper.myLooper() == null) { 708 Looper.prepare(); 729 if (Looper.myLooper() == null) { 730 Looper.prepare(); 751 if (Looper.myLooper() == null) { 752 Looper.prepare(); 773 if (Looper.myLooper() == null) { 774 Looper.prepare(); 795 if (Looper.myLooper() == null) [all...] |
/frameworks/base/media/java/android/media/ |
AudioTrack.java | 34 import android.os.Looper; 246 * Looper associated with the thread that creates the AudioTrack instance. 248 private final Looper mInitializationLooper; 474 // remember which looper is associated with the AudioTrack instantiation 475 Looper looper; local 476 if ((looper = Looper.myLooper()) == null) { 477 looper = Looper.getMainLooper() 553 Looper looper; local 2637 Looper looper; local 2692 Looper looper; local [all...] |
/device/generic/goldfish/qemud/ |
qemud.c | 274 /* A Looper object is used to monitor activity on one or more 332 /* Looper is the main object modeling a looper object 340 } Looper; 342 /* initialize a looper object */ 344 looper_init( Looper* l ) 353 /* finalize a looper object */ 355 looper_done( Looper* l ) 370 looper_find( Looper* l, int fd ) 382 /* grow the arrays in the looper object * 767 Looper* looper; member in struct:FDHandlerList 1240 Looper looper[1]; member in struct:Multiplexer [all...] |
/frameworks/base/core/java/android/hardware/camera2/ |
CameraManager.java | 33 import android.os.Looper; 124 * the current thread's {@link android.os.Looper looper}. 127 * no looper. 132 Looper looper = Looper.myLooper(); local 133 if (looper == null) { 135 "No handler given, and current thread has no looper!"); 137 handler = new Handler(looper); 179 Looper looper = Looper.myLooper(); local [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
CameraDeviceUserShim.java | 33 import android.os.Looper; 103 * Create a separate looper/thread for the camera to run on; open the camera. 105 * <p>Since the camera automatically latches on to the current thread's looper, 106 * it's important that we have our own thread with our own looper to guarantee 111 private Looper mLooper; 139 // Set up a looper to be used by camera. 140 Looper.prepare(); 142 // Save the looper so that we can terminate this thread 144 mLooper = Looper.myLooper(); 147 Looper.loop(); // Blocks forever until #close is called [all...] |
/frameworks/base/libs/input/ |
PointerController.cpp | 57 const sp<Looper>& looper, const sp<SpriteController>& spriteController) : 58 mPolicy(policy), mLooper(looper), mSpriteController(spriteController) { 62 mLooper->addFd(mDisplayEventReceiver.getFd(), Looper::POLL_CALLBACK, 63 Looper::EVENT_INPUT, this, nullptr); 462 if (events & (Looper::EVENT_ERROR | Looper::EVENT_HANGUP)) { 468 if (!(events & Looper::EVENT_INPUT)) {
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
WifiP2pManager.java | 32 import android.os.Looper; 665 Channel(Context context, Looper looper, ChannelListener l) { 667 mHandler = new P2pHandler(looper); 685 P2pHandler(Looper looper) { 686 super(looper); [all...] |
/packages/apps/TV/src/com/android/tv/recommendation/ |
RecommendationDataManager.java | 30 import android.os.Looper; 199 mMainHandler = new RecommendationMainHandler(Looper.getMainLooper(), this); 525 if (Looper.myLooper() == Looper.getMainLooper()) { 564 public RecommendationHandler(@NonNull Looper looper, RecommendationDataManager ref) { 565 super(looper, ref); 604 public RecommendationMainHandler(@NonNull Looper looper, RecommendationDataManager ref) { 605 super(looper, ref) [all...] |
/developers/build/prebuilts/gradle/RuntimePermissionsWear/Application/src/main/java/com/example/android/wearable/runtimepermissions/ |
MainPhoneActivity.java | 24 import android.os.Looper; 371 boolean mainUiThread = (Looper.myLooper() == Looper.getMainLooper());
|
/developers/samples/android/wearable/wear/RuntimePermissionsWear/Application/src/main/java/com/example/android/wearable/runtimepermissions/ |
MainPhoneActivity.java | 24 import android.os.Looper; 371 boolean mainUiThread = (Looper.myLooper() == Looper.getMainLooper());
|
/development/samples/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/ |
MainPhoneActivity.java | 24 import android.os.Looper; 371 boolean mainUiThread = (Looper.myLooper() == Looper.getMainLooper());
|
/external/ims/rcs/rcsservice/src/com/android/service/ims/ |
TaskManager.java | 42 import android.os.Looper; 90 Looper messageHandlerLooper = messageHandlerThread.getLooper(); 285 MessageHandler(Looper looper){ 286 super(looper);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
FragmentManagerTest.java | 5 import android.os.Looper; 202 Scheduler scheduler = shadowOf(Looper.getMainLooper()).getScheduler(); 206 new Handler(Looper.getMainLooper()).post(otherEnqueuedTask);
|
/frameworks/base/core/java/android/appwidget/ |
AppWidgetHost.java | 32 import android.os.Looper; 124 public UpdateHandler(Looper looper) { 125 super(looper); 157 public AppWidgetHost(Context context, int hostId, OnClickHandler handler, Looper looper) { 161 mHandler = new UpdateHandler(looper);
|
/frameworks/base/core/java/android/speech/ |
SpeechRecognizer.java | 27 import android.os.Looper; 324 if (Looper.myLooper() != Looper.getMainLooper()) {
|
/frameworks/base/keystore/java/android/security/ |
KeyChain.java | 29 import android.os.Looper; 600 Looper looper = Looper.myLooper(); local 601 if (looper != null && looper == context.getMainLooper()) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
TileServices.java | 29 import android.os.Looper; 65 public TileServices(QSTileHost host, Looper looper) { 70 mHandler = new Handler(looper); 71 mMainHandler = new Handler(Looper.getMainLooper());
|