/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/ |
D | AppOpsPolicyHandlerTest.java | 48 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 …]
|
D | KioskKeepAlivePolicyHandlerTest.java | 48 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() 135 any(Executor.class), any()); in onLocked_enablesKioskKeepalive() [all …]
|
D | ControllerKeepAlivePolicyHandlerTest.java | 42 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 …]
|
D | RolePolicyHandlerTest.java | 48 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 …]
|
D | FinalizationControllerImplTest.java | 50 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/ |
D | SystemDeviceLockManager.java | 25 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 …]
|
D | SystemDeviceLockManagerImpl.java | 35 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/Connectivity/thread/framework/java/android/net/thread/ |
D | ThreadNetworkController.java | 46 import java.util.concurrent.Executor; 198 @NonNull @CallbackExecutor Executor executor, in setEnabled() 247 @NonNull @CallbackExecutor Executor executor, in activateEphemeralKeyMode() 279 @NonNull @CallbackExecutor Executor executor, in deactivateEphemeralKeyMode() 313 @NonNull @CallbackExecutor Executor executor, in createRandomizedDataset() 384 private final Executor mExecutor; 387 StateCallbackProxy(@CallbackExecutor Executor executor, StateCallback callback) { in StateCallbackProxy() 456 @NonNull @CallbackExecutor Executor executor, @NonNull StateCallback callback) { in registerStateCallback() 525 private final Executor mExecutor; 529 @CallbackExecutor Executor executor, OperationalDatasetCallback callback) { in OperationalDatasetCallbackProxy() [all …]
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/measurement/ |
D | MeasurementManager.java | 45 import java.util.concurrent.Executor; 145 @Nullable @CallbackExecutor Executor executor, in registerSource() 169 @Nullable @CallbackExecutor Executor executor, in registerSource() 196 @Nullable @CallbackExecutor Executor executor, in registerSource() 218 @Nullable @CallbackExecutor Executor executor, in registerSource() 247 @Nullable Executor executor, in registerWebSource() 275 @Nullable Executor executor, in registerWebSource() 302 @Nullable Executor executor, in registerWebTrigger() 329 @Nullable Executor executor, in registerWebTrigger() 353 @Nullable @CallbackExecutor Executor executor, in registerTrigger() [all …]
|
D | MeasurementCompatibleManager.java | 46 import java.util.concurrent.Executor; 68 private final Executor mAdIdExecutor = Executors.newCachedThreadPool(); 139 @Nullable @CallbackExecutor Executor executor, in register() 196 @Nullable @CallbackExecutor Executor executor, in registerSource() 243 @Nullable @CallbackExecutor Executor executor, in registerSource() 318 @Nullable Executor executor, in registerWebSource() 375 @Nullable Executor executor, in registerWebSourceWrapper() 407 @Nullable Executor executor, in registerWebTrigger() 461 @Nullable Executor executor, in registerWebTriggerWrapper() 489 @Nullable @CallbackExecutor Executor executor, in registerTrigger() [all …]
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/concurrent/ |
D | Executors.java | 25 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/ |
D | ImageLoader.java | 44 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/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothLeBroadcastAssistant.java | 58 import java.util.concurrent.Executor; 90 private final Map<Callback, Executor> mCallbackExecutorMap = new HashMap<>(); 97 for (Map.Entry<BluetoothLeBroadcastAssistant.Callback, Executor> 101 Executor executor = callbackExecutorEntry.getValue(); 109 for (Map.Entry<BluetoothLeBroadcastAssistant.Callback, Executor> 113 Executor executor = callbackExecutorEntry.getValue(); 121 for (Map.Entry<BluetoothLeBroadcastAssistant.Callback, Executor> 125 Executor executor = callbackExecutorEntry.getValue(); 133 for (Map.Entry<BluetoothLeBroadcastAssistant.Callback, Executor> 137 Executor executor = callbackExecutorEntry.getValue(); [all …]
|
D | BluetoothLeBroadcast.java | 46 import java.util.concurrent.Executor; 71 private final Map<Callback, Executor> mCallbackExecutorMap = new HashMap<>(); 78 for (Map.Entry<BluetoothLeBroadcast.Callback, Executor> callbackExecutorEntry : 81 Executor executor = callbackExecutorEntry.getValue(); 88 for (Map.Entry<BluetoothLeBroadcast.Callback, Executor> callbackExecutorEntry : 91 Executor executor = callbackExecutorEntry.getValue(); 98 for (Map.Entry<BluetoothLeBroadcast.Callback, Executor> callbackExecutorEntry : 101 Executor executor = callbackExecutorEntry.getValue(); 108 for (Map.Entry<BluetoothLeBroadcast.Callback, Executor> callbackExecutorEntry : 111 Executor executor = callbackExecutorEntry.getValue(); [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | SignalStrengthListenerTest.java | 43 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/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/metriclogger/ |
D | MetricLoggerConfig.java | 32 import java.util.concurrent.Executor; 55 public abstract Executor getLightweightExecutor(); in getLightweightExecutor() 58 public abstract Executor getBackgroundExecutor(); in getBackgroundExecutor() 74 Executor lightweightExecutor, in builder() 75 Executor backgroundExecutor, in builder() 89 Executor lightweightExecutor, in builderWithoutSamplingConfig() 90 Executor backgroundExecutor, in builderWithoutSamplingConfig() 139 public abstract Builder<L> lightweightExecutor(Executor executor); in lightweightExecutor() 142 public abstract Builder<L> backgroundExecutor(Executor executor); in backgroundExecutor()
|
/packages/services/Car/car-lib/src/android/car/occupantconnection/ |
D | CarOccupantConnectionManager.java | 44 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/TV/src/com/android/tv/util/ |
D | AsyncDbTask.java | 46 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/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/ |
D | Executors.java | 21 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/modules/HealthFitness/framework/java/android/health/connect/ |
D | HealthConnectManager.java | 148 import java.util.concurrent.Executor; 545 @NonNull @CallbackExecutor Executor executor, in insertRecords() 603 @NonNull @CallbackExecutor Executor executor, in aggregate() 665 @NonNull @CallbackExecutor Executor executor, in aggregateGroupByDuration() 735 @NonNull @CallbackExecutor Executor executor, in aggregateGroupByPeriod() 798 @NonNull Executor executor, in deleteRecords() 836 @NonNull Executor executor, in deleteRecords() 880 @NonNull Executor executor, in deleteRecords() 925 @NonNull @CallbackExecutor Executor executor, in getChangeLogs() 970 @NonNull Executor executor, in getChangeLogToken() [all …]
|
/packages/modules/Uwb/framework/java/android/uwb/ |
D | UwbManager.java | 48 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/modules/AdServices/adservices/clients/java/android/adservices/clients/signals/ |
D | ProtectedSignalsClient.java | 33 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/services/Car/car-lib/src/android/car/hardware/power/ |
D | CarPowerManager.java | 47 import java.util.concurrent.Executor; 60 private final ArrayMap<CarPowerPolicyListener, Pair<Executor, CarPowerPolicyFilter>> 85 private Executor mExecutor; 423 public void setListener(@NonNull @CallbackExecutor Executor executor, in setListener() 456 public void setListenerWithCompletion(@NonNull @CallbackExecutor Executor executor, in setListenerWithCompletion() 587 public void addPowerPolicyListener(@NonNull @CallbackExecutor Executor executor, in addPowerPolicyListener() 598 Pair<Executor, CarPowerPolicyFilter> pair = in addPowerPolicyListener() 633 Pair<Executor, CarPowerPolicyFilter> pair = mPolicyListenerMap.remove(listener); in removePowerPolicyListener() 725 Executor executor; in setServiceForListenerLocked() 746 Executor executor; in setServiceForListenerLocked() [all …]
|
/packages/modules/DeviceLock/framework/api/ |
D | current.txt | 12 …TATE) public void clearDeviceRestrictions(@NonNull java.util.concurrent.Executor, @NonNull android… 13 …EVICE_LOCK_STATE) public void getDeviceId(@NonNull java.util.concurrent.Executor, @NonNull android… 14 …method public void getKioskApps(@NonNull java.util.concurrent.Executor, @NonNull android.os.Outcom… 15 …CE_LOCK_STATE) public void isDeviceLocked(@NonNull java.util.concurrent.Executor, @NonNull android… 16 …DEVICE_LOCK_STATE) public void lockDevice(@NonNull java.util.concurrent.Executor, @NonNull android… 17 …VICE_LOCK_STATE) public void unlockDevice(@NonNull java.util.concurrent.Executor, @NonNull android…
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/ |
D | AppSearchUxStatesDao.java | 35 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 …]
|