Home
last modified time | relevance | path

Searched refs:AdServicesManager (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DMeasurementImplTest.java49 import android.app.adservices.AdServicesManager;
105 .spyStatic(AdServicesManager.class)
451 AdServicesManager mockAdServicesManager = Mockito.mock(AdServicesManager.class); in testDeleteRegistrations_success_recordsDeletionInSystemServer()
453 .when(() -> AdServicesManager.getInstance(any())); in testDeleteRegistrations_success_recordsDeletionInSystemServer()
458 .recordAdServicesDeletionOccurred(AdServicesManager.MEASUREMENT_DELETION); in testDeleteRegistrations_success_recordsDeletionInSystemServer()
495 AdServicesManager mockAdServicesManager = Mockito.mock(AdServicesManager.class); in testDeleteRegistrations_success_recordsDeletionInSystemServer_flagOff()
497 .when(() -> AdServicesManager.getInstance(any())); in testDeleteRegistrations_success_recordsDeletionInSystemServer_flagOff()
502 .recordAdServicesDeletionOccurred(AdServicesManager.MEASUREMENT_DELETION); in testDeleteRegistrations_success_recordsDeletionInSystemServer_flagOff()
539 any(), eq(AdServicesManager.MEASUREMENT_DELETION))); in doDeleteRegistrationsCompat()
568 AdServicesManager mockAdServicesManager = Mockito.mock(AdServicesManager.class); in testDeletePackageRecords_success_recordsDeletionInSystemServer()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/rollback/
DRollbackHandlingManagerTest.java31 import android.app.adservices.AdServicesManager;
115 AdServicesManager.MEASUREMENT_DELETION); in testGetOrCreateBooleanFileDatastore()
130 AdServicesManager.MEASUREMENT_DELETION)) in testRecordMeasurementDeletionOccurred()
135 AdServicesManager.MEASUREMENT_DELETION); in testRecordMeasurementDeletionOccurred()
138 AdServicesManager.MEASUREMENT_DELETION)) in testRecordMeasurementDeletionOccurred()
142 rollbackHandlingManager.resetAdServicesDataDeletion(AdServicesManager.MEASUREMENT_DELETION); in testRecordMeasurementDeletionOccurred()
145 AdServicesManager.MEASUREMENT_DELETION)) in testRecordMeasurementDeletionOccurred()
156 AdServicesManager.MEASUREMENT_DELETION); in testDump()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/rollback/
DRollbackHandlingManager.java20 import android.app.adservices.AdServicesManager;
78 @AdServicesManager.DeletionApiType int deletionApiType) throws IOException { in getOrCreateBooleanFileDatastore()
82 if (deletionApiType == AdServicesManager.MEASUREMENT_DELETION) { in getOrCreateBooleanFileDatastore()
98 public void recordAdServicesDataDeletion(@AdServicesManager.DeletionApiType int deletionType) in recordAdServicesDataDeletion()
111 public boolean wasAdServicesDataDeleted(@AdServicesManager.DeletionApiType int deletionType) in wasAdServicesDataDeleted()
120 public int getPreviousStoredVersion(@AdServicesManager.DeletionApiType int deletionType) in getPreviousStoredVersion()
130 public void resetAdServicesDataDeletion(@AdServicesManager.DeletionApiType int deletionType) in resetAdServicesDataDeletion()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchMeasurementRollbackWorkerTest.java32 import android.app.adservices.AdServicesManager;
163 AdServicesManager.MEASUREMENT_DELETION); in testGetAdServicesDeletionApexVersion_documentFound()
187 AdServicesManager.MEASUREMENT_DELETION); in testGetAdServicesDeletionApexVersion_documentNotFound()
211 AdServicesManager.MEASUREMENT_DELETION, APEX_VERSION); in testRecordAdServicesDeletionOccurred()
214 AdServicesManager.MEASUREMENT_DELETION, APEX_VERSION); in testRecordAdServicesDeletionOccurred()
229 AdServicesManager.MEASUREMENT_DELETION, APEX_VERSION); in testRecordAdServicesDeletionOccurred_throwsUnchecked()
236 AdServicesManager.MEASUREMENT_DELETION, APEX_VERSION)); in testRecordAdServicesDeletionOccurred_throwsUnchecked()
244 AdServicesManager.MEASUREMENT_DELETION, APEX_VERSION); in testCreateAppSearchMeasurementRollbackDao()
251 USERID, AdServicesManager.MEASUREMENT_DELETION)); in testCreateAppSearchMeasurementRollbackDao()
DAppSearchMeasurementRollbackDaoTest.java27 import android.app.adservices.AdServicesManager;
120 expect.that(getRowId(ID, AdServicesManager.MEASUREMENT_DELETION)).isEqualTo(expected); in testGetRowId()
124 () -> getRowId(null, AdServicesManager.MEASUREMENT_DELETION)); in testGetRowId()
DAppSearchConsentManagerTest.java34 import android.app.adservices.AdServicesManager;
84 @Mock private AdServicesManager mAdServicesManager;
341 AdServicesManager mAdServicesManager = mock(AdServicesManager.class); in testShouldInitConsentDataFromAppSearch_notT()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/rollback/
DMeasurementRollbackWorker.java20 import android.app.adservices.AdServicesManager;
31 @AdServicesManager.DeletionApiType int deletionApiType, long currentApexVersion); in recordAdServicesDeletionOccurred()
50 @AdServicesManager.DeletionApiType int deletionApiType); in getAdServicesDeletionRollbackMetadata()
DMeasurementRollbackCompatManager.java22 import android.app.adservices.AdServicesManager;
64 @NonNull Context context, @AdServicesManager.DeletionApiType int deletionApiType) { in getInstance()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/
DAdExtDataConsentMigrationUtils.java29 import android.app.adservices.AdServicesManager;
69 @Nullable AdServicesManager adServicesManager) { in handleConsentMigrationFromAdExtDataIfNeeded()
134 AdServicesManager adServicesManager) { in isMigrationFromAdExtDataNeeded()
182 AdServicesManager adServicesManager, in migrateAdExtData()
281 AppSearchConsentManager appSearchConsentManager, AdServicesManager adServicesManager) { in isNotificationShownOnCurrentSdk()
288 private static boolean isNotificationShownOnTPlus(AdServicesManager adServicesManager) { in isNotificationShownOnTPlus()
DAdServicesStorageManager.java24 import android.app.adservices.AdServicesManager;
60 private final AdServicesManager mAdServicesManager;
66 AdServicesManager adServicesManager, PackageManager packageManager) { in AdServicesStorageManager()
81 @NonNull AdServicesManager adServicesManager) { in getInstance()
DConsentManager.java37 import android.app.adservices.AdServicesManager;
140 private final AdServicesManager mAdServicesManager;
159 @NonNull AdServicesManager adServicesManager, in ConsentManager()
228 AdServicesManager adServicesManager = AdServicesManager.getInstance(context); in getInstance()
1620 AdServicesManager adServicesManager,
1738 @NonNull AdServicesManager adServicesManager, boolean isGiven) {
1750 @NonNull AdServicesManager adServicesManager,
1764 @NonNull AdServicesManager adServicesManager,
1771 static boolean getConsentFromSystemServer(@NonNull AdServicesManager adServicesManager) {
1783 @NonNull AdServicesManager adServicesManager,
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchMeasurementRollbackWorker.java20 import android.app.adservices.AdServicesManager;
88 @AdServicesManager.DeletionApiType int deletionApiType, long currentApexVersion) { in recordAdServicesDeletionOccurred()
107 @AdServicesManager.DeletionApiType int deletionApiType, long currentApexVersion) { in createAppSearchMeasurementRollbackDao()
135 @AdServicesManager.DeletionApiType int deletionApiType) { in getAdServicesDeletionRollbackMetadata()
DAppSearchMeasurementRollbackDao.java20 import android.app.adservices.AdServicesManager;
154 @NonNull String userId, @AdServicesManager.DeletionApiType int deletionApiType) { in getRowId()
DAppSearchConsentManager.java23 import android.app.adservices.AdServicesManager;
361 AdServicesManager adServicesManager, in shouldInitConsentDataFromAppSearch()
434 @Nullable AdServicesManager adServicesManager, in migrateConsentDataIfNeeded()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DBlockedTopicsManager.java30 import android.app.adservices.AdServicesManager;
83 private final AdServicesManager mAdServicesManager;
91 @Nullable AdServicesManager adServicesManager, in BlockedTopicsManager()
124 AdServicesManager adServicesManager = AdServicesManager.getInstance(context); in getInstance()
355 @Nullable AdServicesManager adServicesManager, in handleBlockedTopicsMigrationIfNeeded()
430 @NonNull AdServicesManager adServicesManager) { in mayMigratePpApiBlockedTopicsToSystemService()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DMeasurementImpl.java38 import android.app.adservices.AdServicesManager;
577 return AdServicesManager.getInstance(mContext) in checkIfNeedsToHandleReconciliation()
578 .needsToHandleRollbackReconciliation(AdServicesManager.MEASUREMENT_DELETION); in checkIfNeedsToHandleReconciliation()
589 mContext, AdServicesManager.MEASUREMENT_DELETION) in checkIfNeedsToHandleReconciliation()
607 AdServicesManager.getInstance(mContext) in markDeletion()
608 .recordAdServicesDeletionOccurred(AdServicesManager.MEASUREMENT_DELETION); in markDeletion()
620 mContext, AdServicesManager.MEASUREMENT_DELETION) in markDeletion()
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/
DAdServicesManager.java51 public final class AdServicesManager { class
56 private static AdServicesManager sSingleton;
70 public AdServicesManager(@NonNull IAdServicesManager iAdServicesManager) { in AdServicesManager() method in AdServicesManager
77 public static AdServicesManager getInstance(@NonNull Context context) { in getInstance()
85 sSingleton = new AdServicesManager(IAdServicesManager.Stub.asInterface(iBinder)); in getInstance()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/rollback/
DMeasurementRollbackCompatManagerTest.java36 import android.app.adservices.AdServicesManager;
86 AdServicesManager.MEASUREMENT_DELETION, CURRENT_APEX_VERSION); in testRecordAdServicesDeletionOccurred()
201 currentApexVersion, AdServicesManager.MEASUREMENT_DELETION, mWorker); in createManager()
DAdServicesExtStorageMeasurementRollbackWorkerTest.java19 import static android.app.adservices.AdServicesManager.MEASUREMENT_DELETION;
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DAdServicesStorageManagerTest.java33 import android.app.adservices.AdServicesManager;
64 private AdServicesManager mAdServicesManager;
103 mAdServicesManager = new AdServicesManager(mMockIAdServicesManager); in setup()
105 doReturn(mAdServicesManager).when(mSpyContext).getSystemService(AdServicesManager.class); in setup()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/
DAdServicesManagerServiceTest.java39 import android.app.adservices.AdServicesManager;
856 assertThat(service.hasAdServicesDeletionOccurred(AdServicesManager.MEASUREMENT_DELETION)) in testRecordMeasurementDeletionOccurred()
858 service.recordAdServicesDeletionOccurred(AdServicesManager.MEASUREMENT_DELETION); in testRecordMeasurementDeletionOccurred()
859 assertThat(service.hasAdServicesDeletionOccurred(AdServicesManager.MEASUREMENT_DELETION)) in testRecordMeasurementDeletionOccurred()
877 AdServicesManager.MEASUREMENT_DELETION)) in testNeedsToHandleRollbackReconciliation_noRollback_returnsFalse()
903 AdServicesManager.MEASUREMENT_DELETION)) in testNeedsToHandleRollbackReconciliation_noDeletion_returnsFalse()
929 AdServicesManager.MEASUREMENT_DELETION)) in testNeedsToHandleRollbackReconciliation_versionFromDoesNotEqual_returnsFalse()
955 AdServicesManager.MEASUREMENT_DELETION)) in testNeedsToHandleRollbackReconciliation_versionToDoesNotEqual_returnsFalse()
981 AdServicesManager.MEASUREMENT_DELETION)) in testNeedsToHandleRollbackReconciliation_returnsTrue()
984 .resetAdServicesDeletionOccurred(AdServicesManager.MEASUREMENT_DELETION); in testNeedsToHandleRollbackReconciliation_returnsTrue()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DAdServicesManagerService.java19 import static android.app.adservices.AdServicesManager.AD_SERVICES_SYSTEM_SERVICE;
24 import android.app.adservices.AdServicesManager;
835 @AdServicesManager.DeletionApiType int deletionType) { in recordAdServicesDeletionOccurred()
853 @AdServicesManager.DeletionApiType int deletionType) { in needsToHandleRollbackReconciliation()
882 boolean hasAdServicesDeletionOccurred(@AdServicesManager.DeletionApiType int deletionType) { in hasAdServicesDeletionOccurred()
890 void resetAdServicesDeletionOccurred(@AdServicesManager.DeletionApiType int deletionType) { in resetAdServicesDeletionOccurred()
906 int getPreviousStoredVersion(@AdServicesManager.DeletionApiType int deletionType) { in getPreviousStoredVersion()
DAdServicesShellCommand.java19 import static android.app.adservices.AdServicesManager.AD_SERVICES_SYSTEM_SERVICE;
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DBlockedTopicsManagerTest.java43 import android.app.adservices.AdServicesManager;
86 private AdServicesManager mAdServicesManager;
95 mAdServicesManager = new AdServicesManager(mMockIAdServicesManager); in setup()
96 doReturn(mAdServicesManager).when(mSpyContext).getSystemService(AdServicesManager.class); in setup()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/
DAdExtDataConsentMigrationUtilsTest.java37 import android.app.adservices.AdServicesManager;
88 @Mock private AdServicesManager mAdServicesManagerMock;

12