/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SupplicantStaNetworkHalHidlImplTest.java | 30 import static org.mockito.Mockito.doAnswer; 515 doAnswer(new AnswerWithArguments() { in testSsidSaveFailure() 559 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair() 594 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair() 627 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresLenNetworkEapSimGsmAuthResponse() 649 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse() 674 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAuthResponse() 707 doAnswer(new AnswerWithArguments() { in testSendInvalidNetworkEapSimUmtsAuthResponse() 728 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAutsResponse() 747 doAnswer(new AnswerWithArguments() { in testSendInvalidNetworkEapSimUmtsAutsResponse() [all …]
|
D | SupplicantStaNetworkHalAidlImplTest.java | 29 import static org.mockito.Mockito.doAnswer; 1398 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock() 1403 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock() 1410 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock() 1417 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock() 1422 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock() 1429 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock() 1434 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock() 1441 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock() 1446 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock() [all …]
|
D | HalDeviceManagerTest.java | 46 import static org.mockito.Mockito.doAnswer; 1239 doAnswer(new GetNameAnswer("wlan0")).when(staIface).getName(); in simulateStartAndStopWifi() 1240 doAnswer(new CreateStaIfaceAnswer(chipMock, true, staIface)) in simulateStartAndStopWifi() 1276 doAnswer(new GetNameAnswer("wlan0")).when(staIface).getName(); in testCreateApWithStaIfaceUpTestChipV1UsingHandlerListeners() 1277 doAnswer(new CreateStaIfaceAnswer(chipMock, true, staIface)) in testCreateApWithStaIfaceUpTestChipV1UsingHandlerListeners() 1291 doAnswer(new GetNameAnswer("wlan0")).when(apIface).getName(); in testCreateApWithStaIfaceUpTestChipV1UsingHandlerListeners() 1292 doAnswer(new CreateApIfaceAnswer(chipMock, true, apIface)) in testCreateApWithStaIfaceUpTestChipV1UsingHandlerListeners() 1344 doAnswer(new GetNameAnswer("wlan0")).when(staIface).getName(); in testCreateLowerPriorityApWithStaIfaceUpTestChipV1UsingHandlerListeners() 1345 doAnswer(new CreateStaIfaceAnswer(chipMock, true, staIface)) in testCreateLowerPriorityApWithStaIfaceUpTestChipV1UsingHandlerListeners() 1361 doAnswer(new GetNameAnswer("wlan0")).when(apIface).getName(); in testCreateLowerPriorityApWithStaIfaceUpTestChipV1UsingHandlerListeners() [all …]
|
/packages/modules/Uwb/androidx_backend/tests/src/androidx/core/uwb/backend/impl/internal/ |
D | RangingControllerTest.java | 33 import static org.mockito.Mockito.doAnswer; 100 doAnswer( 204 doAnswer( 216 doAnswer( 241 doAnswer( 271 doAnswer( 283 doAnswer( 312 doAnswer( 324 doAnswer( 332 doAnswer( [all …]
|
D | RangingControleeTest.java | 32 import static org.mockito.Mockito.doAnswer; 95 doAnswer( 175 doAnswer( 187 doAnswer( 211 doAnswer( 240 doAnswer( 252 doAnswer( 279 doAnswer( 291 doAnswer( 299 doAnswer( [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/ |
D | ExportDestinationFragmentTest.kt | 76 import org.mockito.kotlin.doAnswer in <lambda>() 133 doAnswer(prepareAnswer(listOf())) in <lambda>() 191 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 228 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 261 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 291 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 327 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 353 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 382 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 411 doAnswer(prepareAnswer(documentProviders)) in <lambda>() [all …]
|
D | ImportSourceLocationFragmentTest.kt | 74 import org.mockito.kotlin.doAnswer in <lambda>() 130 doAnswer(prepareAnswer(listOf())) in <lambda>() 180 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 217 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 250 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 280 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 316 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 342 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 371 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 401 doAnswer(prepareAnswer(documentProviders)) in <lambda>() [all …]
|
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/ |
D | MeasurementCompatibleManagerTest.java | 26 import static org.mockito.Mockito.doAnswer; 135 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_callingApp_expectedAttributionSource() 178 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdEnabled_register() 180 doAnswer( in testRegisterSource_adIdEnabled_register() method 217 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdZeroOut_register() 219 doAnswer( in testRegisterSource_adIdZeroOut_register() method 255 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdDisabled_register() 257 doAnswer( in testRegisterSource_adIdDisabled_register() method 294 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdTimeOut_register() 296 doAnswer( in testRegisterSource_adIdTimeOut_register() method [all …]
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/mockito/ |
D | MockitoHelperTest.java | 20 import static org.mockito.Mockito.doAnswer; 56 doAnswer(mAnswer).when(mFixture).pEquals(any()); in testToString_oneArgument() 68 doAnswer(mAnswer).when(mFixture).pEquals(any()); in testToString_oneArgument_null() 80 doAnswer(mAnswer).when(mFixture).toInfinity(any(), any()); in testToString_multipleArguments() 92 doAnswer(mAnswer).when(mFixture).toInfinity(any(), any()); in testToString_multipleArguments_null() 104 doAnswer(mAnswer).when(mFixture).iJustCalled(any()); in testToString_varArgs() 116 doAnswer(mAnswer).when(mFixture).iJustCalled(any()); in testToString_nullVarArgs() 128 doAnswer(mAnswer).when(mFixture).iJustCalled(any()); in testToString_varArgsWithNull()
|
/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/ |
D | ThreadNetworkControllerTest.java | 30 import static org.mockito.Mockito.doAnswer; 140 doAnswer( in registerStateCallback_callbackIsInvokedWithCallingAppIdentity() 164 doAnswer( in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity() 209 doAnswer( in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 220 doAnswer( in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 252 doAnswer( in join_callbackIsInvokedWithCallingAppIdentity() 263 doAnswer( in join_callbackIsInvokedWithCallingAppIdentity() 300 doAnswer( in scheduleMigration_callbackIsInvokedWithCallingAppIdentity() 310 doAnswer( in scheduleMigration_callbackIsInvokedWithCallingAppIdentity() 343 doAnswer( in leave_callbackIsInvokedWithCallingAppIdentity() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdSelectionE2ETest.java | 61 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; 906 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogic() 913 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogic() 920 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogic() 1026 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled() 1033 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled() 1040 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled() 1158 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled() 1165 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled() 1172 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled() [all …]
|
D | AdSelectionScriptEngineTest.java | 30 import static org.mockito.Mockito.doAnswer; 336 doAnswer( in testGenerateBidSuccessfulCase() 381 doAnswer( in testGenerateBidWithAdCostSuccessfulCaseCpcBillingEnabled() 430 doAnswer( in testGenerateBidWithAdCostDoesNotAddAdCostCpcBillingDisabled() 479 doAnswer( in testGenerateBidWithOnlyOneAdCostSuccessfulCase() 532 doAnswer( in testGenerateBidWithCopierSuccessfulCase() 577 doAnswer( in testGenerateBidWithCopierWithAdCounterKeysSuccessfulCase() 614 doAnswer( in testGenerateBidV3SuccessfulCase() 675 doAnswer( in testGenerateBidV3WithCopierSuccessfulCase() 736 doAnswer( in testGenerateBidV3WithCopierWithAdCounterKeysSuccessfulCase() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | VideoProviderTest.java | 25 import static org.mockito.Mockito.doAnswer; 149 doAnswer(mVerification).when(mVideoCallCallback) in testCameraChange() 184 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangePermissionFail() 213 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeAppOpsFail() 243 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeAppOpsBelowNMR1Fail() 273 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeUserFail() 301 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeNullNoPermission() 437 doAnswer(mVerification).when(mVideoCallCallback) in testSessionModifyRequest() 493 doAnswer(mVerification).when(mVideoCallCallback) in testRequestCameraCapabilities() 532 doAnswer(mVerification).when(mVideoCallCallback) in testRequestDataUsage() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | PropertyHalServiceTest.java | 39 import static org.mockito.Mockito.doAnswer; 422 doAnswer((invocation) -> { in testGetCarPropertyValuesAsync_staticCacheMultipleRequests() method 506 doAnswer((invocation) -> { in testGetCarPropertyValuesAsync_normalResult() method 529 doAnswer(new Answer() { in testGetCarPropertyValuesAsync_retryTwiceAndSucceed() 568 doAnswer((invocation) -> { in testGetCarPropertyValuesAsync_retryAndTimeout() method 611 doAnswer((invocation) -> { in testGetCarPropertyValuesAsync_timeoutFromVehicleStub() method 642 doAnswer((invocation) -> { in testGetCarPropertyValuesAsync_errorResult() method 666 doAnswer((invocation) -> { in testGetCarPropertyValuesAsync_errorResultVendorErrorCode() method 698 doAnswer((invocation) -> { in testGetCarPropertyValuesAsync_propStatusUnavailable() method 726 doAnswer((invocation) -> { in testGetCarPropertyValuesAsync_propStatusError() method [all …]
|
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/mockito/ |
D | LogInterceptor.java | 19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; 62 doAnswer( in forTagAndLevels() 75 doAnswer( in forTagAndLevels() 90 doAnswer( in forTagAndLevels() 103 doAnswer( in forTagAndLevels() 118 doAnswer( in forTagAndLevels() 131 doAnswer( in forTagAndLevels()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/combination/ |
D | CombinedBiometricProfileSettingsTest.java | 27 import static org.mockito.Mockito.doAnswer; 131 doAnswer(invocation -> { in setUp() 136 doAnswer(invocation -> { in setUp() 140 doAnswer(invocation -> { in setUp() 145 doAnswer(invocation -> { in setUp() 150 doAnswer(invocation -> { in setUp() 165 doAnswer(invocation -> { in testClickFingerprintUnlockWithValidGkPwHandle() 196 doAnswer(invocation -> { in testClickFingerprintUnlockIfGkPwHandleTimeout() 221 doAnswer(invocation -> { in testActivityResultLaunchFingerprintUnlock() 255 doAnswer(invocation -> { in testClickFaceUnlock() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ |
D | TestUtils.java | 21 import static org.mockito.Mockito.doAnswer; 73 doAnswer( in makeSpyLogThrowExceptionForWtf() method 80 doAnswer( in makeSpyLogThrowExceptionForWtf() method 93 doAnswer( in makeSpyLogDoLogErrorForWtf() method 103 doAnswer( in makeSpyLogDoLogErrorForWtf() method
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | HidlVehicleStubUnitTest.java | 26 import static org.mockito.Mockito.doAnswer; 154 doAnswer(inv -> { in testGetAllPropConfigsHidl() 189 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequests() 199 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequests() 236 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsNoConfig() 252 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsInvalidConfig() 269 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsGetValueInvalidArg() 279 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsGetValueInvalidArg() 291 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsNoConfigReturned() 308 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsGetValueError() [all …]
|
/packages/modules/Uwb/framework/tests/src/android/uwb/ |
D | AdapterStateListenerTest.java | 21 import static org.mockito.Mockito.doAnswer; 82 doAnswer(mRegisterSuccessAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any()); 119 doAnswer(mRegisterSuccessAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any()); 136 doAnswer(mRegisterSuccessAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any()); 147 doAnswer(new ExecutorAnswer(false)).when(executor).execute(any()); 159 doAnswer(new ExecutorAnswer(true)).when(executor).execute(any()); 184 doAnswer(mRegisterSuccessAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any()); 271 doAnswer(registerAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any());
|
D | RangingSessionTest.java | 31 import static org.mockito.Mockito.doAnswer; 192 doAnswer(new StartAnswer(session)).when(adapter).startRanging(any(), any()); in testStart_CannotStartIfAlreadyStarted() 209 doAnswer(new StartAnswer(session)).when(adapter).startRanging(any(), any()); in testStop_CannotStopIfAlreadyStopped() 210 doAnswer(new StopAnswer(session)).when(adapter).stopRanging(any()); in testStop_CannotStopIfAlreadyStopped() 228 doAnswer(new StartAnswer(session)).when(adapter).startRanging(any(), any()); in testStop_CannotStopIfOpenFailed() 229 doAnswer(new StopAnswer(session)).when(adapter).stopRanging(any()); in testStop_CannotStopIfOpenFailed() 248 doAnswer(new OpenAnswer(session)).when(adapter).openRanging( in testCallbacks_OnlyWhenOpened() 250 doAnswer(new StartAnswer(session)).when(adapter).startRanging(any(), any()); in testCallbacks_OnlyWhenOpened() 251 doAnswer(new ReconfigureAnswer(session)).when(adapter).reconfigureRanging(any(), any()); in testCallbacks_OnlyWhenOpened() 252 doAnswer(new PauseAnswer(session)).when(adapter).pause(any(), any()); in testCallbacks_OnlyWhenOpened() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppTestUtils.java | 25 import static org.mockito.Mockito.doAnswer; 80 doAnswer( in setUpMockCursor() 95 doAnswer( in setUpMockCursor() 107 doAnswer( in setUpMockCursor() 119 doAnswer( in setUpMockCursor()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalHidlImplTest.java | 29 import static org.mockito.Mockito.doAnswer; 357 doAnswer(new AnswerWithArguments() { in testMisorderSupplicantDeathHandlingV1_1() 376 doAnswer(new AnswerWithArguments() { in testGetName_success() 395 doAnswer(new AnswerWithArguments() { in testGetName_failure() 412 doAnswer(new AnswerWithArguments() { in testGetName_exception() 720 doAnswer(new AnswerWithArguments() { in testConnect_success() 775 doAnswer(new AnswerWithArguments() { in testConnect_invalidArguments() 819 doAnswer(new AnswerWithArguments() { in testConnect_failure() 1100 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_success() 1123 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_invalidResult() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | FastPairProviderTest.java | 31 import static org.mockito.Mockito.doAnswer; 189 doAnswer(invocation -> { in setUp() 195 doAnswer(invocation -> { in setUp() 203 doAnswer(invocation -> { in setUp() 207 doAnswer(invocation -> { in setUp() 211 doAnswer(invocation -> { in setUp() 241 doAnswer(invocation -> { in setupMockKeyStorage() 251 doAnswer(invocation -> { in setupMockKeyStorage() 259 doAnswer(invocation -> { in setupMockKeyStorage() 266 doAnswer(invocation -> { in setupMockKeyStorage() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/fixture/ |
D | TestableSystemProperties.java | 51 ExtendedMockito.doAnswer(invocation -> getIntValue(invocation)) in setUpMockBehaviors() 53 ExtendedMockito.doAnswer(invocation -> getLongValue(invocation)) in setUpMockBehaviors() 55 ExtendedMockito.doAnswer(invocation -> getBooleanValue(invocation)) in setUpMockBehaviors() 57 ExtendedMockito.doAnswer(invocation -> getStringValue(invocation)) in setUpMockBehaviors() 59 ExtendedMockito.doAnswer(invocation -> getStringValueWithoutDefault(invocation)) in setUpMockBehaviors()
|
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/mockito/ |
D | MockitoExpectations.java | 26 import static org.mockito.Mockito.doAnswer; 79 doAnswer( in mockLogApiCallStats() 184 doAnswer( in syncPersistJobExecutionData() 212 doAnswer( in syncLogExecutionStats() 220 doAnswer( in syncLogExecutionStats() 228 doAnswer( in syncLogExecutionStats()
|