Home
last modified time | relevance | path

Searched refs:mSharedPreferences (Results 1 – 8 of 8) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DPreferences.java40 private SharedPreferences mSharedPreferences; field in Preferences
43 mSharedPreferences = in Preferences()
51 return mSharedPreferences.getLong(KEY_LAST_CANCEL_ALL_TIME_MS, 0L); in getLastCancelAllTimeMillis()
59 return new LastCancelAllLiveData(mSharedPreferences); in getLastCancelAllTimeMillisLiveData()
68 mSharedPreferences.edit().putLong(KEY_LAST_CANCEL_ALL_TIME_MS, timeMillis).apply(); in setLastCancelAllTimeMillis()
77 return mSharedPreferences.getBoolean(KEY_MIGRATE_PERSISTED_JOBS, true); in shouldMigratePersistedJobs()
85 mSharedPreferences.edit().putBoolean(KEY_MIGRATE_PERSISTED_JOBS, true).apply(); in setMigratedPersistedJobs()
95 private SharedPreferences mSharedPreferences; field in Preferences.LastCancelAllLiveData
99 mSharedPreferences = sharedPreferences; in LastCancelAllLiveData()
100 mLastCancelAllTimeMillis = mSharedPreferences.getLong(KEY_LAST_CANCEL_ALL_TIME_MS, 0L); in LastCancelAllLiveData()
[all …]
/frameworks/support/preference/src/main/java/androidx/preference/
DPreferenceManager.java60 private SharedPreferences mSharedPreferences; field in PreferenceManager
187 mSharedPreferences = null; in setSharedPreferencesName()
210 mSharedPreferences = null; in setSharedPreferencesMode()
220 mSharedPreferences = null; in setStorageDefault()
247 mSharedPreferences = null; in setStorageDeviceProtected()
320 if (mSharedPreferences == null) { in getSharedPreferences()
331 mSharedPreferences = storageContext.getSharedPreferences(mSharedPreferencesName, in getSharedPreferences()
335 return mSharedPreferences; in getSharedPreferences()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java93 private SharedPreferences mSharedPreferences; field in PreferenceManager
373 mSharedPreferences = null; in setSharedPreferencesName()
396 mSharedPreferences = null; in setSharedPreferencesMode()
405 mSharedPreferences = null; in setStorageDefault()
427 mSharedPreferences = null; in setStorageDeviceProtected()
446 mSharedPreferences = null; in setStorageCredentialProtected()
496 if (mSharedPreferences == null) { in getSharedPreferences()
510 mSharedPreferences = storageContext.getSharedPreferences(mSharedPreferencesName, in getSharedPreferences()
514 return mSharedPreferences; in getSharedPreferences()
/frameworks/base/tests/UsbTests/src/com/android/server/usb/
DUsbHandlerTest.java68 private SharedPreferences mSharedPreferences; field in UsbHandlerTest
130 return mSharedPreferences; in getPinnedSharedPrefs()
144 when(mSharedPreferences.edit()).thenReturn(mEditor); in before()
320 when(mSharedPreferences.getString(String.format(Locale.ENGLISH, in unlockScreen()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java97 private SharedPreferences mSharedPreferences; field in ImsPhoneCallTrackerTest
457 return mSharedPreferences; in testDialClirMode()
460 doReturn(CommandsInterface.CLIR_INVOCATION).when(mSharedPreferences).getInt( in testDialClirMode()
482 return mSharedPreferences; in testEmergencyDialSuppressClir()
490 doReturn(CommandsInterface.CLIR_INVOCATION).when(mSharedPreferences).getInt( in testEmergencyDialSuppressClir()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java183 private SharedPreferences mSharedPreferences; field in BridgeContext
1540 if (mSharedPreferences == null) { in getSharedPreferences()
1541 mSharedPreferences = new BridgeSharedPreferences(); in getSharedPreferences()
1543 return mSharedPreferences; in getSharedPreferences()
1548 if (mSharedPreferences == null) { in getSharedPreferences()
1549 mSharedPreferences = new BridgeSharedPreferences(); in getSharedPreferences()
1551 return mSharedPreferences; in getSharedPreferences()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java489 return mSharedPreferences; in getSharedPreferences()
549 private final SharedPreferences mSharedPreferences = PreferenceManager field in ContextFixture
/frameworks/base/config/
Dhiddenapi-light-greylist.txt4492 Landroid/preference/PreferenceManager;->mSharedPreferences:Landroid/content/SharedPreferences;