/frameworks/base/native/android/ |
D | looper.cpp | 36 void ALooper_acquire(ALooper* looper) { in ALooper_acquire() argument 37 static_cast<Looper*>(looper)->incStrong((void*)ALooper_acquire); in ALooper_acquire() 40 void ALooper_release(ALooper* looper) { in ALooper_release() argument 41 static_cast<Looper*>(looper)->decStrong((void*)ALooper_acquire); in ALooper_release() 45 sp<Looper> looper = Looper::getForThread(); in ALooper_pollOnce() local 46 if (looper == NULL) { in ALooper_pollOnce() 52 return looper->pollOnce(timeoutMillis, outFd, outEvents, outData); in ALooper_pollOnce() 56 sp<Looper> looper = Looper::getForThread(); in ALooper_pollAll() local 57 if (looper == NULL) { in ALooper_pollAll() 63 return looper->pollAll(timeoutMillis, outFd, outEvents, outData); in ALooper_pollAll() [all …]
|
D | sensor.cpp | 63 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data) in ASensorManager_createEventQueue() argument 68 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data); in ASensorManager_createEventQueue() 69 queue->looper = looper; in ASensorManager_createEventQueue() 79 ALooper_removeFd(queue->looper, queue->getFd()); in ASensorManager_destroyEventQueue()
|
/frameworks/base/core/java/android/os/ |
D | HandlerThread.java | 108 Looper looper = getLooper(); in quit() local 109 if (looper != null) { in quit() 110 looper.quit(); in quit() 135 Looper looper = getLooper(); in quitSafely() local 136 if (looper != null) { in quitSafely() 137 looper.quitSafely(); in quitSafely()
|
D | Handler.java | 136 public Handler(Looper looper) { in Handler() argument 137 this(looper, null, false); in Handler() 147 public Handler(Looper looper, Callback callback) { in Handler() argument 148 this(looper, callback, false); in Handler() 227 public Handler(Looper looper, Callback callback, boolean async) { in Handler() argument 228 mLooper = looper; in Handler() 229 mQueue = looper.mQueue; in Handler()
|
/frameworks/native/include/android/ |
D | looper.h | 99 void ALooper_acquire(ALooper* looper); 104 void ALooper_release(ALooper* looper); 202 void ALooper_wake(ALooper* looper); 230 int ALooper_addFd(ALooper* looper, int fd, int ident, int events, 250 int ALooper_removeFd(ALooper* looper, int fd);
|
/frameworks/av/media/libstagefright/foundation/ |
D | ALooperRoster.cpp | 35 const sp<ALooper> looper, const sp<AHandler> &handler) { in registerHandler() argument 44 info.mLooper = looper; in registerHandler() 80 sp<ALooper> looper = info.mLooper.promote(); in unregisterStaleHandlers() local 81 if (looper == NULL) { in unregisterStaleHandlers() 106 sp<ALooper> looper = info.mLooper.promote(); in postMessage_l() local 108 if (looper == NULL) { in postMessage_l() 117 looper->post(msg, delayUs); in postMessage_l() 160 sp<ALooper> looper = mHandlers.valueAt(index).mLooper.promote(); in findLooper() local 162 if (looper == NULL) { in findLooper() 167 return looper; in findLooper()
|
/frameworks/base/graphics/java/android/graphics/ |
D | SurfaceTexture.java | 289 public EventHandler(Looper looper) { in EventHandler() argument 290 super(looper); in EventHandler() 319 Looper looper; in init() local 320 if ((looper = Looper.myLooper()) != null) { in init() 321 mEventHandler = new EventHandler(looper); in init() 322 } else if ((looper = Looper.getMainLooper()) != null) { in init() 323 mEventHandler = new EventHandler(looper); in init()
|
/frameworks/base/location/java/android/location/ |
D | CountryDetector.java | 65 public ListenerTransport(CountryListener listener, Looper looper) { in ListenerTransport() argument 67 if (looper != null) { in ListenerTransport() 68 mHandler = new Handler(looper); in ListenerTransport() 122 public void addCountryListener(CountryListener listener, Looper looper) { in addCountryListener() argument 125 ListenerTransport transport = new ListenerTransport(listener, looper); in addCountryListener()
|
D | LocationManager.java | 217 ListenerTransport(LocationListener listener, Looper looper) { in ListenerTransport() argument 220 if (looper == null) { in ListenerTransport() 228 mListenerHandler = new Handler(looper) { in ListenerTransport() 479 LocationListener listener, Looper looper) { in requestLocationUpdates() argument 485 requestLocationUpdates(request, listener, looper, null); in requestLocationUpdates() 511 LocationListener listener, Looper looper) { in requestLocationUpdates() argument 517 requestLocationUpdates(request, listener, looper, null); in requestLocationUpdates() 667 public void requestSingleUpdate(String provider, LocationListener listener, Looper looper) { in requestSingleUpdate() argument 673 requestLocationUpdates(request, listener, looper, null); in requestSingleUpdate() 696 public void requestSingleUpdate(Criteria criteria, LocationListener listener, Looper looper) { in requestSingleUpdate() argument [all …]
|
/frameworks/av/media/libstagefright/rtsp/ |
D | rtp_test.cpp | 66 sp<ALooper> looper = new ALooper; in main() local 73 looper->registerHandler(rtp_pusher); in main() 76 looper->registerHandler(rtcp_pusher); in main() 80 looper->registerHandler(session); in main() 176 looper->start(false /* runOnCallingThread */); in main() 227 looper->stop(); in main()
|
/frameworks/base/core/java/android/view/ |
D | InputFilter.java | 126 public InputFilter(Looper looper) { in InputFilter() argument 127 mH = new H(looper); in InputFilter() 220 public H(Looper looper) { in H() argument 221 super(looper); in H()
|
D | InputEventReceiver.java | 60 public InputEventReceiver(InputChannel inputChannel, Looper looper) { in InputEventReceiver() argument 64 if (looper == null) { in InputEventReceiver() 69 mMessageQueue = looper.getQueue(); in InputEventReceiver() 196 InputChannel inputChannel, Looper looper); in createInputEventReceiver() argument
|
D | Choreographer.java | 94 Looper looper = Looper.myLooper(); 95 if (looper == null) { 98 return new Choreographer(looper); 166 private Choreographer(Looper looper) { in Choreographer() argument 167 mLooper = looper; in Choreographer() 168 mHandler = new FrameHandler(looper); in Choreographer() 169 mDisplayEventReceiver = USE_VSYNC ? new FrameDisplayEventReceiver(looper) : null; in Choreographer() 668 public FrameHandler(Looper looper) { in FrameHandler() argument 669 super(looper); in FrameHandler() 694 public FrameDisplayEventReceiver(Looper looper) { in FrameDisplayEventReceiver() argument [all …]
|
D | DisplayEventReceiver.java | 55 public DisplayEventReceiver(Looper looper) { in DisplayEventReceiver() argument 56 if (looper == null) { in DisplayEventReceiver() 60 mMessageQueue = looper.getQueue(); in DisplayEventReceiver()
|
D | InputEventSender.java | 55 public InputEventSender(InputChannel inputChannel, Looper looper) { in InputEventSender() argument 59 if (looper == null) { in InputEventSender() 64 mMessageQueue = looper.getQueue(); in InputEventSender()
|
/frameworks/base/core/jni/ |
D | android_view_InputQueue.cpp | 46 InputQueue::InputQueue(jobject inputQueueObj, const sp<Looper>& looper, in InputQueue() argument 49 mDispatchLooper(looper), mHandler(new WeakMessageHandler(this)) { in InputQueue() 62 void InputQueue::attachLooper(Looper* looper, int ident, in attachLooper() argument 66 if (looper == mAppLoopers[i]) { in attachLooper() 70 mAppLoopers.push(looper); in attachLooper() 71 looper->addFd(mDispatchReadFd, ident, ALOOPER_EVENT_INPUT, callback, data); in attachLooper() 185 InputQueue* InputQueue::createQueue(jobject inputQueueObj, const sp<Looper>& looper) { in createQueue() argument 193 return new InputQueue(inputQueueObj, looper, pipeFds[0], pipeFds[1]); in createQueue()
|
/frameworks/base/include/android_runtime/ |
D | android_view_InputQueue.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,
|
/frameworks/base/media/java/android/media/ |
D | MediaDrm.java | 151 Looper looper; in MediaDrm() local 152 if ((looper = Looper.myLooper()) != null) { in MediaDrm() 153 mEventHandler = new EventHandler(this, looper); in MediaDrm() 154 } else if ((looper = Looper.getMainLooper()) != null) { in MediaDrm() 155 mEventHandler = new EventHandler(this, looper); in MediaDrm() 226 public EventHandler(MediaDrm md, Looper looper) { in EventHandler() argument 227 super(looper); in EventHandler()
|
D | MediaRecorder.java | 100 Looper looper; in MediaRecorder() local 101 if ((looper = Looper.myLooper()) != null) { in MediaRecorder() 102 mEventHandler = new EventHandler(this, looper); in MediaRecorder() 103 } else if ((looper = Looper.getMainLooper()) != null) { in MediaRecorder() 104 mEventHandler = new EventHandler(this, looper); in MediaRecorder() 925 public EventHandler(MediaRecorder mr, Looper looper) { in EventHandler() argument 926 super(looper); in EventHandler()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | Visualizer.java | 594 Looper looper; in setDataCaptureListener() local 595 if ((looper = Looper.myLooper()) != null) { in setDataCaptureListener() 596 mNativeEventHandler = new NativeEventHandler(this, looper); in setDataCaptureListener() 597 } else if ((looper = Looper.getMainLooper()) != null) { in setDataCaptureListener() 598 mNativeEventHandler = new NativeEventHandler(this, looper); in setDataCaptureListener() 652 public NativeEventHandler(Visualizer v, Looper looper) { in NativeEventHandler() argument 653 super(looper); in NativeEventHandler()
|
/frameworks/native/libs/gui/ |
D | SensorEventQueue.cpp | 92 sp<Looper> looper(getLooper()); in waitForEvent() local 97 result = looper->pollOnce(-1, NULL, &events, NULL); in waitForEvent() 116 sp<Looper> looper(getLooper()); in wake() local 117 looper->wake(); in wake()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | WindowManagerPolicyThread.java | 29 public static void set(Thread thread, Looper looper) { in set() argument 31 mLooper = looper; in set()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GSMTestHandler.java | 78 Looper looper = getLooper(); in cleanup() local 79 if (looper != null) looper.quit(); in cleanup()
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | FusedLocationHardware.java | 67 public void registerSink(FusedLocationHardwareSink sink, Looper looper) { in registerSink() argument 68 if(sink == null || looper == null) { in registerSink() 83 newSinkList.put(sink, new DispatcherHandler(looper)); in registerSink() 208 public DispatcherHandler(Looper looper) { in DispatcherHandler() argument 209 super(looper, null /*callback*/ , true /*async*/); in DispatcherHandler()
|
/frameworks/av/cmds/stagefright/ |
D | muxer.cpp | 51 const android::sp<android::ALooper> &looper, in muxing() argument 296 sp<ALooper> looper = new ALooper; in main() local 297 looper->start(); in main() 299 int result = muxing(looper, argv[0], useAudio, useVideo, outputFileName, in main() 302 looper->stop(); in main()
|