/frameworks/base/native/android/ |
looper.cpp | 20 #include <android/looper.h> 21 #include <utils/Looper.h> 24 using android::Looper; 29 return Looper::getForThread().get(); 33 return Looper::prepare(opts).get(); 36 void ALooper_acquire(ALooper* looper) { 37 static_cast<Looper*>(looper)->incStrong((void*)ALooper_acquire); 40 void ALooper_release(ALooper* looper) { 41 static_cast<Looper*>(looper)->decStrong((void*)ALooper_acquire) 45 sp<Looper> looper = Looper::getForThread(); local 56 sp<Looper> looper = Looper::getForThread(); local [all...] |
/external/qemu/android/protocol/ |
ui-commands-impl.h | 17 #include "android/looper.h" 33 extern int uiCmdImpl_create(SockAddress* console_socket, Looper* looper);
|
fb-updates-impl.h | 21 #include "android/looper.h" 23 #include "android/looper.h" 39 Looper* looper);
|
/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...] |
looper-generic.c | 17 #include "android/looper.h" 40 GLooper* looper; member in struct:GLoopTimer 44 static Duration glooper_now(Looper* ll); 46 static void glooper_addActiveTimer(GLooper* looper, GLoopTimer* timer); 47 static void glooper_delActiveTimer(GLooper* looper, GLoopTimer* timer); 48 static void glooper_addTimer(GLooper* looper, GLoopTimer* timer); 49 static void glooper_delTimer(GLooper* looper, GLoopTimer* timer); 56 glooper_delActiveTimer(tt->looper, tt); 75 glooper_addActiveTimer(tt->looper, tt); 86 glooptimer_startAbsolute(tt, timeout_ms + glooper_now((Looper*)tt->looper)) 152 GLooper* looper; member in struct:GLoopIo 264 Looper looper; member in struct:GLooper 358 GLooper* looper = (GLooper*)ll; local 365 GLooper* looper = (GLooper*) ll; local 467 GLooper* looper = (GLooper*)ll; local 483 GLooper* looper; local [all...] |
looper-qemu.c | 13 /* Implement the Looper interface on top of the QEMU main event loop */ 15 #include <android/looper.h> 82 qlooper_timer_init(Looper* looper, 132 QLooper* looper; member in struct:QLoopIo 137 static void qlooper_addIo(QLooper* looper, QLoopIo* io); 138 static void qlooper_delIo(QLooper* looper, QLoopIo* io); 150 io->looper = qlooper; 165 qlooper_delPendingIo(io->looper, io); 174 qlooper_addPendingIo(io->looper, io) 289 Looper looper; member in struct:QLooper 352 QLooper* looper = opaque; local 396 QLooper* looper = (QLooper*)ll; local 409 QLooper* looper = qemu_mallocz(sizeof(*looper)); local [all...] |
/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 Looper mLooper; 46 * setup before Looper loops. 54 Looper.prepare(); 56 mLooper = Looper.myLooper(); 61 Looper.loop(); 66 * This method returns the Looper associated with this thread. If this thread not been started 68 * has been started, this method will block until the looper has been initialized. 69 * @return The looper 108 Looper looper = getLooper(); local 135 Looper looper = getLooper(); local [all...] |
/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...] |
/frameworks/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...] |
/prebuilts/ndk/5/platforms/android-9/arch-arm/usr/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...] |
/prebuilts/ndk/6/platforms/android-9/arch-arm/usr/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...] |
/prebuilts/ndk/6/platforms/android-9/arch-x86/usr/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...] |
/prebuilts/ndk/7/platforms/android-14/arch-arm/usr/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...] |
/prebuilts/ndk/7/platforms/android-14/arch-x86/usr/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...] |
/prebuilts/ndk/7/platforms/android-9/arch-arm/usr/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...] |
/prebuilts/ndk/7/platforms/android-9/arch-x86/usr/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...] |
/prebuilts/ndk/8/platforms/android-14/arch-arm/usr/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...] |
/prebuilts/ndk/8/platforms/android-14/arch-mips/usr/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...] |
/prebuilts/ndk/8/platforms/android-14/arch-x86/usr/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...] |
/prebuilts/ndk/8/platforms/android-9/arch-arm/usr/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...] |
/prebuilts/ndk/8/platforms/android-9/arch-mips/usr/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...] |
/prebuilts/ndk/8/platforms/android-9/arch-x86/usr/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...] |
/prebuilts/ndk/9/platforms/android-14/arch-arm/usr/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...] |
/prebuilts/ndk/9/platforms/android-14/arch-mips/usr/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...] |