HomeSort by relevance Sort by last modified time
    Searched defs:looper (Results 1 - 25 of 173) sorted by null

1 2 3 4 5 6 7

  /frameworks/base/core/java/android/os/
HandlerThread.java 23 * Handy class for starting a new thread that has a looper. The looper can then be
29 Looper mLooper;
50 * setup before Looper loops.
58 Looper.prepare();
60 mLooper = Looper.myLooper();
65 Looper.loop();
70 * This method returns the Looper associated with this thread. If this thread not been started
72 * has been started, this method will block until the looper has been initialized.
73 * @return The looper
124 Looper looper = getLooper(); local
151 Looper looper = getLooper(); local
    [all...]
  /packages/services/Car/libvehiclemonitor/native/
HandlerThread.cpp 30 sp<Looper> HandlerThread::getLooper() {
46 sp<Looper> looper = getLooper(); local
50 looper->wake();
56 mLooper = Looper::prepare(0);
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowHandlerThread.java 8 import android.os.Looper;
15 private Looper looper; field in class:ShadowHandlerThread
30 Looper.prepare();
32 looper = Looper.myLooper();
36 Looper.loop();
40 public Looper getLooper() {
45 // If the thread has been started, wait until the looper has been created.
47 while (thread.isAlive() && looper == null)
59 Looper looper = getLooper(); local
    [all...]
ShadowHandler.java 4 import android.os.Looper;
29 private Looper looper = Looper.myLooper(); field in class:ShadowHandler
34 this.looper = Looper.myLooper();
37 public void __constructor__(Looper looper) {
38 this.looper = looper;
    [all...]
  /cts/hostsidetests/incident/src/com/android/server/cts/
PowerIncidentTest.java 67 final LooperProto looper = dump.getLooper(); local
68 assertNotNull(looper.getThreadName());
69 assertTrue(looper.getThreadId() > 0);
70 assertTrue(looper.getIdentityHashCode() > 0);
  /frameworks/av/cmds/stagefright/
record.cpp 223 MediaCodecSource::Create(looper, format, decoder);
319 sp<ALooper> looper = new ALooper; local
320 looper->setName("record");
321 looper->start();
324 MediaCodecSource::Create(looper, encMeta, audioSource);
audioloop.cpp 111 sp<ALooper> looper = new ALooper; local
112 looper->setName("audioloop");
113 looper->start();
115 sp<IMediaSource> encoder = MediaCodecSource::Create(looper, meta, source);
  /frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
AHandler.h 40 sp<ALooper> looper() const { function in struct:android::AHandler
63 inline void setID(ALooper::handler_id id, const wp<ALooper> &looper) {
65 mLooper = looper;
  /frameworks/base/native/android/
looper.cpp 20 #include <android/looper.h>
21 #include <utils/Looper.h>
24 using android::Looper;
28 static inline Looper* ALooper_to_Looper(ALooper* alooper) {
29 return reinterpret_cast<Looper*>(alooper);
32 static inline ALooper* Looper_to_ALooper(Looper* looper) {
33 return reinterpret_cast<ALooper*>(looper);
37 return Looper_to_ALooper(Looper::getForThread().get());
41 return Looper_to_ALooper(Looper::prepare(opts).get())
53 sp<Looper> looper = Looper::getForThread(); local
64 sp<Looper> looper = Looper::getForThread(); local
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
LooperCompatUtils.java 19 import android.os.Looper;
24 * Helper to call Looper#quitSafely, which was introduced in API
33 Looper.class, "quitSafely");
35 public static void quitSafely(final Looper looper) {
37 CompatUtils.invoke(looper, null /* default return value */, METHOD_quitSafely);
39 looper.quit();
  /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);
LooperTest.java 5 import android.os.Looper;
19 assertSame(Looper.myLooper(), Looper.getMainLooper());
41 Looper mainLooper = Looper.getMainLooper();
42 Looper thisThreadsLooper = Looper.myLooper();
44 assertSame("junit test's thread should use the main looper", mainLooper, thisThreadsLooper);
46 final Looper[] thread1Looper = new Looper[1]
71 Looper looper = ht.getLooper(); local
90 Looper looper = ht.getLooper(); local
    [all...]
  /device/google/wahoo/folio_daemon/
main.cpp 22 #include <android/looper.h>
44 ALooper *looper; local
113 looper = ALooper_forThread();
114 if (looper == nullptr) {
115 looper = ALooper_prepare(ALOOPER_PREPARE_ALLOW_NON_CALLBACKS);
118 eventQueue = ASensorManager_createEventQueue(sensorManager, looper, 0, NULL,
  /frameworks/av/media/libstagefright/foundation/
ALooperRoster.cpp 37 const sp<ALooper> &looper, const sp<AHandler> &handler) {
46 info.mLooper = looper;
51 handler->setID(handlerID, looper);
86 sp<ALooper> looper = info.mLooper.promote(); local
87 if (looper == NULL) {
91 // At this point 'looper' might be the only sp<> keeping
97 activeLoopers.add(looper);
139 sp<ALooper> looper = info.mLooper.promote(); local
140 if (looper != NULL) {
141 s.append(looper->getName())
    [all...]
  /frameworks/av/media/libstagefright/rtsp/
rtp_test.cpp 64 sp<ALooper> looper = new ALooper; local
71 looper->registerHandler(rtp_pusher);
74 looper->registerHandler(rtcp_pusher);
78 looper->registerHandler(session);
174 looper->start(false /* runOnCallingThread */);
218 looper->stop();
  /frameworks/base/services/core/java/com/android/server/
UiThread.java 20 import android.os.Looper;
49 final Looper looper = sInstance.getLooper(); local
50 looper.setTraceTag(Trace.TRACE_TAG_ACTIVITY_MANAGER);
51 looper.setSlowDispatchThresholdMs(SLOW_DISPATCH_THRESHOLD_MS);
  /frameworks/native/libs/sensor/include/sensor/
SensorEventQueue.h 36 ALooper* looper; member in struct:ASensorEventQueue
45 class Looper;
96 sp<Looper> getLooper() const;
100 mutable sp<Looper> mLooper;
  /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/libs/hwui/tests/unit/
SkiaBehaviorTests.cpp 110 sk_sp<SkDrawLooper> looper = SkBlurDrawLooper::Make(SK_ColorRED, 5.0f, 3.0f, 4.0f); local
113 bool success = looper->asABlurShadow(&blur);
  /frameworks/base/media/java/android/media/
AudioPortEventHandler.java 20 import android.os.Looper;
54 // find the looper for our new event handler
55 Looper looper = Looper.getMainLooper(); local
57 if (looper != null) {
58 mHandler = new Handler(looper) {
  /frameworks/native/services/displayservice/
DisplayEventReceiver.cpp 32 sp<Looper> getLooper() {
33 static sp<Looper> looper = []() { local
34 sp<Looper> looper = new Looper(false /* allowNonCallbacks */);
37 int pollResult = looper->pollAll(-1 /* timeout */);
38 LOG(ERROR) << "Looper::pollAll returns unexpected " << pollResult;
41 return looper;
44 return looper;
    [all...]
  /cts/tests/tests/database/src/android/database/cts/
ContentObserverTest.java 24 import android.os.Looper;
50 Looper looper = ht.getLooper(); local
51 Handler handler = new Handler(looper);
69 looper.quit();
94 Looper looper = ht.getLooper(); local
95 Handler handler = new Handler(looper);
115 looper.quit();
  /cts/tests/tests/os/src/android/os/cts/
HandlerThreadTest.java 21 import android.os.Looper;
48 Looper looper = ht.getLooper(); local
49 assertNotNull(looper);
50 assertSame(ht.getMyLooper(), looper); local
64 private Looper mLooper;
97 public Looper getMyLooper() {
  /device/google/marlin/camera/QCamera2/util/
QCameraDisplay.cpp 83 * waits on the looper for the next vsync.
93 android::sp<Looper> looper; local
95 looper = new android::Looper(false);
101 looper->addFd(pQCameraDisplay->mDisplayEventReceiver.getFd(), 0, ALOOPER_EVENT_INPUT,
106 looper->pollOnce(CAMERA_VSYNC_WAIT_MS);
  /external/skia/tools/viewer/sk_app/android/
surface_glue_android.cpp 18 #include <android/looper.h>
178 ALooper* looper = ALooper_prepare(ALOOPER_PREPARE_ALLOW_NON_CALLBACKS); local
180 ALooper_addFd(looper, skiaAndroidApp->fPipes[0], LOOPER_ID_MESSAGEPIPE, ALOOPER_EVENT_INPUT,

Completed in 2120 milliseconds

1 2 3 4 5 6 7