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

123

/frameworks/base/native/android/
H A Dlooper.cpp20 #include <android/looper.h>
36 void ALooper_acquire(ALooper* looper) { argument
37 static_cast<Looper*>(looper)->incStrong((void*)ALooper_acquire);
40 void ALooper_release(ALooper* looper) { argument
41 static_cast<Looper*>(looper)->decStrong((void*)ALooper_acquire);
45 sp<Looper> looper = Looper::getForThread(); local
46 if (looper == NULL) {
47 LOGE("ALooper_pollOnce: No looper for this thread!");
52 return looper->pollOnce(timeoutMillis, outFd, outEvents, outData);
56 sp<Looper> looper local
66 ALooper_wake(ALooper* looper) argument
70 ALooper_addFd(ALooper* looper, int fd, int ident, int events, ALooper_callbackFunc callback, void* data) argument
75 ALooper_removeFd(ALooper* looper, int fd) argument
[all...]
H A Dsensor.cpp20 #include <android/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());
62 ASensorManager_createEventQueue(ASensorManager* manager, ALooper* looper, int ident, ALooper_callbackFunc callback, void* data) argument
H A DAndroid.mk12 looper.cpp \
/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/base/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...]
H A Dsensor.h45 #include <android/looper.h>
166 * Creates a new sensor event queue and associate it with a looper.
169 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data);
/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
67 * has been started, this method will block until the looper has been initialized.
68 * @return The looper.
75 // If the thread has been started, wait until the looper has been created.
88 * Ask the currently running looper to quit. If the thread has not
90 * null), then false is returned. Otherwise the looper is asked to
94 Looper looper = getLooper();
95 if (looper != null) {
96 looper
[all...]
H A DHandler.java155 public Handler(Looper looper) { argument
156 mLooper = looper;
157 mQueue = looper.mQueue;
165 public Handler(Looper looper, Callback callback) { argument
166 mLooper = looper;
167 mQueue = looper.mQueue;
244 * looper processing the message queue is exiting.
263 * looper processing the message queue is exiting. Note that a
265 * the looper is quit before the delivery time of the message
285 * looper processin
[all...]
/frameworks/base/media/libstagefright/foundation/
H A DALooperRoster.cpp34 const sp<ALooper> looper, const sp<AHandler> &handler) {
43 info.mLooper = looper;
86 sp<ALooper> looper = info.mLooper.promote(); local
88 if (looper == NULL) {
97 looper->post(msg, delayUs);
138 sp<ALooper> looper = mHandlers.valueAt(index).mLooper.promote(); local
140 if (looper == NULL) {
145 return looper;
33 registerHandler( const sp<ALooper> looper, const sp<AHandler> &handler) argument
H A DAHandler.cpp27 sp<ALooper> AHandler::looper() { function in class:android::AHandler
/frameworks/base/media/java/android/media/
H A DSoundPool.java146 Looper looper;
147 if ((looper = Looper.myLooper()) != null) {
148 mEventHandler = new EventHandler(this, looper);
149 } else if ((looper = Looper.getMainLooper()) != null) {
150 mEventHandler = new EventHandler(this, looper);
438 public EventHandler(SoundPool soundPool, Looper looper) { argument
439 super(looper);
H A DMediaRecorder.java84 Looper looper;
85 if ((looper = Looper.myLooper()) != null) {
86 mEventHandler = new EventHandler(this, looper);
87 } else if ((looper = Looper.getMainLooper()) != null) {
88 mEventHandler = new EventHandler(this, looper);
679 public EventHandler(MediaRecorder mr, Looper looper) { argument
680 super(looper);
/frameworks/base/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();
H A DARTSPController.cpp28 ARTSPController::ARTSPController(const sp<ALooper> &looper) argument
30 mLooper(looper),
35 looper->registerHandler(mReflector);
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DGSMTestHandler.java78 Looper looper = getLooper();
79 if (looper != null) looper.quit();
/frameworks/base/include/media/stagefright/foundation/
H A DAHandler.h37 sp<ALooper> looper();
H A DALooperRoster.h30 const sp<ALooper> looper, const sp<AHandler> &handler);
/frameworks/base/libs/gui/
H A DSensorEventQueue.cpp101 sp<Looper> looper(getLooper());
105 result = looper->pollOnce(-1);
118 sp<Looper> looper(getLooper());
119 looper->wake();
/frameworks/base/core/java/android/app/
H A DIntentService.java53 public ServiceHandler(Looper looper) { argument
54 super(looper);
/frameworks/base/media/java/android/media/audiofx/
H A DVisualizer.java440 Looper looper;
441 if ((looper = Looper.myLooper()) != null) {
442 mNativeEventHandler = new NativeEventHandler(this, looper);
443 } else if ((looper = Looper.getMainLooper()) != null) {
444 mNativeEventHandler = new NativeEventHandler(this, looper);
461 public NativeEventHandler(Visualizer v, Looper looper) { argument
462 super(looper);
/frameworks/base/include/utils/
H A DLooper.h25 #include <android/looper.h>
40 * Declare a concrete type for the NDK's looper forward declaration.
51 * A looper can be associated with a thread although there is no requirement that it must be.
59 * Creates a looper.
61 * If allowNonCallbaks is true, the looper will allow file descriptors to be
68 * Returns whether this looper instance allows the registration of file descriptors
123 * Adds a new file descriptor to be polled by the looper.
151 * Removes a previously added file descriptor from the looper.
153 * When this method returns, it is safe to close the file descriptor since the looper
169 * Prepares a looper associate
[all...]
/frameworks/base/libs/utils/
H A DLooper.cpp4 // A looper implementation based on epoll().
120 void Looper::setForThread(const sp<Looper>& looper) { argument
123 if (looper != NULL) {
124 looper->incStrong((void*)threadDestructor);
127 pthread_setspecific(gTLSKey, looper.get());
143 sp<Looper> looper = Looper::getForThread(); local
144 if (looper == NULL) {
145 looper = new Looper(allowNonCallbacks);
146 Looper::setForThread(looper);
148 if (looper
[all...]
/frameworks/base/location/java/android/location/
H A DLocationManager.java169 ListenerTransport(LocationListener listener, Looper looper) { argument
172 if (looper == null) {
180 mListenerHandler = new Handler(looper) {
487 * @param looper a Looper object whose message queue will be used to
489 * If looper is null then the callbacks will be called on the main thread.
497 Looper looper) {
504 _requestLocationUpdates(provider, null, minTime, minDistance, false, listener, looper);
546 * @param looper a Looper object whose message queue will be used to
548 * If looper is null then the callbacks will be called on the main thread.
556 Criteria criteria, LocationListener listener, Looper looper) {
495 requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener, Looper looper) argument
555 requestLocationUpdates(long minTime, float minDistance, Criteria criteria, LocationListener listener, Looper looper) argument
566 _requestLocationUpdates(String provider, Criteria criteria, long minTime, float minDistance, boolean singleShot, LocationListener listener, Looper looper) argument
746 requestSingleUpdate(String provider, LocationListener listener, Looper looper) argument
787 requestSingleUpdate(Criteria criteria, LocationListener listener, Looper looper) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_InputQueue.cpp80 const sp<InputChannel>& inputChannel, const sp<Looper>& looper);
91 sp<Looper> looper; member in class:android::NativeInputQueue::Connection
144 sp<Looper> looper = android_os_MessageQueue_getLooper(env, messageQueueObj); local
156 sp<Connection> connection = new Connection(connectionId, inputChannel, looper);
169 looper->addFd(receiveFd, 0, ALOOPER_EVENT_INPUT, handleReceiveCallback, this);
204 connection->looper->removeFd(inputChannel->getReceivePipeFd());
438 const sp<InputChannel>& inputChannel, const sp<Looper>& looper) :
440 looper(looper), inputHandlerObjGlobal(NULL),
437 Connection(uint16_t id, const sp<InputChannel>& inputChannel, const sp<Looper>& looper) argument
/frameworks/base/core/java/com/android/internal/service/wallpaper/
H A DImageWallpaper.java49 Looper looper = WindowManagerPolicyThread.getLooper();
50 if (looper != null) {
51 setCallbackLooper(looper);

Completed in 637 milliseconds

123