Home
last modified time | relevance | path

Searched refs:Executor (Results 1 – 25 of 930) sorted by relevance

12345678910>>...38

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DAppOpsPolicyHandlerTest.java48 import java.util.concurrent.Executor;
75 anyBoolean(), any(Executor.class), any()); in setUp()
82 anyBoolean(), any(Executor.class), any()); in setUp()
90 anyBoolean(), any(Executor.class), any()); in setUp()
99 eq(true), any(Executor.class), any()); in onProvisioned_shouldExemptBackgroundStartAndKioskApp()
101 eq(TEST_PACKAGE), eq(true), any(Executor.class), any()); in onProvisioned_shouldExemptBackgroundStartAndKioskApp()
110 eq(true), any(Executor.class), any()); in onProvisionInProgress_shouldExemptBackgroundStartAndAllwUndismissibleNotifs()
112 eq(true), any(Executor.class), any()); in onProvisionInProgress_shouldExemptBackgroundStartAndAllwUndismissibleNotifs()
114 anyString(), anyBoolean(), any(Executor.class), any()); in onProvisionInProgress_shouldExemptBackgroundStartAndAllwUndismissibleNotifs()
123 eq(false), any(Executor.class), any()); in onProvisionFailed_shouldBanBackgroundStart()
[all …]
DControllerKeepAlivePolicyHandlerTest.java42 import java.util.concurrent.Executor;
65 verify(mSystemDeviceLockManager).disableControllerKeepalive(any(Executor.class), any()); in onProvisioned_withSuccess_shouldDisableControllerKeepalive()
66 verify(mSystemDeviceLockManager, never()).enableControllerKeepalive(any(Executor.class), in onProvisioned_withSuccess_shouldDisableControllerKeepalive()
75 verify(mSystemDeviceLockManager).disableControllerKeepalive(any(Executor.class), any()); in onProvisioned_withFailure_shouldDisableControllerKeepalive()
76 verify(mSystemDeviceLockManager, never()).enableControllerKeepalive(any(Executor.class), in onProvisioned_withFailure_shouldDisableControllerKeepalive()
85 verify(mSystemDeviceLockManager).disableControllerKeepalive(any(Executor.class), any()); in onProvisionPaused_withSuccess_shouldDisableControllerKeepalive()
86 verify(mSystemDeviceLockManager, never()).enableControllerKeepalive(any(Executor.class), in onProvisionPaused_withSuccess_shouldDisableControllerKeepalive()
95 verify(mSystemDeviceLockManager).disableControllerKeepalive(any(Executor.class), any()); in onProvisionPaused_withFailure_shouldDisableControllerKeepalive()
96 verify(mSystemDeviceLockManager, never()).enableControllerKeepalive(any(Executor.class), in onProvisionPaused_withFailure_shouldDisableControllerKeepalive()
105 verify(mSystemDeviceLockManager).enableControllerKeepalive(any(Executor.class), any()); in onProvisionInProgress_withSuccess_shouldEnableControllerKeepalive()
[all …]
DKioskKeepAlivePolicyHandlerTest.java48 import java.util.concurrent.Executor;
74 any(Executor.class), any()); in onProvisioned_enablesKioskKeepalive()
75 verify(mSystemDeviceLockManager, never()).disableKioskKeepalive(any(Executor.class), any()); in onProvisioned_enablesKioskKeepalive()
84 any(Executor.class), any()); in onProvisioned_onFailure_stillReturnsTrue()
85 verify(mSystemDeviceLockManager, never()).disableKioskKeepalive(any(Executor.class), any()); in onProvisioned_onFailure_stillReturnsTrue()
93 verify(mSystemDeviceLockManager).disableKioskKeepalive(any(Executor.class), any()); in onCleared_disablesKioskKeepalive()
95 any(Executor.class), any()); in onCleared_disablesKioskKeepalive()
103 verify(mSystemDeviceLockManager).disableKioskKeepalive(any(Executor.class), any()); in onCleared_onFailure_stillReturnsTrue()
105 any(Executor.class), any()); in onCleared_onFailure_stillReturnsTrue()
151 any(Executor.class), any()); in setExpectationsOnEnableKioskKeepalive()
[all …]
DRolePolicyHandlerTest.java48 import java.util.concurrent.Executor;
77 any(Executor.class), any()); in onProvisioned_withSuccess_shouldCallExpectedServiceMethod()
79 any(Executor.class), any()); in onProvisioned_withSuccess_shouldCallExpectedServiceMethod()
90 any(Executor.class), any()); in onProvisioned_withFailure_shouldCallExpectedServiceMethod()
92 any(Executor.class), any()); in onProvisioned_withFailure_shouldCallExpectedServiceMethod()
103 any(Executor.class), any()); in onCleared_withSuccess_shouldCallExpectedServiceMethod()
105 any(Executor.class), any()); in onCleared_withSuccess_shouldCallExpectedServiceMethod()
116 any(Executor.class), any()); in onCleared_withFailure_shouldCallExpectedServiceMethod()
118 any(Executor.class), any()); in onCleared_withFailure_shouldCallExpectedServiceMethod()
165 any(Executor.class), any()); in setExpectationsOnAddFinancedDeviceKioskRole()
[all …]
DFinalizationControllerImplTest.java50 import java.util.concurrent.Executor;
65 private final Executor mBgExecutor = Executors.newCachedThreadPool();
209 public void addFinancedDeviceKioskRole(@NonNull String packageName, Executor executor, in addFinancedDeviceKioskRole()
215 public void removeFinancedDeviceKioskRole(@NonNull String packageName, Executor executor, in removeFinancedDeviceKioskRole()
222 Executor executor, @NonNull OutcomeReceiver<Void, Exception> callback) { in setDlcExemptFromActivityBgStartRestrictionState()
228 Executor executor, @NonNull OutcomeReceiver<Void, Exception> callback) { in setDlcAllowedToSendUndismissibleNotifications()
234 Executor executor, @NonNull OutcomeReceiver<Void, Exception> callback) { in setKioskAppExemptFromRestrictionsState()
239 public void enableKioskKeepalive(String packageName, Executor executor, in enableKioskKeepalive()
245 public void disableKioskKeepalive(Executor executor, in disableKioskKeepalive()
251 public void enableControllerKeepalive(Executor executor, in enableControllerKeepalive()
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/
DSystemDeviceLockManager.java25 import java.util.concurrent.Executor;
45 @CallbackExecutor Executor executor, in addFinancedDeviceKioskRole()
57 @CallbackExecutor Executor executor, in removeFinancedDeviceKioskRole()
68 @CallbackExecutor Executor executor, in setDlcExemptFromActivityBgStartRestrictionState()
78 @CallbackExecutor Executor executor, in setDlcAllowedToSendUndismissibleNotifications()
94 @CallbackExecutor Executor executor, in setKioskAppExemptFromRestrictionsState()
105 void enableKioskKeepalive(String packageName, @CallbackExecutor Executor executor, in enableKioskKeepalive()
115 void disableKioskKeepalive(@CallbackExecutor Executor executor, in disableKioskKeepalive()
125 void enableControllerKeepalive(@CallbackExecutor Executor executor, in enableControllerKeepalive()
135 void disableControllerKeepalive(@CallbackExecutor Executor executor, in disableControllerKeepalive()
[all …]
DSystemDeviceLockManagerImpl.java35 import java.util.concurrent.Executor;
73 @CallbackExecutor Executor executor, in addFinancedDeviceKioskRole()
91 @CallbackExecutor Executor executor, in removeFinancedDeviceKioskRole()
109 @CallbackExecutor Executor executor, in setDlcExemptFromActivityBgStartRestrictionState()
128 @CallbackExecutor Executor executor, in setDlcAllowedToSendUndismissibleNotifications()
147 Executor executor, @NonNull OutcomeReceiver<Void, Exception> callback) { in setKioskAppExemptFromRestrictionsState()
164 public void enableKioskKeepalive(String packageName, Executor executor, in enableKioskKeepalive()
183 public void disableKioskKeepalive(Executor executor, in disableKioskKeepalive()
199 public void enableControllerKeepalive(Executor executor, in enableControllerKeepalive()
215 public void disableControllerKeepalive(Executor executor, in disableControllerKeepalive()
[all …]
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeBroadcastAssistantCallback.java26 import java.util.concurrent.Executor;
33 private final Map<BluetoothLeBroadcastAssistant.Callback, Executor> mCallbackMap =
48 @NonNull Executor executor, @NonNull BluetoothLeBroadcastAssistant.Callback callback) { in register()
106 Executor executor = mCallbackMap.get(cb); in onSearchStarted()
121 Executor executor = mCallbackMap.get(cb); in onSearchStartFailed()
136 Executor executor = mCallbackMap.get(cb); in onSearchStopped()
151 Executor executor = mCallbackMap.get(cb); in onSearchStopFailed()
166 Executor executor = mCallbackMap.get(cb); in onSourceFound()
181 Executor executor = mCallbackMap.get(cb); in onSourceAdded()
197 Executor executor = mCallbackMap.get(cb); in onSourceAddFailed()
[all …]
DBluetoothLeBroadcastAssistant.java47 import java.util.concurrent.Executor;
78 private final Map<Callback, Executor> mCallbackExecutorMap = new HashMap<>();
84 for (Map.Entry<BluetoothLeBroadcastAssistant.Callback, Executor>
88 Executor executor = callbackExecutorEntry.getValue();
95 for (Map.Entry<BluetoothLeBroadcastAssistant.Callback, Executor>
99 Executor executor = callbackExecutorEntry.getValue();
106 for (Map.Entry<BluetoothLeBroadcastAssistant.Callback, Executor>
110 Executor executor = callbackExecutorEntry.getValue();
117 for (Map.Entry<BluetoothLeBroadcastAssistant.Callback, Executor>
121 Executor executor = callbackExecutorEntry.getValue();
[all …]
DBluetoothLeBroadcast.java41 import java.util.concurrent.Executor;
65 private final Map<Callback, Executor> mCallbackExecutorMap = new HashMap<>();
72 for (Map.Entry<BluetoothLeBroadcast.Callback, Executor> callbackExecutorEntry :
75 Executor executor = callbackExecutorEntry.getValue();
82 for (Map.Entry<BluetoothLeBroadcast.Callback, Executor> callbackExecutorEntry :
85 Executor executor = callbackExecutorEntry.getValue();
92 for (Map.Entry<BluetoothLeBroadcast.Callback, Executor> callbackExecutorEntry :
95 Executor executor = callbackExecutorEntry.getValue();
102 for (Map.Entry<BluetoothLeBroadcast.Callback, Executor> callbackExecutorEntry :
105 Executor executor = callbackExecutorEntry.getValue();
[all …]
/packages/modules/AdServices/adservices/framework/java/android/adservices/measurement/
DMeasurementManager.java43 import java.util.concurrent.Executor;
142 @Nullable @CallbackExecutor Executor executor, in registerSource()
167 @Nullable @CallbackExecutor Executor executor, in registerSource()
184 @Nullable @CallbackExecutor Executor executor, in registerSource()
203 @Nullable @CallbackExecutor Executor executor, in registerSource()
225 @Nullable Executor executor, in registerWebSource()
250 @Nullable Executor executor, in registerWebSource()
271 @Nullable Executor executor, in registerWebTrigger()
295 @Nullable Executor executor, in registerWebTrigger()
314 @Nullable @CallbackExecutor Executor executor, in registerTrigger()
[all …]
DMeasurementCompatibleManager.java45 import java.util.concurrent.Executor;
66 private final Executor mAdIdExecutor = Executors.newCachedThreadPool();
139 @Nullable @CallbackExecutor Executor executor, in register()
196 @Nullable @CallbackExecutor Executor executor, in registerSource()
241 @Nullable @CallbackExecutor Executor executor, in registerSource()
315 @Nullable Executor executor, in registerWebSource()
372 @Nullable Executor executor, in registerWebSourceWrapper()
403 @Nullable Executor executor, in registerWebTrigger()
457 @Nullable Executor executor, in registerWebTriggerWrapper()
485 @Nullable @CallbackExecutor Executor executor, in registerTrigger()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/concurrent/
DExecutors.java25 import java.util.concurrent.Executor;
35 private static final Executor DIRECT_EXECUTOR = Runnable::run;
36 private static final Executor MAIN_THREAD_EXECUTOR = new Executor() {
48 private static final Executor UI_THREAD_EXECUTOR = MAIN_THREAD_EXECUTOR;
50 public static @NonNull Executor directExecutor() { in directExecutor()
54 public static @NonNull Executor mainThreadExecutor() { in mainThreadExecutor()
58 public static @NonNull Executor uiThreadExecutor() { in uiThreadExecutor()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DImageLoader.java44 import java.util.concurrent.Executor;
66 private final Executor mExecutor;
67 private final Set<Map.Entry<Executor, Callback>> mCallbacks = new ArraySet<>();
68 private final Map<Uri, List<Map.Entry<Executor, Callback>>> mLoadCallbacks = new ArrayMap<>();
75 public ImageLoader(@NonNull ContentResolver contentResolver, @NonNull Executor executor) { in ImageLoader()
84 public void addCallback(@NonNull Callback callback, @NonNull Executor executor) { in addCallback()
96 public void removeCallback(@NonNull Callback callback, @NonNull Executor executor) { in removeCallback()
109 @NonNull Executor executor) { in loadImage()
115 List<Map.Entry<Executor, Callback>> callbacks = mLoadCallbacks.get(uri); in loadImage()
165 Set<Map.Entry<Executor, Callback>> callbacks; in run()
[all …]
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DThreadNetworkController.java43 import java.util.concurrent.Executor;
158 @NonNull @CallbackExecutor Executor executor, in setEnabled()
191 @NonNull @CallbackExecutor Executor executor, in createRandomizedDataset()
244 private final Executor mExecutor;
247 StateCallbackProxy(@CallbackExecutor Executor executor, StateCallback callback) { in StateCallbackProxy()
295 @NonNull @CallbackExecutor Executor executor, @NonNull StateCallback callback) { in registerStateCallback()
364 private final Executor mExecutor;
368 @CallbackExecutor Executor executor, OperationalDatasetCallback callback) { in OperationalDatasetCallbackProxy()
413 @NonNull @CallbackExecutor Executor executor, in registerOperationalDatasetCallback()
492 @NonNull @CallbackExecutor Executor executor, in join()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DSignalStrengthListenerTest.java43 import java.util.concurrent.Executor;
97 any(Executor.class), captor1.capture()); in updateSubscriptionIds_beforeResume_startedListening()
99 any(Executor.class), captor2.capture()); in updateSubscriptionIds_beforeResume_startedListening()
113 verify(mManager1).registerTelephonyCallback(any(Executor.class), in updateSubscriptionIds_twoCalls_oneIdAdded()
115 verify(mManager2).registerTelephonyCallback(any(Executor.class), in updateSubscriptionIds_twoCalls_oneIdAdded()
124 any(Executor.class), eq(mListener.mTelephonyCallbacks.get(SUB_ID_3))); in updateSubscriptionIds_twoCalls_oneIdAdded()
134 verify(mManager1).registerTelephonyCallback(any(Executor.class), captor1.capture()); in updateSubscriptionIds_twoCalls_oneIdRemoved()
136 any(Executor.class), any(TelephonyCallback.class)); in updateSubscriptionIds_twoCalls_oneIdRemoved()
155 verify(mManager1).registerTelephonyCallback(any(Executor.class), captor1.capture()); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded()
156 verify(mManager2).registerTelephonyCallback(any(Executor.class), captor2.capture()); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded()
[all …]
/packages/services/Car/car-lib/src/android/car/occupantconnection/
DCarOccupantConnectionManager.java44 import java.util.concurrent.Executor;
311 private final SparseArray<Pair<ConnectionRequestCallback, Executor>>
319 Pair<ConnectionRequestCallback, Executor> pair =
327 Executor executor = pair.second;
343 Pair<ConnectionRequestCallback, Executor> pair =
351 Executor executor = pair.second;
367 Pair<ConnectionRequestCallback, Executor> pair =
375 Executor executor = pair.second;
393 private final ArrayMap<String, Pair<PayloadCallback, Executor>> mReceiverPayloadCallbackMap =
400 Pair<PayloadCallback, Executor> pair;
[all …]
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
DExecutors.java21 import java.util.concurrent.Executor;
30 private static final Executor ASYNC_EXECUTOR = THREAD_POOL_EXECUTOR;
31 private static final Executor DIRECT_EXECUTOR = Runnable::run;
36 public static Executor getAsyncExecutor() { in getAsyncExecutor()
41 public static Executor getDirectExecutor() { in getDirectExecutor()
/packages/apps/TV/src/com/android/tv/util/
DAsyncDbTask.java46 import java.util.concurrent.Executor;
66 private final Executor mExecutor;
69 protected AsyncDbTask(Executor mExecutor) { in AsyncDbTask()
91 @DbExecutor Executor executor, in AsyncQueryTask()
202 Executor executor, in AsyncQueryListTask()
213 Executor executor, in AsyncQueryListTask()
267 Executor executor, in AsyncQueryItemTask()
314 public AsyncChannelQueryTask(Executor executor, Context context) { in AsyncChannelQueryTask()
335 public AsyncProgramQueryTask(Executor executor, Context context) { in AsyncProgramQueryTask()
347 Executor executor, in AsyncProgramQueryTask()
[all …]
/packages/modules/AdServices/adservices/clients/java/android/adservices/clients/signals/
DProtectedSignalsClient.java33 import java.util.concurrent.Executor;
41 private final Executor mExecutor;
45 @NonNull Executor executor, in ProtectedSignalsClient()
60 public Executor getExecutor() { in getExecutor()
92 private Executor mExecutor;
112 public Builder setExecutor(@NonNull Executor executor) {
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthConnectManager.java126 import java.util.concurrent.Executor;
548 @NonNull @CallbackExecutor Executor executor, in insertRecords()
607 @NonNull @CallbackExecutor Executor executor, in aggregate()
669 @NonNull @CallbackExecutor Executor executor, in aggregateGroupByDuration()
739 @NonNull @CallbackExecutor Executor executor, in aggregateGroupByPeriod()
804 @NonNull Executor executor, in deleteRecords()
842 @NonNull Executor executor, in deleteRecords()
886 @NonNull Executor executor, in deleteRecords()
931 @NonNull @CallbackExecutor Executor executor, in getChangeLogs()
976 @NonNull Executor executor, in getChangeLogToken()
[all …]
/packages/modules/Uwb/framework/java/android/uwb/
DUwbManager.java48 import java.util.concurrent.Executor;
249 private Executor mExecutor;
259 /*package*/ void initProxy(@NonNull Executor executor, in initProxy()
278 Executor executor; in onProfileAdfsProvisioned()
297 Executor executor; in onProfileAdfsProvisionFailed()
438 public void registerAdapterStateCallback(@NonNull @CallbackExecutor Executor executor, in registerAdapterStateCallback()
469 public void registerUwbVendorUciCallback(@NonNull @CallbackExecutor Executor executor, in registerUwbVendorUciCallback()
497 public void registerUwbOemExtensionCallback(@NonNull @CallbackExecutor Executor executor, in registerUwbOemExtensionCallback()
652 @NonNull @CallbackExecutor Executor executor, in openRangingSession()
680 @NonNull @CallbackExecutor Executor executor, in openRangingSession()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java47 import java.util.concurrent.Executor;
60 private final ArrayMap<CarPowerPolicyListener, Pair<Executor, CarPowerPolicyFilter>>
85 private Executor mExecutor;
422 public void setListener(@NonNull @CallbackExecutor Executor executor, in setListener()
455 public void setListenerWithCompletion(@NonNull @CallbackExecutor Executor executor, in setListenerWithCompletion()
583 public void addPowerPolicyListener(@NonNull @CallbackExecutor Executor executor, in addPowerPolicyListener()
594 Pair<Executor, CarPowerPolicyFilter> pair = in addPowerPolicyListener()
629 Pair<Executor, CarPowerPolicyFilter> pair = mPolicyListenerMap.remove(listener); in removePowerPolicyListener()
721 Executor executor; in setServiceForListenerLocked()
742 Executor executor; in setServiceForListenerLocked()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchUxStatesDao.java35 import java.util.concurrent.Executor;
121 @NonNull Executor executor, in readData()
330 @NonNull Executor executor, in readIsAdIdEnabled()
343 @NonNull Executor executor, in readIsU18Account()
356 @NonNull Executor executor, in readIsEntryPointEnabled()
369 @NonNull Executor executor, in readIsAdultAccount()
382 @NonNull Executor executor, in readIsU18NotificationDisplayed()
395 @NonNull Executor executor, in readUx()
412 @NonNull Executor executor, in readEnrollmentChannel()
430 @NonNull Executor executor, in readIsMeasurementDataReset()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/util/
DNetworkTrafficTags.java21 import java.util.concurrent.Executor;
35 public static class TrafficStatsTaggingExecutor implements Executor {
36 private final Executor delegateExecutor;
39 public TrafficStatsTaggingExecutor(Executor delegateExecutor, int tag) { in TrafficStatsTaggingExecutor()

12345678910>>...38