/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
D | QuickSettingsPreferenceFragment.java | 86 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onResume() local 87 sharedPreferences.registerOnSharedPreferenceChangeListener(this); in onResume() 88 sharedPreferences.registerOnSharedPreferenceChangeListener(mPresetSettingsListener); in onResume() 90 updateDescriptions(sharedPreferences); in onResume() 98 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onPause() local 99 sharedPreferences.unregisterOnSharedPreferenceChangeListener(this); in onPause() 100 sharedPreferences.unregisterOnSharedPreferenceChangeListener(mPresetSettingsListener); in onPause() 103 private void updateDescriptions(SharedPreferences sharedPreferences) { in updateDescriptions() argument 106 mBacklightPref.setSummary(String.format("%d", sharedPreferences.getInt("backlight", in updateDescriptions() 108 mContrastPref.setSummary(String.format("%d", sharedPreferences.getInt("contrast", in updateDescriptions() [all …]
|
D | Setting.java | 38 public Setting(SharedPreferences sharedPreferences, String key, String title, int max) { in Setting() argument 39 mSharedPreferences = sharedPreferences; in Setting() 46 public Setting(SharedPreferences sharedPreferences, String key, String title) { in Setting() argument 47 mSharedPreferences = sharedPreferences; in Setting()
|
D | PresetSettingsListener.java | 33 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument 37 final String preset = sharedPreferences.getString(key, "standard"); in onSharedPreferenceChanged() 59 final SharedPreferences.Editor prefs = sharedPreferences.edit(); in onSharedPreferenceChanged()
|
/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/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/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/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/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/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/ManagedProvisioning/src/com/android/managedprovisioning/analytics/ |
D | AnalyticsUtils.java | 211 static long getProvisioningTime(ManagedProvisioningSharedPreferences sharedPreferences) { in getProvisioningTime() argument 212 return getProvisioningTime(sharedPreferences, SystemClock::elapsedRealtime); in getProvisioningTime() 216 static long getProvisioningTime(ManagedProvisioningSharedPreferences sharedPreferences, in getProvisioningTime() argument 218 if (sharedPreferences.getProvisioningStartedTimestamp() == 0) { in getProvisioningTime() 221 return getTimeFunction.getAsLong() - sharedPreferences.getProvisioningStartedTimestamp(); in getProvisioningTime()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/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/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/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothUtils.java | 113 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground() local 116 long lastDiscoverableEndTime = sharedPreferences.getLong( in shouldShowDialogInForeground() 137 String lastSelectedDevice = sharedPreferences.getString( in shouldShowDialogInForeground() 141 long lastDeviceSelectedTime = sharedPreferences.getLong( in shouldShowDialogInForeground()
|
/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/Car/Settings/src/com/android/car/settings/system/ |
D | ResetNetworkConfirmFragment.java | 142 SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences( in shouldResetEsim() local 144 return sharedPreferences.getBoolean(requireContext().getString(R.string.pk_reset_esim), in shouldResetEsim() 149 SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences( in getNetworkSubscriptionId() local 151 String stringId = sharedPreferences.getString( in getNetworkSubscriptionId()
|
/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()
|