Home
last modified time | relevance | path

Searched refs:doAnswer (Results 1 – 25 of 68) sorted by relevance

123

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVideoProviderTest.java61 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 …]
DSystemStateHelperTest.java26 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()
DComponentContextFixture.java83 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/
DTestUtils.java21 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/
DUserCapabilityExchangeImplTest.java24 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/
DCarUiTestUtil.java21 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/
DTvInputManagerHelperTest.java222 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/
DShadowCar.java19 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/
DShadowCar.java19 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/
DRecommendationUtils.java41 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/
DExternalSourcesDetailsTest.java25 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/
DStartManagedProfileTaskTest.java21 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/
DPreferenceListTest.java24 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/
DPowerUsageSummaryTest.java27 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()
DBatteryInfoTest.java24 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/
DLoadingSpinnerControllerTest.java31 import static org.mockito.Mockito.doAnswer;
47 doAnswer( in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdaterTest.java22 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/
DDeterministicSecureRandomTest.java24 import static org.mockito.Mockito.doAnswer;
74 doAnswer( in testDeterministicSecureRandomInKePayload() method
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/
DEapMsChapV2Test.java24 import static org.mockito.Mockito.doAnswer;
144 doAnswer(invocation -> { in verifyEapMsChapV2Challenge()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterpriseInstalledPackagesPreferenceControllerTest.java22 import static org.mockito.Mockito.doAnswer;
65 doAnswer(new Answer() { in setNumberOfEnterpriseInstalledPackages()
DAdminGrantedPermissionsPreferenceControllerTestBase.java23 import static org.mockito.Mockito.doAnswer;
69 doAnswer(new Answer() { in setNumberOfPackagesWithAdminGrantedPermissions()
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DNetdUtilsTest.java28 import static org.mockito.Mockito.doAnswer;
66 doAnswer((invocation) -> { in setNetworkAddInterfaceOutcome() method
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DDpcReceivedSuccessReceiverTest.java25 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/
DMediaBrowserConnectorTest.java21 import static org.mockito.Mockito.doAnswer;
154 doAnswer(invocation -> { in setConnectionAction()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerTest.java24 import static org.mockito.Mockito.doAnswer;
175 doAnswer((InvocationOnMock invocation) -> { in testListener_preFinalizationCompleted() method

123