/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/ |
D | CryptoSettings.java | 73 SharedPreferences sharedPreferences = in getInstance() local 75 return new CryptoSettings(sharedPreferences, context); in getInstance() 85 SharedPreferences sharedPreferences = in getInstanceForTesting() local 87 return new CryptoSettings(sharedPreferences, context); in getInstanceForTesting() 90 private CryptoSettings(SharedPreferences sharedPreferences, Context context) { in CryptoSettings() argument 91 mSharedPreferences = Objects.requireNonNull(sharedPreferences); in CryptoSettings()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | CustomTileStatePersisterTest.kt | 70 private lateinit var sharedPreferences: SharedPreferences variable in com.android.systemui.qs.external.CustomTileStatePersisterTest 83 .thenReturn(sharedPreferences) in setUp() 84 `when`(sharedPreferences.edit()).thenReturn(editor) in setUp() 117 `when`(sharedPreferences.getString(eq(KEY.toString()), any())) in testReadState() 125 `when`(sharedPreferences.getString(any(), any())).thenAnswer { in testReadStateDefault() 147 `when`(sharedPreferences.getString(eq(KEY.toString()), any())) in testReadNulls()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | CustomTileStatePersister.kt | 52 private val sharedPreferences = context.getSharedPreferences(FILE_NAME, 0) in toString() constant 62 val state = sharedPreferences.getString(key.toString(), null) ?: return null in toString() 79 sharedPreferences.edit().putString(key.toString(), state).apply() in toString() 88 sharedPreferences.edit().remove(key.toString()).apply() in toString()
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/util/ |
D | UceUtils.java | 274 SharedPreferences sharedPreferences = in saveDeviceStateToPreference() local 276 SharedPreferences.Editor editor = sharedPreferences.edit(); in saveDeviceStateToPreference() 283 SharedPreferences sharedPreferences = in restoreDeviceState() local 286 String sharedPrefValue = sharedPreferences.getString(sharedPrefKey, ""); in restoreDeviceState() 316 SharedPreferences sharedPreferences = in removeDeviceStateFromPreference() local 318 SharedPreferences.Editor editor = sharedPreferences.edit(); in removeDeviceStateFromPreference()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationTracker.java | 63 TertiaryKeyRotationTracker(SharedPreferences sharedPreferences, int maxBackupsTillRotation) { in TertiaryKeyRotationTracker() argument 70 mSharedPreferences = sharedPreferences; in TertiaryKeyRotationTracker()
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/ |
D | EabContactSyncController.java | 331 SharedPreferences sharedPreferences = in setLastUpdatedTime() local 333 sharedPreferences.edit().putLong(LAST_UPDATED_TIME_KEY, timestamp).apply(); in setLastUpdatedTime() 337 SharedPreferences sharedPreferences = in getLastUpdatedTime() local 339 return sharedPreferences.getLong(LAST_UPDATED_TIME_KEY, NOT_INIT_LAST_UPDATED_TIME); in getLastUpdatedTime()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | DndTile.java | 99 @Main SharedPreferences sharedPreferences in DndTile() argument 104 mSharedPreferences = sharedPreferences; in DndTile() 121 public static boolean isCombinedIcon(SharedPreferences sharedPreferences) { in isCombinedIcon() argument 122 return sharedPreferences.getBoolean(Prefs.Key.DND_TILE_COMBINED_ICON, in isCombinedIcon() 309 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
D | SettingsActivity.java | 61 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
|
/frameworks/base/core/java/android/content/ |
D | SharedPreferences.java | 71 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); in onSharedPreferenceChanged() argument
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | PrefState.java | 97 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ControlsUiControllerImpl.kt | 80 @Main val sharedPreferences: SharedPreferences, in <lambda>() constant in com.android.systemui.controls.ui.ControlsUiControllerImpl 464 val component = sharedPreferences.getString(PREF_COMPONENT, null)?.let { in <lambda>() 467 val structure = sharedPreferences.getString(PREF_STRUCTURE, "") in <lambda>() 476 sharedPreferences.edit() in <lambda>()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaPhoneTest.java | 856 SharedPreferences sharedPreferences = in testVoiceMailCount() local 858 SharedPreferences.Editor editor = sharedPreferences.edit(); in testVoiceMailCount() 870 assertEquals(null, sharedPreferences.getString("vm_id_key", null)); in testVoiceMailCount() 871 assertEquals(5, sharedPreferences.getInt("vm_count_key" + mPhoneUT.getSubId(), 0)); in testVoiceMailCount() 920 SharedPreferences sharedPreferences = PreferenceManager. in testGetCallForwardingOption() local 923 sharedPreferences.getInt(Phone.CF_STATUS + mPhoneUT.getSubId(), in testGetCallForwardingOption() 927 SharedPreferences.Editor editor = sharedPreferences.edit(); in testGetCallForwardingOption()
|
D | TelephonyTest.java | 775 SharedPreferences sharedPreferences = mContext.getSharedPreferences((String) null, 0); in tearDown() local 776 sharedPreferences.edit().clear().commit(); in tearDown()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
D | TrackerService.java | 437 SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarPolicy.java | 177 @Main SharedPreferences sharedPreferences, DateFormatUtil dateFormatUtil, in PhoneStatusBarPolicy() argument 228 mSharedPreferences = sharedPreferences; in PhoneStatusBarPolicy()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintActivity.java | 1576 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
|