Home
last modified time | relevance | path

Searched refs:mockito (Results 1 – 25 of 4236) sorted by relevance

12345678910>>...170

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/evs/
DEvsHalWrapperImplUnitTest.java19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer;
20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doNothing;
21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
24 import static org.mockito.ArgumentMatchers.anyBoolean;
25 import static org.mockito.ArgumentMatchers.anyLong;
26 import static org.mockito.Mockito.any;
27 import static org.mockito.Mockito.anyInt;
28 import static org.mockito.Mockito.anyObject;
29 import static org.mockito.Mockito.anyString;
30 import static org.mockito.Mockito.reset;
[all …]
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DSafetyLabelChangesJobServiceTest.kt32 import com.android.dx.mockito.inline.extended.ExtendedMockito
40 import org.mockito.ArgumentCaptor
41 import org.mockito.ArgumentMatchers.any
42 import org.mockito.ArgumentMatchers.anyBoolean
43 import org.mockito.ArgumentMatchers.eq
44 import org.mockito.Mock
45 import org.mockito.Mockito.doNothing
46 import org.mockito.Mockito.mock
47 import org.mockito.Mockito.times
48 import org.mockito.Mockito.verify
[all …]
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/vpn2/
DPreferenceListTest.java19 import static org.mockito.AdditionalMatchers.not;
20 import static org.mockito.Mockito.any;
21 import static org.mockito.Mockito.anyBoolean;
22 import static org.mockito.Mockito.argThat;
23 import static org.mockito.Mockito.atLeast;
24 import static org.mockito.Mockito.doAnswer;
25 import static org.mockito.Mockito.doNothing;
26 import static org.mockito.Mockito.doReturn;
27 import static org.mockito.Mockito.eq;
28 import static org.mockito.Mockito.mock;
[all …]
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DAdServicesExtendedMockitoTestCase.java18 import static com.android.adservices.mockito.ExtendedMockitoInlineCleanerRule.Mode.CLEAR_AFTER_TEST…
22 import com.android.adservices.mockito.AdServicesExtendedMockitoMocker;
23 import com.android.adservices.mockito.AdServicesExtendedMockitoRule;
24 import com.android.adservices.mockito.AdServicesStaticMockitoMocker;
25 import com.android.adservices.mockito.AndroidExtendedMockitoMocker;
26 import com.android.adservices.mockito.AndroidStaticMocker;
27 import com.android.adservices.mockito.ExtendedMockitoInlineCleanerRule;
28 import com.android.adservices.mockito.ExtendedMockitoInlineCleanerRule.ClearInlineMocksMode;
29 import com.android.adservices.mockito.LogInterceptor;
30 import com.android.adservices.mockito.SharedMocker;
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DMobileDataBaseWorkerTestCase.java19 import static org.mockito.ArgumentMatchers.any;
20 import static org.mockito.ArgumentMatchers.eq;
21 import static org.mockito.Mockito.never;
22 import static org.mockito.Mockito.spy;
23 import static org.mockito.Mockito.verify;
24 import static org.mockito.Mockito.when;
25 import static org.mockito.Mockito.withSettings;
35 import com.android.dx.mockito.inline.extended.ExtendedMockito;
40 import org.mockito.ArgumentCaptor;
41 import org.mockito.Mock;
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DDeleteUninstalledJobServiceTest.java19 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mockAdServicesJobServiceLo…
20 import static com.android.adservices.mockito.MockitoExpectations.mockBackgroundJobsLoggingKillSwitc…
21 import static com.android.adservices.mockito.MockitoExpectations.syncLogExecutionStats;
22 import static com.android.adservices.mockito.MockitoExpectations.syncPersistJobExecutionData;
23 import static com.android.adservices.mockito.MockitoExpectations.verifyBackgroundJobsSkipLogged;
24 import static com.android.adservices.mockito.MockitoExpectations.verifyJobFinishedLogged;
25 import static com.android.adservices.mockito.MockitoExpectations.verifyLoggingNotHappened;
31 import static org.mockito.ArgumentMatchers.any;
32 import static org.mockito.ArgumentMatchers.anyBoolean;
33 import static org.mockito.ArgumentMatchers.eq;
[all …]
DDeleteExpiredJobServiceTest.java19 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mockGetAdServicesJobServic…
20 import static com.android.adservices.mockito.MockitoExpectations.getSpiedAdServicesJobServiceLogger;
21 import static com.android.adservices.mockito.MockitoExpectations.mockBackgroundJobsLoggingKillSwitc…
22 import static com.android.adservices.mockito.MockitoExpectations.syncLogExecutionStats;
23 import static com.android.adservices.mockito.MockitoExpectations.syncPersistJobExecutionData;
24 import static com.android.adservices.mockito.MockitoExpectations.verifyBackgroundJobsSkipLogged;
25 import static com.android.adservices.mockito.MockitoExpectations.verifyJobFinishedLogged;
26 import static com.android.adservices.mockito.MockitoExpectations.verifyLoggingNotHappened;
32 import static org.mockito.ArgumentMatchers.any;
33 import static org.mockito.ArgumentMatchers.anyBoolean;
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkCallbackAidlImplTest.java20 import static org.mockito.Matchers.eq;
21 import static org.mockito.Mockito.any;
22 import static org.mockito.Mockito.anyInt;
23 import static org.mockito.Mockito.doThrow;
24 import static org.mockito.Mockito.never;
25 import static org.mockito.Mockito.validateMockitoUsage;
26 import static org.mockito.Mockito.verify;
27 import static org.mockito.Mockito.when;
28 import static org.mockito.Mockito.withSettings;
32 import com.android.dx.mockito.inline.extended.ExtendedMockito;
[all …]
DWifiDeviceStateChangeManagerTest.java23 import static org.mockito.ArgumentMatchers.any;
24 import static org.mockito.ArgumentMatchers.anyBoolean;
25 import static org.mockito.Mockito.atLeastOnce;
26 import static org.mockito.Mockito.never;
27 import static org.mockito.Mockito.reset;
28 import static org.mockito.Mockito.verify;
29 import static org.mockito.Mockito.when;
42 import org.mockito.ArgumentCaptor;
43 import org.mockito.Captor;
44 import org.mockito.Mock;
[all …]
DWifiScanAlwaysAvailableSettingsCompatibilityTest.java22 import static org.mockito.ArgumentMatchers.any;
23 import static org.mockito.ArgumentMatchers.anyBoolean;
24 import static org.mockito.ArgumentMatchers.anyInt;
25 import static org.mockito.ArgumentMatchers.eq;
26 import static org.mockito.Mockito.times;
27 import static org.mockito.Mockito.validateMockitoUsage;
28 import static org.mockito.Mockito.verify;
29 import static org.mockito.Mockito.when;
41 import org.mockito.ArgumentCaptor;
42 import org.mockito.Mock;
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/
DFederatedJobServiceTest.java22 import static org.mockito.ArgumentMatchers.any;
23 import static org.mockito.ArgumentMatchers.anyBoolean;
24 import static org.mockito.ArgumentMatchers.anyInt;
25 import static org.mockito.ArgumentMatchers.eq;
26 import static org.mockito.Mockito.doNothing;
27 import static org.mockito.Mockito.doReturn;
28 import static org.mockito.Mockito.mock;
29 import static org.mockito.Mockito.never;
30 import static org.mockito.Mockito.spy;
31 import static org.mockito.Mockito.times;
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAutoBrightnessPreferenceFragmentForSetupWizardTest.java21 import static org.mockito.ArgumentMatchers.any;
22 import static org.mockito.ArgumentMatchers.eq;
23 import static org.mockito.Mockito.doReturn;
24 import static org.mockito.Mockito.mock;
25 import static org.mockito.Mockito.spy;
26 import static org.mockito.Mockito.verify;
27 import static org.mockito.Mockito.when;
44 import org.mockito.Mock;
45 import org.mockito.Spy;
46 import org.mockito.junit.MockitoJUnit;
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/system/
DFallbackHomeTest.java19 import static org.mockito.ArgumentMatchers.any;
20 import static org.mockito.ArgumentMatchers.anyInt;
21 import static org.mockito.ArgumentMatchers.anyString;
22 import static org.mockito.ArgumentMatchers.eq;
23 import static org.mockito.Mockito.doNothing;
24 import static org.mockito.Mockito.doReturn;
25 import static org.mockito.Mockito.never;
26 import static org.mockito.Mockito.spy;
27 import static org.mockito.Mockito.verify;
38 import org.mockito.Mock;
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DImmediateAggregateReportingJobServiceTest.java19 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mockGetAdServicesJobServic…
20 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mocker;
21 import static com.android.adservices.mockito.MockitoExpectations.getSpiedAdServicesJobServiceLogger;
22 import static com.android.adservices.mockito.MockitoExpectations.mockBackgroundJobsLoggingKillSwitc…
23 import static com.android.adservices.mockito.MockitoExpectations.syncLogExecutionStats;
24 import static com.android.adservices.mockito.MockitoExpectations.syncPersistJobExecutionData;
25 import static com.android.adservices.mockito.MockitoExpectations.verifyBackgroundJobsSkipLogged;
26 import static com.android.adservices.mockito.MockitoExpectations.verifyJobFinishedLogged;
27 import static com.android.adservices.mockito.MockitoExpectations.verifyLoggingNotHappened;
33 import static org.mockito.ArgumentMatchers.any;
[all …]
DVerboseDebugReportingFallbackJobServiceTest.java19 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mockGetAdServicesJobServic…
20 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mocker;
21 import static com.android.adservices.mockito.MockitoExpectations.getSpiedAdServicesJobServiceLogger;
22 import static com.android.adservices.mockito.MockitoExpectations.mockBackgroundJobsLoggingKillSwitc…
23 import static com.android.adservices.mockito.MockitoExpectations.syncLogExecutionStats;
24 import static com.android.adservices.mockito.MockitoExpectations.syncPersistJobExecutionData;
25 import static com.android.adservices.mockito.MockitoExpectations.verifyBackgroundJobsSkipLogged;
26 import static com.android.adservices.mockito.MockitoExpectations.verifyJobFinishedLogged;
27 import static com.android.adservices.mockito.MockitoExpectations.verifyLoggingNotHappened;
33 import static org.mockito.ArgumentMatchers.any;
[all …]
DDebugReportingFallbackJobServiceTest.java19 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mockGetAdServicesJobServic…
20 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mocker;
21 import static com.android.adservices.mockito.MockitoExpectations.getSpiedAdServicesJobServiceLogger;
22 import static com.android.adservices.mockito.MockitoExpectations.mockBackgroundJobsLoggingKillSwitc…
23 import static com.android.adservices.mockito.MockitoExpectations.syncLogExecutionStats;
24 import static com.android.adservices.mockito.MockitoExpectations.syncPersistJobExecutionData;
25 import static com.android.adservices.mockito.MockitoExpectations.verifyBackgroundJobsSkipLogged;
26 import static com.android.adservices.mockito.MockitoExpectations.verifyJobFinishedLogged;
27 import static com.android.adservices.mockito.MockitoExpectations.verifyLoggingNotHappened;
33 import static org.mockito.ArgumentMatchers.any;
[all …]
DAggregateReportingJobServiceTest.java19 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mockGetAdServicesJobServic…
20 import static com.android.adservices.mockito.ExtendedMockitoExpectations.mocker;
21 import static com.android.adservices.mockito.MockitoExpectations.getSpiedAdServicesJobServiceLogger;
22 import static com.android.adservices.mockito.MockitoExpectations.mockBackgroundJobsLoggingKillSwitc…
23 import static com.android.adservices.mockito.MockitoExpectations.syncLogExecutionStats;
24 import static com.android.adservices.mockito.MockitoExpectations.syncPersistJobExecutionData;
25 import static com.android.adservices.mockito.MockitoExpectations.verifyBackgroundJobsSkipLogged;
26 import static com.android.adservices.mockito.MockitoExpectations.verifyJobFinishedLogged;
27 import static com.android.adservices.mockito.MockitoExpectations.verifyLoggingNotHappened;
33 import static org.mockito.ArgumentMatchers.any;
[all …]
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcServiceTest.java20 import static org.mockito.ArgumentMatchers.any;
21 import static org.mockito.ArgumentMatchers.anyBoolean;
22 import static org.mockito.ArgumentMatchers.anyInt;
23 import static org.mockito.ArgumentMatchers.anyLong;
24 import static org.mockito.ArgumentMatchers.anyString;
25 import static org.mockito.ArgumentMatchers.argThat;
26 import static org.mockito.ArgumentMatchers.eq;
27 import static org.mockito.Mockito.atLeastOnce;
28 import static org.mockito.Mockito.clearInvocations;
29 import static org.mockito.Mockito.doNothing;
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiScanningRequiredFragmentTest.java18 import static org.mockito.ArgumentMatchers.any;
19 import static org.mockito.ArgumentMatchers.anyInt;
20 import static org.mockito.ArgumentMatchers.eq;
21 import static org.mockito.ArgumentMatchers.isNull;
22 import static org.mockito.ArgumentMatchers.nullable;
23 import static org.mockito.Mockito.doReturn;
24 import static org.mockito.Mockito.never;
25 import static org.mockito.Mockito.spy;
26 import static org.mockito.Mockito.times;
27 import static org.mockito.Mockito.verify;
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DQCFooterViewControllerTest.java19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn;
20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession;
22 import static org.mockito.ArgumentMatchers.any;
23 import static org.mockito.ArgumentMatchers.anyBoolean;
24 import static org.mockito.ArgumentMatchers.eq;
25 import static org.mockito.Mockito.mock;
26 import static org.mockito.Mockito.never;
27 import static org.mockito.Mockito.spy;
28 import static org.mockito.Mockito.verify;
29 import static org.mockito.Mockito.when;
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCoreAudioVolumeGroupCallbackTest.java21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn;
22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession;
25 import static org.mockito.ArgumentMatchers.any;
26 import static org.mockito.ArgumentMatchers.anyInt;
27 import static org.mockito.ArgumentMatchers.eq;
28 import static org.mockito.Mockito.doThrow;
29 import static org.mockito.Mockito.never;
30 import static org.mockito.Mockito.verify;
39 import com.android.dx.mockito.inline.extended.StaticMockitoSession;
40 import com.android.dx.mockito.inline.extended.StaticMockitoSessionBuilder;
[all …]
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/
DConsentNotificationDebugChannelTest.java20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doNothing;
21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
25 import static org.mockito.ArgumentMatchers.any;
26 import static org.mockito.ArgumentMatchers.anyBoolean;
27 import static org.mockito.ArgumentMatchers.eq;
28 import static org.mockito.Mockito.doReturn;
29 import static org.mockito.Mockito.times;
38 import com.android.dx.mockito.inline.extended.ExtendedMockito;
43 import org.mockito.Mock;
44 import org.mockito.MockitoAnnotations;
[all …]
DGaGraduationChannelTest.java19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doNothing;
20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
24 import static org.mockito.ArgumentMatchers.any;
25 import static org.mockito.ArgumentMatchers.anyBoolean;
26 import static org.mockito.Mockito.never;
33 import com.android.dx.mockito.inline.extended.ExtendedMockito;
38 import org.mockito.Mock;
39 import org.mockito.MockitoAnnotations;
40 import org.mockito.MockitoSession;
41 import org.mockito.quality.Strictness;
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DLoadingSpinnerControllerTest.java24 import org.mockito.Mock;
25 import org.mockito.MockitoAnnotations;
28 import static org.mockito.ArgumentMatchers.eq;
29 import static org.mockito.ArgumentMatchers.any;
30 import static org.mockito.ArgumentMatchers.anyBoolean;
31 import static org.mockito.Mockito.doAnswer;
32 import static org.mockito.Mockito.never;
33 import static org.mockito.Mockito.times;
34 import static org.mockito.Mockito.verify;
35 import static org.mockito.Mockito.when;
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/reset/
DResetDataJobServiceTest.java19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doNothing;
20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doReturn;
21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.verify;
24 import static org.mockito.ArgumentMatchers.any;
25 import static org.mockito.ArgumentMatchers.anyBoolean;
26 import static org.mockito.ArgumentMatchers.eq;
27 import static org.mockito.Mockito.mock;
28 import static org.mockito.Mockito.spy;
29 import static org.mockito.Mockito.times;
43 import org.mockito.quality.Strictness;

12345678910>>...170