Searched refs:looper (Results 1 - 25 of 201) sorted by relevance

123456789

/frameworks/base/native/android/
H A Dlooper.cpp20 #include <android/looper.h>
32 static inline ALooper* Looper_to_ALooper(Looper* looper) { argument
33 return reinterpret_cast<ALooper*>(looper);
44 void ALooper_acquire(ALooper* looper) { argument
45 ALooper_to_Looper(looper)->incStrong((void*)ALooper_acquire);
48 void ALooper_release(ALooper* looper) { argument
49 ALooper_to_Looper(looper)->decStrong((void*)ALooper_acquire);
53 sp<Looper> looper = Looper::getForThread(); local
54 if (looper == NULL) {
55 ALOGE("ALooper_pollOnce: No looper fo
64 sp<Looper> looper = Looper::getForThread(); local
74 ALooper_wake(ALooper* looper) argument
78 ALooper_addFd(ALooper* looper, int fd, int ident, int events, ALooper_callbackFunc callback, void* data) argument
83 ALooper_removeFd(ALooper* looper, int fd) argument
[all...]
H A Dsensor.cpp20 #include <android/looper.h>
76 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data)
81 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data);
82 queue->looper = looper;
92 ALooper_removeFd(queue->looper, queue->getFd());
75 ASensorManager_createEventQueue(ASensorManager* manager, ALooper* looper, int ident, ALooper_callbackFunc callback, void* data) argument
H A DAndroid.mk12 looper.cpp \
/frameworks/base/core/java/android/os/
H A DHandlerThread.java20 * Handy class for starting a new thread that has a looper. The looper can then be
68 * has been started, this method will block until the looper has been initialized.
69 * @return The looper.
76 // If the thread has been started, wait until the looper has been created.
89 * Quits the handler thread's looper.
91 * Causes the handler thread's looper to terminate without processing any
94 * Any attempt to post messages to the queue after the looper is asked to quit will fail.
98 * before the looper terminates. Consider using {@link #quitSafely} instead to ensure
102 * @return True if the looper loope
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DWindowManagerPolicyThread.java29 public static void set(Thread thread, Looper looper) { argument
31 mLooper = looper;
/frameworks/native/include/android/
H A Dlooper.h28 * 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 alway
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DALooperRoster.cpp35 const sp<ALooper> looper, const sp<AHandler> &handler) {
44 info.mLooper = looper;
83 sp<ALooper> looper = info.mLooper.promote(); local
84 if (looper == NULL) {
88 // At this point 'looper' might be the only sp<> keeping
94 activeLoopers.add(looper);
103 sp<ALooper> looper = findLooper(msg->target()); local
105 if (looper == NULL) {
108 looper->post(msg, delayUs);
150 sp<ALooper> looper local
34 registerHandler( const sp<ALooper> looper, const sp<AHandler> &handler) argument
162 sp<ALooper> looper = findLooper(msg->target()); local
[all...]
H A DAHandler.cpp27 sp<ALooper> AHandler::looper() { function in class:android::AHandler
/frameworks/base/location/java/android/location/
H A DCountryDetector.java57 * looper once the country changed and detected.
65 public ListenerTransport(CountryListener listener, Looper looper) { argument
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) { argument
125 ListenerTransport transport = new ListenerTransport(listener, looper);
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DRequestHandlerThread.java99 Looper looper = handler.getLooper();
100 if (looper.isIdling()) {
104 looper.getQueue().addIdleHandler(mIdleHandler);
105 // Ensure that the idle handler gets run even if the looper already went idle
107 if (looper.isIdling()) {
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DHistoryHandler.java30 HistoryHandler(Looper looper) { argument
31 super(looper);
/frameworks/base/core/java/android/view/
H A DInputFilter.java124 * @param looper The looper to run callbacks on.
126 public InputFilter(Looper looper) { argument
127 mH = new H(looper);
220 public H(Looper looper) { argument
221 super(looper);
H A DDisplayEventReceiver.java53 * @param looper The looper to use when invoking callbacks.
55 public DisplayEventReceiver(Looper looper) { argument
56 if (looper == null) {
57 throw new IllegalArgumentException("looper must not be null");
60 mMessageQueue = looper.getQueue();
H A DInputEventSender.java53 * @param looper The looper to use when invoking callbacks.
55 public InputEventSender(InputChannel inputChannel, Looper looper) { argument
59 if (looper == null) {
60 throw new IllegalArgumentException("looper must not be null");
64 mMessageQueue = looper.getQueue();
H A DInputEventReceiver.java58 * @param looper The looper to use when invoking callbacks.
60 public InputEventReceiver(InputChannel inputChannel, Looper looper) { argument
64 if (looper == null) {
65 throw new IllegalArgumentException("looper must not be null");
69 mMessageQueue = looper.getQueue();
196 InputChannel inputChannel, Looper looper);
195 createInputEventReceiver( InputChannel inputChannel, Looper looper) argument
/frameworks/base/include/android_runtime/
H A Dandroid_view_InputQueue.h39 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/core/java/android/hardware/soundtrigger/
H A DSoundTriggerModule.java134 // find the looper for our new event handler
135 Looper looper;
137 looper = handler.getLooper();
139 looper = Looper.getMainLooper();
142 // construct the event handler with this looper
143 if (looper != null) {
145 mHandler = new Handler(looper) {
/frameworks/av/media/libstagefright/rtsp/
H A Drtp_test.cpp66 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DGSMTestHandler.java78 Looper looper = getLooper();
79 if (looper != null) looper.quit();
/frameworks/av/include/media/stagefright/foundation/
H A DAHandler.h37 sp<ALooper> looper();
/frameworks/base/core/java/android/app/
H A DIntentService.java59 public ServiceHandler(Looper looper) { argument
60 super(looper);
/frameworks/base/core/jni/
H A Dandroid_view_InputQueue.cpp46 InputQueue::InputQueue(jobject inputQueueObj, const sp<Looper>& looper, argument
49 mDispatchLooper(looper), mHandler(new WeakMessageHandler(this)) {
62 void InputQueue::attachLooper(Looper* looper, int ident, argument
66 if (looper == mAppLoopers[i]) {
70 mAppLoopers.push(looper);
71 looper->addFd(mDispatchReadFd, ident, ALOOPER_EVENT_INPUT, callback, data);
185 InputQueue* InputQueue::createQueue(jobject inputQueueObj, const sp<Looper>& looper) { argument
193 return new InputQueue(inputQueueObj, looper, pipeFds[0], pipeFds[1]);
/frameworks/base/media/java/android/media/audiopolicy/
H A DAudioPolicy.java103 private AudioPolicy(AudioPolicyConfig config, Context context, Looper looper, argument
108 if (looper == null) {
109 looper = Looper.getMainLooper();
111 if (looper != null) {
112 mEventHandler = new EventHandler(this, looper);
115 Log.e(TAG, "No event handler due to looper without a thread");
159 * @param looper a non-null specific Looper.
164 public Builder setLooper(@NonNull Looper looper) throws IllegalArgumentException { argument
165 if (looper == null) {
168 mLooper = looper;
445 EventHandler(AudioPolicy ap, Looper looper) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaRecorder.java100 Looper looper;
101 if ((looper = Looper.myLooper()) != null) {
102 mEventHandler = new EventHandler(this, looper);
103 } else if ((looper = Looper.getMainLooper()) != null) {
104 mEventHandler = new EventHandler(this, looper);
972 public EventHandler(MediaRecorder mr, Looper looper) { argument
973 super(looper);
/frameworks/base/media/java/android/media/audiofx/
H A DVisualizer.java593 Looper looper;
594 if ((looper = Looper.myLooper()) != null) {
595 mNativeEventHandler = new NativeEventHandler(this, looper);
596 } else if ((looper = Looper.getMainLooper()) != null) {
597 mNativeEventHandler = new NativeEventHandler(this, looper);
651 public NativeEventHandler(Visualizer v, Looper looper) { argument
652 super(looper);

Completed in 336 milliseconds

123456789