/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/ |
H A D | VmsLayerAvailabilityTest.java | 28 import java.util.HashSet; 73 mOfferings = new HashSet<>(); in setUp() 117 new HashSet<>( in testChainOfDependenciesSatisfied() 141 new HashSet<>( in testChainOfDependenciesSatisfiedTwoOfferings() 155 new HashSet<>( in testChainOfDependenciesNotSatisfied() 175 new HashSet<>( in testOneOfMultipleDependencySatisfied() 184 new HashSet<>( in testCyclicDependency() 192 new HashSet<>( in testCyclicDependency() 225 new HashSet<>( in testCyclicDependencyAndLayerWithoutDependency() 237 new HashSet<>( in testCyclicDependencyAndLayerWithoutDependency() [all …]
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
H A D | ImsResolverTest.java | 72 import java.util.HashSet; 147 HashSet<String> features = new HashSet<>(); in testAddDevicePackageToCache() 173 HashSet<String> features = new HashSet<>(); in testAddCarrierPackageToCache() 203 HashSet<String> features = new HashSet<>(); in testIsDeviceImsServiceConfigured() 236 HashSet<String> features = new HashSet<>(); in testGetConfiguredImsServiceDevice() 297 HashSet<String> features = new HashSet<>(); in testGetConfiguredImsServiceNoDeviceConfig() 330 HashSet<String> features = new HashSet<>(); in testGetConfiguredImsServiceCarrier() 375 HashSet<String> features = new HashSet<>(); in testGetConfiguredImsServiceCarrierDevice() 413 HashSet<ImsFeatureConfiguration.FeatureSlotPair> features = new HashSet<>(); in testCarrierPackageBind() 550 HashSet<ImsFeatureConfiguration.FeatureSlotPair> features = new HashSet<>(); in testCarrierPackageBindWithEmergencyCalling() [all …]
|
H A D | ImsServiceControllerTest.java | 67 import java.util.HashSet; 168 HashSet<ImsFeatureConfiguration.FeatureSlotPair> testFeatures = new HashSet<>(); in testBindService() 192 HashSet<ImsFeatureConfiguration.FeatureSlotPair> testFeatures = new HashSet<>(); in testBindFailureWhenBound() 210 HashSet<ImsFeatureConfiguration.FeatureSlotPair> testFeatures = new HashSet<>(); in testBindServiceAndConnected() 238 HashSet<ImsFeatureConfiguration.FeatureSlotPair> testFeatures = new HashSet<>(); in testBindServiceSipDelegateCapability() 270 HashSet<ImsFeatureConfiguration.FeatureSlotPair> testFeatures = new HashSet<>(); in testBindServiceSipDelegateCapabilityLost() 294 HashSet<ImsFeatureConfiguration.FeatureSlotPair> testFeatures = new HashSet<>(); in testBindEmergencyMmTel() 321 HashSet<ImsFeatureConfiguration.FeatureSlotPair> testFeatures = new HashSet<>(); in testBindEmergencyMmTelButNotMmTel() 355 HashSet<ImsFeatureConfiguration.FeatureSlotPair> testFeatures = new HashSet<>(); in testCallbacksHappenWhenAddedAfterBind() 374 HashSet<ImsFeatureConfiguration.FeatureSlotPair> testFeatures = new HashSet<>(); in testBindServiceAndConnectedDisconnected() [all …]
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/ |
H A D | InputMethodAndSubtypeUtilCompatTest.java | 34 import java.util.HashSet; 39 private static final HashSet<String> EMPTY_STRING_SET = new HashSet<>(); 41 private static HashSet<String> asHashSet(String... strings) { in asHashSet() 42 return new HashSet<>(Arrays.asList(strings)); in asHashSet() 55 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_SingleImeNoSubtype() 62 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_MultipleImesNoSubtype() 69 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_SingleImeSingleSubtype() 76 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_SingleImeDuplicateSameSubtypes() 84 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_SingleImeMultipleSubtypes() 107 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_MixedImeSubtypePairsAndImeNoSubtype() [all …]
|
H A D | InputMethodAndSubtypeUtilTest.java | 34 import java.util.HashSet; 39 private static final HashSet<String> EMPTY_STRING_SET = new HashSet<>(); 41 private static HashSet<String> asHashSet(String... strings) { in asHashSet() 42 return new HashSet<>(Arrays.asList(strings)); in asHashSet() 53 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_SingleImeNoSubtype() 60 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_MultipleImesNoSubtype() 67 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_SingleImeSingleSubtype() 74 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_SingleImeDuplicateSameSubtypes() 82 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_SingleImeMultipleSubtypes() 105 HashMap<String, HashSet<String>> r = in parseInputMethodsAndSubtypesString_MixedImeSubtypePairsAndImeNoSubtype() [all …]
|
/aosp12/packages/apps/StorageManager/tests/unit/src/com/android/storagemanager/deletionhelper/ |
H A D | PackageDeletionTaskTest.java | 30 import java.util.HashSet; 39 mDeletedApps = new HashSet<String>(); in setUp() 44 runTask(new HashSet<String>(), false); in testDeleteNoApps() 49 HashSet<String> appsToDelete = new HashSet<String>(); in testDeleteOneApp() 56 HashSet<String> appsToDelete = new HashSet<String>(); in testDeleteManyApps() 64 HashSet<String> appsToDelete = new HashSet<String>(); in testDeleteFails() 70 private void runTask(HashSet<String> appsToDelete, boolean shouldFail) { in runTask() 102 public VerifierCallback(HashSet<String> expectedDeletedApps, boolean shouldFail) { in VerifierCallback()
|
/aosp12/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
H A D | ProgramInfoCacheTest.java | 31 import java.util.HashSet; 105 new HashSet<ProgramSelector.Identifier>(), true, false)); in testEmptyFilter() 113 HashSet<Integer> filterTypes = new HashSet<>(); in testFilterByType() 117 new HashSet<ProgramSelector.Identifier>(), true, false)); in testFilterByType() 124 HashSet<ProgramSelector.Identifier> filterIds = new HashSet<>(); in testFilterByIdentifier() 136 new HashSet<ProgramSelector.Identifier>(), false, false)); in testFilterExcludeCategories() 194 new HashSet<ProgramSelector.Identifier>(), true, true), true, mAmFmInfo, mRdsInfo, in testDeltaUpdateChunksModificationsExcluded() 251 HashSet<RadioManager.ProgramInfo> expectedSet = new HashSet<>(); in verifyChunkListModified() 256 HashSet<RadioManager.ProgramInfo> actualSet = new HashSet<>(); in verifyChunkListModified() 277 HashSet<ProgramSelector.Identifier> expectedSet = new HashSet<>(); in verifyChunkListRemoved() [all …]
|
H A D | StartProgramListUpdatesFanoutTest.java | 50 import java.util.HashSet; 117 ProgramList.Filter aidlFilter = new ProgramList.Filter(new HashSet<Integer>(), in testFanout() 118 new HashSet<ProgramSelector.Identifier>(), true, false); in testFanout() 157 ProgramList.Filter idFilter = new ProgramList.Filter(new HashSet<Integer>(), in testFiltering() 160 new HashSet<ProgramSelector.Identifier>(), false, true); in testFiltering() 163 new HashSet<ProgramSelector.Identifier>(), true, true); in testFiltering() 166 new HashSet<ProgramSelector.Identifier>(), true, false); in testFiltering() 218 ProgramList.Filter idFilter = new ProgramList.Filter(new HashSet<Integer>(), in testClientClosing() 223 new HashSet<ProgramSelector.Identifier>(), true, false); in testClientClosing() 311 HashSet<RadioManager.ProgramInfo> modifiedSet = new HashSet<>(); in verifyAidlClientReceivedChunk() [all …]
|
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/ |
H A D | ContactAggregatorHelperTest.java | 28 import java.util.HashSet; 47 Set<Set<Long>> connectedRawContactSets = new HashSet<>(); in testMergeComponentsWithDisjointAccounts() 50 Set<Long> rawContactSet = new HashSet<>(); in testMergeComponentsWithDisjointAccounts() 82 Set<Long> rawContactSet1 = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2() 85 Set<Long> rawContactSet2 = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2() 89 Set<Long> rawContactSet3 = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2() 109 Set<Long> rawContactIdSet = new HashSet<>(); in testFindConnectedRawContacts() 134 Set<Set<Long>> expected = new HashSet<>(); in testFindConnectedRawContacts() 135 Set<Long> result1 = new HashSet<>(); in testFindConnectedRawContacts() 137 Set<Long> result2 = new HashSet<>(); in testFindConnectedRawContacts() [all …]
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
H A D | PasspointEventHandlerTest.java | 38 import java.util.HashSet; 76 HashSet<Integer> expAnqpIds = in requestR1AnqpElement() 77 new HashSet<>(Arrays.asList(Constants.getANQPElementID( in requestR1AnqpElement() 79 HashSet<Integer> expHs20Subtypes = new HashSet<>(); in requestR1AnqpElement() 99 HashSet<Integer> expAnqpIds = new HashSet<>(); in requestR2AnqpElement() 100 HashSet<Integer> expHs20Subtypes = in requestR2AnqpElement() 101 new HashSet<>(Arrays.asList(Constants.getHS20ElementID( in requestR2AnqpElement() 123 HashSet<Integer> expAnqpIds = in requestMixAnqpElements() 124 new HashSet<>(Arrays.asList(Constants.getANQPElementID( in requestMixAnqpElements() 126 HashSet<Integer> expHs20Subtypes = in requestMixAnqpElements() [all …]
|
/aosp12/art/libartbase/base/ |
H A D | hash_set.h | 171 class HashSet { 195 HashSet() : HashSet(kDefaultMinLoadFactor, kDefaultMaxLoadFactor) {} in HashSet() function 204 HashSet(const HashFn& hashfn, in HashSet() function 207 HashSet(const HashFn& hashfn, in HashSet() function 212 HashSet(double min_load_factor, in HashSet() function 237 HashSet(const HashSet& other) noexcept in HashSet() function 257 HashSet(HashSet&& other) noexcept in HashSet() function 353 ~HashSet() { in ~HashSet() 357 HashSet& operator=(HashSet&& other) noexcept { 362 HashSet& operator=(const HashSet& other) noexcept { [all …]
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
H A D | PduCache.java | 28 import java.util.HashSet; 74 private final SparseArray<HashSet<Uri>> mMessageBoxes; 76 private final HashSet<Uri> mUpdating; 79 mMessageBoxes = new SparseArray<HashSet<Uri>>(); in PduCache() 80 mThreads = new SimpleArrayMap<Long, HashSet<Uri>>(); in PduCache() 81 mUpdating = new HashSet<Uri>(); in PduCache() 97 HashSet<Uri> msgBox = mMessageBoxes.get(msgBoxId); in put() 99 msgBox = new HashSet<Uri>(); in put() 104 HashSet<Uri> thread = mThreads.get(threadId); in put() 106 thread = new HashSet<Uri>(); in put() [all …]
|
/aosp12/frameworks/base/telephony/common/com/google/android/mms/util/ |
H A D | PduCache.java | 28 import java.util.HashSet; 76 private final HashMap<Long, HashSet<Uri>> mThreads; 77 private final HashSet<Uri> mUpdating; 81 mMessageBoxes = new HashMap<Integer, HashSet<Uri>>(); in PduCache() 82 mThreads = new HashMap<Long, HashSet<Uri>>(); in PduCache() 83 mUpdating = new HashSet<Uri>(); in PduCache() 100 HashSet<Uri> msgBox = mMessageBoxes.get(msgBoxId); in put() 102 msgBox = new HashSet<Uri>(); in put() 107 HashSet<Uri> thread = mThreads.get(threadId); in put() 109 thread = new HashSet<Uri>(); in put() [all …]
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/ |
H A D | CoexUtilsTest.java | 45 import java.util.HashSet; 94 HashSet<CoexUnsafeChannel> lowerCoexUnsafeChannels = new HashSet<>(); in testGetNeighboringCoexUnsafeChannels_2g_returnsCorrectOverlap() 103 HashSet<CoexUnsafeChannel> upperCoexUnsafeChannels = new HashSet<>(); in testGetNeighboringCoexUnsafeChannels_2g_returnsCorrectOverlap() 119 HashSet<CoexUnsafeChannel> lowerCoexUnsafeChannels = new HashSet<>(); in testGetNeighboringCoexUnsafeChannels_5g_returnsCorrectOverlap() 136 HashSet<CoexUnsafeChannel> upperCoexUnsafeChannels = new HashSet<>(); in testGetNeighboringCoexUnsafeChannels_5g_returnsCorrectOverlap() 208 HashSet<CoexUnsafeChannel> lowerCoexUnsafeChannels = new HashSet<>(); in testGet2gHarmonicUnsafeChannels_exampleInputs_returnsCorrectOverlap() 222 HashSet<CoexUnsafeChannel> upperCoexUnsafeChannels = new HashSet<>(); in testGet2gHarmonicUnsafeChannels_exampleInputs_returnsCorrectOverlap() 236 HashSet<CoexUnsafeChannel> middleCoexUnsafeChannels = new HashSet<>(); in testGet2gHarmonicUnsafeChannels_exampleInputs_returnsCorrectOverlap() 275 HashSet<CoexUnsafeChannel> lowerCoexUnsafeChannels = new HashSet<>(); in testGet5gHarmonicCoexUnsafeChannels_exampleInputs_returnsCorrectOverlap() 290 HashSet<CoexUnsafeChannel> upperCoexUnsafeChannels = new HashSet<>(); in testGet5gHarmonicCoexUnsafeChannels_exampleInputs_returnsCorrectOverlap() [all …]
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/ |
H A D | EAPMethodTest.java | 33 import java.util.HashSet; 52 private static final Set<AuthParam> TEST_DATA1_CREDENTIAL_TYPE_PARAMS = new HashSet<>(); 54 new HashSet<>(); 94 private static final Set<AuthParam> TEST_DATA2_EXPANDED_EAP_METHOD_PARAMS = new HashSet<>(); 95 private static final Set<AuthParam> TEST_DATA2_NON_EAP_INNER_AUTH_PARAMS = new HashSet<>(); 96 private static final Set<AuthParam> TEST_DATA2_INNER_AUTH_EAP_PARAMS = new HashSet<>(); 97 private static final Set<AuthParam> TEST_DATA2_EXPANDED_INNER_EAP_PARAMS = new HashSet<>(); 98 private static final Set<AuthParam> TEST_DATA2_CREDENTIAL_TYPE_PARAMS = new HashSet<>(); 100 new HashSet<>(); 101 private static final Set<AuthParam> TEST_DATA2_VENDOR_SPECIFIC_PARAMS = new HashSet<>();
|
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | SparseArrayUtils.java | 21 import java.util.HashSet; 38 public static<V> HashSet<V> union(SparseArray<HashSet<V>> sets) { in union() 39 HashSet<V> unionSet = new HashSet<>(); in union() 42 HashSet<V> ithSet = sets.valueAt(i); in union()
|
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
H A D | ButtonSelectionStateController.java | 39 import java.util.HashSet; 57 private final Set<CarSystemBarButton> mRegisteredViews = new HashSet<>(); 62 protected HashSet<CarSystemBarButton> mSelectedButtons; 68 mSelectedButtons = new HashSet<>(); in ButtonSelectionStateController() 138 HashSet<CarSystemBarButton> selectedButtons = findSelectedButtons(validTaskInfo); in taskChanged() 183 private HashSet<CarSystemBarButton> findSelectedButtons(RootTaskInfo validTaskInfo) { in findSelectedButtons() 208 HashSet<CarSystemBarButton> selectedButtons = in findSelectedButtons() 223 private HashSet<CarSystemBarButton> findButtonsByComponentName( in findButtonsByComponentName() 225 HashSet<CarSystemBarButton> buttons = in findButtonsByComponentName() 251 private static class ButtonMap extends HashMap<String, HashSet<CarSystemBarButton>> { [all …]
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
H A D | InputMethodAndSubtypeUtil.java | 41 import java.util.HashSet; 66 final HashMap<String, HashSet<String>> imeToSubtypesMap) { in buildInputMethodsAndSubtypesString() 72 final HashSet<String> subtypeIdSet = imeToSubtypesMap.get(imi); in buildInputMethodsAndSubtypesString() 110 static HashMap<String, HashSet<String>> getEnabledInputMethodsAndSubtypeList( in getEnabledInputMethodsAndSubtypeList() 122 final HashMap<String, HashSet<String>> subtypesMap = new HashMap<>(); in parseInputMethodsAndSubtypesString() 131 final HashSet<String> subtypeIdSet = new HashSet<>(); in parseInputMethodsAndSubtypesString() 144 HashSet<String> set = new HashSet<>(); in getDisabledSystemIMEs() 163 final HashMap<String, HashSet<String>> enabledIMEsAndSubtypesMap = in saveInputMethodSubtypeList() 186 enabledIMEsAndSubtypesMap.put(imiId, new HashSet<>()); in saveInputMethodSubtypeList() 292 final HashMap<String, HashSet<String>> enabledSubtypes = in loadInputMethodSubtypeList() [all …]
|
H A D | InputMethodAndSubtypeUtilCompat.java | 41 import java.util.HashSet; 66 final HashMap<String, HashSet<String>> imeToSubtypesMap) { in buildInputMethodsAndSubtypesString() 72 final HashSet<String> subtypeIdSet = imeToSubtypesMap.get(imi); in buildInputMethodsAndSubtypesString() 110 static HashMap<String, HashSet<String>> getEnabledInputMethodsAndSubtypeList( in getEnabledInputMethodsAndSubtypeList() 122 final HashMap<String, HashSet<String>> subtypesMap = new HashMap<>(); in parseInputMethodsAndSubtypesString() 131 final HashSet<String> subtypeIdSet = new HashSet<>(); in parseInputMethodsAndSubtypesString() 144 HashSet<String> set = new HashSet<>(); in getDisabledSystemIMEs() 163 final HashMap<String, HashSet<String>> enabledIMEsAndSubtypesMap = in saveInputMethodSubtypeList() 186 enabledIMEsAndSubtypesMap.put(imiId, new HashSet<>()); in saveInputMethodSubtypeList() 292 final HashMap<String, HashSet<String>> enabledSubtypes = in loadInputMethodSubtypeList() [all …]
|
/aosp12/frameworks/base/core/java/com/google/android/collect/ |
H A D | Sets.java | 25 import java.util.HashSet; 48 public static <K> HashSet<K> newHashSet() { in newHashSet() 49 return new HashSet<K>(); in newHashSet() 70 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() 72 HashSet<E> set = new HashSet<E>(capacity); in newHashSet()
|
/aosp12/art/test/1911-get-local-var-table/src/art/ |
H A D | Test1911.java | 24 import java.util.HashSet; 112 new HashSet<>(Arrays.asList( 117 new HashSet<>(Arrays.asList( 125 new HashSet<>(Arrays.asList( 128 new HashSet<>(Arrays.asList( 134 new HashSet<>(Arrays.asList( 151 new HashSet<>(Arrays.asList( 194 new HashSet<>(Arrays.asList(Locals.GetLocalVariableTable(m))); in CheckLocalVariableTable()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | MemoryCacheManager.java | 21 import java.util.HashSet; 28 private final HashSet<MemoryCache> mMemoryCaches = new HashSet<MemoryCache>(); 67 final HashSet<MemoryCache> shallowCopy; in reclaimMemory() 69 shallowCopy = (HashSet<MemoryCache>) mMemoryCaches.clone(); in reclaimMemory()
|
/aosp12/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | Config.java | 25 import java.util.HashSet; 78 private HashSet<String> mDefaultCorpora; 79 private HashSet<String> mHiddenCorpora; 80 private HashSet<String> mDefaultCorporaSuggestUris; 101 private HashSet<String> loadResourceStringSet(int res) { in loadResourceStringSet() 102 HashSet<String> set = new HashSet<String>(); in loadResourceStringSet()
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | CarFeatureController.java | 49 import java.util.HashSet; 62 private static final HashSet<String> MANDATORY_FEATURES = new HashSet<>(Arrays.asList( 89 private static final HashSet<String> OPTIONAL_FEATURES = new HashSet<>(Arrays.asList( 104 private static final HashSet<String> NON_USER_ONLY_FEATURES = new HashSet<>(Arrays.asList( 122 private final HashSet<String> mEnabledFeatures; 144 private HashSet<String> mAvailableExperimentalFeatures = new HashSet<>(); 157 mEnabledFeatures = new HashSet<>(MANDATORY_FEATURES); in CarFeatureController() 425 private void persistToFeatureConfigFile(HashSet<String> features) { in persistToFeatureConfigFile() 460 HashSet<String> featuresToPersist = new HashSet<>(mEnabledFeatures); in dispatchDefaultConfigUpdate()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/ |
H A D | PeopleBackupHelperTest.java | 56 import java.util.HashSet; 78 private static final Set<String> WIDGET_IDS = new HashSet<>( 259 assertThat(mBackupSp.getStringSet(URI_STRING, new HashSet<>())) in testBackupKey_contactUriKey_ignoresExistingWidgets() 270 assertThat(mBackupSp.getStringSet(URI_STRING, new HashSet<>())) in testBackupKey_contactUriKey_ignoresExistingWidgets_otherWidget() 291 assertThat(mBackupSp.getStringSet(URI_STRING, new HashSet<>())) in testBackupKey_contactUriKey_sameUserId() 439 assertThat(mSp.getStringSet(URI_STRING, new HashSet<>())) in testRestoreKey_contactUriKey_noUserIdInUri() 455 assertThat(mSp.getStringSet(URI_WITH_USER_ID_0, new HashSet<>())) in testRestoreKey_contactUriKey_sameUserInUri() 457 assertThat(mSp.getStringSet(URI_STRING, new HashSet<>())).isEmpty(); in testRestoreKey_contactUriKey_sameUserInUri() 472 assertThat(mSp.getStringSet(URI_WITH_USER_ID_10, new HashSet<>())) in testRestoreKey_contactUriKey_differentUserInUri() 474 assertThat(mSp.getStringSet(URI_STRING, new HashSet<>())).isEmpty(); in testRestoreKey_contactUriKey_differentUserInUri() [all …]
|