Home
last modified time | relevance | path

Searched refs:looper (Results 1 – 25 of 443) sorted by relevance

12345678910>>...18

/frameworks/base/native/android/
Dlooper.cpp32 static inline ALooper* Looper_to_ALooper(Looper* looper) { in Looper_to_ALooper() argument
33 return reinterpret_cast<ALooper*>(looper); in Looper_to_ALooper()
44 void ALooper_acquire(ALooper* looper) { in ALooper_acquire() argument
45 ALooper_to_Looper(looper)->incStrong((void*)ALooper_acquire); in ALooper_acquire()
48 void ALooper_release(ALooper* looper) { in ALooper_release() argument
49 ALooper_to_Looper(looper)->decStrong((void*)ALooper_acquire); in ALooper_release()
53 sp<Looper> looper = Looper::getForThread(); in ALooper_pollOnce() local
54 if (looper == NULL) { in ALooper_pollOnce()
60 return looper->pollOnce(timeoutMillis, outFd, outEvents, outData); in ALooper_pollOnce()
64 sp<Looper> looper = Looper::getForThread(); in ALooper_pollAll() local
[all …]
Dchoreographer.cpp69 explicit Choreographer(const sp<Looper>& looper);
92 sp<Looper> looper = Looper::getForThread(); in getForThread() local
93 if (!looper.get()) { in getForThread()
97 gChoreographer = new Choreographer(looper); in getForThread()
107 Choreographer::Choreographer(const sp<Looper>& looper) : in Choreographer() argument
108 DisplayEventDispatcher(looper), mLooper(looper), mThreadId(std::this_thread::get_id()) { in Choreographer()
/frameworks/base/core/java/android/os/
DHandlerThread.java138 Looper looper = getLooper(); in quit() local
139 if (looper != null) { in quit()
140 looper.quit(); in quit()
165 Looper looper = getLooper(); in quitSafely() local
166 if (looper != null) { in quitSafely()
167 looper.quitSafely(); in quitSafely()
DHandler.java161 public Handler(@NonNull Looper looper) { in Handler() argument
162 this(looper, null, false); in Handler()
172 public Handler(@NonNull Looper looper, @Nullable Callback callback) { in Handler() argument
173 this(looper, callback, false); in Handler()
255 public Handler(@NonNull Looper looper, @Nullable Callback callback, boolean async) { in Handler() argument
256 mLooper = looper; in Handler()
257 mQueue = looper.mQueue; in Handler()
275 public static Handler createAsync(@NonNull Looper looper) { in createAsync() argument
276 if (looper == null) throw new NullPointerException("looper must not be null"); in createAsync()
277 return new Handler(looper, null, true); in createAsync()
[all …]
DTestLooperManager.java45 public TestLooperManager(Looper looper) { in TestLooperManager() argument
47 if (sHeldLoopers.contains(looper)) { in TestLooperManager()
50 sHeldLoopers.add(looper); in TestLooperManager()
52 mLooper = looper; in TestLooperManager()
55 new Handler(looper).post(new LooperHolder()); in TestLooperManager()
/frameworks/native/cmds/servicemanager/
Dmain.cpp41 static sp<BinderCallback> setupTo(const sp<Looper>& looper) { in setupTo() argument
52 int ret = looper->addFd(binder_fd, in setupTo()
71 …static sp<ClientCallbackCallback> setupTo(const sp<Looper>& looper, const sp<ServiceManager>& mana… in setupTo() argument
91 int addRes = looper->addFd(fdTimer, in setupTo()
135 sp<Looper> looper = Looper::prepare(false /*allowNonCallbacks*/); in main() local
137 BinderCallback::setupTo(looper); in main()
138 ClientCallbackCallback::setupTo(looper, manager); in main()
141 looper->pollAll(-1); in main()
/frameworks/native/include/android/
Dlooper.h108 void ALooper_acquire(ALooper* looper);
113 void ALooper_release(ALooper* looper);
213 void ALooper_wake(ALooper* looper);
241 int ALooper_addFd(ALooper* looper, int fd, int ident, int events,
261 int ALooper_removeFd(ALooper* looper, int fd);
/frameworks/native/include_sensor/android/
Dlooper.h108 void ALooper_acquire(ALooper* looper);
113 void ALooper_release(ALooper* looper);
213 void ALooper_wake(ALooper* looper);
241 int ALooper_addFd(ALooper* looper, int fd, int ident, int events,
261 int ALooper_removeFd(ALooper* looper, int fd);
/frameworks/av/media/libstagefright/foundation/
DALooperRoster.cpp37 const sp<ALooper> &looper, const sp<AHandler> &handler) { in registerHandler() argument
46 info.mLooper = looper; in registerHandler()
51 handler->setID(handlerID, looper); in registerHandler()
86 sp<ALooper> looper = info.mLooper.promote(); in unregisterStaleHandlers() local
87 if (looper == NULL) { in unregisterStaleHandlers()
97 activeLoopers.add(looper); in unregisterStaleHandlers()
139 sp<ALooper> looper = info.mLooper.promote(); in dump() local
140 if (looper != NULL) { in dump()
141 s.append(looper->getName()); in dump()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DInputChannelCompat.java47 Looper looper, Choreographer choreographer, InputEventListener listener) { in fromBundle() argument
50 return new InputEventReceiver(channel, looper, choreographer, listener); in fromBundle()
74 public InputEventReceiver(InputChannel inputChannel, Looper looper, in InputEventReceiver() argument
77 mReceiver = new BatchedInputEventReceiver(inputChannel, looper, choreographer) { in InputEventReceiver()
104 public InputEventDispatcher(InputChannel inputChannel, Looper looper) { in InputEventDispatcher() argument
106 mSender = new InputEventSender(inputChannel, looper) { }; in InputEventDispatcher()
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
DWirelessChargingAnimation.java57 public WirelessChargingAnimation(@NonNull Context context, @Nullable Looper looper, int in WirelessChargingAnimation() argument
59 mCurrentWirelessChargingView = new WirelessChargingView(context, looper, in WirelessChargingAnimation()
68 @Nullable Looper looper, int batteryLevel, Callback callback, boolean isDozing) { in makeWirelessChargingAnimation() argument
69 return new WirelessChargingAnimation(context, looper, batteryLevel, callback, isDozing); in makeWirelessChargingAnimation()
103 public WirelessChargingView(Context context, @Nullable Looper looper, int batteryLevel, in WirelessChargingView() argument
122 if (looper == null) { in WirelessChargingView()
124 looper = Looper.myLooper(); in WirelessChargingView()
125 if (looper == null) { in WirelessChargingView()
132 mHandler = new Handler(looper, null) { in WirelessChargingView()
/frameworks/av/media/libstagefright/rtsp/
Drtp_test.cpp63 sp<ALooper> looper = new ALooper; in main() local
70 looper->registerHandler(rtp_pusher); in main()
73 looper->registerHandler(rtcp_pusher); in main()
77 looper->registerHandler(session); in main()
173 looper->start(false /* runOnCallingThread */); in main()
217 looper->stop(); in main()
/frameworks/base/media/java/android/media/
DMediaSync.java258 Looper looper; in setCallback() local
259 if ((looper = Looper.myLooper()) == null) { in setCallback()
260 looper = Looper.getMainLooper(); in setCallback()
262 if (looper == null) { in setCallback()
265 mCallbackHandler = new Handler(looper); in setCallback()
291 Looper looper; in setOnErrorListener() local
292 if ((looper = Looper.myLooper()) == null) { in setOnErrorListener()
293 looper = Looper.getMainLooper(); in setOnErrorListener()
295 if (looper == null) { in setOnErrorListener()
298 mOnErrorListenerHandler = new Handler(looper); in setOnErrorListener()
/frameworks/base/core/java/android/view/
DDisplayEventReceiver.java93 public DisplayEventReceiver(Looper looper) { in DisplayEventReceiver() argument
94 this(looper, VSYNC_SOURCE_APP, CONFIG_CHANGED_EVENT_SUPPRESS); in DisplayEventReceiver()
105 public DisplayEventReceiver(Looper looper, int vsyncSource, int configChanged) { in DisplayEventReceiver() argument
106 if (looper == null) { in DisplayEventReceiver()
110 mMessageQueue = looper.getQueue(); in DisplayEventReceiver()
DChoreographer.java108 Looper looper = Looper.myLooper();
109 if (looper == null) {
112 Choreographer choreographer = new Choreographer(looper, VSYNC_SOURCE_APP);
113 if (looper == Looper.getMainLooper()) {
127 Looper looper = Looper.myLooper();
128 if (looper == null) {
131 return new Choreographer(looper, VSYNC_SOURCE_SURFACE_FLINGER);
254 private Choreographer(Looper looper, int vsyncSource) { in Choreographer() argument
255 mLooper = looper; in Choreographer()
256 mHandler = new FrameHandler(looper); in Choreographer()
[all …]
DInputFilter.java122 public InputFilter(Looper looper) { in InputFilter() argument
123 mH = new H(looper); in InputFilter()
217 public H(Looper looper) { in H() argument
218 super(looper); in H()
/frameworks/base/location/java/android/location/
DCountryDetector.java64 public ListenerTransport(CountryListener listener, Looper looper) { in ListenerTransport() argument
66 if (looper != null) { in ListenerTransport()
67 mHandler = new Handler(looper); in ListenerTransport()
124 public void addCountryListener(CountryListener listener, Looper looper) { in addCountryListener() argument
127 ListenerTransport transport = new ListenerTransport(listener, looper); in addCountryListener()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTriggerModule.java159 Looper looper; in NativeEventHandlerDelegate() local
161 looper = handler.getLooper(); in NativeEventHandlerDelegate()
163 looper = Looper.getMainLooper(); in NativeEventHandlerDelegate()
167 if (looper != null) { in NativeEventHandlerDelegate()
169 mHandler = new Handler(looper) { in NativeEventHandlerDelegate()
/frameworks/base/cmds/incidentd/src/
Dmain.cpp37 sp<Looper> looper(Looper::prepare(0 /* opts */)); in main() local
47 sp<IncidentService> service = new IncidentService(looper); in main()
56 looper->pollAll(-1 /* timeoutMillis */); in main()
/frameworks/base/core/jni/
Dandroid_view_InputQueue.cpp48 InputQueue::InputQueue(jobject inputQueueObj, const sp<Looper>& looper, in InputQueue() argument
51 mDispatchLooper(looper), mHandler(new WeakMessageHandler(this)) { in InputQueue()
64 void InputQueue::attachLooper(Looper* looper, int ident, in attachLooper() argument
68 if (looper == mAppLoopers[i]) { in attachLooper()
72 mAppLoopers.push(looper); in attachLooper()
73 looper->addFd(mDispatchReadFd, ident, ALOOPER_EVENT_INPUT, callback, data); in attachLooper()
187 InputQueue* InputQueue::createQueue(jobject inputQueueObj, const sp<Looper>& looper) { in createQueue() argument
195 return new InputQueue(inputQueueObj, looper, pipeFds[0], pipeFds[1]); in createQueue()
/frameworks/base/core/java/android/net/
DNetworkAgent.java326 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() argument
328 this(looper, context, logTag, ni, nc, lp, score, null, NetworkProvider.ID_NONE); in NetworkAgent()
333 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() argument
335 this(looper, context, logTag, ni, nc, lp, score, config, NetworkProvider.ID_NONE); in NetworkAgent()
340 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() argument
342 this(looper, context, logTag, ni, nc, lp, score, null, providerId); in NetworkAgent()
347 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() argument
350 this(looper, context, logTag, nc, lp, score, config, providerId, ni, true /* legacy */); in NetworkAgent()
376 public NetworkAgent(@NonNull Context context, @NonNull Looper looper, @NonNull String logTag, in NetworkAgent() argument
379 this(looper, context, logTag, nc, lp, score, config, in NetworkAgent()
[all …]
/frameworks/base/services/core/java/com/android/server/
DUiThread.java50 final Looper looper = sInstance.getLooper(); in ensureThreadLocked() local
51 looper.setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked()
52 looper.setSlowLogThresholdMs( in ensureThreadLocked()
DFgThread.java50 final Looper looper = sInstance.getLooper(); in ensureThreadLocked() local
51 looper.setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked()
52 looper.setSlowLogThresholdMs( in ensureThreadLocked()
/frameworks/native/services/sensorservice/hidl/
DSensorManager.cpp143 std::thread pollThread{[&stopThread = mStopThread, looper = mLooper, javaVm = mJavaVm] { in getLooper()
153 Looper::setForThread(looper); in getLooper()
169 int pollResult = looper->pollAll(-1 /* timeout */); in getLooper()
211 sp<::android::Looper> looper = getLooper(); in createEventQueue() local
212 if (looper == nullptr) { in createEventQueue()
227 sp<IEventQueue> queue = new EventQueue(callback, looper, internalQueue); in createEventQueue()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAHandler.h40 sp<ALooper> looper() const { in looper() function
63 inline void setID(ALooper::handler_id id, const wp<ALooper> &looper) { in setID()
65 mLooper = looper; in setID()

12345678910>>...18