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

1234567891011>>

/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 Dchoreographer.cpp67 Choreographer(const sp<Looper>& looper);
88 sp<Looper> looper = Looper::getForThread(); local
89 if (!looper.get()) {
90 ALOGW("No looper prepared for thread");
93 gChoreographer = new Choreographer(looper);
103 Choreographer::Choreographer(const sp<Looper>& looper) : argument
104 DisplayEventDispatcher(looper), mLooper(looper), mThreadId(std::this_thread::get_id()) {
H A Dsensor.cpp20 #include <android/looper.h>
85 ALooper* looper, int ident, ALooper_callbackFunc callback, void* data)
90 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data);
91 queue->looper = looper;
101 ALooper_removeFd(queue->looper, queue->getFd());
84 ASensorManager_createEventQueue(ASensorManager* manager, ALooper* looper, int ident, ALooper_callbackFunc callback, void* data) argument
/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.h23 * @file looper.h
37 * A looper is the state tracking an event loop for a thread.
50 * Returns the looper associated with the calling thread, or NULL if
58 * This looper will accept calls to ALooper_addFd() that do not
68 * Prepares a looper associated with the calling thread, and returns it.
69 * If the thread already has a looper, it is returned. Otherwise, a new
108 void ALooper_acquire(ALooper* looper);
113 void ALooper_release(ALooper* looper);
116 * Flags for file descriptor events that a looper can monitor.
134 * The looper alway
[all...]
/frameworks/base/location/java/android/location/
H A DCountryDetector.java55 * looper once the country changed and detected.
63 public ListenerTransport(CountryListener listener, Looper looper) { argument
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) { argument
123 ListenerTransport transport = new ListenerTransport(listener, looper);
/frameworks/av/media/libstagefright/foundation/
H A DALooperRoster.cpp37 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
36 registerHandler( const sp<ALooper> looper, const sp<AHandler> &handler) argument
[all...]
/frameworks/base/core/java/android/view/
H A DBatchedInputEventReceiver.java30 InputChannel inputChannel, Looper looper, Choreographer choreographer) {
31 super(inputChannel, looper);
29 BatchedInputEventReceiver( InputChannel inputChannel, Looper looper, Choreographer choreographer) argument
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.java55 * @param looper The looper to use when invoking callbacks.
57 public DisplayEventReceiver(Looper looper) { argument
58 if (looper == null) {
59 throw new IllegalArgumentException("looper must not be null");
62 mMessageQueue = looper.getQueue();
H A DFrameMetricsObserver.java49 * @param looper the looper to use when invoking callbacks
51 FrameMetricsObserver(@NonNull Window window, @NonNull Looper looper, argument
53 if (looper == null) {
54 throw new NullPointerException("looper cannot be null");
57 mMessageQueue = looper.getQueue();
59 throw new IllegalStateException("invalid looper, null message queue\n");
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/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DHistoryHandler.java30 HistoryHandler(Looper looper) { argument
31 super(looper);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DWifiScannerImpl.java38 WifiScannerImpl create(Context context, Looper looper, Clock clock); argument
46 public WifiScannerImpl create(Context context, Looper looper, Clock clock) {
49 return new HalWifiScannerImpl(context, wifiNative, looper, clock);
51 return new SupplicantWifiScannerImpl(context, wifiNative, looper, clock);
/frameworks/av/include/media/stagefright/foundation/
H A DAHandler.h40 sp<ALooper> looper() const { function in struct:android::AHandler
63 inline void setID(ALooper::handler_id id, wp<ALooper> looper) { argument
65 mLooper = looper;
H A DALooperRoster.h31 const sp<ALooper> looper, const sp<AHandler> &handler);
/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.java131 // find the looper for our new event handler
132 Looper looper;
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) {
/frameworks/base/media/java/android/media/
H A DMediaSync.java258 Looper looper;
259 if ((looper = Looper.myLooper()) == null) {
260 looper = Looper.getMainLooper();
262 if (looper == null) {
265 mCallbackHandler = new Handler(looper);
291 Looper looper;
292 if ((looper = Looper.myLooper()) == null) {
293 looper = Looper.getMainLooper();
295 if (looper == null) {
298 mOnErrorListenerHandler = new Handler(looper);
[all...]
/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 */);
220 looper->stop();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DGSMTestHandler.java.broken78 Looper looper = getLooper();
79 if (looper != null) looper.quit();
/frameworks/base/cmds/hid/jni/
H A Dcom_android_commands_hid_Device.h42 std::unique_ptr<DeviceCallback> callback, sp<Looper> looper);
44 Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper);
/frameworks/base/core/java/android/app/
H A DIntentService.java62 public ServiceHandler(Looper looper) { argument
63 super(looper);

Completed in 621 milliseconds

1234567891011>>