Home
last modified time | relevance | path

Searched refs:putStringSet (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DAuthenticationStatsPersisterTest.java88 when(mEditor.putStringSet(anyString(), anySet())).thenReturn(mEditor); in setUp()
153 verify(mEditor).putStringSet(eq(KEY), mStringSetArgumentCaptor.capture()); in persistFrrStats_newUser_face_shouldSuccess()
170 verify(mEditor).putStringSet(eq(KEY), mStringSetArgumentCaptor.capture()); in persistFrrStats_newUser_fingerprint_shouldSuccess()
192 verify(mEditor).putStringSet(eq(KEY), mStringSetArgumentCaptor.capture()); in persistFrrStats_existingUser_shouldUpdateRecord()
221 verify(mEditor).putStringSet(eq(KEY), mStringSetArgumentCaptor.capture()); in persistFrrStats_existingUserWithFingerprint_faceAuthenticate_shouldUpdateRecord()
245 verify(mEditor).putStringSet(eq(KEY), mStringSetArgumentCaptor.capture()); in persistFrrStats_multiUser_newUser_shouldUpdateRecord()
260 verify(mEditor).putStringSet(eq(KEY), mStringSetArgumentCaptor.capture()); in removeFrrStats_existingUser_shouldUpdateRecord()
DAuthenticationStatsBroadcastReceiverTest.java87 when(mEditor.putStringSet(anyString(), anySet())).thenReturn(mEditor); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepositoryImpl.kt60 edit().putStringSet(KEY, currentSet - packageNames).apply() in removeAuthorizedPanels()
73 sharedPreferences.edit().putStringSet(KEY, currentSet + packageNames).apply() in addAuthorizedPanelsInternal()
87 sharedPref.edit().putStringSet(KEY, getPreferredPackages()).apply() in instantiateSharedPrefs()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DFakeSharedPreferencesTest.kt106 SharedPreferences.Editor::putStringSet, in <lambda>()
169 sharedPreferences.edit().putStringSet("key", setOf("one")).commit() in <lambda>()
170 sharedPreferences.edit().putStringSet("key", setOf("two")).commit() in <lambda>()
218 .putStringSet("keySet", setOf("a")) in <lambda>()
222 sharedPreferences.edit().putString("keyString", null).putStringSet("keySet", null).commit() in <lambda>()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DApprovedPrintServices.java104 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices); in addApprovedService()
155 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices); in pruneApprovedServices()
/frameworks/base/services/tests/servicestests/src/com/android/server/locales/
DLocaleManagerBackupRestoreTest.java308 verify(mMockSpEditor, times(0)).putStringSet(anyString(), any()); in testRestore_allAppsInstalled_nothingToSp()
332 verify(mMockSpEditor, times(1)).putStringSet(Integer.toString(DEFAULT_USER_ID), in testRestore_allAppsInstalled_storeInfoToSp()
357 verify(mMockSpEditor, times(0)).putStringSet(anyString(), any()); in testRestore_allAppsInstalled_InfoHasExistedInSp()
515 verify(mMockSpEditor, times(0)).putStringSet(anyString(), any()); in testRestore_appInstalledAfterSUW_restoresFromStage()
531 verify(mMockSpEditor, times(1)).putStringSet(Integer.toString(DEFAULT_USER_ID), in testRestore_appInstalledAfterSUW_restoresFromStage()
579 verify(mMockSpEditor, times(0)).putStringSet(anyString(), any()); in testRestore_appInstalledAfterSUW_restoresFromStage_ArchiveEnabled()
596 verify(mMockSpEditor, times(1)).putStringSet(Integer.toString(DEFAULT_USER_ID), in testRestore_appInstalledAfterSUW_restoresFromStage_ArchiveEnabled()
802 verify(mMockSpEditor, times(0)).putStringSet(anyString(), any()); in testRestore_multipleProfile_restoresFromStage_ArchiveEnabled()
815 verify(mMockSpEditor, times(1)).putStringSet(Integer.toString(DEFAULT_USER_ID), in testRestore_multipleProfile_restoresFromStage_ArchiveEnabled()
828 verify(mMockSpEditor, times(0)).putStringSet(anyString(), any()); in testPackageRemoved_noInfoInSp()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepositoryImplTest.kt78 sharedPrefs.edit().putStringSet(KEY, emptySet()).apply() in testPreApprovedPackagesNotSeededIfEmptySavedPreferences()
93 sharedPrefs_1.edit().putStringSet(KEY, emptySet()).apply() in testPreApprovedPackagesOnlySetForUserThatDoesntHaveThem()
105 sharedPrefs.edit().putStringSet(KEY, mutableSetOf(TEST_PACKAGE)).apply() in testGetAuthorizedPackages()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleBackupHelper.java305 editor.putStringSet(peopleTileKey.toString(), filteredWidgets); in backupPeopleTileKey()
337 followUpEditor.putStringSet(peopleTileKey.toString(), widgetIds); in restorePeopleTileKeyAndCorrespondingWidgetFile()
344 editor.putStringSet(peopleTileKey.toString(), widgetIds); in restorePeopleTileKeyAndCorrespondingWidgetFile()
368 editor.putStringSet(uri.toString(), widgetIds); in backupContactUriKey()
377 editor.putStringSet(uri.toString(), widgetIds); in backupContactUriKey()
392 editor.putStringSet(uri.toString(), widgetIds); in restoreContactUriKey()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleBackupFollowUpJobTest.java121 mFollowUpEditor.putStringSet(PEOPLE_TILE_KEY.toString(), WIDGET_IDS); in testProcessFollowUpFile_shouldFollowUp()
138 mFollowUpEditor.putStringSet(PEOPLE_TILE_KEY.toString(), WIDGET_IDS); in testProcessFollowUpFile_shouldRestore()
181 mEditor.putStringSet(URI.toString(), WIDGET_IDS); in testCancelJobAndClearRemainingWidgets()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginPrefs.java50 mSharedPrefs.edit().putStringSet(PLUGIN_ACTIONS, mPluginActions).apply(); in addAction()
/frameworks/base/core/java/android/preference/
DPreferenceDataStore.java74 default void putStringSet(String key, @Nullable Set<String> values) { in putStringSet() method
DPreference.java1706 dataStore.putStringSet(mKey, values); in persistStringSet()
1709 editor.putStringSet(mKey, values); in persistStringSet()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupPreferences.java47 mEditor.putStringSet(packageName, existingKeys); in addExcludedKeys()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java158 public static void putStringSet(Context context, @Key String key, Set<String> value) { in putStringSet() method in Prefs
159 get(context).edit().putStringSet(key, value).apply(); in putStringSet()
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthenticationStatsPersister.java118 mSharedPreferences.edit().putStringSet(KEY, frrStatsSet).apply(); in removeFrrStats()
154 mSharedPreferences.edit().putStringSet(KEY, frrStatsSet).apply(); in persistFrrStats()
/frameworks/base/core/java/android/content/
DSharedPreferences.java123 Editor putStringSet(String key, @Nullable Set<String> values); in putStringSet() method
/frameworks/base/services/core/java/com/android/server/locales/
DLocaleManagerBackupHelper.java338 if (!editor.putStringSet(user, packageNames).commit()) { in onPackageUpdateFinished()
659 if (!sp.edit().putStringSet(user, packageNames).commit()) { in addInArchivedPackagesInfo()
690 if (!editor.putStringSet(user, packageNames).commit()) { in removeFromArchivedPackagesInfo()
747 editor.putStringSet(key, packageNames); in removePackageFromPersistedInfo()
794 editor.putStringSet(user, packageNames); in persistLocalesModificationInfo()
804 editor.putStringSet(user, packageNames); in persistLocalesModificationInfo()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeSharedPreferences.java83 public Editor putStringSet(String key, Set<String> values) { in edit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileRevealController.java89 Prefs.putStringSet(mContext, QS_TILE_SPECS_REVEALED, revealedTiles); in addTileSpecsToRevealed()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/
DFakeSharedPreferences.kt98 override fun putStringSet( in <lambda>() method in com.android.systemui.util.FakeSharedPreferences.Editor
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeviceControlsControllerImpl.kt182 prefs.edit().putStringSet(PREFS_CONTROLS_SEEDING_COMPLETED, updatedPkgs).apply() in <lambda>()
/frameworks/base/packages/SettingsLib/DataStore/src/com/android/settingslib/datastore/
DSharedPreferencesStorage.kt187 @Suppress("UNCHECKED_CAST") editor.putStringSet(key, value as Set<String>) in mergeSharedPreferences()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DSharedPreferencesLogger.java215 public Editor putStringSet(String key, @Nullable Set<String> values) { in putStringSet() method in SharedPreferencesLogger.EditorLogger
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DDeviceControlsControllerImplTest.kt122 .putStringSet(PREFS_CONTROLS_SEEDING_COMPLETED, emptySet()) in capture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleSpaceUtils.java153 editor.putStringSet(storageKey, storedWidgetIdsByKey); in addAppWidgetIdForKey()
162 editor.putStringSet(storageKey, storedWidgetIds); in removeAppWidgetIdForKey()

12