/frameworks/base/native/android/ |
looper.cpp | 20 #include <android/looper.h> 21 #include <utils/Looper.h> 23 using android::Looper; 27 return Looper::getForThread().get(); 31 return Looper::prepare(opts).get(); 34 void ALooper_acquire(ALooper* looper) { 35 static_cast<Looper*>(looper)->incStrong((void*)ALooper_acquire); 38 void ALooper_release(ALooper* looper) { 39 static_cast<Looper*>(looper)->decStrong((void*)ALooper_acquire) 43 sp<Looper> looper = Looper::getForThread(); local 53 sp<Looper> looper = Looper::getForThread(); local [all...] |
sensor.cpp | 20 #include <android/looper.h> 24 #include <utils/Looper.h> 63 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data) 68 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data); 69 queue->looper = looper; 79 ALooper_removeFd(queue->looper, queue->getFd());
|
Android.mk | 12 looper.cpp \
|
/frameworks/base/core/java/com/android/internal/view/ |
WindowManagerPolicyThread.java | 19 import android.os.Looper; 27 static Looper mLooper; 29 public static void set(Thread thread, Looper looper) { 31 mLooper = looper; 38 public static Looper getLooper() {
|
/development/ndk/platforms/android-9/include/android/ |
looper.h | 28 * A looper is the state tracking an event loop for a thread. 42 * Returns the looper associated with the calling thread, or NULL if 49 * Option for ALooper_prepare: this looper will accept calls to 59 * Prepares a looper associated with the calling thread, and returns it. 60 * If the thread already has a looper, it is returned. Otherwise, a new 99 void ALooper_acquire(ALooper* looper); 104 void ALooper_release(ALooper* looper); 107 * Flags for file descriptor events that a looper can monitor. 125 * The looper always sends notifications about errors; it is not necessary 134 * The looper always sends notifications about hangups; it is not necessar [all...] |
sensor.h | 45 #include <android/looper.h> 164 * Creates a new sensor event queue and associate it with a looper. 167 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
|
/frameworks/base/native/include/android/ |
looper.h | 28 * A looper is the state tracking an event loop for a thread. 42 * Returns the looper associated with the calling thread, or NULL if 49 * Option for ALooper_prepare: this looper will accept calls to 59 * Prepares a looper associated with the calling thread, and returns it. 60 * If the thread already has a looper, it is returned. Otherwise, a new 99 void ALooper_acquire(ALooper* looper); 104 void ALooper_release(ALooper* looper); 107 * Flags for file descriptor events that a looper can monitor. 125 * The looper always sends notifications about errors; it is not necessary 134 * The looper always sends notifications about hangups; it is not necessar [all...] |
/external/qemu/ |
aio-android.c | 122 IoLooper* looper; local 127 looper = iolooper_new(); 132 iolooper_reset(looper); 145 iolooper_add_read(looper, node->fd); 148 iolooper_add_write(looper, node->fd); 155 ret = iolooper_wait(looper, -1); 168 iolooper_is_read(looper, node->fd) && 173 iolooper_is_write(looper, node->fd) && 191 iolooper_free(looper);
|
/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...] |
/frameworks/base/media/libstagefright/foundation/ |
ALooperRoster.cpp | 34 const sp<ALooper> looper, const sp<AHandler> &handler) { 43 info.mLooper = looper; 86 sp<ALooper> looper = info.mLooper.promote(); local 88 if (looper == NULL) { 97 looper->post(msg, delayUs); 138 sp<ALooper> looper = mHandlers.valueAt(index).mLooper.promote(); local 140 if (looper == NULL) { 145 return looper;
|
AHandler.cpp | 27 sp<ALooper> AHandler::looper() { function in class:android::AHandler
|
/frameworks/base/include/media/stagefright/foundation/ |
AHandler.h | 37 sp<ALooper> looper();
|
ALooperRoster.h | 30 const sp<ALooper> looper, const sp<AHandler> &handler);
|
/external/webkit/WebCore/platform/haiku/ |
SharedTimerHaiku.cpp | 31 #include <Looper.h> 73 BLooper* looper = BLooper::LooperForThread(find_thread(0)); local 77 BAutolock lock(looper); 79 looper->AddCommonFilter(timer); 92 BMessageRunner::StartSending(Looper(), new BMessage(FIRE_MESSAGE), intervalInMicroSeconds, 1);
|
/frameworks/base/media/java/android/media/ |
SoundPool.java | 30 import android.os.Looper; 146 Looper looper; local 147 if ((looper = Looper.myLooper()) != null) { 148 mEventHandler = new EventHandler(this, looper); 149 } else if ((looper = Looper.getMainLooper()) != null) { 150 mEventHandler = new EventHandler(this, looper); 438 public EventHandler(SoundPool soundPool, Looper looper) [all...] |
MediaRecorder.java | 22 import android.os.Looper; 84 Looper looper; local 85 if ((looper = Looper.myLooper()) != null) { 86 mEventHandler = new EventHandler(this, looper); 87 } else if ((looper = Looper.getMainLooper()) != null) { 88 mEventHandler = new EventHandler(this, looper); 669 public EventHandler(MediaRecorder mr, Looper looper) [all...] |
/frameworks/base/media/libstagefright/rtsp/ |
rtp_test.cpp | 66 sp<ALooper> looper = new ALooper; local 73 looper->registerHandler(rtp_pusher); 76 looper->registerHandler(rtcp_pusher); 80 looper->registerHandler(session); 176 looper->start(false /* runOnCallingThread */); 227 looper->stop();
|
/cts/tests/tests/os/src/android/os/cts/ |
HandlerThreadTest.java | 21 import android.os.Looper; 93 Looper looper = ht.getLooper(); local 94 assertNotNull(looper); 95 assertSame(ht.getMyLooper(), looper); local 109 private Looper mLooper; 142 public Looper getMyLooper() {
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
GSMTestHandler.java | 23 import android.os.Looper; 78 Looper looper = getLooper(); local 79 if (looper != null) looper.quit();
|
/frameworks/base/libs/gui/ |
SensorEventQueue.cpp | 24 #include <utils/Looper.h> 88 sp<Looper> SensorEventQueue::getLooper() const 92 mLooper = new Looper(true); 101 sp<Looper> looper(getLooper()); 105 result = looper->pollOnce(-1); 118 sp<Looper> looper(getLooper()); 119 looper->wake();
|
/development/ndk/sources/android/native_app_glue/ |
android_native_app_glue.h | 26 #include <android/looper.h> 143 ALooper* looper; member in struct:android_app 189 * Looper data ID of commands coming from the app's main thread, which 198 * Looper data ID of events coming from the AInputQueue of the
|
/frameworks/base/core/java/android/app/ |
IntentService.java | 23 import android.os.Looper; 47 private volatile Looper mServiceLooper; 53 public ServiceHandler(Looper looper) { 54 super(looper);
|
/frameworks/base/media/java/android/media/audiofx/ |
Visualizer.java | 23 import android.os.Looper; 410 Looper looper; local 411 if ((looper = Looper.myLooper()) != null) { 412 mNativeEventHandler = new NativeEventHandler(this, looper); 413 } else if ((looper = Looper.getMainLooper()) != null) { 414 mNativeEventHandler = new NativeEventHandler(this, looper); 431 public NativeEventHandler(Visualizer v, Looper looper) [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
ContentObserverTest.java | 28 import android.os.Looper; 71 Looper looper = ht.getLooper(); local 72 Handler handler = new Handler(looper); 90 looper.quit();
|
/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...] |