/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | BlockedTopicsManagerTest.java | 25 …rt static com.android.adservices.service.topics.BlockedTopicsManager.SHARED_PREFS_KEY_HAS_MIGRATED; 413 editor.putBoolean(SHARED_PREFS_KEY_HAS_MIGRATED, true); in testResetSharedPreference() 422 SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue */ false)) in testResetSharedPreference() 426 resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testResetSharedPreference() 434 SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue */ false)) in testResetSharedPreference() 456 resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testMayMigratePpApiBlockedTopicsToSystemService() 488 .when(() -> resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED)); in testHandleBlockedTopicsMigrationIfNeeded_PpApiOnly() 500 () -> resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED)); in testHandleBlockedTopicsMigrationIfNeeded_PpApiOnly() 524 .when(() -> resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED)); in testHandleBlockedTopicsMigrationIfNeeded_SystemServerOnly() 536 () -> resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED), times(0)); in testHandleBlockedTopicsMigrationIfNeeded_SystemServerOnly() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/ |
D | BlockedTopicsManager.java | 65 public static final String SHARED_PREFS_KEY_HAS_MIGRATED = field in BlockedTopicsManager 387 resetSharedPreference(context, SHARED_PREFS_KEY_HAS_MIGRATED); in handleBlockedTopicsMigrationIfNeeded() 438 if (sharedPreferences.getBoolean(SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue */ false)) { in mayMigratePpApiBlockedTopicsToSystemService() 455 editor.putBoolean(SHARED_PREFS_KEY_HAS_MIGRATED, true); in mayMigratePpApiBlockedTopicsToSystemService()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | ConsentConstants.java | 69 public static final String SHARED_PREFS_KEY_HAS_MIGRATED = field in ConsentConstants
|
D | AdExtDataConsentMigrationUtilsV2.java | 243 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue= */ false) in isMigrationDone()
|
D | ConsentManagerV2.java | 894 resetSharedPreference(context, ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED); in handleConsentMigrationIfNeeded() 962 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, in migratePpApiConsentToSystemService() 992 editor.putBoolean(ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, true); in migratePpApiConsentToSystemService()
|
D | AdExtDataConsentMigrationUtils.java | 271 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue= */ false) in isMigrationDone()
|
D | ConsentManager.java | 1649 resetSharedPreference(context, ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED); 1802 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, 1837 editor.putBoolean(ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, true);
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/ |
D | AppSearchConsentManager.java | 375 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, in shouldInitConsentDataFromAppSearch() 533 editor.putBoolean(BlockedTopicsManager.SHARED_PREFS_KEY_HAS_MIGRATED, true); in migrateConsentDataIfNeeded()
|
D | AppSearchConsentStorageManager.java | 398 editor.putBoolean(BlockedTopicsManager.SHARED_PREFS_KEY_HAS_MIGRATED, true); in migrateConsentDataIfNeeded() 706 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, in shouldInitConsentDataFromAppSearch()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | ConsentManagerTest.java | 29 import static com.android.adservices.service.consent.ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED; 2545 ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testMigratePpApiConsentToSystemService() 2563 editor.putBoolean(SHARED_PREFS_KEY_HAS_MIGRATED, false); in testMigratePpApiConsentToSystemServiceWithSuccessfulConsentMigrationLogging() 2587 ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testMigratePpApiConsentToSystemServiceWithSuccessfulConsentMigrationLogging() 2630 ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testMigratePpApiConsentToSystemServiceWithUnSuccessfulConsentMigrationLogging() 2662 ConsentManager.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testMigratePpApiConsentToSystemServiceThrowsException() 2719 editor.putBoolean(SHARED_PREFS_KEY_HAS_MIGRATED, true); in testResetSharedPreference() 2728 SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue */ false)) in testResetSharedPreference() 2732 resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testResetSharedPreference() 2734 assertThat(sharedPreferences.getBoolean(SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue */ true)) in testResetSharedPreference() [all …]
|
D | ConsentManagerV2Test.java | 25 import static com.android.adservices.service.consent.ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED; 2470 ConsentManagerV2.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testMigratePpApiConsentToSystemService() 2488 editor.putBoolean(SHARED_PREFS_KEY_HAS_MIGRATED, false); in testMigratePpApiConsentToSystemServiceWithSuccessfulConsentMigrationLogging() 2515 ConsentManagerV2.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testMigratePpApiConsentToSystemServiceWithSuccessfulConsentMigrationLogging() 2562 ConsentManagerV2.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testMigratePpApiConsentToSystemServiceWithUnSuccessfulConsentMigrationLogging() 2597 ConsentManagerV2.resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testMigratePpApiConsentToSystemServiceThrowsException() 2659 editor.putBoolean(SHARED_PREFS_KEY_HAS_MIGRATED, true); in testResetSharedPreference() 2668 SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue */ false)) in testResetSharedPreference() 2672 resetSharedPreference(mSpyContext, SHARED_PREFS_KEY_HAS_MIGRATED); in testResetSharedPreference() 2678 assertThat(sharedPreferences.getBoolean(SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue */ true)) in testResetSharedPreference() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/consent/ |
D | AdExtDataConsentMigrationUtilsV2Test.java | 373 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, false)) in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationFromPpapiDone_skipsMigration() 635 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, false)) in mockNoMigration()
|
D | AdExtDataConsentMigrationUtilsTest.java | 373 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, false)) in testHandleConsentMigrationFromAdExtDataIfNeeded_onTWithMigrationFromPpapiDone_skipsMigration() 628 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, false)) in mockNoMigration()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchConsentManagerTest.java | 471 .putBoolean(eq(BlockedTopicsManager.SHARED_PREFS_KEY_HAS_MIGRATED), eq(true)); in testMigrateConsentData_u18UxNotificationDisplayed_u18MigrationEnabled() 511 .putBoolean(eq(BlockedTopicsManager.SHARED_PREFS_KEY_HAS_MIGRATED), eq(true)); in testMigrateConsentData()
|
D | AppSearchConsentStorageManagerTest.java | 464 .putBoolean(eq(BlockedTopicsManager.SHARED_PREFS_KEY_HAS_MIGRATED), eq(true)); in testMigrateConsentData_u18UxNotificationDisplayed_u18MigrationEnabled() 504 .putBoolean(eq(BlockedTopicsManager.SHARED_PREFS_KEY_HAS_MIGRATED), eq(true)); in testMigrateConsentData()
|