HomeSort by relevance Sort by last modified time
    Searched refs:looper (Results 51 - 75 of 495) sorted by null

1 23 4 5 6 7 8 91011>>

  /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...]
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/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);
  /development/ndk/platforms/android-21/samples/native-codec/jni/
looper.cpp 17 #include "looper.h"
34 #define TAG "NativeCodec-looper"
50 void* looper::trampoline(void* p) {
51 ((looper*)p)->loop();
55 looper::looper() { function in class:looper
66 looper::~looper() {
68 LOGV("Looper deleted while still running. Some messages will not be processed");
73 void looper::post(int what, void *data, bool flush)
    [all...]
  /frameworks/base/location/java/android/location/
CountryDetector.java 22 import android.os.Looper;
55 * looper once the country changed and detected.
63 public ListenerTransport(CountryListener listener, Looper looper) {
65 if (looper != null) {
66 mHandler = new Handler(looper);
116 * @param looper a Looper object whose message queue will be used to
117 * implement the callback mechanism. If looper is null then the
120 public void addCountryListener(CountryListener listener, Looper looper)
    [all...]
  /frameworks/av/include/media/stagefright/foundation/
AHandler.h 40 sp<ALooper> looper() const { function in struct:android::AHandler
63 inline void setID(ALooper::handler_id id, wp<ALooper> looper) {
65 mLooper = looper;
  /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;
31 this(ownerInstance, Looper.myLooper());
34 public LeakGuardHandlerWrapper(@Nonnull final T ownerInstance, final Looper looper) {
35 super(looper);
  /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/av/media/libstagefright/foundation/
ALooperRoster.cpp 37 const sp<ALooper> looper, const sp<AHandler> &handler) {
46 info.mLooper = looper;
51 handler->setID(handlerID, looper);
86 sp<ALooper> looper = info.mLooper.promote(); local
87 if (looper == NULL) {
91 // At this point 'looper' might be the only sp<> keeping
97 activeLoopers.add(looper);
139 sp<ALooper> looper = info.mLooper.promote(); local
140 if (looper != NULL) {
141 s.append(looper->getName())
    [all...]
  /frameworks/base/cmds/hid/jni/
com_android_commands_hid_Device.h 20 #include <utils/Looper.h>
42 std::unique_ptr<DeviceCallback> callback, sp<Looper> looper);
44 Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper);
56 sp<Looper> mLooper;
  /frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
HistoryHandler.java 20 import android.os.Looper;
30 HistoryHandler(Looper looper) {
31 super(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;
32 * be called on the Looper thread to which it is attached.
55 * @param looper The looper to use when invoking callbacks.
57 public DisplayEventReceiver(Looper looper) {
58 if (looper == null) {
59 throw new IllegalArgumentException("looper must not be null");
62 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;
  /frameworks/base/core/java/android/hardware/soundtrigger/
SoundTriggerModule.java 20 import android.os.Looper;
131 // find the looper for our new event handler
132 Looper looper; local
134 looper = handler.getLooper();
136 looper = Looper.getMainLooper();
139 // construct the event handler with this looper
140 if (looper != null) {
142 mHandler = new Handler(looper) {
    [all...]
  /frameworks/base/media/java/android/media/
MediaSync.java 25 import android.os.Looper;
197 private Looper mAudioLooper = null;
258 Looper looper; local
259 if ((looper = Looper.myLooper()) == null) {
260 looper = Looper.getMainLooper();
262 if (looper == null) {
265 mCallbackHandler = new Handler(looper);
291 Looper looper; local
    [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();
  /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();

Completed in 1148 milliseconds

1 23 4 5 6 7 8 91011>>