/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | VideoProviderTest.java | 61 import static org.mockito.Mockito.doAnswer; 152 doAnswer(mVerification).when(mVideoCallCallback) in testCameraChange() 187 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangePermissionFail() 216 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeAppOpsFail() 246 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeAppOpsBelowNMR1Fail() 276 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeUserFail() 304 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeNullNoPermission() 440 doAnswer(mVerification).when(mVideoCallCallback) in testSessionModifyRequest() 496 doAnswer(mVerification).when(mVideoCallCallback) in testRequestCameraCapabilities() 535 doAnswer(mVerification).when(mVideoCallCallback) in testRequestDataUsage() [all …]
|
D | SystemStateHelperTest.java | 26 import static org.mockito.Mockito.doAnswer; 166 doAnswer(invocation -> { in testDeviceOnEarCorrectlyDetected() 187 doAnswer(invocation -> { in testDeviceIsNotOnEarWithProxNotSensed() 207 doAnswer(invocation -> { in testDeviceIsNotOnEarWithWrongOrientation() 229 doAnswer(invocation -> { in testDeviceIsNotOnEarWithMissingSensor() 249 doAnswer(invocation -> { in testDeviceIsNotOnEarWithTimeout() 268 doAnswer(invocation -> { in testDeviceIsOnEarWithMultiSensorInputs()
|
D | ComponentContextFixture.java | 83 import static org.mockito.Mockito.doAnswer; 492 doAnswer(new Answer<List<ResolveInfo>>() { 501 doAnswer(new Answer<List<ResolveInfo>>() { 525 doAnswer(new Answer<Void>(){
|
/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/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | UserCapabilityExchangeImplTest.java | 24 import static org.mockito.Mockito.doAnswer; 174 doAnswer(invocation -> { in testRequestPublicationWithSuccessfulResponse() 199 doAnswer(invocation -> { in testRequestPublicationWithFailedResponse() 226 doAnswer(invocation -> { in testRequestCapability() 245 doAnswer(invocation -> { in testUpdatePublisherState() 262 doAnswer(invocation -> { in testUnpublish()
|
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/ |
D | CarUiTestUtil.java | 21 import static org.mockito.Mockito.doAnswer; 49 doAnswer(invocation -> tempInflater.cloneInContext(context)) in getMockContext() 55 doAnswer(invocation -> { in getMockContext()
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
D | TvInputManagerHelperTest.java | 222 Mockito.doAnswer( in createMockTvInputManager() 232 Mockito.doAnswer( in createMockTvInputManager() 242 Mockito.doAnswer( in createMockTvInputManager() 252 Mockito.doAnswer( in createMockTvInputManager()
|
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/testutils/ |
D | ShadowCar.java | 19 import static org.mockito.Mockito.doAnswer; 52 doAnswer((Answer<Void>) invocation -> { in createCar() 56 doAnswer((Answer<Void>) invocation -> { in createCar()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowCar.java | 19 import static org.mockito.Mockito.doAnswer; 51 doAnswer((Answer<Void>) invocation -> { in createCar() 55 doAnswer((Answer<Void>) invocation -> { in createCar()
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | RecommendationUtils.java | 41 Mockito.doAnswer( in createMockRecommendationDataManager() 50 Mockito.doAnswer( in createMockRecommendationDataManager() 60 Mockito.doAnswer( in createMockRecommendationDataManager()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | ExternalSourcesDetailsTest.java | 25 import static org.mockito.Mockito.doAnswer; 178 doAnswer((answer) -> { in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() method 217 doAnswer((answer) -> { in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference() method 258 doAnswer((answer) -> { in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference() method
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | StartManagedProfileTaskTest.java | 21 import static org.mockito.Mockito.doAnswer; 86 doAnswer((InvocationOnMock invocationOnMock) -> { in setUp() method 99 doAnswer((InvocationOnMock invocationOnMock) -> { in testSuccess() method
|
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/ |
D | PreferenceListTest.java | 24 import static org.mockito.Mockito.doAnswer; 63 doAnswer(invocation -> { in setUp() 71 doAnswer(invocation -> { in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | PowerUsageSummaryTest.java | 27 import static org.mockito.Mockito.doAnswer; 253 doAnswer(new Answer() { in showBothEstimates_summariesAreBothModified() 260 doAnswer(new Answer() { in showBothEstimates_summariesAreBothModified() 308 doAnswer(invocation -> { in optionsMenu_clickAdvancedPage_fireIntent()
|
D | BatteryInfoTest.java | 24 import static org.mockito.Mockito.doAnswer; 252 doAnswer(invocation -> { in mockBatteryStatsHistory() 253 doAnswer(new Answer() { in mockBatteryStatsHistory()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | LoadingSpinnerControllerTest.java | 31 import static org.mockito.Mockito.doAnswer; 47 doAnswer( in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothSummaryUpdaterTest.java | 22 import static org.mockito.Mockito.doAnswer; 86 doAnswer(invocation -> mDeviceConnected[0]).when(mConnectedDevice).isConnected(); in setUp() 89 doAnswer(invocation -> mDeviceConnected[1]).when(mConnectedKeyBoardDevice).isConnected(); in setUp()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testmode/ |
D | DeterministicSecureRandomTest.java | 24 import static org.mockito.Mockito.doAnswer; 74 doAnswer( in testDeterministicSecureRandomInKePayload() method
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/ |
D | EapMsChapV2Test.java | 24 import static org.mockito.Mockito.doAnswer; 144 doAnswer(invocation -> { in verifyEapMsChapV2Challenge()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | EnterpriseInstalledPackagesPreferenceControllerTest.java | 22 import static org.mockito.Mockito.doAnswer; 65 doAnswer(new Answer() { in setNumberOfEnterpriseInstalledPackages()
|
D | AdminGrantedPermissionsPreferenceControllerTestBase.java | 23 import static org.mockito.Mockito.doAnswer; 69 doAnswer(new Answer() { in setNumberOfPackagesWithAdminGrantedPermissions()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/ |
D | NetdUtilsTest.java | 28 import static org.mockito.Mockito.doAnswer; 66 doAnswer((invocation) -> { in setNetworkAddInterfaceOutcome() method
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | DpcReceivedSuccessReceiverTest.java | 25 import static org.mockito.Mockito.doAnswer; 132 doAnswer((InvocationOnMock invocation) -> { in invokeOnReceiveAndVerifyIntent() method
|
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/ |
D | MediaBrowserConnectorTest.java | 21 import static org.mockito.Mockito.doAnswer; 154 doAnswer(invocation -> { in setConnectionAction()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/ |
D | ProvisioningManagerTest.java | 24 import static org.mockito.Mockito.doAnswer; 175 doAnswer((InvocationOnMock invocation) -> { in testListener_preFinalizationCompleted() method
|