Home
last modified time | relevance | path

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

12345678910>>...20

/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 …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsTestBase.java60 for (TestableLooper looper : mTestableLoopers) { in tearDown()
61 looper.destroy(); in tearDown()
86 public void monitorTestableLooper(TestableLooper looper) { in monitorTestableLooper() argument
87 if (looper != null && !mTestableLoopers.contains(looper)) { in monitorTestableLooper()
88 mTestableLoopers.add(looper); in monitorTestableLooper()
96 public void unmonitorTestableLooper(TestableLooper looper) { in unmonitorTestableLooper() argument
97 if (looper != null && mTestableLoopers.contains(looper)) { in unmonitorTestableLooper()
98 mTestableLoopers.remove(looper); in unmonitorTestableLooper()
110 for (TestableLooper looper : mTestableLoopers) looper.processAllMessages(); in processAllMessages()
121 for (TestableLooper looper : mTestableLoopers) { in areAllTestableLoopersIdle()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/
DSysUIConcurrencyModule.java93 public static Executor provideExecutor(@Background Looper looper) { in provideExecutor() argument
94 return new ExecutorImpl(looper); in provideExecutor()
103 public static Executor provideBroadcastRunningExecutor(@BroadcastRunning Looper looper) { in provideBroadcastRunningExecutor() argument
104 return new ExecutorImpl(looper); in provideBroadcastRunningExecutor()
113 public static Executor provideLongRunningExecutor(@LongRunning Looper looper) { in provideLongRunningExecutor() argument
114 return new ExecutorImpl(looper); in provideLongRunningExecutor()
124 @LongRunning Looper looper) { in provideLongRunningDelayableExecutor()
125 return new ExecutorImpl(looper); in provideLongRunningDelayableExecutor()
134 public static Executor provideBackgroundExecutor(@Background Looper looper) { in provideBackgroundExecutor() argument
135 return new ExecutorImpl(looper); in provideBackgroundExecutor()
[all …]
/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()
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()
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 …]
/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/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/cmds/servicemanager/
Dmain.cpp41 static sp<BinderCallback> setupTo(const sp<Looper>& looper) { in setupTo() argument
48 int ret = looper->addFd(binder_fd, in setupTo()
67 …static sp<ClientCallbackCallback> setupTo(const sp<Looper>& looper, const sp<ServiceManager>& mana… in setupTo() argument
87 int addRes = looper->addFd(fdTimer, in setupTo()
136 sp<Looper> looper = Looper::prepare(false /*allowNonCallbacks*/); in main() local
138 BinderCallback::setupTo(looper); in main()
139 ClientCallbackCallback::setupTo(looper, manager); in main()
142 looper->pollAll(-1); in main()
/frameworks/av/media/libstagefright/foundation/
DALooperRoster.cpp39 const sp<ALooper> &looper, const sp<AHandler> &handler) { in registerHandler() argument
48 info.mLooper = looper; in registerHandler()
53 handler->setID(handlerID, looper); in registerHandler()
88 sp<ALooper> looper = info.mLooper.promote(); in unregisterStaleHandlers() local
89 if (looper == NULL) { in unregisterStaleHandlers()
99 activeLoopers.add(looper); in unregisterStaleHandlers()
141 sp<ALooper> looper = info.mLooper.promote(); in dump() local
142 if (looper != NULL) { in dump()
143 s.append(looper->getName()); in dump()
/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/core/java/android/view/
DBatchedInputEventReceiver.java41 InputChannel inputChannel, Looper looper, Choreographer choreographer) { in BatchedInputEventReceiver() argument
42 super(inputChannel, looper); in BatchedInputEventReceiver()
45 mHandler = new Handler(looper); in BatchedInputEventReceiver()
135 public SimpleBatchedInputEventReceiver(InputChannel inputChannel, Looper looper, in SimpleBatchedInputEventReceiver() argument
137 super(inputChannel, looper, choreographer); in SimpleBatchedInputEventReceiver()
DDisplayEventReceiver.java95 public DisplayEventReceiver(Looper looper) { in DisplayEventReceiver() argument
96 this(looper, VSYNC_SOURCE_APP, 0); in DisplayEventReceiver()
107 public DisplayEventReceiver(Looper looper, int vsyncSource, int eventRegistration) { in DisplayEventReceiver() argument
108 if (looper == null) { in DisplayEventReceiver()
112 mMessageQueue = looper.getQueue(); in DisplayEventReceiver()
DInputFilter.java123 public InputFilter(Looper looper) { in InputFilter() argument
124 mH = new H(looper); in InputFilter()
218 public H(Looper looper) { in H() argument
219 super(looper); in H()
/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/packages/SystemUI/src/com/android/systemui/charging/
DWirelessChargingAnimation.java60 private WirelessChargingAnimation(@NonNull Context context, @Nullable Looper looper, in WirelessChargingAnimation() argument
63 mCurrentWirelessChargingView = new WirelessChargingView(context, looper, in WirelessChargingAnimation()
74 @Nullable Looper looper, int transmittingBatteryLevel, int batteryLevel, in makeWirelessChargingAnimation() argument
77 return new WirelessChargingAnimation(context, looper, transmittingBatteryLevel, in makeWirelessChargingAnimation()
124 public WirelessChargingView(Context context, @Nullable Looper looper, in WirelessChargingView() argument
146 if (looper == null) { in WirelessChargingView()
148 looper = Looper.myLooper(); in WirelessChargingView()
149 if (looper == null) { in WirelessChargingView()
156 mHandler = new Handler(looper, null) { in WirelessChargingView()
/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/services/core/java/com/android/server/location/contexthub/
DAuthStateDenialTimer.java51 public AuthStateDenialTimer(ContextHubClientBroker client, long nanoAppId, Looper looper) { in AuthStateDenialTimer() argument
54 mHandler = new CountDownHandler(looper); in AuthStateDenialTimer()
86 CountDownHandler(Looper looper) { in CountDownHandler() argument
87 super(looper); in CountDownHandler()
/frameworks/av/media/libstagefright/tests/mediacodec/
DMediaCodecTest.cpp161 const sp<ALooper> &looper, in SetupMediaCodec() argument
183 looper->start(); in SetupMediaCodec()
185 codecName, looper, getCodecBase, getCodecInfo); in SetupMediaCodec()
238 sp<ALooper> looper{new ALooper}; in TEST() local
240 kCodecOwner, kCodecName, kMediaType, looper, getCodecBase); in TEST()
279 looper->stop(); in TEST()
336 sp<ALooper> looper{new ALooper}; in TEST() local
338 kCodecOwner, kCodecName, kMediaType, looper, getCodecBase); in TEST()
350 looper->stop(); in TEST()
385 sp<ALooper> looper{new ALooper}; in TEST() local
[all …]
/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/java/android/widget/
DToast.java168 public Toast(@NonNull Context context, @Nullable Looper looper) { in Toast() argument
171 looper = getLooper(looper); in Toast()
172 mHandler = new Handler(looper); in Toast()
175 mCallbacks, looper); in Toast()
182 private Looper getLooper(@Nullable Looper looper) { in getLooper() argument
183 if (looper != null) { in getLooper()
184 return looper; in getLooper()
499 public static Toast makeText(@NonNull Context context, @Nullable Looper looper, in makeText() argument
501 Toast result = new Toast(context, looper); in makeText()
523 public static Toast makeCustomToastWithIcon(@NonNull Context context, @Nullable Looper looper, in makeCustomToastWithIcon() argument
[all …]
/frameworks/base/tests/Input/src/com/android/test/input/
DSpyInputEventSenderAndReceiver.kt34 class SpyInputEventReceiver(channel: InputChannel, looper: Looper) :
35 InputEventReceiver(channel, looper) {
52 class SpyInputEventSender(channel: InputChannel, looper: Looper) :
53 InputEventSender(channel, looper) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyComponentFactory.java418 public AccessNetworksManager makeAccessNetworksManager(Phone phone, Looper looper) {
419 return new AccessNetworksManager(phone, looper);
429 Looper looper) {
430 return new LocaleTracker(phone, nitzStateMachine, looper);
449 Looper looper) {
450 return PhoneSwitcher.make(maxDataAttachModemCount, context, looper);
472 public SubscriptionInfoUpdater makeSubscriptionInfoUpdater(Looper looper, Context context,
474 return new SubscriptionInfoUpdater(looper, context, sc);
492 public DataNetworkController makeDataNetworkController(Phone phone, Looper looper) {
493 return new DataNetworkController(phone, looper);
[all …]
/frameworks/base/core/jni/
Dandroid_view_InputQueue.cpp49 InputQueue::InputQueue(jobject inputQueueObj, const sp<Looper>& looper, in InputQueue() argument
52 mDispatchLooper(looper), mHandler(new WeakMessageHandler(this)) { in InputQueue()
65 void InputQueue::attachLooper(Looper* looper, int ident, in attachLooper() argument
69 if (looper == mAppLoopers[i]) { in attachLooper()
73 mAppLoopers.push(looper); in attachLooper()
74 looper->addFd(mDispatchReadFd, ident, ALOOPER_EVENT_INPUT, callback, data); in attachLooper()
188 InputQueue* InputQueue::createQueue(jobject inputQueueObj, const sp<Looper>& looper) { in createQueue() argument
196 return new InputQueue(inputQueueObj, looper, pipeFds[0], pipeFds[1]); in createQueue()
/frameworks/base/services/core/java/com/android/server/
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()

12345678910>>...20