Home
last modified time | relevance | path

Searched refs:SHARED_PREFS_KEY_HAS_MIGRATED (Results 1 – 15 of 15) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DBlockedTopicsManagerTest.java25 …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/
DBlockedTopicsManager.java65 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/
DConsentConstants.java69 public static final String SHARED_PREFS_KEY_HAS_MIGRATED = field in ConsentConstants
DAdExtDataConsentMigrationUtilsV2.java243 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue= */ false) in isMigrationDone()
DConsentManagerV2.java894 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()
DAdExtDataConsentMigrationUtils.java271 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, /* defValue= */ false) in isMigrationDone()
DConsentManager.java1649 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/
DAppSearchConsentManager.java375 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, in shouldInitConsentDataFromAppSearch()
533 editor.putBoolean(BlockedTopicsManager.SHARED_PREFS_KEY_HAS_MIGRATED, true); in migrateConsentDataIfNeeded()
DAppSearchConsentStorageManager.java398 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/
DConsentManagerTest.java29 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 …]
DConsentManagerV2Test.java25 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/
DAdExtDataConsentMigrationUtilsV2Test.java373 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, false)) in testHandleConsentMigrationFromAdExtDataIfNeededV2_onTWithMigrationFromPpapiDone_skipsMigration()
635 ConsentConstants.SHARED_PREFS_KEY_HAS_MIGRATED, false)) in mockNoMigration()
DAdExtDataConsentMigrationUtilsTest.java373 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/
DAppSearchConsentManagerTest.java471 .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()
DAppSearchConsentStorageManagerTest.java464 .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()