HomeSort by relevance Sort by last modified time
    Searched defs:Looper (Results 26 - 50 of 70) sorted by null

12 3

  /packages/apps/Phone/src/com/android/phone/
Ringer.java 26 import android.os.Looper;
250 private Looper mLooper;
265 public Looper getLooper() {
271 Looper.prepare();
272 mLooper = Looper.myLooper();
275 Looper.loop();
PhoneInterfaceManager.java 28 import android.os.Looper;
179 if (Looper.myLooper() == mMainThreadHandler.getLooper()) {
461 Looper.prepare();
481 Looper.loop();
  /packages/providers/MediaProvider/src/com/android/providers/media/
MediaScannerService.java 35 import android.os.Looper;
53 private volatile Looper mServiceLooper;
178 Looper.prepare();
180 mServiceLooper = Looper.myLooper();
183 Looper.loop();
  /frameworks/base/core/tests/coretests/src/android/webkit/
AccessibilityInjectorTest.java 25 import android.os.Looper;
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
MediaVisualizerTest.java 28 import android.os.Looper;
58 private Looper mLooper = null;
304 Log.e(TAG, "Looper creation: wait was interrupted.");
452 // Set up a looper to be used by mEffect.
453 Looper.prepare();
455 // Save the looper so that we can terminate this thread
457 mLooper = Looper.myLooper();
494 Looper.loop(); // Blocks forever until Looper.quit() is called.
499 * Terminates the listener looper thread
    [all...]
MediaAudioEffectTest.java 32 import android.os.Looper;
56 private Looper mLooper = null;
357 Log.e(TAG, "Looper creation: wait was interrupted.");
    [all...]
  /external/qemu/android/
looper.h 43 /* A Looper is an abstraction for an event loop, which can
49 * Once you have a Looper pointer, you can register "watchers" that
63 * Looper methods from them (e.g. looper_now(), looper_forceQuit(), etc..)
65 * You can create a new Looper by calling looper_newGeneric(). This provides
68 * For the QEMU core, you can grab a Looper pointer by calling
72 typedef struct Looper Looper;
74 /* Create a new generic looper that can be used in any context / thread. */
75 Looper* looper_newGeneric(void);
77 /* Create a new looper which is implemented on top of the QEMU main even
    [all...]
  /frameworks/base/core/java/android/os/
Looper.java 32 * <p>This is a typical example of the implementation of a Looper thread,
34 * initial Handler to communicate with the Looper.
41 * Looper.prepare();
49 * Looper.loop();
53 public class Looper {
54 private static final String TAG = "Looper";
57 static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>();
64 private static Looper mMainLooper = null; // guarded by Looper.clas
    [all...]
  /frameworks/base/include/utils/
Looper.h 25 #include <android/looper.h>
40 * Declare a concrete type for the NDK's looper forward declaration.
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 can be associated with a thread although there is no requirement that it must be.
98 class Looper : public ALooper, public RefBase {
100 virtual ~Looper();
104 * Creates a looper
    [all...]
  /frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/
CallerInfoTest.java 28 import android.os.Looper;
162 * its own Looper. We cannot use the main Looper because on the
164 * it. Also there is not way to inject a Looper instance in the
165 * query, so we have to use a thread with its own looper.
169 private Looper mLooper;
187 Looper.prepare();
188 mLooper = Looper.myLooper();
190 // The query will pick the thread local looper we've just prepared.
195 // Quit the Looper on the 1st callbac
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
RenderAction.java 36 import android.os.Looper;
231 InputMethodManager.getInstance(Looper.myLooper());
  /cts/tests/tests/media/src/android/media/cts/
AudioEffectTest.java 33 import android.os.Looper;
61 private Looper mLooper = null;
378 fail("Looper creation: wait was interrupted.");
432 fail("Looper creation: wait was interrupted.");
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
CodecTest.java 31 import android.os.Looper;
55 private static Looper mLooper = null;
267 Log.v(TAG, "looper was interrupted.");
303 Log.v(TAG, "looper was interrupted.");
664 * Initializes the message looper so that the mediaPlayer object can
668 Log.v(TAG, "start looper");
672 // Set up a looper to be used by camera.
673 Looper.prepare();
675 // Save the looper so that we can terminate this thread
677 mLooper = Looper.myLooper();
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
MediaPlayerPerformance.java 31 import android.os.Looper;
77 private Looper mLooper = null;
113 Looper.prepare();
115 mLooper = Looper.myLooper();
118 Looper.loop();
130 // Looper.quit() is asynchronous. The looper may still has some
134 // the method. So we need to join the looper thread here.
  /frameworks/base/services/java/com/android/server/
SystemServer.java 31 import android.os.Looper;
82 Looper.prepare();
744 Looper.loop();
    [all...]
  /packages/apps/Email/src/com/android/email/
NotificationController.java 35 import android.os.Looper;
    [all...]
  /packages/apps/Stk/src/com/android/stk/
StkAppService.java 29 import android.os.Looper;
61 private volatile Looper mServiceLooper;
208 Looper.prepare();
210 mServiceLooper = Looper.myLooper();
213 Looper.loop();
  /frameworks/base/libs/utils/
Looper.cpp 4 // A looper implementation based on epoll().
6 #define LOG_TAG "Looper"
17 #include <utils/Looper.h>
41 // --- Looper ---
54 Looper::Looper(bool allowNonCallbacks) :
117 Looper::~Looper() {
125 void Looper::initTLSKey() {
130 void Looper::threadDestructor(void *st)
160 sp<Looper> looper = Looper::getForThread(); local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
Bridge.java 42 import android.os.Looper;
418 // we need to make sure the Looper has been initialized for this thread.
420 if (Looper.myLooper() == null) {
421 Looper.prepare();
432 // clean up the looper
  /cts/tests/tests/hardware/src/android/hardware/cts/
CameraGLTest.java 32 import android.os.Looper;
83 private Looper mLooper = null;
125 * Initializes the message looper so that the Camera object can
134 // Set up a looper to be used by camera.
135 Looper.prepare();
136 // Save the looper so that we can terminate this thread
138 mLooper = Looper.myLooper();
145 Looper.loop(); // Blocks forever until Looper.quit() is called.
150 Log.v(TAG, "start waiting for looper");
    [all...]
  /packages/apps/Music/src/com/android/music/
MediaPlaybackActivity.java 44 import android.os.Looper;
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
AsyncQueryHandlerTest.java 32 import android.os.Looper;
368 args = {android.os.Looper.class}
371 + "AsyncQueryHandlerWrapper#createHandler(Looper) when param looper is null")
374 Handler result = wrapper.createHandler(Looper.myLooper());
376 assertSame(Looper.myLooper(), result.getLooper());
380 fail("Should throw NullPointerException if param looper is null");
433 protected Handler createHandler(Looper looper) {
434 return super.createHandler(looper);
    [all...]
  /cts/tests/tests/os/src/android/os/cts/
HandlerTest.java 21 import android.os.Looper;
63 args = {android.os.Looper.class}
75 args = {Looper.class, Callback.class}
93 new Handler(Looper.myLooper());
95 new Handler(Looper.myLooper(), cb);
264 Looper looper = Looper.myLooper(); local
265 mHandler = new Handler(looper);
266 assertSame(looper, mHandler.getLooper())
    [all...]
  /frameworks/base/core/java/android/webkit/
HTML5VideoViewProxy.java 31 import android.os.Looper;
528 super(Looper.getMainLooper());
  /frameworks/base/test-runner/src/android/test/
InstrumentationTestRunner.java 26 import android.os.Looper;
508 * Initialize the current thread as a looper.
513 Looper.prepare();
    [all...]

Completed in 3414 milliseconds

12 3