Home
last modified time | relevance | path

Searched refs:mockIsAtLeastT (Results 1 – 12 of 12) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/
DFileCompatUtilsTest.java59 mockIsAtLeastT(false); in testShouldPrependAdservices_SMinus()
67 mockIsAtLeastT(false); in testShouldNotPrependAdservicesIfNameStartsWithAdservices_Sminus()
76 mockIsAtLeastT(true); in testShouldNotPrependAdservices_TPlus()
83 mockIsAtLeastT(false); in testRoomDatabaseBuilderHelper_shouldPrependAdservices_SMinus()
97 mockIsAtLeastT(true); in testRoomDatabaseBuilderHelper_shouldNotPrependAdservices_TPlus()
114 mockIsAtLeastT(false); in testGetDatabasePathHelper_shouldPrependAdservices_SMinus()
122 mockIsAtLeastT(true); in testGetDatabasePathHelper_shouldNotPrependAdservices_TPlus()
130 mockIsAtLeastT(false); in testNewFileHelper_shouldPrependAdservices_SMinus()
138 mockIsAtLeastT(true); in testNewFileHelper_shouldNotPrependAdservices_TPlus()
146 mockIsAtLeastT(false); in testGetSharedPreferencesHelper_shouldPrependAdservices_SMinus()
[all …]
DPackageManagerCompatUtilsTest.java100 mocker.mockIsAtLeastT(false); in testGetInstalledApplications_SMinus()
128 mocker.mockIsAtLeastT(false); in testGetInstalledPackages_SMinus()
156 mocker.mockIsAtLeastT(false); in testGetUidForPackage_SMinus()
186 mocker.mockIsAtLeastT(false); in testGetApplicationInfo_SMinus()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAppImportanceFilterTest.java92 mockIsAtLeastT(false); in testCalledWithForegroundAppPackageName_onSMinus_succeedBySkippingCheck()
103 mockIsAtLeastT(true); in testCalledWithForegroundAppPackageName_succeed()
115 mockIsAtLeastT(true); in testCalledWithForegroundServiceImportanceAppPackageName_succeed()
128 mockIsAtLeastT(true); in testCalledWithLessThanForegroundImportanceAppPackageName_throwsIllegalStateException()
143 mockIsAtLeastT(true); in testCalledWithLessThanForegroundImportanceAppPackageName_logsFailure()
169 mockIsAtLeastT(true); in testFailureTryingToRetrievePackageImportancePackageName_throwsIllegalStateException()
183 mockIsAtLeastT(false); in testCalledWithForegroundAppUid_onSMinus_succeedBySkippingCheck()
194 mockIsAtLeastT(true); in testCalledWithForegroundAppUid_succeed()
205 mockIsAtLeastT(true); in testCalledWithForegroundServiceImportanceAppUid_succeed()
216 mockIsAtLeastT(true); in testCalledWithLessThanForegroundImportanceAppUid_throwsIllegalStateException()
[all …]
DAdServicesBackCompatInitTest.java139 mocker.mockIsAtLeastT(true); in testInitializeComponents_withTPlusFlagsOff_disablesComponentsCancelsJobs()
155 mocker.mockIsAtLeastT(true); in testInitializeComponents_withTPlusFlagsOn_disablesComponentsCancelsJobs()
171 mocker.mockIsAtLeastT(false); in testInitializeComponents_withSMinusFlagOff_doesNothing()
182 mocker.mockIsAtLeastT(false); in testInitializeComponents_withSFlagOn_enablesComponents()
195 mocker.mockIsAtLeastT(false); in testInitializeComponents_withRFlagOn_enablesComponents()
214 mocker.mockIsAtLeastT(true); in testInitializeComponents_disableScheduledBackgroundJobsException_celLogged()
226 mocker.mockIsAtLeastT(true); in testInitializeComponents_jobSchedulerIsNull_celLogged()
245 mocker.mockIsAtLeastT(false); in testInitializeComponents_updateComponentsThrowsException_celLogged()
259 mocker.mockIsAtLeastT(true); in testInitializeComponents_disableReceiverFailure_celLogged()
275 mocker.mockIsAtLeastT(false); in testInitializeComponents_enableReceiverFailure_celLogged()
DPackageChangedReceiverTest.java982 mocker.mockIsAtLeastT(true); in testReceive_onT_onExtServices()
1000 mocker.mockIsAtLeastT(false); in testReceive_onS_onExtServices()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/
DSharedExtendedMockitoTestCase.java67 public void mockIsAtLeastT(boolean isIt) { in mockIsAtLeastT() method in SharedExtendedMockitoTestCase.Mocker
68 mAndroidMocker.mockIsAtLeastT(isIt); in mockIsAtLeastT()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DAdServicesExtendedMockitoTestCase.java141 public void mockIsAtLeastT(boolean isIt) { in mockIsAtLeastT() method in AdServicesExtendedMockitoTestCase.Mocker
142 mAndroidMocker.mockIsAtLeastT(isIt); in mockIsAtLeastT()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/
DStatsdAdServicesLoggerTest.java192 mockIsAtLeastT(true); in testLogGetTopicsReportedStats_tPlus()
233 mockIsAtLeastT(true); in testLogGetTopicsReportedStats_tPlus_noCompatLoggingDueToKillSwitch()
260 mockIsAtLeastT(false); in testLogGetTopicsReportedStats_sMinus()
287 mockIsAtLeastT(false); in testLogGetTopicsReportedStats_sMinus_noLoggingDueToKillSwitch()
300 mockIsAtLeastT(true); in testLogEpochComputationClassifierStats_tPlus()
365 mockIsAtLeastT(true); in testLogEpochComputationClassifierStats_tPlus_noCompatLoggingDueToKillSwitch()
403 mockIsAtLeastT(false); in testLogEpochComputationClassifierStats_sMinus()
443 mockIsAtLeastT(false); in testLogEpochComputationClassifierStats_sMinus_noLoggingDueToKillSwitch()
1308 mockIsAtLeastT(true); in logDestinationRegisteredBeaconsReportedStats_tPlus_success()
1364 mockIsAtLeastT(false); in logDestinationRegisteredBeaconsReportedStats_sMinus_emptyLogging()
[all …]
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/mockito/
DAndroidStaticMocker.java47 void mockIsAtLeastT(boolean isIt); in mockIsAtLeastT() method
DAndroidExtendedMockitoMocker.java72 public void mockIsAtLeastT(boolean isIt) { in mockIsAtLeastT() method in AndroidExtendedMockitoMocker
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/
DPhFlagsSystemPropertyOverrideTest.java112 mocker.mockIsAtLeastT(true); in testGetGlobalKillSwitch_TPlus()
136 mocker.mockIsAtLeastT(false); in testGetGlobalKillSwitch_TMinus()
297 mocker.mockIsAtLeastT(false); in testGetMeasurementRollbackDeletionREnabled()
DPhFlagsTest.java3673 mocker.mockIsAtLeastT(sdkAtleastT); in testEnableBackCompat()
3729 mocker.mockIsAtLeastT(false); in testIsBackCompatActivityFeatureEnabled()