/prebuilts/ndk/9/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/9/platforms/android-18/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-18/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/9/platforms/android-18/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-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/9/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/9/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...] |
/external/robolectric/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...] |
ShadowLooper.java | 3 import android.os.Looper; 12 * Shadow for {@code Looper} that enqueues posted {@link Runnable}s to be run (on this thread) later. {@code Runnable}s 18 @Implements(Looper.class) 20 private static ThreadLocal<Looper> looperForThread = makeThreadLocalLoopers(); 26 private static synchronized ThreadLocal<Looper> makeThreadLocalLoopers() { 27 return new ThreadLocal<Looper>() { 29 protected Looper initialValue() { 30 return Robolectric.Reflection.newInstanceOf(Looper.class); 40 public static Looper getMainLooper() { 46 final ShadowLooper looper = shadowOf(myLooper()) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
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...] |
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);
|
/external/qemu/android/protocol/ |
attach-ui-proxy.c | 20 #include "android/looper.h" 35 /* Looper used to communicate with the UI. */ 36 Looper* looper; member in struct:AttachUIProxy 92 _attachUiProxy.looper = looper_newCore(); 93 loopIo_init(&_attachUiProxy.io, _attachUiProxy.looper, _attachUiProxy.sock, 103 if (_attachUiProxy.looper != NULL) { 106 looper_free(_attachUiProxy.looper); 107 _attachUiProxy.looper = NULL;
|
ui-commands-proxy.c | 20 #include "android/looper.h" 33 /* Looper associated with this descriptor. */ 34 Looper* looper; member in struct:UICmdProxy 165 _uiCmdProxy.looper = looper_newCore(); 166 loopIo_init(&_uiCmdProxy.io, _uiCmdProxy.looper, _uiCmdProxy.sock, 193 if (_uiCmdProxy.looper != NULL) { 196 looper_free(_uiCmdProxy.looper); 197 _uiCmdProxy.looper = NULL;
|
user-events-impl.c | 21 #include "android/looper.h" 48 /* Looper used to communicate user events. */ 49 Looper* looper; member in struct:UserEventsImpl 188 _UserEventsImpl.looper = looper_newCore(); 189 loopIo_init(&_UserEventsImpl.io, _UserEventsImpl.looper, _UserEventsImpl.sock, 200 if (_UserEventsImpl.looper != NULL) { 203 looper_free(_UserEventsImpl.looper); 204 _UserEventsImpl.looper = NULL;
|
/external/skia/tests/ |
LayerDrawLooperTest.cpp | 38 SkAutoTUnref<SkLayerDrawLooper> looper(SkNEW(SkLayerDrawLooper)); 42 (void)looper->addLayer(layerInfo); 47 SkPaint* layerPaint = looper->addLayer(layerInfo); 53 looper->init(&canvas); 56 REPORTER_ASSERT(reporter, looper->next(&canvas, &paint)); 64 REPORTER_ASSERT(reporter, looper->next(&canvas, &paint)); 71 REPORTER_ASSERT(reporter, !looper->next(&canvas, &paint)); 75 SkAutoTUnref<SkLayerDrawLooper> looper(SkNEW(SkLayerDrawLooper)); 79 (void)looper->addLayerOnTop(layerInfo); 84 SkPaint* layerPaint = looper->addLayerOnTop(layerInfo) [all...] |
/frameworks/base/location/java/android/location/ |
CountryDetector.java | 22 import android.os.Looper; 57 * looper once the country changed and detected. 65 public ListenerTransport(CountryListener listener, Looper looper) { 67 if (looper != null) { 68 mHandler = new Handler(looper); 118 * @param looper a Looper object whose message queue will be used to 119 * implement the callback mechanism. If looper is null then the 122 public void addCountryListener(CountryListener listener, Looper looper) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
DelayedTaskHandler.java | 20 import android.os.Looper; 38 public DelayedTaskHandler(Looper looper, int defaultDelayMs) { 39 super(looper);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
StaticInnerHandlerWrapper.java | 20 import android.os.Looper; 28 this(outerInstance, Looper.myLooper()); 31 public StaticInnerHandlerWrapper(final T outerInstance, final Looper looper) { 32 super(looper);
|
/frameworks/av/media/libstagefright/foundation/ |
AHandler.cpp | 27 sp<ALooper> AHandler::looper() { function in class:android::AHandler
|
ALooperRoster.cpp | 35 const sp<ALooper> looper, const sp<AHandler> &handler) { 44 info.mLooper = looper; 80 sp<ALooper> looper = info.mLooper.promote(); local 81 if (looper == NULL) { 106 sp<ALooper> looper = info.mLooper.promote(); local 108 if (looper == NULL) { 117 looper->post(msg, delayUs); 160 sp<ALooper> looper = mHandlers.valueAt(index).mLooper.promote(); local 162 if (looper == NULL) { 167 return looper; [all...] |
/sdk/emulator/opengl/tests/event_injector/ |
emulator-console.c | 73 IoLooper* looper; member in struct:EmulatorConsole 133 iolooper_del_write(con->looper, con->fd); 141 iolooper_add_read(con->looper, con->fd); 142 iolooper_del_write(con->looper, con->fd); 145 iolooper_add_write(con->looper, con->fd); 175 iolooper_add_write(con->looper, con->fd); 194 iolooper_del_read(con->looper, con->fd); 195 iolooper_del_write(con->looper, con->fd); 206 emulatorConsole_new(int port, IoLooper* looper) 212 con->looper = looper [all...] |
/frameworks/base/graphics/java/android/graphics/ |
SurfaceTexture.java | 22 import android.os.Looper; 289 public EventHandler(Looper looper) { 290 super(looper); 319 Looper looper; local 320 if ((looper = Looper.myLooper()) != null) { 321 mEventHandler = new EventHandler(looper); 322 } else if ((looper = Looper.getMainLooper()) != null) [all...] |
/external/qemu/ |
aio-android.c | 147 IoLooper* looper; local 159 looper = iolooper_new(); 164 iolooper_reset(looper); 177 iolooper_add_read(looper, node->fd); 180 iolooper_add_write(looper, node->fd); 187 if (!iolooper_has_operations(looper)) { 192 ret = iolooper_wait(looper, -1); 205 iolooper_is_read(looper, node->fd) && 210 iolooper_is_write(looper, node->fd) && 228 iolooper_free(looper); [all...] |
/external/qemu/android/ |
async-socket-connector.h | 94 * looper - An optional (can be NULL) I/O looper to use for connection I/O. If 95 * this parameter is NULL, the connector will create its own looper. 107 Looper* looper);
|
/frameworks/av/include/media/stagefright/foundation/ |
AHandler.h | 37 sp<ALooper> looper();
|