/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);
|
/frameworks/av/media/libstagefright/foundation/ |
ALooperRoster.cpp | 35 const sp<ALooper> looper, const sp<AHandler> &handler) { 44 info.mLooper = looper; 83 sp<ALooper> looper = info.mLooper.promote(); local 84 if (looper == NULL) { 88 // At this point 'looper' might be the only sp<> keeping 94 activeLoopers.add(looper); 103 sp<ALooper> looper = findLooper(msg->target()); local 105 if (looper == NULL) { 108 looper->post(msg, delayUs); 150 sp<ALooper> looper = mHandlers.valueAt(index).mLooper.promote() local 162 sp<ALooper> looper = findLooper(msg->target()); local [all...] |
AHandler.cpp | 27 sp<ALooper> AHandler::looper() { function in class:android::AHandler
|
/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/ |
LeakGuardHandlerWrapper.java | 20 import android.os.Looper; 28 this(ownerInstance, Looper.myLooper()); 31 public LeakGuardHandlerWrapper(final T ownerInstance, final Looper looper) { 32 super(looper);
|
/external/chromium_org/third_party/skia/tests/ |
DeviceLooperTest.cpp | 49 SkDeviceLooper looper(bitmap, rc, gRec[i].fRect, SkToBool(aa)); 51 bool valid = looper.next(); 54 REPORTER_ASSERT(reporter, looper.getBitmap().width() == bitmap.width()); 55 REPORTER_ASSERT(reporter, looper.getBitmap().height() == bitmap.height()); 56 REPORTER_ASSERT(reporter, equal(looper.getRC(), rc)); 58 REPORTER_ASSERT(reporter, !looper.next()); 65 SkDeviceLooper looper(bitmap, rc, r, false); 66 REPORTER_ASSERT(reporter, !looper.next()); 128 SkDeviceLooper looper(bitmap, rc, rect, gRec[i].fAA); 129 while (looper.next()) [all...] |
/external/skia/tests/ |
DeviceLooperTest.cpp | 49 SkDeviceLooper looper(bitmap, rc, gRec[i].fRect, SkToBool(aa)); 51 bool valid = looper.next(); 54 REPORTER_ASSERT(reporter, looper.getBitmap().width() == bitmap.width()); 55 REPORTER_ASSERT(reporter, looper.getBitmap().height() == bitmap.height()); 56 REPORTER_ASSERT(reporter, equal(looper.getRC(), rc)); 58 REPORTER_ASSERT(reporter, !looper.next()); 65 SkDeviceLooper looper(bitmap, rc, r, false); 66 REPORTER_ASSERT(reporter, !looper.next()); 128 SkDeviceLooper looper(bitmap, rc, rect, gRec[i].fAA); 129 while (looper.next()) [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
RequestHandlerThread.java | 22 import android.os.Looper; 99 Looper looper = handler.getLooper(); local 100 if (looper.isIdling()) { 104 looper.getQueue().addIdleHandler(mIdleHandler); 105 // Ensure that the idle handler gets run even if the looper already went idle 107 if (looper.isIdling()) {
|
/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...] |
emulator-console.h | 32 EmulatorConsole* emulatorConsole_new(int port, IoLooper* looper);
|
/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...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
HistoryHandler.java | 20 import android.os.Looper; 30 HistoryHandler(Looper looper) { 31 super(looper);
|
/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);
|
async-socket-connector.c | 48 /* I/O looper for asynchronous I/O. */ 49 Looper* looper; member in struct:AsyncSocketConnector 66 /* Flags whether (1) or not (0) connector owns the looper. */ 70 /* Asynchronous I/O looper callback invoked by the connector. 104 if (connector->looper != NULL) { 107 looper_free(connector->looper); 267 loopIo_init(connector->connector_io, connector->looper, 295 Looper* looper) [all...] |
/frameworks/av/include/media/stagefright/foundation/ |
AHandler.h | 37 sp<ALooper> looper();
|
/frameworks/base/core/java/android/view/ |
InputFilter.java | 20 import android.os.Looper; 124 * @param looper The looper to run callbacks on. 126 public InputFilter(Looper looper) { 127 mH = new H(looper); 220 public H(Looper looper) { 221 super(looper);
|
DisplayEventReceiver.java | 21 import android.os.Looper; 30 * be called on the Looper thread to which it is attached. 53 * @param looper The looper to use when invoking callbacks. 55 public DisplayEventReceiver(Looper looper) { 56 if (looper == null) { 57 throw new IllegalArgumentException("looper must not be null"); 60 mMessageQueue = looper.getQueue();
|
/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() {
|
/frameworks/base/include/android_runtime/ |
android_view_InputQueue.h | 21 #include <utils/Looper.h> 39 void attachLooper(Looper* looper, int ident, ALooper_callbackFunc callback, void* data); 59 static InputQueue* createQueue(jobject inputQueueObj, const sp<Looper>& looper); 65 InputQueue(jobject inputQueueObj, const sp<Looper>& looper, 73 Vector<Looper*> mAppLoopers; 74 sp<Looper> mDispatchLooper;
|