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

1 2 3 4 5

  /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...]
  /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...]
  /external/chromium_org/ui/views/
shadow_border.cc 28 // TODO(sidharthms): Re-painting a shadow looper on every paint call may yield
34 skia::RefPtr<SkDrawLooper> looper = gfx::CreateShadowDrawLooper(shadows); local
35 paint.setLooper(looper.get());
  /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...]
ShadowHandler.java 4 import android.os.Looper;
29 private Looper looper = Looper.myLooper(); field in class:ShadowHandler
34 this.looper = Looper.myLooper();
37 public void __constructor__(Looper looper) {
38 this.looper = looper;
    [all...]
  /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;
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;
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;
core-commands-impl.c 23 #include "android/looper.h"
49 /* Looper used to communicate with the UI. */
50 Looper* looper; member in struct:CoreCmdImpl
407 _coreCmdImpl.looper = looper_newCore();
408 loopIo_init(&_coreCmdImpl.io, _coreCmdImpl.looper, _coreCmdImpl.sock,
432 if (_coreCmdImpl.looper != NULL) {
435 looper_free(_coreCmdImpl.looper);
436 _coreCmdImpl.looper = NULL;
fb-updates-proxy.c 19 #include "android/looper.h"
43 /* Looper used to communicate framebuffer updates. */
44 Looper* looper; member in struct:ProxyFramebuffer
265 ret->looper = looper_newCore();
276 loopIo_init(&ret->io, ret->looper, sock, _proxyFb_io_fun, ret);
287 if (proxy_fb->looper != NULL) {
297 looper_free(proxy_fb->looper);
298 proxy_fb->looper = NULL;
  /external/skia/bench/
BlurRoundRectBench.cpp 43 SkLayerDrawLooper* looper = new SkLayerDrawLooper; variable
52 SkPaint* paint = looper->addLayerOnTop(info);
65 looper->addLayerOnTop(info);
71 loopedPaint.setLooper(looper)->unref();
RectoriBench.cpp 15 // This bench replicates a problematic use case of a draw looper used
74 SkLayerDrawLooper* looper = new SkLayerDrawLooper; local
87 SkPaint* paint = looper->addLayer(info);
98 paint = looper->addLayer(info);
99 return looper;
  /external/skia/gm/
blurroundrect.cpp 56 SkLayerDrawLooper* looper = new SkLayerDrawLooper; variable
65 SkPaint* paint = looper->addLayerOnTop(info);
78 looper->addLayerOnTop(info);
83 paint.setLooper(looper)->unref();
  /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...]
  /frameworks/native/include/gui/
SensorEventQueue.h 36 ALooper* looper; member in struct:ASensorEventQueue
45 class Looper;
80 sp<Looper> getLooper() const;
84 mutable sp<Looper> mLooper;
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
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);
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...]
  /frameworks/opt/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();
  /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/av/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();
  /external/qemu/android/
sync-utils.c 56 IoLooper* looper; local
66 looper = iolooper_new();
72 looper = iolooper_new();
73 iolooper_add_write(looper, fd);
74 connect_status = iolooper_wait(looper, timeout);
76 iolooper_del_write(looper, fd);
79 iolooper_free(looper);
95 sync_socket->iolooper = 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...]
  /cts/tests/tests/database/src/android/database/cts/
ContentObserverTest.java 24 import android.os.Looper;
50 Looper looper = ht.getLooper(); local
51 Handler handler = new Handler(looper);
69 looper.quit();
94 Looper looper = ht.getLooper(); local
95 Handler handler = new Handler(looper);
115 looper.quit();
  /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() {

Completed in 1609 milliseconds

1 2 3 4 5