Home
last modified time | relevance | path

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

123456789

/packages/services/Car/tests/CarServiceTest/src/com/android/car/vms/
DVmsClientTest.java29 import static java.util.Collections.emptySet;
72 new VmsAvailableLayers(0, emptySet());
74 new VmsSubscriptionState(0, emptySet(), emptySet());
120 new VmsAssociatedLayer(LAYER1, emptySet()), in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
183 VmsAvailableLayers expectedLayers = new VmsAvailableLayers(2, emptySet()); in testUnregisterProvider()
215 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions()
221 emptySet()); in testSetSubscriptions()
231 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_MultipleClients()
234 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_MultipleClients()
240 emptySet()); in testSetSubscriptions_MultipleClients()
[all …]
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()
138 new VmsLayerDependency(SUBSCRIPTION_LAYER, Collections.emptySet())), publisherId)); in testLayerAvailability_MultiplePublishers_SameLayer()
140 new VmsLayerDependency(SUBSCRIPTION_LAYER, Collections.emptySet())), publisherId2)); in testLayerAvailability_MultiplePublishers_SameLayer()
152 new VmsLayerDependency(SUBSCRIPTION_LAYER, Collections.emptySet())), publisherId)); in testLayerAvailability_MultiplePublishers_MultipleLayers()
154 new VmsLayerDependency(SUBSCRIPTION_LAYER_OTHER, Collections.emptySet())), in testLayerAvailability_MultiplePublishers_MultipleLayers()
168 new VmsLayerDependency(SUBSCRIPTION_LAYER, Collections.emptySet())), publisherId)); in testLayerAvailability_MultiplePublishers_Remove()
170 new VmsLayerDependency(SUBSCRIPTION_LAYER, Collections.emptySet())), publisherId2)); in testLayerAvailability_MultiplePublishers_Remove()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
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 …]
DSipDelegateControllerTest.java97 Collections.emptySet()); in testCreateDelegate()
101 Collections.emptySet() /*denied tags*/); in testCreateDelegate()
107 consumer.accept(mMockSipDelegate, Collections.emptySet()); in testCreateDelegate()
110 Collections.emptySet()); in testCreateDelegate()
112 Collections.emptySet()); in testCreateDelegate()
151 Collections.emptySet()); in testCreateDelegateTransportDied()
156 Collections.emptySet() /*denied tags*/); in testCreateDelegateTransportDied()
166 Collections.emptySet()); in testDestroyDelegate()
195 Collections.emptySet()); in testDestroyDelegateForce()
223 Collections.emptySet()); in testChangeSupportedFeatures()
[all …]
DSipTransportControllerTest.java264 new DelegateRequest(Collections.emptySet()), TEST_PACKAGE_NAME, in createImsServiceAvailableSubIdIncorrect()
281 new DelegateRequest(Collections.emptySet()), TEST_PACKAGE_NAME, in createImsServiceDoesntSupportTransport()
299 new DelegateRequest(Collections.emptySet()), TEST_PACKAGE_NAME, in createImsServiceNotAvailable()
316 createDelegateAndVerify(controller, c, r.getFeatureTags(), Collections.emptySet()); in basicCreate()
328 createDelegateAndVerify(controller, c, r.getFeatureTags(), Collections.emptySet()); in basicCreateDestroy()
345 createDelegateAndVerify(controller, c, r.getFeatureTags(), Collections.emptySet()); in createDestroyAppDied()
375 createDelegateAndVerify(controller, c, Collections.emptySet(), getDeniedTags); in testCreateButNotInRole()
390 createDelegateAndVerify(controller, c1, firstDelegate, Collections.emptySet()); in createTwoAndDenyOverlappingTags()
422 Collections.emptySet()); in createTwoAndTriggerRoleChange()
432 createDelegateAndVerify(controller, c2, Collections.emptySet(), secondDeniedTags, 1); in createTwoAndTriggerRoleChange()
[all …]
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()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsBrokerServiceTest.java35 import static java.util.Collections.emptySet;
94 new VmsAvailableLayers(0, emptySet());
96 new VmsSubscriptionState(0, emptySet(), emptySet());
242 new VmsAssociatedLayer(LAYER1, emptySet()), in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
348 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions()
353 emptySet()); in testSetSubscriptions()
363 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_MultipleClients()
366 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_MultipleClients()
371 emptySet()); in testSetSubscriptions_MultipleClients()
381 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_OverwriteSubscription()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSavedNetworkNominatorTest.java149 scanDetails, null, false, true, true, Collections.emptySet(), mOnConnectableListener in ignoreNetworksIfUseExternalScores()
176 scanDetails, mPasspointCandidates, false, true, true, Collections.emptySet(), in ignoreNetworkIfSimIsAbsentForEapSimNetwork()
205 scanDetails, mPasspointCandidates, false, true, true, Collections.emptySet(), in ignoreEphemeralNetworks()
232 scanDetails, null, false, true, true, Collections.emptySet(), in ignoreNetworksIfAutojoinNotAllowed()
240 scanDetails, mPasspointCandidates, false, true, true, Collections.emptySet(), in ignoreNetworksIfAutojoinNotAllowed()
270 scanDetails, mPasspointCandidates, false, true, true, Collections.emptySet(), in returnNoCandidateIfNoNetworksAllowAutojoin()
292 scanDetails, passpointCandidates, false, true, true, Collections.emptySet(), in returnCandidatesIfPasspointNetworksAvailableWithAutojoinEnabled()
318 scanDetails, mPasspointCandidates, false, true, true, Collections.emptySet(), in testIgnoreNetworksIfMeteredAndFromNonDataSim()
353 scanDetails, mPasspointCandidates, false, true, true, Collections.emptySet(), in testIgnoreNetworksFromAppIfNoImsiProtection()
363 scanDetails, mPasspointCandidates, false, true, true, Collections.emptySet(), in testIgnoreNetworksFromAppIfNoImsiProtection()
[all …]
DWifiNetworkSelectorTest.java561 false, true, true, Collections.emptySet(), false, 0); in emptyScanResults()
595 false, true, true, Collections.emptySet(), false, 0); in verifyMinimumRssiThreshold()
632 false, true, true, Collections.emptySet(), false, 0); in verifyMinimumTimeGapWhenConnected()
644 false, true, true, Collections.emptySet(), false, 0); in verifyMinimumTimeGapWhenConnected()
686 false, true, true, Collections.emptySet(), false, 0); in verifyNoMinimumTimeGapWhenDisconnected()
698 false, true, true, Collections.emptySet(), false, 0); in verifyNoMinimumTimeGapWhenDisconnected()
738 false, true, true, Collections.emptySet(), false, 0); in lowRssi5GNetworkIsNotSufficient()
756 false, true, true, Collections.emptySet(), false, 0); in lowRssi5GNetworkIsNotSufficient()
798 false, true, true, Collections.emptySet(), false, 0); in noInternetAccessNetworkIsNotSufficient()
824 false, true, true, Collections.emptySet(), false, 0); in noInternetAccessNetworkIsNotSufficient()
[all …]
DNetworkSuggestionNominatorTest.java144 Collections.emptySet(), in testSelectNetworkSuggestionForNoMatch()
188 Collections.emptySet(), in testSelectNetworkSuggestionForOneMatch()
231 Collections.emptySet(), in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
277 Collections.emptySet(), in testSelectNetworkSuggestionForMultipleMatch()
323 Collections.emptySet(), in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
373 Collections.emptySet(), in testSelectNetworkSuggestionForMultipleMatchHighPriorityFromEachPriorityGroupWins()
420 Collections.emptySet(), in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
476 Collections.emptySet(), in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestionsHighPriorityWins()
521 Collections.emptySet(), in testSelectNetworkSuggestionForOneMatchButInToWifiConfigManager()
580 Collections.emptySet(), in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/android/car/vms/
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()
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/validator/
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()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java117 new VmsAvailableLayers(Collections.emptySet(), 0)); in initHalService()
171 new VmsAvailableLayers(Collections.emptySet(), 0)); in testCoreId_IntegerOverflow()
536 new VmsLayerDependency(new VmsLayer(3, 2, 1), Collections.emptySet()), in testHandleOfferingEvent_MultipleLayersAndDependencies()
570 new VmsAvailableLayers(Collections.emptySet(), 123)); in testHandleAvailabilityRequestEvent_ZeroLayers()
617 Collections.emptySet()), in testHandleAvailabilityRequestEvent_MultipleLayers()
656 new VmsAvailableLayers(Collections.emptySet(), 5)); in testHandleStartSessionEvent()
704 new VmsAvailableLayers(Collections.emptySet(), 123)); in testOnLayersAvailabilityChanged_ZeroLayers()
743 Collections.emptySet()), in testOnLayersAvailabilityChanged_MultipleLayers()
806 new VmsSubscriptionState(123, Collections.emptySet(), Collections.emptySet())); in testHandleSubscriptionsRequestEvent_ZeroLayers()
828 Collections.emptySet())); in testHandleSubscriptionsRequestEvent_OneLayer_ZeroAssociatedLayers()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DAppPermissionViewModel.kt83 private val _grantedFitnessPermissions = MutableLiveData<Set<FitnessPermission>>(emptySet()) in <lambda>()
112 private val _grantedMedicalPermissions = MutableLiveData<Set<MedicalPermission>>(emptySet()) in <lambda>()
121 MutableLiveData<Set<AdditionalPermission>>(emptySet()) in <lambda>()
253 _grantedFitnessPermissions.postValue(emptySet()) in <lambda>()
255 _grantedMedicalPermissions.postValue(emptySet()) in <lambda>()
257 _grantedAdditionalPermissions.postValue(emptySet()) in <lambda>()
496 _grantedAdditionalPermissions.postValue(emptySet()) in <lambda>()
615 _grantedFitnessPermissions.postValue(emptySet()) in <lambda>()
616 _grantedMedicalPermissions.postValue(emptySet()) in <lambda>()
617 _grantedAdditionalPermissions.postValue(emptySet()) in <lambda>()
[all …]
/packages/apps/TV/src/com/android/tv/util/
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()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/recents/viewmodel/
DRecentsViewData.kt28 val settledFullyVisibleTaskIds = MutableStateFlow(emptySet<Int>())
31 val centralTaskIds = MutableStateFlow(emptySet<Int>())
34 val runningTaskIds = MutableStateFlow(emptySet<Int>())
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DRestrictedStoragePermissionTest.java126 installApp(APK_USES_STORAGE_DEFAULT_29, Collections.emptySet()); in testTargetingSdk29DefaultWhitelistedHasIsolatedAccess()
156 installApp(APK_USES_STORAGE_OPT_OUT_29, Collections.emptySet()); in testTargetingSdk29OptOutNotWhitelistedHasIsolatedAccess()
282 installApp(APK_USES_STORAGE_DEFAULT_28, Collections.emptySet()); in testCannotControlStorageWhitelistPostInstall2()
292 installApp(APK_USES_STORAGE_DEFAULT_22, Collections.emptySet()); in cannotGrantStorageTargetingSdk22NotWhitelisted()
308 installApp(APK_USES_STORAGE_OPT_IN_22, Collections.emptySet()); in cannotGrantStorageTargetingSdk22OptInNotWhitelisted()
346 installApp(APK_USES_STORAGE_DEFAULT_28, Collections.emptySet()); in cannotGrantStorageTargetingSdk28NotWhitelisted()
357 installApp(APK_USES_STORAGE_OPT_IN_28, Collections.emptySet()); in cannotGrantStorageTargetingSdk28OptInNotWhitelisted()
390 installApp(APK_USES_STORAGE_DEFAULT_29, Collections.emptySet()); in canGrantStorageTargetingSdk29NotWhitelisted()
401 installApp(APK_USES_STORAGE_OPT_OUT_29, Collections.emptySet()); in canGrantStorageTargetingSdk29OptOutNotWhitelisted()
DRestrictedPermissionsTest.java173 installRestrictedPermissionUserApp(Collections.emptySet(), in testNoneRestrictedPermissionWhitelistedAtInstall29()
226 installApp(APK_USES_SMS_CALL_LOG_22, Collections.emptySet(), in testNoneRestrictedPermissionWhitelistedAtInstall22()
244 installApp(APK_USES_LOCATION_29, Collections.emptySet(), in testLocationBackgroundPermissionNotWhitelistedAtInstall29()
260 installApp(APK_USES_LOCATION_22, Collections.emptySet(), in testLocationBackgroundPermissionNotWhitelistedAtInstall22()
295 installApp(APK_USES_STORAGE_DEFAULT_29, Collections.emptySet(), grantedPermissions); in testCanGrantSoftRestrictedNotWhitelistedPermissions()
325 installRestrictedPermissionUserApp(Collections.emptySet(), null); in testWhitelistAccessControl()
378 params.setWhitelistedRestrictedPermissions(Collections.emptySet()); in onSideLoadWhitelistNoPermissions()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/displayconfig/
DExternalDisplayControllerTest.kt103 MutableStateFlow(emptySet()),
104 override val displays: StateFlow<Set<Display>> = MutableStateFlow(emptySet()),
107 override val displayIds: StateFlow<Set<Int>> = MutableStateFlow(emptySet()),
/packages/apps/Contacts/src/com/android/contacts/util/
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()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/preview/
DPreviewViewModelTest.kt288 emptySet<FeatureRegistration>(), in testToggleInSelectionUpdatesSelection()
361 emptySet<FeatureRegistration>(), in testToggleInSelectionCollectionUpdatesSelection()
450 emptySet<FeatureRegistration>(), in testSnapshotSelection()
479 .isEqualTo(emptySet<Media>()) in testSnapshotSelection()
518 emptySet<FeatureRegistration>(), in testDeselectionSnapshotIsPopulated()
555 .isEqualTo(emptySet<Media>()) in testDeselectionSnapshotIsPopulated()
588 emptySet<FeatureRegistration>(), in testRemotePreviewControllerCreation()
667 emptySet<FeatureRegistration>(), in testRemotePreviewControllersAreCached()
790 emptySet<FeatureRegistration>(), in testRemotePreviewControllersAreDestroyed()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/undo/data/repository/
DUndoRepository.kt29 private val dirtyOwnerIds = MutableStateFlow(emptySet<Int>())
69 dirtyOwnerIds.value = emptySet() in clearAllDirty()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/events/
DEventsTest.kt216 whenever(mockSimpleUiFeature.eventsProduced) { emptySet<RegisteredEventClass>() } in <lambda>()
217 whenever(mockSimpleUiFeature.eventsConsumed) { emptySet<RegisteredEventClass>() } in <lambda>()
248 whenever(mockSimpleUiFeature.eventsProduced) { emptySet<RegisteredEventClass>() } in testEventDoesNotThrowUnregisteredEventOnProd()
249 whenever(mockSimpleUiFeature.eventsConsumed) { emptySet<RegisteredEventClass>() } in testEventDoesNotThrowUnregisteredEventOnProd()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/features/
DPhotopickerUiFeature.kt44 get() = emptySet<BannerDefinitions>()
151 fun registerNavigationRoutes(): Set<Route> = emptySet<Route>()
/packages/services/Telephony/src/com/android/services/telephony/rcs/
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()

123456789