Home
last modified time | relevance | path

Searched refs:newHashSet (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DSparseArrayUtilsTest.java41 sparseArray.append(12, Sets.newHashSet("a", "b", "c")); in union_mergesSets()
42 sparseArray.append(45, Sets.newHashSet("d", "e")); in union_mergesSets()
43 sparseArray.append(46, Sets.newHashSet()); in union_mergesSets()
44 sparseArray.append(66, Sets.newHashSet("a", "e", "f")); in union_mergesSets()
47 Sets.newHashSet("a", "b", "c", "d", "e", "f")); in union_mergesSets()
54 assertThat(SparseArrayUtils.union(sparseArray)).isEqualTo(Sets.newHashSet()); in union_returnsEmptySetForEmptyList()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DWeaverBasedSyntheticPasswordTests.java37 assertEquals(Sets.newHashSet(), mPasswordSlotManager.getUsedSlots()); in testFrpWeaverSlotNotReused()
41 assertEquals(Sets.newHashSet(1), mPasswordSlotManager.getUsedSlots()); in testFrpWeaverSlotNotReused()
53 assertEquals(Sets.newHashSet(), mPasswordSlotManager.getUsedSlots()); in testFrpWeaverSlotReused()
57 assertEquals(Sets.newHashSet(0), mPasswordSlotManager.getUsedSlots()); in testFrpWeaverSlotReused()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/internal/
DLifecycleOperationStorageTest.java54 private static final Set<String> MULTIPLE_PKG = Sets.newHashSet(PKG_FOO);
55 private static final Set<String> MULTIPLE_PKGS_1 = Sets.newHashSet(PKG_FOO, PKG_BAR);
56 private static final Set<String> MULTIPLE_PKGS_2 = Sets.newHashSet(PKG_BAR, PKG_BAZ);
91 assertThat(typeWaitTokens).isEqualTo(Sets.newHashSet(TOKEN_1, TOKEN_2)); in testRegisterOperation_multipleOperations()
120 assertThat(tokensBar).isEqualTo(Sets.newHashSet(TOKEN_1, TOKEN_2)); in testRegisterOperationForPackages_multiplePackage()
192 return Sets.newHashSet(val); in only()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayApplier.java132 static final Set<String> SYSTEM_USER_CATEGORIES = Sets.newHashSet(
163 mTargetPackageToCategories.put(ANDROID_PACKAGE, Sets.newHashSet( in ThemeOverlayApplier()
169 Sets.newHashSet(OVERLAY_CATEGORY_ICON_SYSUI)); in ThemeOverlayApplier()
171 Sets.newHashSet(OVERLAY_CATEGORY_ICON_SETTINGS)); in ThemeOverlayApplier()
173 Sets.newHashSet(OVERLAY_CATEGORY_ICON_LAUNCHER)); in ThemeOverlayApplier()
175 Sets.newHashSet(OVERLAY_CATEGORY_ICON_THEME_PICKER)); in ThemeOverlayApplier()
/frameworks/base/core/java/com/google/android/collect/
DSets.java49 public static <K> HashSet<K> newHashSet() { in newHashSet() method in Sets
71 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() method in Sets
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/
DPhysicsAnimationLayoutTest.java70 mTestableController.setAnimatedProperties(Sets.newHashSet( in setUp()
74 mTestableController.setChainedProperties(Sets.newHashSet(DynamicAnimation.TRANSLATION_X)); in setUp()
113 mTestableController.setChainedProperties(Sets.newHashSet()); in testUpdateValueNotChained()
144 mTestableController.setChainedProperties(Sets.newHashSet()); in testSetEndActions()
188 mTestableController.setChainedProperties(Sets.newHashSet()); in testRemoveEndListeners()
233 secondController.setAnimatedProperties(Sets.newHashSet( in testSetController()
235 secondController.setChainedProperties(Sets.newHashSet( in testSetController()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DLifecycleOperationStorage.java93 registerOperationForPackages(token, initialState, Sets.newHashSet(), task, type); in registerOperation()
157 Set<Integer> result = Sets.newHashSet(); in operationTokensForPackage()
168 Set<Integer> tokens = Sets.newHashSet(); in operationTokensForOpType()
184 Set<Integer> tokens = Sets.newHashSet(); in operationTokensForOpState()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DProcessedPackagesJournalTest.java69 writePermanentJournalPackages(Sets.newHashSet(GOOGLE_PHOTOS, GMAIL)); in constructor_loadsAnyPreviousJournalFromDisk()
106 .isEqualTo(Sets.newHashSet(GOOGLE_PHOTOS, GMAIL)); in getPackagesCopy_returnsTheCurrentState()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListInterleaveFocusables.java33 private Set<Integer> mFocusablePositions = Sets.newHashSet(1, 3, 6);
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUserControllerTest.java46 import static com.google.android.collect.Sets.newHashSet;
180 private static final Set<Integer> START_FOREGROUND_USER_MESSAGE_CODES = newHashSet(
186 private static final Set<Integer> START_BACKGROUND_USER_MESSAGE_CODES = newHashSet(
651 assertEquals(newHashSet(SYSTEM_USER_ID, TEST_USER_ID, TEST_USER_ID1, TEST_USER_ID2), in testScheduleStopOfBackgroundUser_startInBackground()
655 assertEquals(newHashSet(SYSTEM_USER_ID, TEST_USER_ID1, TEST_USER_ID2), in testScheduleStopOfBackgroundUser_startInBackground()
659 assertEquals(newHashSet(SYSTEM_USER_ID, TEST_USER_ID2), in testScheduleStopOfBackgroundUser_startInBackground()
667 assertEquals(newHashSet(SYSTEM_USER_ID, TEST_USER_ID2, TEST_USER_ID3), in testScheduleStopOfBackgroundUser_startInBackground()
671 assertEquals(newHashSet(SYSTEM_USER_ID, TEST_USER_ID2), in testScheduleStopOfBackgroundUser_startInBackground()
826 assertEquals(newHashSet( in testStoppingExcessRunningUsersAfterSwitch_currentProfileNotStopped()
836 assertEquals(newHashSet( in testStoppingExcessRunningUsersAfterSwitch_currentProfileNotStopped()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
DThemeOverlayApplierTest.java92 Sets.newHashSet(TEST_USER_MANAGED_PROFILE);
209 Set<UserHandle> userHandles = Sets.newHashSet(TEST_USER_HANDLES); in allCategoriesSpecified_enabledForAllUserHandles()
226 Set<UserHandle> userHandles = Sets.newHashSet(TEST_USER_HANDLES); in enablesOverlays_onlyIfItExistsForUser()
/frameworks/base/packages/SettingsProvider/test/src/android/provider/
DSettingsBackupTest.java21 import static com.google.android.collect.Sets.newHashSet;
59 newHashSet(
638 newHashSet(
811 newHashSet(SystemSettings.SETTINGS_TO_BACKUP), in systemSettingsBackedUpOrDenied()
821 newHashSet(GlobalSettings.SETTINGS_TO_BACKUP), in globalSettingsBackedUpOrDenied()
835 newHashSet( in secureSettingsBackedUpOrDenied()
897 newHashSet( in getBackUpDenyListSystemSettings()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java742 systemSignature = Sets.newHashSet(
751 final HashSet<Signature> packageSignature = Sets.newHashSet(
/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/
DSignedConfigTest.java50 return Sets.newHashSet(values); in setOf()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java274 Set<String> packageNames = Sets.newHashSet(); in PerformFullTransportBackupTask()
869 Set<String> packages = Sets.newHashSet(packageName); in registerTask()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DExpandedAnimationController.java513 return Sets.newHashSet( in getAnimatedProperties()
DStackAnimationController.java667 return Sets.newHashSet( in getAnimatedProperties()
/frameworks/base/core/java/android/accounts/
DChooseTypeAndAccountActivity.java561 setOfRelevantAccountTypes = Sets.newHashSet(allowedAccountTypes); in getReleventAccountTypes()
/frameworks/base/services/core/java/com/android/server/ambientcontext/
DAmbientContextManagerService.java70 private static final Set<Integer> DEFAULT_EVENT_SET = Sets.newHashSet(
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java2460 Sets.newHashSet(DEVICE_OUT_HEARING_AID)) != null;
2487 DeviceInfo di = getFirstConnectedDeviceOfTypes(Sets.newHashSet(type));
3000 Sets.newHashSet(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP))) {
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java311 }, subDirectories == null ? null : Sets.newHashSet(subDirectories)); in MtpDatabase()
/frameworks/base/services/core/java/com/android/server/wm/
DRecentTasks.java705 final Set<String> packageNames = Sets.newHashSet(packages); in onPackagesSuspendedChanged()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java2541 return Sets.newHashSet(PACKAGE_MANAGER_SENTINEL); in dataChangedTargets()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java1201 HashSet<String> obsoleteAuthType = Sets.newHashSet(); in validateAccountsInternal()
/frameworks/base/boot/
Dboot-image-profile.txt22303 HSPLcom/google/android/collect/Sets;->newHashSet()Ljava/util/HashSet;
22304 HSPLcom/google/android/collect/Sets;->newHashSet([Ljava/lang/Object;)Ljava/util/HashSet;

12