/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();
|
InputEventSender.java | 21 import android.os.Looper; 53 * @param looper The looper to use when invoking callbacks. 55 public InputEventSender(InputChannel inputChannel, Looper looper) { 59 if (looper == null) { 60 throw new IllegalArgumentException("looper must not be null"); 64 mMessageQueue = looper.getQueue(); 114 * Must be called on the same Looper thread to which the sender is attached.
|
InputEventReceiver.java | 21 import android.os.Looper; 58 * @param looper The looper to use when invoking callbacks. 60 public InputEventReceiver(InputChannel inputChannel, Looper looper) { 64 if (looper == null) { 65 throw new IllegalArgumentException("looper must not be null"); 69 mMessageQueue = looper.getQueue(); 134 * Must be called on the same Looper thread to which the receiver is attached. 161 * Must be called on the same Looper thread to which the receiver is attached [all...] |
/sdk/emulator/opengl/tests/event_injector/ |
emulator-console.h | 32 EmulatorConsole* emulatorConsole_new(int port, IoLooper* looper);
|
/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() {
|
/external/qemu/android/ |
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...] |
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;
|
/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;
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
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...] |
/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();
|
/frameworks/base/native/android/ |
sensor.cpp | 20 #include <android/looper.h> 24 #include <utils/Looper.h> 63 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data) 68 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data); 69 queue->looper = looper; 79 ALooper_removeFd(queue->looper, queue->getFd());
|
Android.mk | 12 looper.cpp \
|
/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/chromium_org/base/android/java/src/org/chromium/base/ |
ThreadUtils.java | 8 import android.os.Looper; 28 public static synchronized void setUiThread(Looper looper) { 29 if (sUiThreadHandler != null && sUiThreadHandler.getLooper() != looper) { 30 throw new RuntimeException("UI thread looper is already set to " + 31 sUiThreadHandler.getLooper() + " (Main thread looper is " + 32 Looper.getMainLooper() + "), cannot set to new looper " + looper); 34 sUiThreadHandler = new Handler(looper); [all...] |
/external/skia/bench/ |
RectoriBench.cpp | 15 // This bench replicates a problematic use case of a draw looper used 76 SkLayerDrawLooper* looper = new SkLayerDrawLooper; local 89 SkPaint* paint = looper->addLayer(info); 100 paint = looper->addLayer(info); 101 return looper;
|
/development/ndk/sources/android/native_app_glue/ |
android_native_app_glue.h | 26 #include <android/looper.h> 143 ALooper* looper; member in struct:android_app 189 * Looper data ID of commands coming from the app's main thread, which 198 * Looper data ID of events coming from the AInputQueue of the
|
/external/chromium_org/ui/views/ |
shadow_border.cc | 26 // TODO(sidharthms): Re-painting a shadow looper on every paint call may yield 32 skia::RefPtr<SkDrawLooper> looper = gfx::CreateShadowDrawLooper(shadows); local 33 paint.setLooper(looper.get());
|
/frameworks/base/core/java/android/app/ |
IntentService.java | 23 import android.os.Looper; 53 private volatile Looper mServiceLooper; 59 public ServiceHandler(Looper looper) { 60 super(looper);
|
/hardware/ti/omap4xxx/camera/inc/ |
SensorListener.h | 31 #include <utils/Looper.h> 43 SensorLooperThread(Looper* looper) 45 mLooper = sp<Looper>(looper); 56 // force looper wake up 61 sp<Looper> mLooper; 94 sp<Looper> mLooper;
|
/frameworks/base/media/java/android/media/ |
MediaDrm.java | 25 import android.os.Looper; 93 * MediaDrm objects on a thread with its own Looper running (main UI 94 * thread by default has a Looper running). 151 Looper looper; local 152 if ((looper = Looper.myLooper()) != null) { 153 mEventHandler = new EventHandler(this, looper); 154 } else if ((looper = Looper.getMainLooper()) != null) [all...] |
MediaRecorder.java | 22 import android.os.Looper; 62 * Looper running (the main UI thread by default already has a Looper running). 100 Looper looper; local 101 if ((looper = Looper.myLooper()) != null) { 102 mEventHandler = new EventHandler(this, looper); 103 } else if ((looper = Looper.getMainLooper()) != null) [all...] |
/frameworks/base/media/java/android/media/audiofx/ |
Visualizer.java | 23 import android.os.Looper; 594 Looper looper; local 595 if ((looper = Looper.myLooper()) != null) { 596 mNativeEventHandler = new NativeEventHandler(this, looper); 597 } else if ((looper = Looper.getMainLooper()) != null) { 598 mNativeEventHandler = new NativeEventHandler(this, looper); 652 public NativeEventHandler(Visualizer v, Looper looper) [all...] |
/frameworks/native/libs/gui/ |
SensorEventQueue.cpp | 24 #include <utils/Looper.h> 79 sp<Looper> SensorEventQueue::getLooper() const 83 mLooper = new Looper(true); 92 sp<Looper> looper(getLooper()); 97 result = looper->pollOnce(-1, NULL, &events, NULL); 116 sp<Looper> looper(getLooper()); 117 looper->wake();
|