/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/face/ |
D | FaceUpdaterTest.java | 94 ArgumentCaptor<FaceManager.EnrollmentCallback> callbackCaptor = in enroll_firstVersion_onEnrollmentCallbacks_triggerGivenCallback() local 102 callbackCaptor.capture(), in enroll_firstVersion_onEnrollmentCallbacks_triggerGivenCallback() 107 FaceManager.EnrollmentCallback callback = callbackCaptor.getValue(); in enroll_firstVersion_onEnrollmentCallbacks_triggerGivenCallback() 123 ArgumentCaptor<FaceManager.EnrollmentCallback> callbackCaptor = in enroll_firstVersion_onEnrollmentSuccess_invokedInteractionWithSafetyCenter() local 131 callbackCaptor.capture(), in enroll_firstVersion_onEnrollmentSuccess_invokedInteractionWithSafetyCenter() 136 FaceManager.EnrollmentCallback callback = callbackCaptor.getValue(); in enroll_firstVersion_onEnrollmentSuccess_invokedInteractionWithSafetyCenter() 145 ArgumentCaptor<FaceManager.EnrollmentCallback> callbackCaptor = in enroll_firstVersion_onEnrollmentNotYetFinished_didntInvokeInteractionWithSafetyCenter() local 153 callbackCaptor.capture(), in enroll_firstVersion_onEnrollmentNotYetFinished_didntInvokeInteractionWithSafetyCenter() 158 FaceManager.EnrollmentCallback callback = callbackCaptor.getValue(); in enroll_firstVersion_onEnrollmentNotYetFinished_didntInvokeInteractionWithSafetyCenter() 167 ArgumentCaptor<FaceManager.EnrollmentCallback> callbackCaptor = in enroll_secondVersion_onEnrollmentCallbacks_triggerGivenCallback() local [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintUpdaterTest.java | 79 ArgumentCaptor<FingerprintManager.EnrollmentCallback> callbackCaptor = in enroll_onEnrollmentCallbacks_triggerGivenCallback() local 87 callbackCaptor.capture(), in enroll_onEnrollmentCallbacks_triggerGivenCallback() 90 FingerprintManager.EnrollmentCallback callback = callbackCaptor.getValue(); in enroll_onEnrollmentCallbacks_triggerGivenCallback() 103 ArgumentCaptor<FingerprintManager.EnrollmentCallback> callbackCaptor = in enroll_onEnrollmentSuccess_invokedInteractionWithSafetyCenter() local 111 callbackCaptor.capture(), in enroll_onEnrollmentSuccess_invokedInteractionWithSafetyCenter() 114 FingerprintManager.EnrollmentCallback callback = callbackCaptor.getValue(); in enroll_onEnrollmentSuccess_invokedInteractionWithSafetyCenter() 123 ArgumentCaptor<FingerprintManager.EnrollmentCallback> callbackCaptor = in enroll_onEnrollmentNotYetFinished_didntInvokeInteractionWithSafetyCenter() local 131 callbackCaptor.capture(), in enroll_onEnrollmentNotYetFinished_didntInvokeInteractionWithSafetyCenter() 134 FingerprintManager.EnrollmentCallback callback = callbackCaptor.getValue(); in enroll_onEnrollmentNotYetFinished_didntInvokeInteractionWithSafetyCenter() 143 ArgumentCaptor<FingerprintManager.RemovalCallback> callbackCaptor = in remove_onRemovalCallbacks_triggerGivenCallback() local [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 402 ArgumentCaptor<ICoexCallback.Stub> callbackCaptor = in testAddCoexCallbackAndReceiveEvent() local 405 verify(mWifiService).registerCoexCallback(callbackCaptor.capture()); in testAddCoexCallbackAndReceiveEvent() 406 callbackCaptor.getValue().onCoexUnsafeChannelsChanged(Collections.emptyList(), 0); in testAddCoexCallbackAndReceiveEvent() 416 ArgumentCaptor<ICoexCallback.Stub> callbackCaptor = in testRegisterCoexCallbackWithTheTargetExecutor() local 419 verify(mWifiService).registerCoexCallback(callbackCaptor.capture()); in testRegisterCoexCallbackWithTheTargetExecutor() 421 callbackCaptor.getValue().onCoexUnsafeChannelsChanged(Collections.emptyList(), 0); in testRegisterCoexCallbackWithTheTargetExecutor() 432 ArgumentCaptor<ICoexCallback.Stub> callbackCaptor = in testRegisterUnregisterThenRegisterAgainWithCoexCallback() local 435 verify(mWifiService).registerCoexCallback(callbackCaptor.capture()); in testRegisterUnregisterThenRegisterAgainWithCoexCallback() 437 callbackCaptor.getValue().onCoexUnsafeChannelsChanged(Collections.emptyList(), 0); in testRegisterUnregisterThenRegisterAgainWithCoexCallback() 440 callbackCaptor.getValue().onCoexUnsafeChannelsChanged(Collections.emptyList(), 0); in testRegisterUnregisterThenRegisterAgainWithCoexCallback() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/ |
D | SensorToggleControllerTest.java | 150 ArgumentCaptor<SensorPrivacyManagerHelper.Callback> callbackCaptor = in stopMicrophoneToggleController_invokeRemoveSensorBlockedListener() local 153 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), callbackCaptor.capture()); in stopMicrophoneToggleController_invokeRemoveSensorBlockedListener() 158 .removeSensorBlockedListener(callbackCaptor.getValue()); in stopMicrophoneToggleController_invokeRemoveSensorBlockedListener() 175 ArgumentCaptor<SensorPrivacyManagerHelper.Callback> callbackCaptor = in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse() local 178 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), callbackCaptor.capture()); in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse() 182 callbackCaptor.getValue() in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse() 203 ArgumentCaptor<SensorPrivacyManagerHelper.Callback> callbackCaptor = in isChecked_enableMicrophoneSensorPrivacyThenChanged_returnTrue() local 206 .addSensorBlockedListener(eq(SENSOR_MICROPHONE), any(), callbackCaptor.capture()); in isChecked_enableMicrophoneSensorPrivacyThenChanged_returnTrue() 209 callbackCaptor.getValue() in isChecked_enableMicrophoneSensorPrivacyThenChanged_returnTrue() 330 ArgumentCaptor<SensorPrivacyManagerHelper.Callback> callbackCaptor = in stopCameraToggleController_invokeRemoveSensorBlockedListener() local [all …]
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/ |
D | AppPairsControllerTest.kt | 91 @Captor lateinit var callbackCaptor: ArgumentCaptor<Consumer<Array<Task>>> variable in com.android.quickstep.util.AppPairsControllerTest 208 .findLastActiveTasksAndRunCallback(any(), any(), callbackCaptor.capture()) in handleAppPairLaunchInApp_shouldDoNothingWhenAppsAreAlreadyRunning() 209 val callback: Consumer<Array<Task>> = callbackCaptor.value in handleAppPairLaunchInApp_shouldDoNothingWhenAppsAreAlreadyRunning() 232 .findLastActiveTasksAndRunCallback(any(), any(), callbackCaptor.capture()) in handleAppPairLaunchInApp_shouldLaunchApp2ToRightWhenApp1IsOnLeft() 233 val callback: Consumer<Array<Task>> = callbackCaptor.value in handleAppPairLaunchInApp_shouldLaunchApp2ToRightWhenApp1IsOnLeft() 256 .findLastActiveTasksAndRunCallback(any(), any(), callbackCaptor.capture()) in handleAppPairLaunchInApp_shouldLaunchApp2ToLeftWhenApp1IsOnRight() 257 val callback: Consumer<Array<Task>> = callbackCaptor.value in handleAppPairLaunchInApp_shouldLaunchApp2ToLeftWhenApp1IsOnRight() 280 .findLastActiveTasksAndRunCallback(any(), any(), callbackCaptor.capture()) in handleAppPairLaunchInApp_shouldLaunchApp1ToRightWhenApp2IsOnLeft() 281 val callback: Consumer<Array<Task>> = callbackCaptor.value in handleAppPairLaunchInApp_shouldLaunchApp1ToRightWhenApp2IsOnLeft() 304 .findLastActiveTasksAndRunCallback(any(), any(), callbackCaptor.capture()) in handleAppPairLaunchInApp_shouldLaunchApp1ToLeftWhenApp2IsOnRight() [all …]
|
/packages/services/Mms/tests/robotests/src/com/android/mms/service/ |
D | MmsNetworkManagerTest.java | 109 final ArgumentCaptor<NetworkCallback> callbackCaptor = in testAvailableNetwork_newNetworkIsSuspend() local 114 .requestNetwork(any(), callbackCaptor.capture(), anyInt()); in testAvailableNetwork_newNetworkIsSuspend() 115 final NetworkCallback callback = callbackCaptor.getValue(); in testAvailableNetwork_newNetworkIsSuspend() 168 final ArgumentCaptor<NetworkCallback> callbackCaptor = in testAvailableNetwork_networkUnavailable() local 173 .requestNetwork(any(), callbackCaptor.capture(), anyInt()); in testAvailableNetwork_networkUnavailable() 174 final NetworkCallback callback = callbackCaptor.getValue(); in testAvailableNetwork_networkUnavailable() 189 final ArgumentCaptor<NetworkCallback> callbackCaptor = in testAvailableNetwork_newNetworkSuspendedEventuallyReleased() local 194 .requestNetwork(any(), callbackCaptor.capture(), anyInt()); in testAvailableNetwork_newNetworkSuspendedEventuallyReleased() 195 final NetworkCallback callback = callbackCaptor.getValue(); in testAvailableNetwork_newNetworkSuspendedEventuallyReleased() 230 final ArgumentCaptor<NetworkCallback> callbackCaptor = in acquireAvailableNetworkAndGetCallback() local [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/callcomposer/ |
D | PictureManagerTest.java | 116 ArgumentCaptor<CallComposerPictureTransfer.PictureCallback> callbackCaptor = in testPictureUpload() local 118 verify(mockPictureTransfer).setCallback(callbackCaptor.capture()); in testPictureUpload() 137 callbackCaptor.getValue().onUploadSuccessful(FAKE_URL); in testPictureUpload() 174 ArgumentCaptor<CallComposerPictureTransfer.PictureCallback> callbackCaptor = in testPictureUploadWithAuthRefresh() local 176 verify(mockPictureTransfer).setCallback(callbackCaptor.capture()); in testPictureUploadWithAuthRefresh() 183 callbackCaptor.getValue().onRetryNeeded(true, 0); in testPictureUploadWithAuthRefresh() 213 ArgumentCaptor<CallComposerPictureTransfer.PictureCallback> callbackCaptor = in testPictureDownload() local 215 verify(mockPictureTransfer).setCallback(callbackCaptor.capture()); in testPictureDownload() 225 callbackCaptor.getValue().onDownloadSuccessful(imageData); in testPictureDownload() 252 ArgumentCaptor<CallComposerPictureTransfer.PictureCallback> callbackCaptor = in testPictureDownloadWithAuthRefresh() local [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/ |
D | DataConnectionStateHelperTest.java | 151 ArgumentCaptor<CarrierConfigManager.CarrierConfigChangeListener> callbackCaptor = in testInit() local 156 callbackCaptor.capture()); in testInit() 158 assertNotNull(callbackCaptor.getValue()); in testInit() 163 ArgumentCaptor<CarrierConfigManager.CarrierConfigChangeListener> callbackCaptor = in testCarrierConfigChanged() local 167 callbackCaptor.capture()); in testCarrierConfigChanged() 169 CarrierConfigManager.CarrierConfigChangeListener callback = callbackCaptor.getValue(); in testCarrierConfigChanged() 203 ArgumentCaptor<CarrierConfigManager.CarrierConfigChangeListener> callbackCaptor = in testSubscriptionChangedOnTheSameSlot() local 207 callbackCaptor.capture()); in testSubscriptionChangedOnTheSameSlot() 209 CarrierConfigManager.CarrierConfigChangeListener callback = callbackCaptor.getValue(); in testSubscriptionChangedOnTheSameSlot() 248 ArgumentCaptor<CarrierConfigManager.CarrierConfigChangeListener> callbackCaptor = in testDataConnectionStateChanged() local [all …]
|
D | ImsStateTrackerTest.java | 696 ArgumentCaptor<ImsStateCallback> callbackCaptor = in setUpImsStateCallback() local 699 any(Executor.class), callbackCaptor.capture()); in setUpImsStateCallback() 701 ImsStateCallback imsStateCallback = callbackCaptor.getValue(); in setUpImsStateCallback() 712 ArgumentCaptor<RegistrationManager.RegistrationCallback> callbackCaptor = in setUpImsRegistrationCallback() local 715 any(Executor.class), callbackCaptor.capture()); in setUpImsRegistrationCallback() 717 RegistrationManager.RegistrationCallback registrationCallback = callbackCaptor.getValue(); in setUpImsRegistrationCallback() 735 ArgumentCaptor<ImsMmTelManager.CapabilityCallback> callbackCaptor = in setUpMmTelCapabilityCallback() local 738 any(Executor.class), callbackCaptor.capture()); in setUpMmTelCapabilityCallback() 740 ImsMmTelManager.CapabilityCallback capabilityCallback = callbackCaptor.getValue(); in setUpMmTelCapabilityCallback()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDeviceProfilePreferenceTest.java | 152 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onDeviceAttributesChanged_refreshesUi() local 155 verify(mCachedDevice).registerCallback(callbackCaptor.capture()); in onDeviceAttributesChanged_refreshesUi() 163 callbackCaptor.getValue().onDeviceAttributesChanged(); in onDeviceAttributesChanged_refreshesUi() 171 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onDetached_unregistersDeviceCallback() local 174 verify(mCachedDevice).registerCallback(callbackCaptor.capture()); in onDetached_unregistersDeviceCallback() 178 verify(mCachedDevice).unregisterCallback(callbackCaptor.getValue()); in onDetached_unregistersDeviceCallback()
|
D | BluetoothDevicePreferenceControllerTest.java | 150 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onStop_unregistersDeviceCallback() local 152 verify(mDevice).registerCallback(callbackCaptor.capture()); in onStop_unregistersDeviceCallback() 156 verify(mDevice).unregisterCallback(callbackCaptor.getValue()); in onStop_unregistersDeviceCallback() 162 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in started_onDeviceAttributesChanged_refreshesUi() local 164 verify(mDevice).registerCallback(callbackCaptor.capture()); in started_onDeviceAttributesChanged_refreshesUi() 168 callbackCaptor.getValue().onDeviceAttributesChanged(); in started_onDeviceAttributesChanged_refreshesUi()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBaseTest.java | 150 final ArgumentCaptor<Consumer<Boolean>> callbackCaptor = ArgumentCaptor.forClass( in setRoleIsVisible() local 153 callbackCaptor.capture()); in setRoleIsVisible() 154 final Consumer<Boolean> callback = callbackCaptor.getValue(); in setRoleIsVisible() 159 final ArgumentCaptor<Consumer<Boolean>> callbackCaptor = ArgumentCaptor.forClass( in setApplicationIsVisibleForRole() local 162 TEST_PACKAGE_NAME), any(Executor.class), callbackCaptor.capture()); in setApplicationIsVisibleForRole() 163 final Consumer<Boolean> callback = callbackCaptor.getValue(); in setApplicationIsVisibleForRole()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | RemoveAccountPreferenceControllerTest.java | 162 ArgumentCaptor<AccountManagerCallback<Bundle>> callbackCaptor = ArgumentCaptor.forClass( in confirmRemove_shouldRemoveAccount() local 165 callbackCaptor.capture(), nullable(Handler.class), eq(userHandle)); in confirmRemove_shouldRemoveAccount() 167 AccountManagerCallback<Bundle> callback = callbackCaptor.getValue(); in confirmRemove_shouldRemoveAccount() 196 ArgumentCaptor<AccountManagerCallback<Bundle>> callbackCaptor = ArgumentCaptor.forClass( in confirmRemove_activityGone_shouldSilentlyRemoveAccount() local 199 callbackCaptor.capture(), nullable(Handler.class), eq(userHandle)); in confirmRemove_activityGone_shouldSilentlyRemoveAccount() 201 AccountManagerCallback<Bundle> callback = callbackCaptor.getValue(); in confirmRemove_activityGone_shouldSilentlyRemoveAccount()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicePreferenceTest.java | 197 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onDetached_unregistersDeviceCallback() local 200 verify(mCachedDevice).registerCallback(callbackCaptor.capture()); in onDetached_unregistersDeviceCallback() 204 verify(mCachedDevice).unregisterCallback(callbackCaptor.getValue()); in onDetached_unregistersDeviceCallback() 214 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onDeviceAttributesChanged_refreshesUi() local 217 verify(mCachedDevice).registerCallback(callbackCaptor.capture()); in onDeviceAttributesChanged_refreshesUi() 230 callbackCaptor.getValue().onDeviceAttributesChanged(); in onDeviceAttributesChanged_refreshesUi()
|
D | BluetoothDeviceActionButtonsPreferenceControllerTest.java | 162 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in deviceAttributesChanged_updatesConnectionButtonState() local 167 verify(mCachedDevice).registerCallback(callbackCaptor.capture()); in deviceAttributesChanged_updatesConnectionButtonState() 170 callbackCaptor.getValue().onDeviceAttributesChanged(); in deviceAttributesChanged_updatesConnectionButtonState()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallRecordingTonePlayerTest.java | 276 ArgumentCaptor<AudioManager.AudioRecordingCallback> callbackCaptor = in testIsRecordingLater() local 278 verify(mAudioManager).registerAudioRecordingCallback(callbackCaptor.capture(), any()); in testIsRecordingLater() 281 callbackCaptor.getValue().onRecordingConfigChanged(getAudioRecordingConfig( in testIsRecordingLater() 301 ArgumentCaptor<AudioManager.AudioRecordingCallback> callbackCaptor = in testNotRecordingApp() local 303 verify(mAudioManager).registerAudioRecordingCallback(callbackCaptor.capture(), any()); in testNotRecordingApp() 306 callbackCaptor.getValue().onRecordingConfigChanged(getAudioRecordingConfig( in testNotRecordingApp()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | ConnectivityMonitorWithConnectivityManagerTests.java | 111 final ArgumentCaptor<NetworkCallback> callbackCaptor = in testIntentFired_shouldNotifyListener() local 114 any(NetworkRequest.class), callbackCaptor.capture()); in testIntentFired_shouldNotifyListener() 116 final NetworkCallback callback = callbackCaptor.getValue(); in testIntentFired_shouldNotifyListener()
|
D | MdnsDiscoveryManagerTests.java | 160 final ArgumentCaptor<SocketCreationCallback> callbackCaptor = in expectSocketCreationCallback() local 165 eq(listener), eq(options.getNetwork()), callbackCaptor.capture()); in expectSocketCreationCallback() 166 return callbackCaptor.getValue(); in expectSocketCreationCallback()
|
D | MdnsMultinetworkSocketClientTest.java | 113 final ArgumentCaptor<SocketCallback> callbackCaptor = in expectSocketCallback() local 118 .requestSocket(eq(requestedNetwork), callbackCaptor.capture()); in expectSocketCallback() 119 return callbackCaptor.getValue(); in expectSocketCallback()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusicon/ui/ |
D | MediaVolumeStatusIconControllerTest.java | 227 ArgumentCaptor<CarAudioManager.CarVolumeCallback> callbackCaptor = in attachAndSetAudioMocks() local 229 verify(mCarAudioManager).registerCarVolumeCallback(callbackCaptor.capture()); in attachAndSetAudioMocks() 230 mVolumeChangeCallback = callbackCaptor.getValue(); in attachAndSetAudioMocks()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/ |
D | WifiRttManagerTest.java | 104 ArgumentCaptor<IRttCallback> callbackCaptor = ArgumentCaptor.forClass(IRttCallback.class); in testRangeSuccess() local 109 eq(null), eq(request), callbackCaptor.capture(), any(Bundle.class)); in testRangeSuccess() 112 callbackCaptor.getValue().onRangingResults(results); in testRangeSuccess() 128 ArgumentCaptor<IRttCallback> callbackCaptor = ArgumentCaptor.forClass(IRttCallback.class); in testRangeFail() local 133 eq(null), eq(request), callbackCaptor.capture(), any(Bundle.class)); in testRangeFail() 136 callbackCaptor.getValue().onRangingFailure(failureCode); in testRangeFail()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/systemui/keyguard/ |
D | ExperimentalCarKeyguardServiceTest.java | 273 ArgumentCaptor<KeyguardServiceDelegate.KeyguardLockedStateCallback> callbackCaptor = in onLockedStateChanged_notifiesListener() local 276 callbackCaptor.capture()); in onLockedStateChanged_notifiesListener() 278 callbackCaptor.getValue().onKeyguardLockedStateChanged(true); in onLockedStateChanged_notifiesListener()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintEnrollFindSensorTest.java | 223 ArgumentCaptor<EnrollmentCallback> callbackCaptor = in verifyAndCaptureEnrollmentCallback() local 229 callbackCaptor.capture(), in verifyAndCaptureEnrollmentCallback() 233 return callbackCaptor.getValue(); in verifyAndCaptureEnrollmentCallback()
|
D | FingerprintEnrollEnrollingTest.java | 662 ArgumentCaptor<EnrollmentCallback> callbackCaptor = in verifyAndCaptureEnrollmentCallback() local 669 callbackCaptor.capture(), in verifyAndCaptureEnrollmentCallback() 673 return callbackCaptor.getValue(); in verifyAndCaptureEnrollmentCallback()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | SipSessionTrackerTest.java | 561 ArgumentCaptor<ISipDialogStateCallback> callbackCaptor = in registerCallback() local 573 eq(TEST_SUB_ID), callbackCaptor.capture()); in registerCallback() 577 mCbBinder = callbackCaptor.getValue(); in registerCallback()
|