Home
last modified time | relevance | path

Searched refs:mExecutor (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/condition/
DConditionMonitorTest.java60 private FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock()); field in ConditionMonitorTest
78 mConditionMonitor = new Monitor(mExecutor); in setup()
105 monitor = new Monitor(mExecutor); in testOverridingCondition()
116 mExecutor.runAllReady(); in testOverridingCondition()
128 mExecutor.runAllReady(); in testOverridingCondition()
139 mExecutor.runAllReady(); in testOverridingCondition()
158 monitor = new Monitor(mExecutor); in testMultipleOverridingConditions()
165 mExecutor.runAllReady(); in testMultipleOverridingConditions()
179 mExecutor.runAllReady(); in testMultipleOverridingConditions()
195 mExecutor.runAllReady(); in testUpdateRemovedCallback()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/
DDreamOverlayStateControllerTest.java66 final FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock()); field in DreamOverlayStateControllerTest
82 mExecutor.runAllReady(); in testStateChange_overlayActive()
89 mExecutor.runAllReady(); in testStateChange_overlayActive()
93 mExecutor.runAllReady(); in testStateChange_overlayActive()
106 mExecutor.runAllReady(); in testCallback()
118 mExecutor.runAllReady(); in testCallback()
128 mExecutor.runAllReady(); in testNotifyOnCallbackAdd()
132 mExecutor.runAllReady(); in testNotifyOnCallbackAdd()
141 mExecutor.runAllReady(); in testNotifyOnCallbackAddOverlayDisabled()
145 mExecutor.runAllReady(); in testNotifyOnCallbackAddOverlayDisabled()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileLifecycleManagerTest.java110 private FakeExecutor mExecutor; field in TileLifecycleManagerTest
145 mExecutor = new FakeExecutor(mClock); in setUp()
154 mExecutor); in setUp()
193 mExecutor.runAllReady(); in testBind()
202 mExecutor.runAllReady(); in testPackageReceiverExported()
213 mExecutor.runAllReady(); in testUnbind()
215 mExecutor.runAllReady(); in testUnbind()
222 mExecutor.runAllReady(); in testTileServiceCallbacks()
239 mExecutor.runAllReady(); in testAddedBeforeBind()
250 mExecutor.runAllReady(); in testListeningBeforeBind()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
DObservableServiceConnectionTest.java96 FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock()); field in ObservableServiceConnectionTest
113 mIntent, mUserTracker, mExecutor, mTransformer); in testConnect()
117 mExecutor.runAllReady(); in testConnect()
119 mExecutor.runAllReady(); in testConnect()
125 mExecutor.runAllReady(); in testConnect()
134 mIntent, mUserTracker, mExecutor, mTransformer); in testDisconnect()
137 mExecutor.runAllReady(); in testDisconnect()
145 mExecutor.runAllReady(); in testDisconnect()
147 mExecutor.runAllReady(); in testDisconnect()
159 mExecutor.runAllReady(); in testDisconnect()
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DCallbackProxies.java40 private final Executor mExecutor; field in CallbackProxies.SessionStateCallbackProxy
45 mExecutor = checkNotNull(executor, "executor must not be null"); in SessionStateCallbackProxy()
53 mExecutor.execute(() -> mCallback.onConfigured(session)); in onConfigured()
64 mExecutor.execute(() -> mCallback.onConfigureFailed(session)); in onConfigureFailed()
74 mExecutor.execute(() -> mCallback.onReady(session)); in onReady()
84 mExecutor.execute(() -> mCallback.onActive(session)); in onActive()
94 mExecutor.execute(() -> mCallback.onCaptureQueueEmpty(session)); in onCaptureQueueEmpty()
104 mExecutor.execute(() -> mCallback.onClosed(session)); in onClosed()
114 mExecutor.execute(() -> mCallback.onSurfacePrepared(session, surface)); in onSurfacePrepared()
/frameworks/base/core/java/android/service/voice/
DSoftwareHotwordDetector.java59 private final Executor mExecutor; field in SoftwareHotwordDetector
73 mExecutor = executor != null ? executor : new HandlerExecutor( in SoftwareHotwordDetector()
81 new InitializationStateListener(mExecutor, mCallback), in initialize()
86 Binder.withCleanCallingIdentity(() -> mExecutor.execute(() -> in onDetectorRemoteException()
103 new BinderCallback(mExecutor, mCallback)); in startRecognition()
160 private final Executor mExecutor; field in SoftwareHotwordDetector.BinderCallback
164 this.mExecutor = executor; in BinderCallback()
173 Binder.withCleanCallingIdentity(() -> mExecutor.execute(() -> { in onDetected()
188 Binder.withCleanCallingIdentity(() -> mExecutor.execute(() -> { in onHotwordDetectionServiceFailure()
199 Binder.withCleanCallingIdentity(() -> mExecutor.execute(() -> { in onRejected()
[all …]
DVisualQueryDetector.java67 private final Executor mExecutor; field in VisualQueryDetector
81 mExecutor = executor; in VisualQueryDetector()
132 mExecutor, mCallback, mInitializationDelegate.getLock())); in startRecognition()
388 super(mManagerService, mExecutor, /* callback= */ null); in VisualQueryDetectorInitializationDelegate()
394 new InitializationStateListener(mExecutor, mCallback, mContext), in initialize()
436 private final Executor mExecutor; field in VisualQueryDetector.BinderCallback
442 this.mExecutor = executor; in BinderCallback()
453 mExecutor.execute(()->mCallback.onQueryDetected(partialQuery)); in onQueryDetected()
464 mExecutor.execute(()->mCallback.onQueryDetected(partialResult)); in onResultDetected()
474 mExecutor.execute(()->mCallback.onQueryFinished()); in onQueryFinished()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DObservableServiceConnectionTest.java97 private final FakeExecutor mExecutor = new FakeExecutor(); field in ObservableServiceConnectionTest
105 mExecutor, in setUp()
113 mExecutor.clearAll(); in tearDown()
122 mExecutor.runAll(); in testConnect()
132 mExecutor.runAll(); in testConnect()
139 mExecutor.runAll(); in testDisconnectBeforeBind()
141 mExecutor.runAll(); in testDisconnectBeforeBind()
149 mExecutor.runAll(); in testDisconnect()
155 mExecutor.runAll(); in testDisconnect()
171 mExecutor.runAll(); in testBindingDied()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/condition/
DSelfExecutingMonitor.java30 private final FakeExecutor mExecutor; field in SelfExecutingMonitor
37 mExecutor = executor; in SelfExecutingMonitor()
43 mExecutor.runAllReady(); in addSubscription()
50 mExecutor.runNextReady(); in removeSubscription()
59 final FakeExecutor mExecutor = new FakeExecutor(mFakeSystemClock); in createInstance() local
60 return new SelfExecutingMonitor(mExecutor); in createInstance()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DRepeatableExecutorTest.java39 private RepeatableExecutor mExecutor; field in RepeatableExecutorTest
47 mExecutor = new RepeatableExecutorImpl(mFakeExecutor); in setUp()
55 mExecutor.execute(mCountingTask); in testExecute()
63 mExecutor.executeRepeatedly(mCountingTask, DELAY, DELAY); in testRepeats()
75 mExecutor.executeRepeatedly(mCountingTask, 2 * DELAY, DELAY); in testNoExecutionBeforeStartDelay()
85 mExecutor.executeRepeatedly(mCountingTask, 2 * DELAY, DELAY); in testExecuteAfterStartDelay()
97 mExecutor.executeRepeatedly(mCountingTask, 0L, DELAY); in testExecuteWithZeroStartDelay()
107 mExecutor.executeRepeatedly(mCountingTask, DELAY, DELAY); in testAdvanceTimeTwice()
121 Runnable cancel = mExecutor.executeRepeatedly(mCountingTask, DELAY, DELAY); in testCancel()
134 Runnable cancel = mExecutor.executeRepeatedly(mCountingTask, DELAY, DELAY); in testCancelAfterStart()
/frameworks/base/packages/SystemUI/src/com/android/systemui/touch/
DTouchInsetManager.java47 private final Executor mExecutor; field in TouchInsetManager.TouchInsetSession
75 mExecutor = executor; in TouchInsetSession()
83 mExecutor.execute(() -> { in addViewToTracking()
96 mExecutor.execute(() -> { in removeViewFromTracking()
105 mExecutor.execute(() -> { in updateTouchRegions()
136 mExecutor.execute(() -> { in clear()
146 private final Executor mExecutor; field in TouchInsetManager
153 mExecutor = executor; in TouchInsetManager()
160 return new TouchInsetSession(this, mExecutor); in createSession()
168 mExecutor.execute(() -> completer.set( in checkWithinTouchRegion()
[all …]
/frameworks/base/core/java/android/telephony/
DTelephonyCallback.java1729 private Executor mExecutor; field in TelephonyCallback.IPhoneStateListenerStub
1733 mExecutor = executor; in IPhoneStateListenerStub()
1741 () -> mExecutor.execute(() -> listener.onServiceStateChanged(serviceState))); in onServiceStateChanged()
1754 () -> mExecutor.execute(() -> listener.onMessageWaitingIndicatorChanged(mwi))); in onMessageWaitingIndicatorChanged()
1763 () -> mExecutor.execute(() -> listener.onCallForwardingIndicatorChanged(cfi))); in onCallForwardingIndicatorChanged()
1775 () -> mExecutor.execute(() -> listener.onCellLocationChanged(location))); in onCellLocationChanged()
1788 () -> mExecutor.execute(() -> listener.onCallStateChanged(state))); in onCallStateChanged()
1799 () -> mExecutor.execute(() -> in onDataConnectionStateChanged()
1804 () -> mExecutor.execute(() -> in onDataConnectionStateChanged()
1814 () -> mExecutor.execute(() -> listener.onDataActivity(direction))); in onDataActivity()
[all …]
DPhoneStateListener.java1322 private Executor mExecutor; field in PhoneStateListener.IPhoneStateListenerStub
1326 mExecutor = executor; in IPhoneStateListenerStub()
1334 () -> mExecutor.execute(() -> psl.onServiceStateChanged(serviceState))); in onServiceStateChanged()
1342 () -> mExecutor.execute(() -> psl.onSignalStrengthChanged(asu))); in onSignalStrengthChanged()
1350 () -> mExecutor.execute(() -> psl.onMessageWaitingIndicatorChanged(mwi))); in onMessageWaitingIndicatorChanged()
1358 () -> mExecutor.execute(() -> psl.onCallForwardingIndicatorChanged(cfi))); in onCallForwardingIndicatorChanged()
1370 () -> mExecutor.execute(() -> psl.onCellLocationChanged(location))); in onCellLocationChanged()
1378 () -> mExecutor.execute(() -> psl.onCallStateChanged(state, incomingNumber))); in onLegacyCallStateChanged()
1391 Binder.withCleanCallingIdentity(() -> mExecutor.execute( in onDataConnectionStateChanged()
1398 Binder.withCleanCallingIdentity(() -> mExecutor.execute( in onDataConnectionStateChanged()
[all …]
/frameworks/base/telephony/java/android/telephony/mbms/
DInternalStreamingServiceCallback.java27 private final Executor mExecutor; field in InternalStreamingServiceCallback
33 mExecutor = executor; in InternalStreamingServiceCallback()
44 mExecutor.execute(new Runnable() { in onError()
63 mExecutor.execute(new Runnable() { in onStreamStateUpdated()
82 mExecutor.execute(new Runnable() { in onMediaDescriptionUpdated()
101 mExecutor.execute(new Runnable() { in onBroadcastSignalStrengthUpdated()
120 mExecutor.execute(new Runnable() { in onStreamMethodUpdated()
DInternalGroupCallSessionCallback.java26 private final Executor mExecutor; field in InternalGroupCallSessionCallback
33 mExecutor = executor; in InternalGroupCallSessionCallback()
44 mExecutor.execute(new Runnable() { in onError()
63 mExecutor.execute(new Runnable() { in onAvailableSaisUpdated()
82 mExecutor.execute(new Runnable() { in onServiceInterfaceAvailable()
101 mExecutor.execute(new Runnable() { in onMiddlewareReady()
DInternalStreamingSessionCallback.java27 private final Executor mExecutor; field in InternalStreamingSessionCallback
34 mExecutor = executor; in InternalStreamingSessionCallback()
45 mExecutor.execute(new Runnable() { in onError()
65 mExecutor.execute(new Runnable() { in onStreamingServicesUpdated()
84 mExecutor.execute(new Runnable() { in onMiddlewareReady()
/frameworks/base/telephony/java/android/telephony/ims/aidl/
DSipDelegateConnectionAidlWrapper.java62 mExecutor.execute(() ->
74 mExecutor.execute(() ->
86 mExecutor.execute(() ->
97 mExecutor.execute(() ->
109 mExecutor.execute(() ->
123 mExecutor.execute(() ->
134 mExecutor.execute(() ->
145 mExecutor.execute(() ->
154 private final Executor mExecutor; field in SipDelegateConnectionAidlWrapper
167 mExecutor = executor; in SipDelegateConnectionAidlWrapper()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowManagerConstantsTest.java48 ExecutorService mExecutor; field in WindowManagerConstantsTest
55 mExecutor = Executors.newSingleThreadExecutor(); in setUp()
64 mExecutor.shutdown(); in tearDown()
75 mConstants.start(mExecutor); in test_constantsAreLoaded_initially()
84 mConstants.start(mExecutor); in test_constantsAreLoaded_afterChange()
100 mConstants.start(mExecutor); in test_changedGestureExclusionLimit_invokesCallback()
110 mConstants.start(mExecutor); in test_changedPreQStickyImmersive_invokesCallback()
122 mConstants.start(mExecutor); in test_minimumExclusionLimitIs_200dp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DAsyncSensorManager.java59 private final Executor mExecutor; field in AsyncSensorManager
66 mExecutor = threadFactory.buildExecutorOnNewThread("async_sensor"); in AsyncSensorManager()
89 mExecutor.execute(() -> { in registerListenerImpl()
121 mExecutor.execute(() -> mInner.registerDynamicSensorCallback(callback, handler)); in registerDynamicSensorCallbackImpl()
126 mExecutor.execute(() -> mInner.unregisterDynamicSensorCallback(callback)); in unregisterDynamicSensorCallbackImpl()
137 mExecutor.execute(() -> { in requestTriggerSensorImpl()
150 mExecutor.execute(() -> { in cancelTriggerSensorImpl()
170 mExecutor.execute(() -> { in registerPluginListener()
186 mExecutor.execute(() -> { in unregisterPluginListener()
206 mExecutor.execute(() -> mInner.setOperationParameter(parameter)); in setOperationParameterImpl()
[all …]
/frameworks/base/core/java/android/credentials/
DCredentialManager.java639 private final Executor mExecutor; field in CredentialManager.PrepareGetCredentialTransport
648 mExecutor = executor; in PrepareGetCredentialTransport()
657 mExecutor.execute(() -> mCallback.onResult( in onResponse()
668 mExecutor.execute( in onError()
734 private final Executor mExecutor; field in CredentialManager.GetCandidateCredentialsTransport
742 mExecutor = executor; in GetCandidateCredentialsTransport()
750 mExecutor.execute(() -> mCallback.onResult(response)); in onResponse()
760 mExecutor.execute( in onError()
773 private final Executor mExecutor; field in CredentialManager.GetCredentialTransport
781 mExecutor = executor; in GetCredentialTransport()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/scrim/
DBouncerlessScrimController.java57 private final Executor mExecutor; field in BouncerlessScrimController
62 mExecutor.execute(() -> mCallbacks.add(listener)); in addCallback()
67 mExecutor.execute(() -> mCallbacks.remove(listener)); in removeCallback()
76 mExecutor = executor; in BouncerlessScrimController()
86 mExecutor.execute(() -> mCallbacks.forEach(callback -> callback.onWakeup())); in expand()
88 mExecutor.execute(() -> mCallbacks.forEach(callback -> callback.onExpansion(event))); in expand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DVibratorHelper.java58 private final Executor mExecutor; field in VibratorHelper
73 mExecutor = executor; in VibratorHelper()
84 mExecutor.execute(() -> in vibrate()
97 mExecutor.execute(() -> mVibrator.vibrate(uid, opPkg, vibe, reason, attributes)); in vibrate()
107 mExecutor.execute(() -> mVibrator.vibrate(effect, attributes)); in vibrate()
117 mExecutor.execute(() -> mVibrator.vibrate(effect)); in vibrate()
127 mExecutor.execute(() -> mVibrator.vibrate(effect, attributes)); in vibrate()
144 mExecutor.execute(mVibrator::cancel); in cancel()
/frameworks/base/core/java/android/window/
DTaskOrganizer.java47 private final Executor mExecutor; field in TaskOrganizer
56 mExecutor = executor != null ? executor : Runnable::run; in TaskOrganizer()
274 return mExecutor; in getExecutor()
280 mExecutor.execute(() -> TaskOrganizer.this.addStartingWindow(windowInfo));
285 mExecutor.execute(() -> TaskOrganizer.this.removeStartingWindow(removalInfo));
290 mExecutor.execute(() -> TaskOrganizer.this.copySplashScreenView(taskId));
295 mExecutor.execute(() -> TaskOrganizer.this.onAppSplashScreenViewRemoved(taskId));
300 mExecutor.execute(() -> TaskOrganizer.this.onTaskAppeared(taskInfo, leash));
305 mExecutor.execute(() -> TaskOrganizer.this.onTaskVanished(taskInfo));
310 mExecutor.execute(() -> TaskOrganizer.this.onTaskInfoChanged(info));
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/telephony/
DTelephonyListenerManagerTest.java49 private FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock()); field in TelephonyListenerManagerTest
59 mTelephonyManager, mExecutor, mTelephonyCallback); in setUp()
71 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testAddListenerRegisters_ActiveDataSubscriptionIdListener()
83 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testAddListenerRegisters_CallStateListener()
95 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testAddListenerRegisters_ServiceStateListener()
109 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testAddListenerRegisters_mixed()
120 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener()
140 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testRemoveListenerUnregisters_CallStateListener()
160 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testRemoveListenerUnregisters_ServiceStateListener()
182 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testRemoveListenerUnregisters_mixed()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayStatusBarItemsProvider.java63 private final Executor mExecutor; field in DreamOverlayStatusBarItemsProvider
69 mExecutor = executor; in DreamOverlayStatusBarItemsProvider()
74 mExecutor.execute(() -> { in addCallback()
89 mExecutor.execute(() -> { in removeCallback()
99 mExecutor.execute(() -> { in addStatusBarItem()
111 mExecutor.execute(() -> { in removeStatusBarItem()

12345678910>>...13