Home
last modified time | relevance | path

Searched refs:emptySet (Results 1 – 25 of 187) sorted by relevance

12345678

/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/vms/
H A DVmsClientTest.java75 new VmsSubscriptionState(0, emptySet(), emptySet());
222 emptySet()); in testSetSubscriptions()
241 emptySet()); in testSetSubscriptions_MultipleClients()
260 emptySet()); in testSetSubscriptions_OverwriteSubscription()
282 emptySet()); in testSetSubscriptions_OverwriteSubscription_MultipleClients()
298 emptySet(), in testSetSubscriptions_RemoveSubscription()
432 emptySet(), in testSetSubscriptions_LayerAndProvider()
451 emptySet(), in testSetSubscriptions_LayerAndProvider_MultipleClients()
470 emptySet(), in testSetSubscriptions_LayerAndProvider_OverwriteSubscription()
492 emptySet(), in testSetSubscriptions_LayerAndProvider_OverwriteSubscription_MultipleClients()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/
H A DSignedConfigTest.java24 import static java.util.Collections.emptySet;
80 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigNoMinSdk()
91 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigNoMaxSdk()
102 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigNoValues()
113 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigSdkNullMinSdk()
124 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigSdkNullMaxSdk()
135 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigNullValues()
252 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigValuesInvalid()
263 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigConfigEntryInvalid()
291 SignedConfig.parse("{\"config\": []}", emptySet(), emptyMap()); in testParseNoVersion()
[all …]
/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
H A DMessageTransportWrapperTest.java132 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testRegistrationStateChanged()
153 callIdConsumer.accept(Collections.emptySet()); in testCloseGracefully()
170 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testCloseGracefullyForceCloseCallIds()
195 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testClose()
210 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testDelegateConnectionSendOutgoingMessage()
235 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testDelegateConnectionNotifyMessageReceived()
245 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testDelegateConnectionNotifyMessageReceiveError()
257 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testDelegateConnectionCloseSession()
267 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testDelegateOnMessageReceived()
291 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testDelegateOnMessageSent()
[all …]
H A DSipDelegateControllerTest.java96 Collections.emptySet()); in testCreateDelegate()
100 Collections.emptySet() /*denied tags*/); in testCreateDelegate()
109 Collections.emptySet()); in testCreateDelegate()
111 Collections.emptySet()); in testCreateDelegate()
150 Collections.emptySet()); in testCreateDelegateTransportDied()
165 Collections.emptySet()); in testDestroyDelegate()
194 Collections.emptySet()); in testDestroyDelegateForce()
222 Collections.emptySet()); in testChangeSupportedFeatures()
228 newFts, Collections.emptySet()); in testChangeSupportedFeatures()
250 Collections.emptySet()); in testChangeSupportedFeatures()
[all …]
H A DSipTransportControllerTest.java416 Collections.emptySet()); in createTwoAndTriggerRoleChange()
433 Collections.emptySet()); in createTwoAndTriggerRoleChange()
496 Collections.emptySet()); in createTwoAndDestroyOlder()
545 Collections.emptySet(), 0); in testThrottling()
660 Collections.emptySet(), 0); in testTimingSubIdChangedAndCreateNewSubId()
677 Collections.emptySet()); in testTimingSubIdChangedAndCreateNewSubId()
685 Collections.emptySet(), 0); in testTimingSubIdChangedAndCreateNewSubId()
702 Collections.emptySet()); in testFeatureTagsDeniedByConfig()
724 Collections.emptySet()); in testFeatureTagsDeniedByOverride()
745 requestTags, Collections.emptySet()); in testFeatureTagsDeniedByConfigAllowedByOverride()
[all …]
H A DTransportSipMessageValidatorTest.java101 tracker.onTransportOpened(Collections.emptySet(), Collections.emptySet()); in testTransportOpening()
102 verify(mOutgoingStateValidator).open(Collections.emptySet(), Collections.emptySet()); in testTransportOpening()
200 doReturn(Collections.emptySet()).when(mSipSessionTracker).getTrackedDialogs(); in testTransportClosingGracefullyNoPendingSessions()
348 doReturn(Collections.emptySet()).when(mSipSessionTracker) in setRegStateChangedNoPendingCallIds()
357 verify(mOutgoingStateValidator, times(2)).restrictFeatureTags(Collections.emptySet()); in setRegStateChangedNoPendingCallIds()
432 doReturn(Collections.emptySet()).when(mSipSessionTracker) in setRegStateChangedPendingCallIdsResolved()
487 assertEquals(Collections.emptySet(), pendingCallIds); in setRegStateRegThenClose()
519 tracker.onTransportOpened(Collections.emptySet(), Collections.emptySet()); in openTransport()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
H A DVmsBrokerServiceTest.java96 new VmsSubscriptionState(0, emptySet(), emptySet());
353 emptySet()); in testSetSubscriptions()
371 emptySet()); in testSetSubscriptions_MultipleClients()
425 emptySet(), in testSetSubscriptions_RemoveSubscription()
596 emptySet(), in testSetSubscriptions_LayerAndProvider()
614 emptySet(), in testSetSubscriptions_LayerAndProvider_MultipleClients()
632 emptySet(), in testSetSubscriptions_LayerAndProvider_OverwriteSubscription()
654 emptySet(), in testSetSubscriptions_LayerAndProvider_OverwriteSubscription_MultipleClients()
679 emptySet(), in testSetSubscriptions_LayerAndProvider_OverwriteSubscription_MultipleClients_SameLayer()
702 emptySet(), in testSetSubscriptions_LayerAndProvider_OverwriteSubscription_MultipleClients_SameLayerAndProvider()
[all …]
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/
H A DVmsPublisherSubscriberTest.java105 assertEquals(Collections.emptySet(), availableLayers.getAssociatedLayers()); in testLayerAvailability_Default()
113 new VmsLayerDependency(SUBSCRIPTION_LAYER, Collections.emptySet())), publisherId)); in testLayerAvailability()
123 new VmsLayerDependency(SUBSCRIPTION_LAYER, Collections.emptySet())), publisherId)); in testLayerAvailability_Overwrite()
125 new VmsLayerDependency(SUBSCRIPTION_LAYER_OTHER, Collections.emptySet())), in testLayerAvailability_Overwrite()
154 new VmsLayerDependency(SUBSCRIPTION_LAYER_OTHER, Collections.emptySet())), in testLayerAvailability_MultiplePublishers_MultipleLayers()
172 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.emptySet(), publisherId2)); in testLayerAvailability_MultiplePublishers_Remove()
188 new VmsLayerDependency(SUBSCRIPTION_LAYER_OTHER, Collections.emptySet())), in testLayerAvailability_MultiplePublishers_Overwrite()
337 assertSubscriptionState(2, Collections.emptySet(), Collections.emptySet()); in testUnsubscribe()
498 assertSubscriptionState(2, Collections.emptySet(), Collections.emptySet()); in testUnsubscribeToPublisher()
571 Collections.emptySet()); in assertSubscriptionState()
[all …]
/aosp12/packages/services/Car/tests/carservice_unit_test/src/android/car/vms/
H A DVmsSubscriptionHelperTest.java23 import static java.util.Collections.emptySet;
58 assertSubscriptions(new VmsAssociatedLayer(LAYER1, emptySet())); in testSubscribe_SingleLayer()
67 assertSubscriptions(new VmsAssociatedLayer(LAYER1, emptySet())); in testSubscribe_SingleLayer_IgnoreDuplicates()
81 assertSubscriptions(new VmsAssociatedLayer(LAYER1, emptySet())); in testSubscribe_SingleLayer_RetryAfterException()
99 assertSubscriptions(new VmsAssociatedLayer(LAYER1, emptySet())); in testUnsubscribe_SingleLayer_IgnoreUnknown()
125 new VmsAssociatedLayer(LAYER1, emptySet()), in testSubscribe_MultipleLayers()
126 new VmsAssociatedLayer(LAYER2, emptySet()), in testSubscribe_MultipleLayers()
127 new VmsAssociatedLayer(LAYER3, emptySet())); in testSubscribe_MultipleLayers()
139 new VmsAssociatedLayer(LAYER1, emptySet()), in testUnsubscribe_MultipleLayers()
140 new VmsAssociatedLayer(LAYER3, emptySet())); in testUnsubscribe_MultipleLayers()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
H A DVmsHalServiceTest.java110 new VmsAvailableLayers(Collections.emptySet(), 0)); in initHalService()
162 new VmsAvailableLayers(Collections.emptySet(), 0)); in testCoreId_IntegerOverflow()
501 new VmsAvailableLayers(Collections.emptySet(), 123)); in testHandleAvailabilityRequestEvent_ZeroLayers()
548 Collections.emptySet()), in testHandleAvailabilityRequestEvent_MultipleLayers()
587 new VmsAvailableLayers(Collections.emptySet(), 5)); in testHandleStartSessionEvent()
674 Collections.emptySet()), in testOnLayersAvailabilityChanged_MultipleLayers()
737 new VmsSubscriptionState(123, Collections.emptySet(), Collections.emptySet())); in testHandleSubscriptionsRequestEvent_ZeroLayers()
759 Collections.emptySet())); in testHandleSubscriptionsRequestEvent_OneLayer_ZeroAssociatedLayers()
869 new VmsSubscriptionState(123, Collections.emptySet(), Collections.emptySet())); in testOnVmsSubscriptionChange_ZeroLayers()
887 Collections.emptySet())); in testOnVmsSubscriptionChange_OneLayer_ZeroAssociatedLayers()
[all …]
/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/validator/
H A DOutgoingTransportStateValidatorTest.java71 validator.open(Collections.singleton("+tag"), Collections.emptySet()); in testVerifyMessageInOpenCloseState()
72 validator.restrictFeatureTags(Collections.emptySet()); in testVerifyMessageInOpenCloseState()
138 validator.open(Collections.emptySet(), Collections.singleton("+tag")); in testDeniedFeatureTag()
139 validator.restrictFeatureTags(Collections.emptySet()); in testDeniedFeatureTag()
156 validator.open(Collections.singleton("+tag"), Collections.emptySet()); in testRestrictedFeatureTag()
176 validator.open(Collections.emptySet(), Collections.emptySet()); in testNoSupportedFeatureTag()
177 validator.restrictFeatureTags(Collections.emptySet()); in testNoSupportedFeatureTag()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/compat/overrides/
H A DAppCompatOverridesParserTest.java24 import static java.util.Collections.emptySet;
81 assertThat(mParser.parseRemoveOverrides("*", /* ownedChangeIds= */ emptySet())).isEmpty(); in parseRemoveOverrides_configHasWildcardNoOwnedChangeIds_returnsEmpty()
111 PACKAGE_1 + "=12:34", /* ownedChangeIds= */ emptySet()); in parseRemoveOverrides_configHasSingleEntry_returnsPackageToChangeIds()
134 PACKAGE_1 + "=*," + PACKAGE_2 + "=12", /* ownedChangeIds= */ emptySet()); in parseRemoveOverrides_configHasPackageWithWildcardNoOwnedId_returnsWithoutPackage()
153 + "=34L", /* ownedChangeIds= */ emptySet()); in parseRemoveOverrides_configHasInvalidChangeIds_returnsWithoutInvalidChangeIds()
186 /* configStr= */ "", /* versionCode= */ 0, /* changeIdsToSkip= */ emptySet()); in parsePackageOverrides_emptyConfigNoOwnedChangeIds_returnsEmpty()
195 emptySet()); in parsePackageOverrides_configWithSingleOverride_returnsOverride()
208 5, /* changeIdsToSkip= */ emptySet()); in parsePackageOverrides_configWithMultipleOverrides_returnsOverrides()
254 /* versionCode= */ 5, /* changeIdsToSkip= */ emptySet()); in parsePackageOverrides_someOverridesAreInvalid_returnsWithoutInvalidOverrides()
/aosp12/packages/apps/TV/src/com/android/tv/util/
H A DMultiLongSparseArray.java92 private void cacheEmptySet(Set<T> emptySet) { in cacheEmptySet() argument
94 mEmptySets[++mEmptyIndex] = emptySet; in cacheEmptySet()
102 Set<T> emptySet = mEmptySets[mEmptyIndex]; in getEmptySet() local
104 return emptySet; in getEmptySet()
/aosp12/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
H A DSettingsBackupAgentTest.java106 Collections.emptySet(), in testRoundTripDeviceSpecificSettings()
107 Collections.emptySet()); in testRoundTripDeviceSpecificSettings()
125 Collections.emptySet(), in testRoundTripDeviceSpecificSettingsWithBlock()
126 Collections.emptySet()); in testRoundTripDeviceSpecificSettingsWithBlock()
192 Collections.emptySet(), in checkAcceptTestFailingBlockRestore()
193 Collections.emptySet())); in checkAcceptTestFailingBlockRestore()
209 Collections.emptySet(), /* blockedSettingsArrayId */ 0, Collections.emptySet(), in testOnRestore_preservedSettingsAreNotRestored()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DCollectionUtils.java19 import static java.util.Collections.emptySet;
79 if (set == null || set.size() == 0) return emptySet(); in filter()
135 if (isEmpty(cur)) return emptySet(); in map()
194 return cur == null ? emptySet() : cur; in emptyIfNull()
337 return cur != null ? cur : emptySet(); in addAll()
339 if (cur == null || cur == emptySet()) { in addAll()
350 if (cur == null || cur == emptySet()) { in add()
402 return isEmpty(cur) ? emptySet() : new ArraySet<>(cur); in copyOf()
409 return isEmpty(cur) ? emptySet() : new ArraySet<>(cur); in toSet()
/aosp12/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/visibilitystore/
H A DVisibleToPackagesMap.java72 return Collections.emptySet(); in getAccessiblePackages()
77 return Collections.emptySet(); in getAccessiblePackages()
81 return Collections.emptySet(); in getAccessiblePackages()
/aosp12/frameworks/base/core/java/android/hardware/radio/
H A DProgramList.java267 mIdentifierTypes = Collections.emptySet(); in Filter()
268 mIdentifiers = Collections.emptySet(); in Filter()
278 mIdentifierTypes = Collections.emptySet(); in Filter()
279 mIdentifiers = Collections.emptySet(); in Filter()
418 mModified = (modified != null) ? modified : Collections.emptySet(); in Chunk()
419 mRemoved = (removed != null) ? removed : Collections.emptySet(); in Chunk()
/aosp12/packages/services/Car/service/src/com/android/car/vms/
H A DVmsClientInfo.java58 private Set<VmsLayer> mLayerSubscriptions = Collections.emptySet();
139 return mPotentialOfferings.get(providerId, Collections.emptySet()).contains(layer); in hasOffering()
179 || mLayerAndProviderSubscriptions.getOrDefault(layer, Collections.emptySet()) in isSubscribed()
202 providerId, Collections.emptySet())) { in dump()
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/
H A DSharedPreferenceUtil.java206 .getStringSet(PREFERENCE_KEY_IMPORTED_SIM_CARDS, Collections.<String>emptySet()); in getImportedSims()
211 .getStringSet(PREFERENCE_KEY_DISMISSED_SIM_CARDS, Collections.<String>emptySet()); in getDismissedSims()
216 .getStringSet(PREFERENCE_KEY_RESTORED_DEVICES, Collections.<String>emptySet()); in getRestoredDevices()
221 .getStringSet(PREFERENCE_KEY_DISMISSED_DEVICES, Collections.<String>emptySet()); in getDismissedDevices()
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/
H A DUserBackupPreferences.java45 new HashSet<>(mPreferences.getStringSet(packageName, Collections.emptySet())); in addExcludedKeys()
52 return mPreferences.getStringSet(packageName, Collections.emptySet()); in getExcludedRestoreKeysForPackage()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/visibilitystore/
H A DVisibilityStoreImplTest.java206 /*schemasNotDisplayedBySystem=*/ Collections.emptySet(), in testSetVisibility_displayedBySystem()
278 /*schemasNotDisplayedBySystem=*/ Collections.emptySet(), in testSetVisibility_visibleToPackages()
345 /*schemasNotDisplayedBySystem=*/ Collections.emptySet(), in testSetVisibility_visibleToPackages()
398 /*schemasNotDisplayedBySystem=*/ Collections.emptySet(), in testIsSchemaSearchableByCaller_packageAccessibilityHandlesNameNotFoundException()
431 /*schemasNotDisplayedBySystem=*/ Collections.emptySet(), in testEmptyPrefix()
/aosp12/packages/services/Telephony/src/com/android/services/telephony/rcs/
H A DTransportSipMessageValidator.java208 cleanupAndNotifyRegistrationAppliedConsumer(Collections.emptySet()); in onRegistrationStateChanged()
322 cancelClosingTimeoutAndSendComplete(Collections.emptySet()); in closeSessionsGracefully()
356 return Collections.emptySet(); in closeSessions()
464 cleanupAndNotifyRegistrationAppliedConsumer(Collections.emptySet()); in cancelPendingRegCleanupTask()
490 cleanupAndNotifyRegistrationAppliedConsumer(Collections.emptySet()); in updatePendingRegCleanupTask()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
H A DActionReceiverTest.kt66 val actions = actionsIterator()?.asSequence()?.toSet() ?: emptySet()
67 val categories = categoriesIterator()?.asSequence()?.toSet() ?: emptySet()
68 return (it.actionsIterator()?.asSequence()?.toSet() ?: emptySet()) == actions &&
69 (it.categoriesIterator()?.asSequence()?.toSet() ?: emptySet()) == categories &&
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
H A DSearchView.java68 private Set<Consumer<String>> mSearchListeners = Collections.emptySet();
70 Collections.emptySet();
71 private Set<Toolbar.OnSearchListener> mDeprecatedSearchListeners = Collections.emptySet();
73 Collections.emptySet();
/aosp12/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
H A DEpgInputs.java53 return Collections.emptySet(); in queryEpgInputs()
63 return Collections.emptySet(); in queryEpgInputs()

12345678