/packages/apps/Dialer/java/com/android/dialer/promotion/impl/ |
D | DuoPromotion.java | 46 private final SharedPreferences sharedPreferences; field in DuoPromotion 53 @Unencrypted SharedPreferences sharedPreferences) { in DuoPromotion() argument 57 this.sharedPreferences = sharedPreferences; in DuoPromotion() 78 if (sharedPreferences.getBoolean(SHARED_PREF_KEY_DUO_DISCLOSURE_DISMISSED, false)) { in isEligibleToBeShown() 84 if (!sharedPreferences.contains(SHARED_PREF_KEY_DUO_DISCLOSURE_FIRST_VIEW_TIME_MILLIS)) { in isEligibleToBeShown() 91 sharedPreferences.getLong(SHARED_PREF_KEY_DUO_DISCLOSURE_FIRST_VIEW_TIME_MILLIS, 0); in isEligibleToBeShown() 99 if (!sharedPreferences.contains(SHARED_PREF_KEY_DUO_DISCLOSURE_FIRST_VIEW_TIME_MILLIS)) { in onViewed() 100 sharedPreferences in onViewed() 110 sharedPreferences.edit().putBoolean(SHARED_PREF_KEY_DUO_DISCLOSURE_DISMISSED, true).apply(); in dismiss()
|
D | RttPromotion.java | 36 private final SharedPreferences sharedPreferences; field in RttPromotion 47 @Unencrypted SharedPreferences sharedPreferences, in RttPromotion() argument 50 this.sharedPreferences = sharedPreferences; in RttPromotion() 56 return sharedPreferences.getBoolean(SHARED_PREFERENCE_KEY_ENABLED, false) in isEligibleToBeShown() 57 && !sharedPreferences.getBoolean(SHARED_PREFERENCE_KEY_DISMISSED, false); in isEligibleToBeShown() 92 sharedPreferences.edit().putBoolean(SHARED_PREFERENCE_KEY_DISMISSED, true).apply(); in dismiss()
|
/packages/apps/Dialer/java/com/android/dialer/configprovider/ |
D | SharedPrefConfigProvider.java | 55 private final SharedPreferences sharedPreferences; field in SharedPrefConfigProvider 58 SharedPrefConfigProvider(@Unencrypted SharedPreferences sharedPreferences) { in SharedPrefConfigProvider() argument 59 this.sharedPreferences = sharedPreferences; in SharedPrefConfigProvider() 98 sharedPreferences.edit().putBoolean(PREF_PREFIX + key, value).apply(); in putBoolean() 102 sharedPreferences.edit().putLong(PREF_PREFIX + key, value).apply(); in putLong() 106 sharedPreferences.edit().putString(PREF_PREFIX + key, value).apply(); in putString() 113 () -> sharedPreferences.getString(PREF_PREFIX + key, defaultValue)); in getString() 119 return StrictModeUtils.bypass(() -> sharedPreferences.getLong(PREF_PREFIX + key, defaultValue)); in getLong() 126 () -> sharedPreferences.getBoolean(PREF_PREFIX + key, defaultValue)); in getBoolean()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | DbTestUtils.java | 46 private final FakeSharedPreferences sharedPreferences; field in DbTestUtils 52 private SharedPreferences sharedPreferences; field in DbTestUtils.FakeContext 73 public void setSharedPreferences(SharedPreferences sharedPreferences) { in setSharedPreferences() argument 74 this.sharedPreferences = sharedPreferences; in setSharedPreferences() 79 if (sharedPreferences != null) { in getSharedPreferences() 80 return sharedPreferences; in getSharedPreferences() 180 this.sharedPreferences = new FakeSharedPreferences(); in DbTestUtils() 182 context.setSharedPreferences(sharedPreferences); in DbTestUtils() 198 return sharedPreferences; in getMockSharedPreferences()
|
/packages/apps/Dialer/java/com/android/dialer/contacts/displaypreference/ |
D | ContactDisplayPreferencesImpl.java | 33 private final SharedPreferences sharedPreferences; field in ContactDisplayPreferencesImpl 42 this.sharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext); in ContactDisplayPreferencesImpl() 50 if (!sharedPreferences.contains(displayOrderKey)) { in getDisplayOrder() 53 return DisplayOrder.fromValue(appContext, sharedPreferences.getString(displayOrderKey, null)); in getDisplayOrder() 58 sharedPreferences.edit().putString(displayOrderKey, displayOrder.getValue(appContext)).apply(); in setDisplayOrder() 64 if (!sharedPreferences.contains(sortOrderKey)) { in getSortOrder() 67 return SortOrder.fromValue(appContext, sharedPreferences.getString(sortOrderKey, null)); in getSortOrder() 72 sharedPreferences.edit().putString(sortOrderKey, sortOrder.getValue(appContext)).apply(); in setSortOrder() 90 sharedPreferences in migrate()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | ColorPaletteHelper.java | 45 ManagedProvisioningSharedPreferences sharedPreferences) { in createColorPaletteMap() argument 47 result.put(COLOR_TYPE_ACCENT, sharedPreferences.getAccentColor()); in createColorPaletteMap() 48 result.put(COLOR_TYPE_PRIMARY_TEXT, sharedPreferences.getTextPrimaryColor()); in createColorPaletteMap() 49 result.put(COLOR_TYPE_SECONDARY_TEXT, sharedPreferences.getTextSecondaryColor()); in createColorPaletteMap() 50 result.put(COLOR_TYPE_BACKGROUND_SURFACE, sharedPreferences.getBackgroundColor()); in createColorPaletteMap() 52 sharedPreferences.getNotificationBackgroundColor()); in createColorPaletteMap() 53 result.put(COLOR_TYPE_NAVIGATION_BAR_COLOR, sharedPreferences.getNavigationBarColor()); in createColorPaletteMap() 55 sharedPreferences.getNavigationBarDividerColor()); in createColorPaletteMap()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/config/ |
D | CallLogConfigImpl.java | 66 private final SharedPreferences sharedPreferences; field in CallLogConfigImpl 74 @Unencrypted SharedPreferences sharedPreferences, in CallLogConfigImpl() argument 79 this.sharedPreferences = sharedPreferences; in CallLogConfigImpl() 103 sharedPreferences in update() 122 sharedPreferences in update() 140 sharedPreferences in update() 157 return sharedPreferences.getBoolean(NEW_CALL_LOG_FRAGMENT_ENABLED_PREF_KEY, false); 162 return sharedPreferences.getBoolean(NEW_VOICEMAIL_FRAGMENT_ENABLED_PREF_KEY, false); 167 return sharedPreferences.getBoolean(NEW_PEER_ENABLED_PREF_KEY, false); 176 return sharedPreferences.getBoolean(NEW_CALL_LOG_FRAMEWORK_ENABLED_PREF_KEY, false);
|
/packages/apps/Dialer/java/com/android/dialer/calllog/ |
D | CallLogState.java | 35 private final SharedPreferences sharedPreferences; field in CallLogState 41 @Unencrypted SharedPreferences sharedPreferences, in CallLogState() 43 this.sharedPreferences = sharedPreferences; in CallLogState() 53 sharedPreferences.edit().putBoolean(ANNOTATED_CALL_LOG_BUILT_PREF, true).apply(); in markBuilt() 62 sharedPreferences.edit().remove(ANNOTATED_CALL_LOG_BUILT_PREF).apply(); in clearData() 74 () -> sharedPreferences.getBoolean(ANNOTATED_CALL_LOG_BUILT_PREF, false)); in isBuilt()
|
D | AnnotatedCallLogMigrator.java | 37 private final SharedPreferences sharedPreferences; field in AnnotatedCallLogMigrator 43 @Unencrypted SharedPreferences sharedPreferences, in AnnotatedCallLogMigrator() 46 this.sharedPreferences = sharedPreferences; in AnnotatedCallLogMigrator() 66 sharedPreferences.edit().putBoolean(PREF_MIGRATED, true).apply(); in migrate() 75 return backgroundExecutor.submit(() -> !sharedPreferences.getBoolean(PREF_MIGRATED, false)); 86 sharedPreferences.edit().remove(PREF_MIGRATED).apply();
|
D | RefreshAnnotatedCallLogWorker.java | 53 private final SharedPreferences sharedPreferences; field in RefreshAnnotatedCallLogWorker 68 @Unencrypted SharedPreferences sharedPreferences, in RefreshAnnotatedCallLogWorker() argument 77 this.sharedPreferences = sharedPreferences; in RefreshAnnotatedCallLogWorker() 122 sharedPreferences.getBoolean(SharedPrefKeys.FORCE_REBUILD, true); in checkDirtyAndRebuildIfNecessary() 244 sharedPreferences.edit().putBoolean(SharedPrefKeys.FORCE_REBUILD, false).apply(); in rebuild()
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/spam/ |
D | SpamPhoneLookup.java | 49 private final SharedPreferences sharedPreferences; field in SpamPhoneLookup 58 @Unencrypted SharedPreferences sharedPreferences, in SpamPhoneLookup() argument 62 this.sharedPreferences = sharedPreferences; in SpamPhoneLookup() 81 () -> sharedPreferences.getLong(PREF_LAST_TIMESTAMP_PROCESSED, 0L)); in isDirty() 144 sharedPreferences in onSuccessfulBulkUpdate() 166 sharedPreferences.edit().remove(PREF_LAST_TIMESTAMP_PROCESSED).apply();
|
/packages/apps/Dialer/java/com/android/dialer/calllog/notifier/ |
D | RefreshAnnotatedCallLogNotifier.java | 44 private final SharedPreferences sharedPreferences; field in RefreshAnnotatedCallLogNotifier 48 @ApplicationContext Context appContext, @Unencrypted SharedPreferences sharedPreferences) { in RefreshAnnotatedCallLogNotifier() argument 50 this.sharedPreferences = sharedPreferences; in RefreshAnnotatedCallLogNotifier() 61 sharedPreferences.edit().putBoolean(SharedPrefKeys.FORCE_REBUILD, true).apply(); in markDirtyAndNotify()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/v33/ |
D | PermissionStorageTimeChangeReceiverTest.kt | 69 lateinit var sharedPreferences: SharedPreferences variable in com.android.permissioncontroller.tests.mocking.permission.service.v33.PermissionStorageTimeChangeReceiverTest 93 `when`(context.getSharedPreferences(anyString(), anyInt())).thenReturn(sharedPreferences) in setup() 94 `when`(sharedPreferences.edit()).thenReturn(editor) in setup() 100 `when`(sharedPreferences.getLong(eq(PREF_KEY_SYSTEM_TIME_SNAPSHOT), anyLong())) in setup() 102 `when`(sharedPreferences.getLong(eq(PREF_KEY_ELAPSED_REALTIME_SNAPSHOT), anyLong())) in setup() 168 `when`(sharedPreferences.getLong(eq(PREF_KEY_SYSTEM_TIME_SNAPSHOT), anyLong())) in mockBootCompletedSnapshot() 170 `when`(sharedPreferences.getLong(eq(PREF_KEY_ELAPSED_REALTIME_SNAPSHOT), anyLong())) in mockBootCompletedSnapshot()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | ProvisioningActivity.java | 162 ManagedProvisioningSharedPreferences sharedPreferences = in writeSharedPreferences() local 164 sharedPreferences.writeNavigationBarColor(getWindow().getNavigationBarColor()); in writeSharedPreferences() 165 sharedPreferences.writeNavigationBarDividerColor( in writeSharedPreferences() 167 sharedPreferences.writeTextPrimaryColor(mUtils.getTextPrimaryColor(this)); in writeSharedPreferences() 168 sharedPreferences.writeTextSecondaryColor(mUtils.getTextSecondaryColor(this)); in writeSharedPreferences() 169 sharedPreferences.writeBackgroundColor(mUtils.getBackgroundColor(this)); in writeSharedPreferences() 170 sharedPreferences.writeAccentColor(mUtils.getAccentColor(this)); in writeSharedPreferences() 171 sharedPreferences.writeNotificationBackgroundColor( in writeSharedPreferences()
|
/packages/apps/Dialer/java/com/android/dialer/persistentlog/ |
D | PersistentLogFileHandler.java | 73 private SharedPreferences sharedPreferences; field in PersistentLogFileHandler 95 if (sharedPreferences == null && UserManagerCompat.isUserUnlocked(context)) { in initializeSharedPreference() 96 sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); in initializeSharedPreference() 99 return sharedPreferences != null; in initializeSharedPreference() 268 int index = sharedPreferences.getInt(getNextFileKey(), 0); in getAndIncrementNextFileIndex() 269 sharedPreferences.edit().putInt(getNextFileKey(), index + 1).commit(); in getAndIncrementNextFileIndex()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/ |
D | AnalyticsUtils.java | 180 static long getProvisioningTime(ManagedProvisioningSharedPreferences sharedPreferences) { in getProvisioningTime() argument 181 return getProvisioningTime(sharedPreferences, SystemClock::elapsedRealtime); in getProvisioningTime() 185 static long getProvisioningTime(ManagedProvisioningSharedPreferences sharedPreferences, in getProvisioningTime() argument 187 if (sharedPreferences.getProvisioningStartedTimestamp() == 0) { in getProvisioningTime() 190 return getTimeFunction.getAsLong() - sharedPreferences.getProvisioningStartedTimestamp(); in getProvisioningTime()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothPreferences.java | 81 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground() local 84 long lastDiscoverableEndTime = sharedPreferences.getLong( in shouldShowDialogInForeground() 105 String lastSelectedDevice = sharedPreferences.getString( in shouldShowDialogInForeground() 109 long lastDeviceSelectedTime = sharedPreferences.getLong( in shouldShowDialogInForeground()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v33/ |
D | PermissionStorageTimeChangeReceiver.kt | 129 context.sharedPreferences.edit().apply { in persistTimeSnapshots() 137 return context.sharedPreferences.getLong(PREF_KEY_SYSTEM_TIME_SNAPSHOT, in getSystemTimeSnapshot() 142 return context.sharedPreferences.getLong(PREF_KEY_ELAPSED_REALTIME_SNAPSHOT, in getElapsedRealtimeSnapshot() 146 val Context.sharedPreferences: SharedPreferences constant in com.android.permissioncontroller.permission.service.v33.PermissionStorageTimeChangeReceiver
|
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
D | ApplicationSettingsActivity.java | 159 private void updateSoundSummary(final SharedPreferences sharedPreferences) { in updateSoundSummary() argument 164 String ringtoneString = sharedPreferences.getString(mRingtonePreferenceKey, null); in updateSoundSummary() 170 final SharedPreferences.Editor editor = sharedPreferences.edit(); in updateSoundSummary() 246 public void onSharedPreferenceChanged(final SharedPreferences sharedPreferences, in onSharedPreferenceChanged() argument 251 updateSoundSummary(sharedPreferences); in onSharedPreferenceChanged()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/networkconnection/ |
D | EstablishNetworkConnectionViewModel.java | 64 SharedPreferences sharedPreferences) { in EstablishNetworkConnectionViewModel() argument 67 mSharedPreferences = requireNonNull(sharedPreferences); in EstablishNetworkConnectionViewModel() 167 SharedPreferences sharedPreferences) { in EstablishNetworkConnectionViewModelFactory() argument 170 mSharedPreferences = requireNonNull(sharedPreferences); in EstablishNetworkConnectionViewModelFactory()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/quickcontact/ |
D | QuickContactTestsActivity.java | 87 final SharedPreferences sharedPreferences = getSharedPreferences(PREF_NAME, MODE_PRIVATE); in onCreate() local 88 final String uriString = sharedPreferences.getString(PREF_SETTING_URI, null); in onCreate() 113 final SharedPreferences sharedPreferences = getSharedPreferences(PREF_NAME, MODE_PRIVATE); in onDestroy() local 114 final Editor editor = sharedPreferences.edit(); in onDestroy()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/ |
D | SystemCallLogDataSource.java | 78 private final SharedPreferences sharedPreferences; field in SystemCallLogDataSource 90 @Unencrypted SharedPreferences sharedPreferences, in SystemCallLogDataSource() argument 96 this.sharedPreferences = sharedPreferences; in SystemCallLogDataSource() 140 sharedPreferences.edit().remove(PREF_LAST_TIMESTAMP_PROCESSED).apply(); in clearData() 190 return !sharedPreferences.contains(PREF_LAST_TIMESTAMP_PROCESSED); in isDirtyInternal() 223 sharedPreferences in onSuccessfulFillInternal() 233 long previousTimestampProcessed = sharedPreferences.getLong(PREF_LAST_TIMESTAMP_PROCESSED, 0L); in handleInsertsAndUpdates()
|
/packages/apps/OnDeviceAppPrediction/src/com/android/apppredictionservice/ |
D | PredictionService.java | 69 SharedPreferences sharedPreferences; field in PredictionService 100 this.sharedPreferences = getSharedPreferences(MY_PREF, Context.MODE_PRIVATE); in onCreate() 101 this.editor = sharedPreferences.edit(); in onCreate() 103 if (sharedPreferences.getString(appNameKeys[0], "").isEmpty()) { in onCreate() 113 String appName = sharedPreferences.getString(appNameKeys[i], ""); in onCreate()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelLogoFetcher.java | 99 SharedPreferences sharedPreferences = in doInBackground() local 103 SharedPreferences.Editor sharedPreferencesEditor = sharedPreferences.edit(); in doInBackground() 104 Map<String, ?> uncheckedChannels = sharedPreferences.getAll(); in doInBackground() 106 sharedPreferences.getBoolean(PREF_KEY_IS_FIRST_TIME_FETCH_CHANNEL_LOGO, true); in doInBackground()
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | BlockedNumbersAutoMigrator.java | 109 SharedPreferences sharedPreferences = in doInBackground() local 112 if (sharedPreferences.contains(HAS_CHECKED_AUTO_MIGRATE_KEY)) { in doInBackground() 127 sharedPreferences.edit().putBoolean(HAS_CHECKED_AUTO_MIGRATE_KEY, true).apply(); in doInBackground()
|