Home
last modified time | relevance | path

Searched refs:toSet (Results 1 – 25 of 142) sorted by relevance

123456

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/echo/
DLogcatEchoSettingsFormatTest.kt45 assertEquals(expectedOverrides.toSet(), storedAndLoadedOverrides.toSet()) in testReversibility()
58 assertEquals(expectedOverrides.toSet(), storedAndLoadedOverrides.toSet()) in testSemicolonEscaping()
/frameworks/base/core/tests/coretests/src/android/content/
DContentCaptureOptionsTest.java67 /* whitelistedComponents= */ toSet(COMPONENT1, COMPONENT2));
86 ContentCaptureOptions options = new ContentCaptureOptions(toSet((ComponentName) null)); in testIsWhitelisted_emptyWhitelistedComponents()
92 ContentCaptureOptions options = new ContentCaptureOptions(toSet(COMPONENT1, COMPONENT2)); in testIsWhitelisted_notWhitelisted()
99 new ContentCaptureOptions(toSet(COMPONENT1, CONTEXT_COMPONENT)); in testIsWhitelisted_whitelisted()
105 ContentCaptureOptions options = new ContentCaptureOptions(toSet(CONTEXT_COMPONENT)); in testIsWhitelisted_invalidContext()
112 ContentCaptureOptions options = new ContentCaptureOptions(toSet(CONTEXT_COMPONENT)); in testIsWhitelisted_clientWithNullComponentName()
204 private static ArraySet<ComponentName> toSet(@Nullable ComponentName... comps) { in toSet() method in ContentCaptureOptionsTest
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataCombineLatest.kt53 listeners.toSet().forEach { it.onSmartspaceMediaDataLoaded(key, data) } in onSmartspaceMediaDataLoaded()
61 listeners.toSet().forEach { it.onSmartspaceMediaDataRemoved(key, immediately) } in onSmartspaceMediaDataRemoved()
90 val listenersCopy = listeners.toSet() in addListener()
97 val listenersCopy = listeners.toSet() in remove()
DMediaSessionBasedFilter.kt173 listeners.toSet().forEach { it.onMediaDataLoaded(key, oldKey, info, immediately) } in <lambda>()
179 listeners.toSet().forEach { it.onMediaDataRemoved(key, userInitiated) } in <lambda>()
185 listeners.toSet().forEach { it.onSmartspaceMediaDataLoaded(key, info) } in <lambda>()
191 listeners.toSet().forEach { it.onSmartspaceMediaDataRemoved(key, immediately) } in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest12.java89 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testSetDynamicShortcuts_PersistsShortcutsToDisk()
117 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testAddDynamicShortcuts_PersistsShortcutsToDisk()
141 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testPushDynamicShortcuts_PersistsShortcutsToDisk()
158 shortcutIds = shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testPushDynamicShortcuts_PersistsShortcutsToDisk()
186 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testRemoveDynamicShortcuts_RemovesShortcutsFromDisk()
210 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testRemoveLongLivedShortcuts_RemovesShortcutsFromDisk()
235 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testDisableShortcuts_RemovesShortcutsFromDisk()
/frameworks/base/packages/SystemUI/src/com/android/systemui/display/data/repository/
DDisplayRepository.kt165 enabledDisplaysSet.map { it.displayId }.toSet() in enabledDisplaysSet()
193 traceSection("$TAG#getDisplays()") { displayManager.displays?.toSet() ?: emptySet() } in getDisplays()
203 .toSet() in getInitialConnectedDisplays()
223 trySend(connectedIds.toSet()) in <lambda>()
232 trySend(connectedIds.toSet()) in <lambda>()
235 trySend(connectedIds.toSet()) in <lambda>()
261 .toSet() in connectedDisplayIds()
367 resultSet = currentMap.values.toSet() // Creates a **copy** of values in mapElementsLazily()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/data/repository/
DFaceWakeUpTriggersConfig.kt47 resources.getIntArray(R.array.config_face_auth_wake_up_triggers).toSet() in shouldTriggerFaceAuthOnWakeUpFrom()
71 .toSet() in shouldTriggerFaceAuthOnWakeUpFrom()
94 stringSetting.split("|").stream().map(Integer::parseInt).collect(Collectors.toSet()) in shouldTriggerFaceAuthOnWakeUpFrom()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/
DFakeDeviceProvisionedController.kt35 callbacks.toSet().forEach { it.onUserSwitched() } in setCurrentUser()
44 callbacks.toSet().forEach { it.onUserSetupChanged() } in setUserSetup()
/frameworks/libs/systemui/animationlib/tests/src/com/android/app/animation/
DInterpolatorsAndroidXTest.kt55 .toSet()
58 fields.filter { Modifier.isPublic(it.modifiers) }.map { it.name }.toSet() in getPublicFields()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/ui/viewmodel/
DNotificationIconsViewData.kt76 val prevKeys = prev.visibleIcons.asSequence().map { it.notifKey }.toSet() in <lambda>()
77 val newKeys = new.visibleIcons.asSequence().map { it.notifKey }.toSet() in <lambda>()
82 new.visibleIcons.asSequence().map { it.groupInfo }.toSet() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/
DSectionStyleProvider.kt42 lowPrioritySections = sections.toSet() in setMinimizedSections()
66 silentSections = sections.toSet() in setSilentSections()
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationHostViewController.java117 .collect(Collectors.toSet()); in updateComplications()
122 .collect(Collectors.toSet()); in updateComplications()
134 .collect(Collectors.toSet()); in updateComplications()
DComplicationCollectionViewModel.java53 .collect(Collectors.toSet()); in convert()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataUtils.java118 .collect(Collectors.toSet()); in getNetworkCapabilitiesFromString()
412 .boxed().collect(Collectors.toSet()),
415 .boxed().collect(Collectors.toSet()),
417 .boxed().collect(Collectors.toSet())
427 .boxed().collect(Collectors.toSet()),
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DActionReceiverTest.kt67 val actions = actionsIterator()?.asSequence()?.toSet() ?: emptySet() in sameNotNull()
68 val categories = categoriesIterator()?.asSequence()?.toSet() ?: emptySet() in sameNotNull()
69 return (it.actionsIterator()?.asSequence()?.toSet() ?: emptySet()) == actions && in sameNotNull()
70 (it.categoriesIterator()?.asSequence()?.toSet() ?: emptySet()) == categories && in sameNotNull()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DAppListRepository.kt142 .toSet() in getSystemPackageNames()
163 loadAndFilterApps(userId = userId, isSystemApp = true).map { it.packageName }.toSet() in getSystemPackageNames()
202 .toSet() in getSystemPackageNames()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/stack/data/repository/
DHeadsUpNotificationsRepositoryExt.kt26 this.activeHeadsUpRows.value = notifications.toSet() in FakeHeadsUpNotificationRepository()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DAsmGenerator.java209 Arrays.stream(createInfo.getPromotedClasses()).collect(Collectors.toSet()); in AsmGenerator()
214 Arrays.stream(createInfo.getKeepClassNatives()).collect(Collectors.toSet()); in AsmGenerator()
217 … Arrays.stream(createInfo.getDelegateClassNativesToNatives()).collect(Collectors.toSet()); in AsmGenerator()
219 … mMethodReplacers = Arrays.stream(createInfo.getMethodReplacers()).collect(Collectors.toSet()); in AsmGenerator()
222 … Arrays.stream(createInfo.getDeferredStaticInitializerClasses()).collect(Collectors.toSet()); in AsmGenerator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/shared/model/
DSceneContainerConfig.kt65 check(navigationDistances.keys == sceneKeys.toSet()) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DTilesSettingConverter.kt17 .toSet()
/frameworks/base/core/java/android/os/
DSystemConfigManager.java209 return parcels.stream().map(SignedPackage::new).collect(Collectors.toSet()); in getEnhancedConfirmationTrustedPackages()
242 return parcels.stream().map(SignedPackage::new).collect(Collectors.toSet()); in getEnhancedConfirmationTrustedInstallers()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/data/repository/
DAccessibilityQsShortcutsRepository.kt142 .toSet() in getAccessibilityTileServices()
159 .toSet() in getAccessibilityTileServices()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTestUtils.java24 import static java.util.stream.Collectors.toSet;
128 .collect(toSet())) in assertLogcat()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/
DClockRegistryTest.kt198 list.toSet(), in pluginRegistration_CorrectState()
231 list.toSet(), in clockIdConflict_ErrorWithoutCrash_unloadDuplicate()
460 assertEquals(registry.getClocks().toSet(), setOf( in pluginAddRemove_concurrentModification()
551 list.toSet() in testTransitClockFlag()
559 list.toSet() in testTransitClockFlag()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DSystemEventCoordinator.kt158 return one.map { it.application.uid to it.privacyType.permGroupName }.toSet() == in uniqueItemsMatch()
159 two.map { it.application.uid to it.privacyType.permGroupName }.toSet() in uniqueItemsMatch()

123456