/aosp14/frameworks/base/core/java/android/util/ |
H A D | HashedStringCache.java | 59 private SharedPreferences mSharedPreferences; field in HashedStringCache 154 mSharedPreferences = getHashSharedPreferences(context); in populateSaltValues() 155 long saltDate = mSharedPreferences.getLong(tag + HASH_SALT_DATE, 0); in populateSaltValues() 161 String saltString = mSharedPreferences.getString(tag + HASH_SALT, null); in populateSaltValues() 162 mSaltGen = mSharedPreferences.getInt(tag + HASH_SALT_GEN, 0); in populateSaltValues() 169 mSharedPreferences.edit() in populateSaltValues()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
H A D | AuthenticationStatsPersisterTest.java | 73 private SharedPreferences mSharedPreferences; field in AuthenticationStatsPersisterTest 86 .thenReturn(mSharedPreferences); in setUp() 87 when(mSharedPreferences.edit()).thenReturn(mEditor); in setUp() 102 when(mSharedPreferences.getStringSet(eq(KEY), anySet())).thenReturn( in getAllFrrStats_face_shouldListAllFrrStats() 126 when(mSharedPreferences.getStringSet(eq(KEY), anySet())).thenReturn( in getAllFrrStats_fingerprint_shouldListAllFrrStats() 183 when(mSharedPreferences.getStringSet(eq(KEY), anySet())).thenReturn( in persistFrrStats_existingUser_shouldUpdateRecord() 208 when(mSharedPreferences.getStringSet(eq(KEY), anySet())).thenReturn( in persistFrrStats_existingUserWithFingerprint_faceAuthenticate_shouldUpdateRecord() 235 when(mSharedPreferences.getStringSet(eq(KEY), anySet())).thenReturn( in persistFrrStats_multiUser_newUser_shouldUpdateRecord() 255 when(mSharedPreferences.getStringSet(eq(KEY), anySet())).thenReturn( in removeFrrStats_existingUser_shouldUpdateRecord()
|
H A D | AuthenticationStatsCollectorTest.java | 80 private SharedPreferences mSharedPreferences; field in AuthenticationStatsCollectorTest 105 .thenReturn(mSharedPreferences); in setUp() 106 when(mSharedPreferences.getStringSet(anyString(), anySet())).thenReturn(emptySet()); in setUp() 107 when(mSharedPreferences.edit()).thenReturn(mEditor); in setUp()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | AuthenticationStatsPersister.java | 57 @NonNull private final SharedPreferences mSharedPreferences; field in AuthenticationStatsPersister 64 mSharedPreferences = context.getSharedPreferences(prefsFile, Context.MODE_PRIVATE); in AuthenticationStatsPersister() 118 mSharedPreferences.edit().putStringSet(KEY, frrStatsSet).apply(); in removeFrrStats() 154 mSharedPreferences.edit().putStringSet(KEY, frrStatsSet).apply(); in persistFrrStats() 165 mSharedPreferences.edit().putFloat(THRESHOLD_KEY, frrThreshold).apply(); in persistFrrThreshold() 169 return mSharedPreferences.getStringSet(KEY, Set.of()); in readFrrStats()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/recoverysystem/ |
H A D | RecoverySystemServiceTest.java | 85 private RecoverySystemService.PreferencesManager mSharedPreferences; field in RecoverySystemServiceTest 114 mSharedPreferences = mock(RecoverySystemService.PreferencesManager.class); in setup() 118 mIBootControl, mMetricsReporter, mSharedPreferences); in setup() 255 verify(mSharedPreferences).putLong(eq(FAKE_OTA_PACKAGE_NAME in requestLskf_reportMetrics() 265 when(mSharedPreferences.getLong(eq(FAKE_OTA_PACKAGE_NAME in requestLskf_success() 388 when(mSharedPreferences.getInt(eq(FAKE_OTA_PACKAGE_NAME in rebootWithLskf_Success() 390 when(mSharedPreferences.getInt(eq(RecoverySystemService.LSKF_CAPTURED_COUNT_PREF), in rebootWithLskf_Success() 441 when(mSharedPreferences.getInt(eq(FAKE_OTA_PACKAGE_NAME in rebootWithLskf_multiClient_success_reportMetrics() 443 when(mSharedPreferences.getInt(eq(RecoverySystemService.LSKF_CAPTURED_COUNT_PREF), in rebootWithLskf_multiClient_success_reportMetrics() 461 when(mSharedPreferences.getInt(eq(FAKE_OTHER_PACKAGE_NAME in rebootWithLskf_multiClient_ClientBSuccess() [all …]
|
H A D | RecoverySystemServiceTestable.java | 36 private final RecoverySystemService.PreferencesManager mSharedPreferences; field in RecoverySystemServiceTestable.MockInjector 51 mSharedPreferences = preferences; in MockInjector() 143 return mSharedPreferences; in getMetricsPrefs()
|
/aosp14/frameworks/base/core/java/android/preference/ |
H A D | PreferenceManager.java | 104 private SharedPreferences mSharedPreferences; field in PreferenceManager 392 mSharedPreferences = null; in setSharedPreferencesName() 415 mSharedPreferences = null; in setSharedPreferencesMode() 424 mSharedPreferences = null; in setStorageDefault() 446 mSharedPreferences = null; in setStorageDeviceProtected() 465 mSharedPreferences = null; in setStorageCredentialProtected() 515 if (mSharedPreferences == null) { in getSharedPreferences() 529 mSharedPreferences = storageContext.getSharedPreferences(mSharedPreferencesName, in getSharedPreferences() 533 return mSharedPreferences; in getSharedPreferences()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
H A D | WorkProfileMessageControllerTest.java | 79 private FakeSharedPreferences mSharedPreferences = new FakeSharedPreferences(); field in WorkProfileMessageControllerTest 90 eq(Context.MODE_PRIVATE))).thenReturn(mSharedPreferences); in setup() 107 mSharedPreferences.edit().putBoolean( in setup() 121 mSharedPreferences.edit().putBoolean( in testOnScreenshotTaken_alreadyDismissed()
|
/aosp14/frameworks/base/tests/UsbTests/src/com/android/server/usb/ |
H A D | UsbHandlerTest.java | 68 private SharedPreferences mSharedPreferences; field in UsbHandlerTest 130 return mSharedPreferences; in getPinnedSharedPrefs() 162 when(mSharedPreferences.edit()).thenReturn(mEditor); in before() 361 when(mSharedPreferences.getString(String.format(Locale.ENGLISH, in unlockScreen()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | DndTile.java | 83 private final SharedPreferences mSharedPreferences; field in DndTile 109 mSharedPreferences = sharedPreferences; in DndTile() 302 return isVisible(mSharedPreferences); in isAvailable()
|
/aosp14/frameworks/base/services/core/java/com/android/server/recoverysystem/ |
H A D | RecoverySystemService.java | 215 protected final SharedPreferences mSharedPreferences; field in RecoverySystemService.PreferencesManager 222 mSharedPreferences = context.getSharedPreferences(mMetricsPrefsFile, 0); in PreferencesManager() 227 return mSharedPreferences.getLong(key, defaultValue); in getLong() 232 return mSharedPreferences.getInt(key, defaultValue); in getInt() 237 mSharedPreferences.edit().putLong(key, value).commit(); in putLong() 242 mSharedPreferences.edit().putInt(key, value).commit(); in putInt()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | PhoneStatusBarPolicy.java | 128 private final SharedPreferences mSharedPreferences; field in PhoneStatusBarPolicy 248 mSharedPreferences = sharedPreferences; in PhoneStatusBarPolicy() 414 if (DndTile.isVisible(mSharedPreferences) || DndTile.isCombinedIcon(mSharedPreferences)) { in updateVolumeZen()
|