Home
last modified time | relevance | path

Searched refs:getStringSet (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleBackupHelperTest.java259 assertThat(mBackupSp.getStringSet(URI_STRING, new HashSet<>())) in testBackupKey_contactUriKey_ignoresExistingWidgets()
270 assertThat(mBackupSp.getStringSet(URI_STRING, new HashSet<>())) in testBackupKey_contactUriKey_ignoresExistingWidgets_otherWidget()
281 assertThat(mBackupSp.getStringSet(URI_STRING, new HashSet<>())).isEmpty(); in testBackupKey_contactUriKey_noUserId_otherUser_doesntBackup()
291 assertThat(mBackupSp.getStringSet(URI_STRING, new HashSet<>())) in testBackupKey_contactUriKey_sameUserId()
304 assertThat(mBackupSp.getStringSet(URI_STRING, new HashSet<>())).isEmpty(); in testBackupKey_contactUriKey_differentUserId_runningAsUser0()
316 assertThat(mBackupSp.getStringSet(URI_STRING, new HashSet<>())).isEmpty(); in testBackupKey_contactUriKey_differentUserId_runningAsUser10()
329 assertThat(mBackupSp.getStringSet( in testBackupKey_peopleTileKey_containsWidget()
344 mBackupSp.getStringSet(INVALID_USER_ID_PEOPLE_TILE_KEY.toString(), new HashSet<>())) in testBackupKey_peopleTileKey_containsBothWidgets()
356 assertThat(mBackupSp.getStringSet( in testBackupKey_peopleTileKey_doesNotContainWidget()
368 assertThat(mBackupSp.getStringSet( in testBackupKey_peopleTileKey_differentUserId()
[all …]
DPeopleSpaceWidgetManagerTest.java1063 assertThat(sp.getStringSet(KEY.toString(), new HashSet<>())).containsExactly( in testDeleteAllWidgetsForConversationsUncachesShortcutAndRemovesListeners()
1082 assertThat(sp.getStringSet(KEY.toString(), new HashSet<>())).isEmpty(); in testDeleteAllWidgetsForConversationsUncachesShortcutAndRemovesListeners()
1118 assertThat(sp.getStringSet(KEY.toString(), new HashSet<>())) in testOnAppWidgetOptionsChangedNoWidgetAdded()
1543 assertThat(sp.getStringSet(URI.toString(), new HashSet<>())).containsExactly( in testRemapSharedFile()
1548 assertThat(sp.getStringSet(key8.toString(), new HashSet<>())).containsExactly( in testRemapSharedFile()
1552 assertThat(sp.getStringSet(key11.toString(), new HashSet<>())).containsExactly( in testRemapSharedFile()
1572 assertThat(followUp.getStringSet(key8.toString(), new HashSet<>())).containsExactly( in testRemapFollowupFile()
1574 assertThat(followUp.getStringSet(key11.toString(), new HashSet<>())).containsExactly( in testRemapFollowupFile()
1775 Set<String> storedWidgetIds = new HashSet<>(sp.getStringSet(key, new HashSet<>())); in setStorageForTile()
1780 sp.getStringSet(contactUri.toString(), new HashSet<>())); in setStorageForTile()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DAuthenticationStatsPersisterTest.java102 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()
DAuthenticationStatsBroadcastReceiverTest.java84 when(mSharedPreferences.getStringSet(anyString(), anySet())).thenReturn(emptySet()); in setUp()
DAuthenticationStatsCollectorTest.java106 when(mSharedPreferences.getStringSet(anyString(), anySet())).thenReturn(emptySet()); in setUp()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupPreferences.java45 new HashSet<>(mPreferences.getStringSet(packageName, Collections.emptySet())); in addExcludedKeys()
52 return mPreferences.getStringSet(packageName, Collections.emptySet()); in getExcludedRestoreKeysForPackage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepositoryImplTest.kt68 assertThat(sharedPrefs.getStringSet(KEY, null)).containsExactly(TEST_PACKAGE) in testPreApprovedPackagesAreSeededIfNoSavedPreferences()
82 assertThat(sharedPrefs.getStringSet(KEY, null)).isEmpty() in testPreApprovedPackagesNotSeededIfEmptySavedPreferences()
119 assertThat(sharedPrefs.getStringSet(KEY, null)).containsExactly(TEST_PACKAGE) in testSetAuthorizedPackage()
131 assertThat(sharedPrefs.getStringSet(KEY, null)).isEmpty() in testRemoveAuthorizedPackageRemovesIt()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleBackupFollowUpJobTest.java132 assertThat(mFollowUpSp.getStringSet(PEOPLE_TILE_KEY.toString(), new HashSet<>())) in testProcessFollowUpFile_shouldFollowUp()
147 assertThat(mFollowUpSp.getStringSet(PEOPLE_TILE_KEY.toString(), new HashSet<>())).isEmpty(); in testProcessFollowUpFile_shouldRestore()
197 assertThat(mSp.getStringSet(PEOPLE_TILE_KEY.toString(), new HashSet<>())).isEmpty(); in testCancelJobAndClearRemainingWidgets()
198 assertThat(mSp.getStringSet(URI.toString(), new HashSet<>())).isEmpty(); in testCancelJobAndClearRemainingWidgets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepositoryImpl.kt65 return sharedPreferences.getStringSet(KEY, emptySet())!! in getAuthorizedPanelsInternal()
85 val needToSetup = sharedPref.getStringSet(KEY, null) == null in instantiateSharedPrefs()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DApprovedPrintServices.java57 return mPreferences.getStringSet(APPROVED_SERVICES_PREFERENCE, null); in getApprovedServices()
92 mPreferences.getStringSet(APPROVED_SERVICES_PREFERENCE, null); in addApprovedService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileRevealController.java72 final Set<String> revealedTiles = Prefs.getStringSet( in updateRevealedTiles()
87 Prefs.getStringSet(mContext, QS_TILE_SPECS_REVEALED, Collections.EMPTY_SET)); in addTileSpecsToRevealed()
/frameworks/base/services/core/java/com/android/server/locales/
DLocaleManagerBackupHelper.java172 localeSetFromDelegate = mDelegateAppLocalePackages.getStringSet( in getBackupPayload()
326 Set<String> packageNames = new ArraySet<>(sp.getStringSet(user, new ArraySet<>())); in onPackageUpdateFinished()
652 Set<String> packageNames = new ArraySet<>(sp.getStringSet(user, new ArraySet<>())); in addInArchivedPackagesInfo()
674 Set<String> packageNames = new ArraySet<>(sp.getStringSet(user, new ArraySet<>())); in removeFromArchivedPackagesInfo()
740 mDelegateAppLocalePackages.getStringSet(key, new ArraySet<>())); in removePackageFromPersistedInfo()
787 mDelegateAppLocalePackages.getStringSet(user, new ArraySet<>())); in persistLocalesModificationInfo()
822 mDelegateAppLocalePackages.getStringSet(user, new ArraySet<>())); in areLocalesSetFromDelegate()
841 mDelegateAppLocalePackages.getStringSet(user, new ArraySet<>())); in cleanApplicationLocalesIfNeeded()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DFakeSharedPreferencesTest.kt61 val result = sharedPreferences.getStringSet("key", default) in <lambda>()
107 { getStringSet(it, emptySet()) } in <lambda>()
172 assertThat(sharedPreferences.getStringSet("key", emptySet())).isEqualTo(setOf("two")) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeviceControlsControllerImpl.kt132 prefs.getStringSet(PREFS_CONTROLS_SEEDING_COMPLETED, emptySet()) ?: emptySet() in <lambda>()
179 prefs.getStringSet(PREFS_CONTROLS_SEEDING_COMPLETED, emptySet()) ?: emptySet() in <lambda>()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginPrefs.java41 mPluginActions = new ArraySet<>(mSharedPrefs.getStringSet(PLUGIN_ACTIONS, null)); in PluginPrefs()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java162 public static Set<String> getStringSet( in getStringSet() method in Prefs
164 return get(context).getStringSet(key, defaultValue); in getStringSet()
/frameworks/base/core/java/android/preference/
DPreferenceDataStore.java150 default Set<String> getStringSet(String key, @Nullable Set<String> defValues) { in getStringSet() method
DPreference.java1731 return dataStore.getStringSet(mKey, defaultReturnValue); in getPersistedStringSet()
1734 return mPreferenceManager.getSharedPreferences().getStringSet(mKey, defaultReturnValue); in getPersistedStringSet()
/frameworks/base/core/java/android/content/
DSharedPreferences.java306 Set<String> getStringSet(String key, @Nullable Set<String> defValues); in getStringSet() method
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeSharedPreferences.java42 public Set<String> getStringSet(String key, Set<String> defValues) { in getStringSet() method in BridgeSharedPreferences
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/
DFakeSharedPreferences.kt43 override fun getStringSet(key: String, defValues: MutableSet<String>?): MutableSet<String>? { in <lambda>() method in com.android.systemui.util.FakeSharedPreferences
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleSpaceUtils.java97 return new HashSet<>(sp.getStringSet(key.toString(), new HashSet<>())); in getStoredWidgetIds()
151 sp.getStringSet(storageKey, new HashSet<>())); in addAppWidgetIdForKey()
160 sp.getStringSet(storageKey, new HashSet<>())); in removeAppWidgetIdForKey()
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthenticationStatsPersister.java169 return mSharedPreferences.getStringSet(KEY, Set.of()); in readFrrStats()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DSharedPreferencesLogger.java68 public Set<String> getStringSet(String key, @Nullable Set<String> defValues) { in getStringSet() method in SharedPreferencesLogger
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManager.java644 return new HashSet<>(mSharedPrefs.getStringSet(key.toString(), new HashSet<>())); in getMatchingKeyWidgetIds()
694 new HashSet<>(mSharedPrefs.getStringSet(contactUri, new HashSet<>())); in fetchMatchingUriWidgetIds()
952 mSharedPrefs.getStringSet(key.toString(), new HashSet<>())); in deleteWidgets()

12