/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/ |
RSTest_v14.java | 26 import android.os.Looper; 48 // get the current looper (from your Activity UI thread for instance
|
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/ |
RSTest_v16.java | 26 import android.os.Looper; 48 // get the current looper (from your Activity UI thread for instance
|
/frameworks/volley/src/main/java/com/android/volley/ |
Request.java | 22 import android.os.Looper; 220 if (Looper.myLooper() != Looper.getMainLooper()) { 223 Handler mainThread = new Handler(Looper.getMainLooper());
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
DataModel.java | 23 import android.os.Looper; 99 if (Looper.myLooper() == Looper.getMainLooper()) { 124 mHandler = new Handler(Looper.getMainLooper());
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
QsbApplication.java | 24 import android.os.Looper; 103 if (Looper.myLooper() != Looper.getMainLooper()) { 123 mUiThreadHandler = new Handler(Looper.getMainLooper());
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
LongPressAccessPointPreference.java | 24 import android.os.Looper;
|
/packages/services/Car/car-lib/src/android/car/content/pm/ |
CarAppBlockingPolicyService.java | 23 import android.os.Looper;
|
/packages/services/Car/car-support-lib/src/android/support/car/hardware/ |
CarSensorManager.java | 20 import android.os.Looper; 140 * Callbacks are called in the Looper context.
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/scheduling/ |
TaskSchedulerService.java | 29 import android.os.Looper; 97 public WorkerThreadHandler(Looper looper) { 98 super(looper); 122 public MainThreadHandler(Looper looper) { 123 super(looper); 149 mMainThreadHandler = new MainThreadHandler(Looper.getMainLooper());
|
/frameworks/base/media/java/android/media/ |
RemoteController.java | 31 import android.os.Looper; 101 * @param looper the {@link Looper} on which to run the event loop, 102 * or null to use the current thread's looper. 105 public RemoteController(Context context, OnClientUpdateListener updateListener, Looper looper) 113 if (looper != null) { 114 mEventHandler = new EventHandler(this, looper); 116 Looper l = Looper.myLooper() [all...] |
MediaRecorder.java | 24 import android.os.Looper; 64 * Looper running (the main UI thread by default already has a Looper running). 102 Looper looper; local 103 if ((looper = Looper.myLooper()) != null) { 104 mEventHandler = new EventHandler(this, looper); 105 } else if ((looper = Looper.getMainLooper()) != null) [all...] |
SoundPool.java | 29 import android.os.Looper; 482 Looper looper; local 483 if ((looper = Looper.myLooper()) != null) { 484 mEventHandler = new EventHandler(looper); 485 } else if ((looper = Looper.getMainLooper()) != null) { 486 mEventHandler = new EventHandler(looper); 570 public EventHandler(Looper looper) [all...] |
MediaDrm.java | 32 import android.os.Looper; 116 * MediaDrm objects on a thread with its own Looper running (main UI 117 * thread by default has a Looper running). 203 Looper looper; local 204 if ((looper = Looper.myLooper()) != null) { 205 mEventHandler = new EventHandler(this, looper); 206 } else if ((looper = Looper.getMainLooper()) != null) [all...] |
/cts/tests/tests/telephony/src/android/telephony/cts/ |
TelephonyManagerTest.java | 27 import android.os.Looper; 81 Looper.prepare(); 96 Looper.loop(); 108 Looper.prepare(); 115 Looper.loop();
|
/frameworks/base/core/java/android/bluetooth/le/ |
BluetoothLeScanner.java | 29 import android.os.Looper; 74 mHandler = new Handler(Looper.getMainLooper()); 396 Handler handler = new Handler(Looper.getMainLooper()); 408 Handler handler = new Handler(Looper.getMainLooper()); 429 Handler handler = new Handler(Looper.getMainLooper());
|
/frameworks/base/core/java/android/view/accessibility/ |
AccessibilityManager.java | 28 import android.os.Looper; 308 Looper myLooper = Looper.myLooper(); 309 if (myLooper == Looper.getMainLooper()) { 313 // If we're not running on the thread with the main looper, it's possible for 696 public MyHandler(Looper looper) { 697 super(looper, null, false);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaPlayerStateUnitTestTemplate.java | 20 import android.os.Looper; 51 private Looper mLooper = null; 92 terminateMessageLooper(); // Release message looper thread. 100 * Initializes the message looper so that the MediaPlayer object can 107 // Set up a looper to be used by mMediaPlayer. 108 Looper.prepare(); 110 // Save the looper so that we can terminate this thread 112 mLooper = Looper.myLooper(); 144 Looper.loop(); // Blocks forever until Looper.quit() is called [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/ |
SampleCache.java | 21 import android.os.Looper; 52 Looper looper) throws IOException { 54 cacheListener, looper); 59 Looper looper, SampleCache prev) throws IOException { 62 new SampleCache(samplePool, file, startPositionUs, cacheListener, looper); 316 long createdTimeMs, CacheManager.CacheListener cacheListener, Looper looper) 320 mIoHandler = new Handler(looper, [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
WifiTracker.java | 33 import android.os.Looper; 101 public WifiTracker(Context context, WifiListener wifiListener, Looper workerLooper, 111 public WifiTracker(Context context, WifiListener wifiListener, Looper workerLooper, 115 context.getSystemService(ConnectivityManager.class), Looper.myLooper()); 119 WifiTracker(Context context, WifiListener wifiListener, Looper workerLooper, 122 Looper currentLooper) { 128 // When we aren't on a looper thread, default to the main. 129 currentLooper = Looper.getMainLooper(); 562 public MainHandler(Looper looper) { [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaDrmMockTest.java | 36 import android.os.Looper; 640 private Looper mLooper = null; 653 // Set up a looper to be used by mMediaPlayer. 654 Looper.prepare(); 656 // Save the looper so that we can terminate this thread 658 mLooper = Looper.myLooper(); 687 Looper.loop(); // Blocks forever until Looper.quit() is called. 723 // Set up a looper to be used by mMediaPlayer. 724 Looper.prepare() [all...] |
/cts/tests/tests/print/src/android/print/cts/ |
PrintServicesTest.java | 32 import android.os.Looper; 241 (new Handler(Looper.getMainLooper())).post(getter); 271 (new Handler(Looper.getMainLooper())).post(getter); 326 (new Handler(Looper.getMainLooper())).post(completer); 423 Handler handler = new Handler(Looper.getMainLooper()); 479 (new Handler(Looper.getMainLooper())).post(updated);
|
/cts/tests/tests/security/src/android/security/cts/ |
StagefrightTest.java | 39 import android.os.Looper; 244 private Looper mLooper; 252 Looper.prepare(); 253 mLooper = Looper.myLooper(); 292 Looper.loop(); 331 Looper.loop();
|
/frameworks/base/media/java/android/media/audiopolicy/ |
AudioPolicy.java | 35 import android.os.Looper; 103 private AudioPolicy(AudioPolicyConfig config, Context context, Looper looper, 108 if (looper == null) { 109 looper = Looper.getMainLooper(); 111 if (looper != null) { 112 mEventHandler = new EventHandler(this, looper); 115 Log.e(TAG, "No event handler due to looper without a thread"); 128 private Looper mLooper [all...] |
/system/tools/aidl/tests/ |
aidl_test_service.cpp | 32 #include <utils/Looper.h> 46 using android::Looper; 401 sp<Looper> looper(Looper::prepare(0 /* opts */)); 411 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb, 413 ALOGE("Failed to add binder FD to Looper"); 422 const int result = looper->pollAll(-1 /* timeoutMillis */) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
ProjectionService.java | 25 import android.os.Looper; 152 mUIHandler = new Handler(Looper.getMainLooper());
|