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

1 2 3 4 5 6 7 8

  /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);
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/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/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/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...]
  /prebuilt/ndk/android-ndk-r5/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...]
  /prebuilt/ndk/android-ndk-r6/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...]
  /prebuilt/ndk/android-ndk-r6/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...]
  /frameworks/base/graphics/java/android/graphics/
SurfaceTexture.java 22 import android.os.Looper;
112 Looper looper; local
113 if ((looper = Looper.myLooper()) != null) {
114 mEventHandler = new EventHandler(looper);
115 } else if ((looper = Looper.getMainLooper()) != null) {
116 mEventHandler = new EventHandler(looper);
237 public EventHandler(Looper looper)
    [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...]
  /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.
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...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
StaticInnerHandlerWrapper.java 20 import android.os.Looper;
33 public StaticInnerHandlerWrapper(T outerInstance, Looper looper) {
34 super(looper);
  /development/tools/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);
  /frameworks/base/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;
91 sp<ALooper> looper = info.mLooper.promote(); local
93 if (looper == NULL) {
102 looper->post(msg, delayUs);
145 sp<ALooper> looper = mHandlers.valueAt(index).mLooper.promote(); local
147 if (looper == NULL) {
152 return looper;
  /packages/providers/ApplicationsProvider/tests/src/com/android/providers/applications/
ApplicationsProviderForTesting.java 21 import android.os.Looper;
76 Handler createHandler(Looper looper) {
77 mMockUpdateHandler = new MockUpdateHandler(looper);
89 MockUpdateHandler(Looper looper) {
90 super(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...]

Completed in 1495 milliseconds

1 2 3 4 5 6 7 8