Home
last modified time | relevance | path

Searched refs:executor (Results 1 – 25 of 471) sorted by relevance

12345678910>>...19

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsProviderLifecycleManagerTest.kt71 private lateinit var executor: FakeExecutor variable in com.android.systemui.controls.controller.ControlsProviderLifecycleManagerTest
82 executor = FakeExecutor(FakeSystemClock()) in capture()
88 executor, in capture()
103 executor.runAllReady() in testBindService()
110 executor.runAllReady() in testBindForPanel()
117 executor.runAllReady() in testUnbindPanelIsUnbound()
119 executor.runAllReady() in testUnbindPanelIsUnbound()
140 executor, in testNullBinding()
147 executor.runAllReady() in testNullBinding()
155 executor.runAllReady() in testUnbindService()
[all …]
DStatefulControlSubscriberTest.kt54 private val executor = FakeExecutor(FakeSystemClock()) constant in com.android.systemui.controls.controller.StatefulControlSubscriberTest
70 scs = StatefulControlSubscriber(controller, provider, executor, REQUEST_LIMIT) in setUp()
77 executor.runAllReady() in testOnSubscribe()
85 executor.runAllReady() in testOnSubscribe_badToken()
94 executor.runAllReady() in testOnNext()
105 executor.runAllReady() in testOnNext_multiple()
113 executor.runAllReady() in testOnNext_noRefreshBeforeSubscribe()
120 executor.runAllReady() in testOnNext_noRefreshAfterCancel()
125 executor.runAllReady() in testOnNext_noRefreshAfterCancel()
135 executor.runAllReady() in testOnNext_noRefreshAfterError()
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraCaptureSessionImpl.java195 public int captureSingleRequest(CaptureRequest request, Executor executor, in captureSingleRequest() argument
197 if (executor == null) { in captureSingleRequest()
207 executor = CameraDeviceImpl.checkExecutor(executor, callback); in captureSingleRequest()
211 " executor " + executor); in captureSingleRequest()
215 createCaptureCallbackProxyWithExecutor(executor, callback), mDeviceExecutor)); in captureSingleRequest()
252 public int captureBurstRequests(List<CaptureRequest> requests, Executor executor, in captureBurstRequests() argument
254 if (executor == null) { in captureBurstRequests()
264 executor = CameraDeviceImpl.checkExecutor(executor, callback); in captureBurstRequests()
269 ", callback " + callback + " executor " + executor); in captureBurstRequests()
273 createCaptureCallbackProxyWithExecutor(executor, callback), mDeviceExecutor)); in captureBurstRequests()
[all …]
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccCardManager.java175 public void requestAllProfiles(String cardId, @CallbackExecutor Executor executor, in requestAllProfiles() argument
184 executor.execute(() -> callback.onComplete(resultCode, profiles)); in requestAllProfiles()
204 public void requestProfile(String cardId, String iccid, @CallbackExecutor Executor executor, in requestProfile() argument
213 executor.execute(() -> callback.onComplete(resultCode, profile)); in requestProfile()
237 @NonNull @CallbackExecutor Executor executor, in requestEnabledProfileForPort() argument
247 executor.execute(() -> callback.onComplete(resultCode, profile)); in requestEnabledProfileForPort()
269 @CallbackExecutor Executor executor, ResultCallback<Void> callback) { in disableProfile() argument
277 executor.execute(() -> callback.onComplete(resultCode, null)); in disableProfile()
303 @CallbackExecutor Executor executor, ResultCallback<EuiccProfileInfo> callback) { in switchToProfile() argument
312 executor.execute(() -> callback.onComplete(resultCode, profile)); in switchToProfile()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DPrivacyItemControllerTest.kt86 private lateinit var executor: FakeExecutor in capture() variable in com.android.systemui.privacy.PrivacyItemControllerTest
92 executor, in capture()
93 executor, in capture()
105 executor = FakeExecutor(fakeClock) in setup()
113 executor.runAllReady() in testStartListeningByAddingCallback()
122 executor.runAllReady() in testStopListeningByRemovingLastCallback()
125 executor.runAllReady() in testStopListeningByRemovingLastCallback()
143 executor.runAllReady() in testPrivacyItemsAggregated()
164 executor.runAllReady() in testDistinctItems()
179 executor.runAllReady() in testSimilarItemsDifferentTimeStamp()
[all …]
DPrivacyConfigFlagsTest.kt57 private lateinit var executor: FakeExecutor variable in com.android.systemui.privacy.PrivacyConfigFlagsTest
62 executor, in createPrivacyConfig()
70 executor = FakeExecutor(FakeSystemClock()) in setup()
76 executor.runAllReady() in setup()
87 executor.runAllReady() in testMicCameraChanged()
97 executor.runAllReady() in testMediaProjectionChanged()
107 executor.runAllReady() in testLocationChanged()
117 executor.runAllReady() in testMicCamAndLocationChanged()
129 executor.runAllReady() in testMicDeleted_stillAvailable()
131 executor.runAllReady() in testMicDeleted_stillAvailable()
DAppOpsPrivacyItemMonitorTest.kt92 private lateinit var executor: FakeExecutor in capture() variable in com.android.systemui.privacy.AppOpsPrivacyItemMonitorTest
99 executor, in capture()
106 executor = FakeExecutor(FakeSystemClock()) in setup()
121 executor.runAllReady() in testStartListeningAddsAppOpsCallback()
128 executor.runAllReady() in testStopListeningRemovesAppOpsCallback()
132 executor.runAllReady() in testStopListeningRemovesAppOpsCallback()
157 executor.runAllReady() in testRegisterUserTrackerCallback()
167 executor.runAllReady() in testUserTrackerCallback_userChanged()
174 executor.runAllReady() in testUserTrackerCallback_profilesChanged()
182 executor.runAllReady() in testCallbackIsUpdated()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/
DMediaTimeoutListenerTest.kt75 private lateinit var executor: FakeExecutor variable in com.android.systemui.media.controls.pipeline.MediaTimeoutListenerTest
98 executor = FakeExecutor(clock) in setup()
102 executor, in setup()
160 assertThat(executor.numPending()).isEqualTo(1) in testOnMediaDataLoaded_registersTimeout_whenPaused()
163 assertThat(executor.advanceClockToNext()).isEqualTo(PAUSED_MEDIA_TIMEOUT) in testOnMediaDataLoaded_registersTimeout_whenPaused()
182 assertThat(executor.numPending()).isEqualTo(1) in testOnMediaDataRemoved_clearsTimeout()
186 assertThat(executor.numPending()).isEqualTo(0) in testOnMediaDataRemoved_clearsTimeout()
206 assertThat(executor.numPending()).isEqualTo(1) in testOnMediaDataLoaded_migratesKeys()
224 assertThat(executor.numPending()).isEqualTo(1) in testOnMediaDataLoaded_migratesKeys_noTimeoutExtension()
236 assertThat(executor.numPending()).isEqualTo(1) in testOnPlaybackStateChanged_schedulesTimeout_whenPaused()
[all …]
/frameworks/base/core/java/android/service/carrier/
DCarrierMessagingServiceWrapper.java80 @NonNull @CallbackExecutor Executor executor, in bindToCarrierMessagingService() argument
85 Objects.requireNonNull(executor); in bindToCarrierMessagingService()
92 mServiceReadyCallbackExecutor = executor; in bindToCarrierMessagingService()
145 int destPort, int subId, @NonNull @CallbackExecutor final Executor executor, in receiveSms() argument
150 new CarrierMessagingCallbackInternal(callback, executor)); in receiveSms()
174 @NonNull @CallbackExecutor final Executor executor, in sendTextSms() argument
179 new CarrierMessagingCallbackInternal(callback, executor)); in sendTextSms()
203 @NonNull @CallbackExecutor final Executor executor, in sendDataSms() argument
209 callback, executor)); in sendDataSms()
233 @NonNull @CallbackExecutor final Executor executor, in sendMultipartTextSms() argument
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor_test.cpp27 XmlActionExecutor executor; in TEST() local
28 XmlNodeAction& manifest_action = executor["manifest"]; in TEST()
47 ASSERT_TRUE(executor.Execute(XmlActionExecutorPolicy::kNone, &diag, doc.get())); in TEST()
56 XmlActionExecutor executor; in TEST() local
57 executor["manifest"]["application"]; in TEST()
63 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kAllowList, &diag, doc.get())); in TEST()
66 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kAllowList, &diag, doc.get())); in TEST()
/frameworks/base/telephony/java/android/telephony/ims/
DImsRcsManager.java163 CapabilityBinder(OnAvailabilityChangedListener listener, Executor executor) { in CapabilityBinder() argument
164 mExecutor = executor; in CapabilityBinder()
196 AvailabilityCallbackAdapter(@NonNull Executor executor, in AvailabilityCallbackAdapter() argument
198 mBinder = new CapabilityBinder(listener, executor); in AvailabilityCallbackAdapter()
256 @NonNull @CallbackExecutor Executor executor, in registerImsRegistrationCallback()
262 if (executor == null) { in registerImsRegistrationCallback()
273 c.setExecutor(executor); in registerImsRegistrationCallback()
334 public void getRegistrationState(@NonNull @CallbackExecutor Executor executor, in getRegistrationState() argument
339 if (executor == null) { in getRegistrationState()
355 executor.execute(() -> stateCallback.accept(result)); in getRegistrationState()
[all …]
DRcsUceAdapter.java401 PublishStateBinder(Executor executor, OnPublishStateChangedListener listener) { in PublishStateBinder() argument
402 mExecutor = executor; in PublishStateBinder()
422 public PublishStateCallbackAdapter(@NonNull Executor executor, in PublishStateCallbackAdapter() argument
424 mBinder = new PublishStateBinder(executor, listener); in PublishStateCallbackAdapter()
527 @NonNull @CallbackExecutor Executor executor, in requestCapabilities() argument
532 if (executor == null) { in requestCapabilities()
551 executor.execute(() -> c.onCapabilitiesReceived(contactCapabilities)); in requestCapabilities()
560 executor.execute(() -> c.onComplete()); in requestCapabilities()
569 executor.execute(() -> c.onError(errorCode, retryAfterMilliseconds)); in requestCapabilities()
623 @NonNull @CallbackExecutor Executor executor, in requestAvailability() argument
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsEcbmStateListener.java48 public ImsEcbmStateListener(Executor executor) { in ImsEcbmStateListener() argument
49 if (executor != null) in ImsEcbmStateListener()
50 mListenerExecutor = executor; in ImsEcbmStateListener()
64 public abstract void onECBMEntered(Executor executor); in onECBMEntered() argument
78 public abstract void onECBMExited(Executor executor); in onECBMExited() argument
/frameworks/base/core/java/android/permission/
DLegacyPermissionManager.java134 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in grantDefaultPermissionsToLuiApp() argument
138 executor.execute(() -> callback.accept(true)); in grantDefaultPermissionsToLuiApp()
155 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in revokeDefaultPermissionsFromLuiApps() argument
159 executor.execute(() -> callback.accept(true)); in revokeDefaultPermissionsFromLuiApps()
176 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in grantDefaultPermissionsToEnabledImsServices() argument
180 executor.execute(() -> callback.accept(true)); in grantDefaultPermissionsToEnabledImsServices()
197 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in grantDefaultPermissionsToEnabledTelephonyDataServices() argument
201 executor.execute(() -> callback.accept(true)); in grantDefaultPermissionsToEnabledTelephonyDataServices()
218 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in revokeDefaultPermissionsFromDisabledTelephonyDataServices() argument
222 executor.execute(() -> callback.accept(true)); in revokeDefaultPermissionsFromDisabledTelephonyDataServices()
[all …]
DPermissionControllerManager.java324 boolean doDryRun, @Reason int reason, @NonNull @CallbackExecutor Executor executor, in revokeRuntimePermissions() argument
327 checkNotNull(executor); in revokeRuntimePermissions()
363 }, executor); in revokeRuntimePermissions()
384 @NonNull @CallbackExecutor Executor executor, in setRuntimePermissionGrantStateByDeviceAdmin() argument
387 Objects.requireNonNull(executor); in setRuntimePermissionGrantStateByDeviceAdmin()
411 }, executor); in setRuntimePermissionGrantStateByDeviceAdmin()
426 @NonNull @CallbackExecutor Executor executor, in getRuntimePermissionBackup() argument
429 checkNotNull(executor); in getRuntimePermissionBackup()
444 }, executor); in getRuntimePermissionBackup()
500 @NonNull @CallbackExecutor Executor executor, in applyStagedRuntimePermissionBackup() argument
[all …]
/frameworks/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/
DInitializerImpl.java61 OnExtensionsInitializedCallback callback, Executor executor) { in init() argument
63 if (executor == null) { in init()
66 executor.execute(callback::onSuccess); in init()
81 Executor executor) { in deinit() argument
83 if (executor == null) { in deinit()
86 executor.execute(callback::onSuccess); in deinit()
/frameworks/base/core/tests/coretests/src/android/widget/
DAppWidgetHostViewTest.java86 RunnableList executor = new RunnableList(); in asyncInflation() local
87 mHostView.setExecutor(executor); in asyncInflation()
93 assertEquals(1, executor.size()); in asyncInflation()
96 executor.get(0).run(); in asyncInflation()
103 RunnableList executor = new RunnableList(); in asyncInflation_cancelled() local
104 mHostView.setExecutor(executor); in asyncInflation_cancelled()
111 assertEquals(2, executor.size()); in asyncInflation_cancelled()
113 assertTrue(((Future) executor.get(0)).isCancelled()); in asyncInflation_cancelled()
116 executor.get(0).run(); in asyncInflation_cancelled()
117 executor.get(1).run(); in asyncInflation_cancelled()
/frameworks/base/media/java/android/media/tv/tuner/
DLnb.java170 void setCallbackAndOwner(Tuner tuner, Executor executor, @Nullable LnbCallback callback) { in setCallbackAndOwner() argument
172 if (callback != null && executor != null) { in setCallbackAndOwner()
173 addCallback(executor, callback); in setCallbackAndOwner()
185 public void addCallback(@NonNull Executor executor, @NonNull LnbCallback callback) { in addCallback() argument
186 Objects.requireNonNull(executor, "executor must not be null"); in addCallback()
189 mCallbackMap.put(callback, executor); in addCallback()
219 Executor executor = mCallbackMap.get(callback); in onEvent() local
220 if (callback != null && executor != null) { in onEvent()
221 executor.execute(() -> { in onEvent()
236 Executor executor = mCallbackMap.get(callback); in onDiseqcMessage() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifLiveDataImplTest.kt41 private val executor = FakeExecutor(FakeSystemClock()) in <lambda>() constant in com.android.systemui.statusbar.notification.collection.NotifLiveDataImplTest
42 private val liveDataImpl: NotifLiveDataImpl<Int> = NotifLiveDataImpl("tst", 9, executor) in <lambda>()
81 assertThat(executor.runAllReady()).isEqualTo(0) in <lambda>()
93 assertThat(executor.runAllReady()).isEqualTo(1) in <lambda>()
108 assertThat(executor.runAllReady()).isEqualTo(1) in <lambda>()
119 assertThat(executor.numPending()).isEqualTo(0) in <lambda>()
130 assertThat(executor.runAllReady()).isEqualTo(1) in <lambda>()
139 assertThat(executor.runAllReady()).isEqualTo(0) in <lambda>()
159 assertThat(executor.runNextReady()).isTrue() in <lambda>()
164 assertThat(executor.runAllReady()).isEqualTo(2) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDesktopModeTaskRepositoryTest.kt98 val executor = TestShellExecutor() in addListener_notifiesVisibleFreeformTask() constant
99 repo.addVisibleTasksListener(listener, executor) in addListener_notifiesVisibleFreeformTask()
100 executor.flushAll() in addListener_notifiesVisibleFreeformTask()
109 val executor = TestShellExecutor() in updateVisibleFreeformTasks_addVisibleTasksNotifiesListener() constant
110 repo.addVisibleTasksListener(listener, executor) in updateVisibleFreeformTasks_addVisibleTasksNotifiesListener()
113 executor.flushAll() in updateVisibleFreeformTasks_addVisibleTasksNotifiesListener()
123 val executor = TestShellExecutor() in updateVisibleFreeformTasks_removeVisibleTasksNotifiesListener() constant
124 repo.addVisibleTasksListener(listener, executor) in updateVisibleFreeformTasks_removeVisibleTasksNotifiesListener()
127 executor.flushAll() in updateVisibleFreeformTasks_removeVisibleTasksNotifiesListener()
131 executor.flushAll() in updateVisibleFreeformTasks_removeVisibleTasksNotifiesListener()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DDisplayTrackerImplTest.kt48 private val executor = Executor(Runnable::run) constant
89 tracker.addDisplayChangeCallback(TestCallback(), executor) in registerCallback_registersDisplayListener()
95 tracker.addBrightnessChangeCallback(TestCallback(), executor) in registerBrightnessCallback_registersDisplayListener()
103 tracker.addDisplayChangeCallback(callback1, executor) in unregisterCallback_displayListenerStillRegistered()
104 tracker.addDisplayChangeCallback(TestCallback(), executor) in unregisterCallback_displayListenerStillRegistered()
113 tracker.addDisplayChangeCallback(callback, executor) in unregisterLastCallback_unregistersDisplayListener()
123 tracker.addDisplayChangeCallback(callback, executor) in callbackCalledOnDisplayAdd()
133 tracker.addDisplayChangeCallback(callback, executor) in callbackCalledOnDisplayRemoved()
143 tracker.addDisplayChangeCallback(callback, executor) in callbackCalledOnDisplayChanged()
153 tracker.addBrightnessChangeCallback(callback, executor) in callbackCalledOnBrightnessChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DRestartDozeListenerTest.kt48 val executor = FakeExecutor(clock) constant in com.android.systemui.flags.RestartDozeListenerTest
55 RestartDozeListener(settings, statusBarStateController, powerManager, clock, executor) in setup()
66 executor.runAllReady() in testStoreDreamState_onDozingStarted()
73 executor.runAllReady() in testStoreDozeState_onDozingStopped()
81 executor.advanceClockToLast() in testRestoreDozeState_dozingShouldStart()
82 executor.runAllReady() in testRestoreDozeState_dozingShouldStart()
92 executor.advanceClockToLast() in testRestoreDozeState_dozingShouldNotStart()
93 executor.runAllReady() in testRestoreDozeState_dozingShouldNotStart()
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java417 public void registerAvailabilityCallback(@NonNull @CallbackExecutor Executor executor, in registerAvailabilityCallback() argument
419 if (executor == null) { in registerAvailabilityCallback()
422 CameraManagerGlobal.get().registerAvailabilityCallback(callback, executor, in registerAvailabilityCallback()
478 public void registerTorchCallback(@NonNull @CallbackExecutor Executor executor, in registerTorchCallback() argument
480 if (executor == null) { in registerTorchCallback()
483 CameraManagerGlobal.get().registerTorchCallback(callback, executor); in registerTorchCallback()
719 CameraDevice.StateCallback callback, Executor executor, final int uid, in openCameraDeviceUserAsync() argument
732 executor, in openCameraDeviceUserAsync()
913 @NonNull @CallbackExecutor Executor executor, in openCamera() argument
916 if (executor == null) { in openCamera()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DRingerModeTrackerImpl.kt37 @Background executor: Executor
42 executor,
49 executor,
57 private val executor: Executor, constant in RingerModeLiveData
79 broadcastDispatcher.registerReceiver(receiver, filter, executor, UserHandle.ALL) in onActive()
80 executor.execute { in onActive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsListingControllerImplTest.kt95 private val executor = FakeExecutor(FakeSystemClock()) constant
136 executor, in setUp()
147 executor.advanceClockToLast() in tearDown()
148 executor.runAllReady() in tearDown()
187 executor.runAllReady() in testCallbackCalledWhenAdded()
192 executor.runAllReady() in testCallbackCalledWhenAdded()
208 executor.runAllReady() in testCallbackGetsList()
214 executor.runAllReady() in testCallbackGetsList()
227 executor.runAllReady() in testChangeUser()
248 executor.runAllReady() in testChangeUserSendsCorrectServiceUpdate()
[all …]

12345678910>>...19