Home
last modified time | relevance | path

Searched refs:sharedPreferences (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DCryptoSettings.java73 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/
DCustomTileStatePersisterTest.kt70 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/
DCustomTileStatePersister.kt52 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/
DUceUtils.java274 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/
DTertiaryKeyRotationTracker.java63 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/
DEabContactSyncController.java331 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/
DDndTile.java99 @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/
DSettingsActivity.java61 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
/frameworks/base/core/java/android/content/
DSharedPreferences.java71 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); in onSharedPreferenceChanged() argument
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DPrefState.java97 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsUiControllerImpl.kt80 @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/
DGsmCdmaPhoneTest.java856 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()
DTelephonyTest.java775 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/
DTrackerService.java437 SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java177 @Main SharedPreferences sharedPreferences, DateFormatUtil dateFormatUtil, in PhoneStatusBarPolicy() argument
228 mSharedPreferences = sharedPreferences; in PhoneStatusBarPolicy()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java1576 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument