/frameworks/base/core/tests/coretests/src/android/content/ |
ContentQueryMapTest.java | 24 import android.os.Looper; 34 /** Helper class to run test code in a new thread with a Looper. */ 43 Looper.prepare(); 45 Looper.loop(); 84 Looper.myLooper().quit();
|
/frameworks/base/core/java/android/os/ |
HandlerThread.java | 20 * Handy class for starting a new thread that has a looper. The looper can then be 26 private Looper mLooper; 46 * setup before Looper loops. 53 Looper.prepare(); 55 mLooper = Looper.myLooper(); 60 Looper.loop(); 65 * This method returns the Looper associated with this thread. If this thread not been started 67 * has been started, this method will block until the looper has been initialized. 68 * @return The looper 94 Looper looper = getLooper(); local [all...] |
Looper.java | 31 * <p>This is a typical example of the implementation of a Looper thread, 33 * initial Handler to communicate with the Looper. 40 * Looper.prepare(); 48 * Looper.loop(); 52 public class Looper { 63 private static Looper mMainLooper = null; 65 /** Initialize the current thread as a looper. 67 * this looper, before actually starting the loop. Be sure to call 73 throw new RuntimeException("Only one Looper may be created per thread"); 75 sThreadLocal.set(new Looper()); [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
HandlerTester.java | 20 import android.os.Looper; 61 Looper.prepare(); 62 mLooper = Looper.myLooper(); 64 Looper.loop(); 87 private Looper mLooper;
|
TestHandlerThread.java | 20 import android.os.Looper; 28 private Looper mLooper; 61 public Looper getLooper() { 82 Looper.prepare(); 83 mLooper = Looper.myLooper(); 85 Looper.loop();
|
/frameworks/base/core/java/android/webkit/ |
WebSyncManager.java | 21 import android.os.Looper; 80 // prepare Looper for sync handler 81 Looper.prepare(); 90 Looper.loop();
|
/cts/tests/src/android/app/cts/ |
TestedActivity.java | 21 import android.os.Looper; 38 Looper.myLooper(); 39 Looper.myQueue().addIdleHandler(new Idler());
|
TestedScreen.java | 23 import android.os.Looper; 65 Looper.myLooper(); 66 Looper.myQueue().addIdleHandler(new Idler()); 69 Looper.myLooper(); 70 Looper.myQueue().addIdleHandler(new Idler());
|
/cts/tests/tests/os/src/android/os/cts/ |
LooperTest.java | 20 import android.os.Looper; 32 @TestTargetClass(Looper.class) 39 private Looper mLooper = null; 51 Looper.myLooper().dump(printer, prefix); 60 Looper looper = Looper.getMainLooper(); local 61 assertNotNull(looper); 76 Looper.loop(); 89 assertNull(Looper.myLooper()) [all...] |
TokenWatcherTest.java | 25 import android.os.Looper; 52 private Looper mLooper; 58 Looper.prepare(); 59 mLooper = Looper.myLooper(); 61 Looper.loop();
|
/cts/tests/tests/media/src/android/media/cts/ |
PresetReverbTest.java | 23 import android.os.Looper; 44 private Looper mLooper = null; 243 Log.e(TAG, "Looper creation: wait was interrupted."); 275 Log.e(TAG, "Looper creation: wait was interrupted."); 310 Log.e(TAG, "Looper creation: wait was interrupted."); 360 // Initializes the reverb listener looper 379 // Set up a looper 380 Looper.prepare(); 382 // Save the looper so that we can terminate this thread 384 mLooper = Looper.myLooper() [all...] |
VisualizerTest.java | 23 import android.os.Looper; 42 private Looper mLooper = null; 250 Log.e(TAG, "Looper creation: wait was interrupted."); 356 // Set up a looper to be used by mEffect. 357 Looper.prepare(); 359 // Save the looper so that we can terminate this thread 361 mLooper = Looper.myLooper(); 398 Looper.loop(); // Blocks forever until Looper.quit() is called. 403 * Terminates the listener looper thread [all...] |
BassBoostTest.java | 23 import android.os.Looper; 46 private Looper mLooper = null; 297 Log.e(TAG, "Looper creation: wait was interrupted."); 329 Log.e(TAG, "Looper creation: wait was interrupted."); 364 Log.e(TAG, "Looper creation: wait was interrupted."); 414 // Initializes the bassboot listener looper 433 // Set up a looper 434 Looper.prepare(); 436 // Save the looper so that we can terminate this thread 438 mLooper = Looper.myLooper() [all...] |
EnvReverbTest.java | 23 import android.os.Looper; 46 private Looper mLooper = null; 489 Log.e(TAG, "Looper creation: wait was interrupted."); 521 Log.e(TAG, "Looper creation: wait was interrupted."); 556 Log.e(TAG, "Looper creation: wait was interrupted."); 606 // Initializes the reverb listener looper 625 // Set up a looper 626 Looper.prepare(); 628 // Save the looper so that we can terminate this thread 630 mLooper = Looper.myLooper() [all...] |
EqualizerTest.java | 23 import android.os.Looper; 49 private Looper mLooper = null; 391 Log.e(TAG, "Looper creation: wait was interrupted."); 423 Log.e(TAG, "Looper creation: wait was interrupted."); 458 Log.e(TAG, "Looper creation: wait was interrupted."); 508 // Initializes the equalizer listener looper 527 // Set up a looper 528 Looper.prepare(); 530 // Save the looper so that we can terminate this thread 532 mLooper = Looper.myLooper() [all...] |
VirtualizerTest.java | 23 import android.os.Looper; 46 private Looper mLooper = null; 291 Log.e(TAG, "Looper creation: wait was interrupted."); 323 Log.e(TAG, "Looper creation: wait was interrupted."); 358 Log.e(TAG, "Looper creation: wait was interrupted."); 408 // Initializes the virtualizer listener looper 427 // Set up a looper 428 Looper.prepare(); 430 // Save the looper so that we can terminate this thread 432 mLooper = Looper.myLooper() [all...] |
/frameworks/base/include/utils/ |
Looper.h | 25 #include <android/looper.h> 40 * Declare a concrete type for the NDK's looper forward declaration. 51 * A looper can be associated with a thread although there is no requirement that it must be. 53 class Looper : public ALooper, public RefBase { 55 virtual ~Looper(); 59 * Creates a looper. 61 * If allowNonCallbaks is true, the looper will allow file descriptors to be 65 Looper(bool allowNonCallbacks); 68 * Returns whether this looper instance allows the registration of file descriptors 123 * Adds a new file descriptor to be polled by the looper [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
PendingIntentTest.java | 25 import android.os.Looper; 46 private Looper mLooper; 66 Looper.prepare(); 67 mLooper = Looper.myLooper(); 69 Looper.loop();
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
CameraTest.java | 29 import android.os.Looper; 57 private Looper mLooper = null; 73 * Initializes the message looper so that the Camera object can 78 Log.v(TAG, "start looper"); 82 // Set up a looper to be used by camera. 83 Looper.prepare(); 85 // Save the looper so that we can terminate this thread 87 mLooper = Looper.myLooper(); 90 Looper.loop(); // Blocks forever until Looper.quit() is called [all...] |
MediaVisualizerTest.java | 28 import android.os.Looper; 54 private Looper mLooper = null; 300 Log.e(TAG, "Looper creation: wait was interrupted."); 448 // Set up a looper to be used by mEffect. 449 Looper.prepare(); 451 // Save the looper so that we can terminate this thread 453 mLooper = Looper.myLooper(); 490 Looper.loop(); // Blocks forever until Looper.quit() is called. 495 * Terminates the listener looper thread [all...] |
/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...] |
/frameworks/base/services/java/com/android/server/ |
NotificationPlayer.java | 25 import android.os.Looper; 64 private Looper mLooper; 70 * be created with a looper running so its event handler is not null. 80 Looper.prepare(); 81 mLooper = Looper.myLooper(); 114 Looper.loop(); 213 // if there are no more sounds to play, end the Looper to listen for media completion
|
/packages/apps/Browser/tests/src/com/android/browser/ |
JNIBindingsTestApp.java | 22 import android.os.Looper; 79 Looper.prepare(); 86 Looper.myLooper().quit(); 93 Looper.loop();
|
/packages/apps/Phone/src/com/android/phone/ |
Ringer.java | 26 import android.os.Looper; 231 private Looper mLooper; 246 public Looper getLooper() { 252 Looper.prepare(); 253 mLooper = Looper.myLooper(); 256 Looper.loop();
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerService.java | 36 import android.os.Looper; 52 private volatile Looper mServiceLooper; 183 Looper.prepare(); 185 mServiceLooper = Looper.myLooper(); 188 Looper.loop();
|