Home
last modified time | relevance | path

Searched refs:singleton (Results 1 – 25 of 65) sorted by relevance

123

/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsPublisherSubscriberTest.java112 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.singleton( in testLayerAvailability()
116 new VmsAssociatedLayer(SUBSCRIPTION_LAYER, Collections.singleton(publisherId))); in testLayerAvailability()
122 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.singleton( in testLayerAvailability_Overwrite()
124 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.singleton( in testLayerAvailability_Overwrite()
130 Collections.singleton(publisherId))); in testLayerAvailability_Overwrite()
137 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.singleton( in testLayerAvailability_MultiplePublishers_SameLayer()
139 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.singleton( in testLayerAvailability_MultiplePublishers_SameLayer()
151 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.singleton( in testLayerAvailability_MultiplePublishers_MultipleLayers()
153 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.singleton( in testLayerAvailability_MultiplePublishers_MultipleLayers()
158 new VmsAssociatedLayer(SUBSCRIPTION_LAYER, Collections.singleton(publisherId)), in testLayerAvailability_MultiplePublishers_MultipleLayers()
[all …]
DVmsSubscriberManagerTest.java46 private static final Set<Integer> PUBLISHERS_LIST = Collections.singleton(PUBLISHER_ID);
240 Collections.singleton(SUBSCRIPTION_ASSOCIATED_LAYER), in testSimpleAvailableLayers()
271 Collections.singleton(SUBSCRIPTION_ASSOCIATED_LAYER), in testSimpleAvailableLayersAfterSubscription()
410 Collections.singleton(SUBSCRIPTION_ASSOCIATED_LAYER), in testDoubleOfferingAvailableLayers()
499 Collections.singleton(SUBSCRIPTION_ASSOCIATED_LAYER), in testGetAvailableLayers()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsLayerAvailabilityTest.java41 private static final Set<Integer> PUBLISHERS_1 = Collections.singleton(PUBLISHER_ID_1);
42 private static final Set<Integer> PUBLISHERS_2 = Collections.singleton(PUBLISHER_ID_2);
47 new VmsLayerDependency(LAYER_X, Collections.singleton(LAYER_Y));
50 new VmsLayerDependency(LAYER_X, Collections.singleton(LAYER_Z));
53 new VmsLayerDependency(LAYER_Y, Collections.singleton(LAYER_Z));
56 new VmsLayerDependency(LAYER_Y, Collections.singleton(LAYER_X));
59 new VmsLayerDependency(LAYER_Z, Collections.singleton(LAYER_X));
65 new VmsLayerDependency(LAYER_X, Collections.singleton(LAYER_X));
91 new VmsLayersOffering(Collections.singleton(new VmsLayerDependency(LAYER_X)), in testSingleLayerNoDeps()
133 new VmsLayersOffering(Collections.singleton(Z_DEPENDS_ON_NOTHING), in testChainOfDependenciesSatisfiedTwoOfferings()
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantControllerTest.java96 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
97 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
111 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in onManagedProfile_doesNotPregrant()
112 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in onManagedProfile_doesNotPregrant()
126 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in defaultConfigurablePackage_doesPregrant()
127 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in defaultConfigurablePackage_doesPregrant()
141 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in nonDefaultConfigurablePackage_doesNotPregrant()
142 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in nonDefaultConfigurablePackage_doesNotPregrant()
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/provider/
DChreCommunicationTest.java103 mChreCallback, Collections.singleton(ChreDiscoveryProvider.NANOAPP_ID)); in testStart()
113 mChreCallback, Collections.singleton(ChreDiscoveryProvider.NANOAPP_ID)); in testStop()
125 mChreCallback, Collections.singleton(ChreDiscoveryProvider.NANOAPP_ID)); in testNotReachMinVersion()
137 mChreCallback, Collections.singleton(ChreDiscoveryProvider.NANOAPP_ID)); in test_getNanoVersion()
147 mChreCallback, Collections.singleton(ChreDiscoveryProvider.NANOAPP_ID)); in testSendMessageToNanApp()
162 mChreCallback, Collections.singleton(ChreDiscoveryProvider.NANOAPP_ID)); in testOnMessageFromNanoApp()
218 mChreCallback, Collections.singleton(ChreDiscoveryProvider.NANOAPP_ID)); in testOnHubReset()
226 mChreCallback, Collections.singleton(ChreDiscoveryProvider.NANOAPP_ID)); in testOnNanoAppLoaded()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java114 mHalService.takeProperties(Collections.singleton(halPropConfig)); in initHalService()
168 mHalService.takeProperties(Collections.singleton(halPropConfig)); in testCoreId_IntegerOverflow()
504 new VmsLayerDependency(LAYER, Collections.singleton( in testHandleOfferingEvent_LayerAndDependency()
537 new VmsLayerDependency(new VmsLayer(6, 5, 4), Collections.singleton( in testHandleOfferingEvent_MultipleLayersAndDependencies()
589 new VmsAvailableLayers(Collections.singleton( in testHandleAvailabilityRequestEvent_OneLayer()
590 new VmsAssociatedLayer(LAYER, Collections.singleton(PUBLISHER_ID))), 123)); in testHandleAvailabilityRequestEvent_OneLayer()
619 Collections.singleton(99999)))), in testHandleAvailabilityRequestEvent_MultipleLayers()
719 new VmsAvailableLayers(Collections.singleton( in testOnLayersAvailabilityChanged_OneLayer()
720 new VmsAssociatedLayer(LAYER, Collections.singleton(PUBLISHER_ID))), 123)); in testOnLayersAvailabilityChanged_OneLayer()
745 Collections.singleton(99999)))), in testOnLayersAvailabilityChanged_MultipleLayers()
[all …]
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarProjectionManagerTest.java155 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP), in keyEventListener_registerMultipleEventListeners()
204 mProjectionManager.addKeyEventHandler(Collections.singleton(-1), eventHandler); in keyEventHandler_eventsOutOfRange_throw()
210 Collections.singleton(CarProjectionManager.NUM_KEY_EVENTS), eventHandler); in keyEventHandler_eventsOutOfRange_throw()
222 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP), in keyEventHandler_whenRegisteredAgain_replacesEventList()
230 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_LONG_PRESS_KEY_DOWN), in keyEventHandler_whenRegisteredAgain_replacesEventList()
244 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP), in keyEventHandler_removed_noLongerFires()
262 Collections.singleton( in keyEventHandler_withAlternateExecutor_usesExecutor()
/packages/modules/Bluetooth/system/stack/arbiter/
Dacl_arbiter.cc63 static auto singleton = PassthroughAclArbiter(); in Get() local
64 return singleton; in Get()
140 static auto singleton = RustGattAclArbiter(); in Get() local
141 return singleton; in Get()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java678 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem()
680 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem()
699 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem()
701 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem()
720 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem()
722 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem()
743 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem()
745 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem()
857 .thenReturn(new HashSet<>(Collections.singleton(TEST_SHARE_DATA))); in testReadVersion1StoreFile()
863 .thenReturn(new HashSet<>(Collections.singleton(TEST_USER_DATA))); in testReadVersion1StoreFile()
[all …]
DWakeupEvaluatorTest.java160 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks()
173 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold()
186 Set<ScanResult> scanResults = Collections.singleton(savedScanResult); in findViableNetwork_returnsConnectableScanResult()
DWakeupControllerTest.java429 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResults()
469 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithNetworkSuggestions()
595 Collections.singleton(ScanResultMatchInfo.fromScanResult(scanResult24)); in startFiltersOutDfsScanResults()
629 verify(mWakeupLock).update(eq(Collections.singleton(expectedMatchInfo))); in onResultsUpdatesWakeupLockForSavedNetworks()
659 verify(mWakeupLock).update(eq(Collections.singleton(expectedMatchInfo))); in onResultsUpdatesWakeupLockForNetworkSuggestions()
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/validator/
DOutgoingTransportStateValidatorTest.java71 validator.open(Collections.singleton("+tag"), Collections.emptySet()); in testVerifyMessageInOpenCloseState()
138 validator.open(Collections.emptySet(), Collections.singleton("+tag")); in testDeniedFeatureTag()
156 validator.open(Collections.singleton("+tag"), Collections.emptySet()); in testRestrictedFeatureTag()
158 validator.restrictFeatureTags(Collections.singleton("+tag")); in testRestrictedFeatureTag()
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_arbiter_acl_arbiter.cc41 static auto singleton = MockAclArbiter(); in Get() local
42 return singleton; in Get()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DCarSystemBarViewTest.java80 Collections.singleton(mNavBarTouchListener)); in dispatchTouch_shadeOpen_flagOff_doesNotConsumeTouch()
102 Collections.singleton(mNavBarTouchListener)); in dispatchTouch_shadeOpen_flagOn_consumesTouch()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryCollection.java50 mDictionaries.removeAll(Collections.singleton(null)); in DictionaryCollection()
58 mDictionaries.removeAll(Collections.singleton(null)); in DictionaryCollection()
/packages/services/Telephony/src/com/android/phone/
DTelephonyShellCommand.java263 map.put("chat_v1", Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_IM));
264 map.put("chat_v2", Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_SESSION));
265 map.put("ft", Collections.singleton(FeatureTags.FEATURE_TAG_FILE_TRANSFER));
266 map.put("ft_sms", Collections.singleton(FeatureTags.FEATURE_TAG_FILE_TRANSFER_VIA_SMS));
267 map.put("mmtel", Collections.singleton(FeatureTags.FEATURE_TAG_MMTEL));
270 map.put("geo_push", Collections.singleton(FeatureTags.FEATURE_TAG_GEO_PUSH));
271 map.put("geo_push_sms", Collections.singleton(FeatureTags.FEATURE_TAG_GEO_PUSH_VIA_SMS));
273 Collections.singleton(FeatureTags.FEATURE_TAG_CALL_COMPOSER_ENRICHED_CALLING));
275 Collections.singleton(FeatureTags.FEATURE_TAG_CALL_COMPOSER_VIA_TELEPHONY));
276 map.put("call_post", Collections.singleton(FeatureTags.FEATURE_TAG_POST_CALL));
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DDelayedDiscovery.java105 return Collections.singleton(mChild); in getChildren()
DDiscovery.java196 return Collections.singleton(this); in getChildren()
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/
DCarWatchdogDaemonHelperTest.java182 List<ResourceOveruseConfiguration> configs = new ArrayList<>(Collections.singleton(config)); in testIndirectCall_updateResourceOveruseConfigurations()
194 new ArrayList<>(Collections.singleton(config)); in testIndirectCall_getResourceOveruseConfigurations()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DItemClickHandler.java214 Collections.singleton(packageName), item.user), in onClickPendingAppItem()
281 .ofShortcutKeys(Collections.singleton(ShortcutKey in maybeCreateAlertDialogForShortcut()
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/managers/
DMergedDiscoveryRequestTest.java85 builder.addScanFilters(Collections.singleton(scanFilterBuilder)); in test_addFilters()
/packages/apps/TV/common/src/com/android/tv/common/
DTvContentRatingCache.java104 return Collections.singleton(ratingStrings[0]); in toSortedSet()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DTunerSetupUtils.java83 numbers.removeAll(Collections.singleton("")); in parseChannelNumber()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DBackgroundScanSchedulerTest.java97 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequest()
114 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequestWithoutPredefinedBucket()
422 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleExponentialBackOffRequest()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdFiltererNoOpImplTest.java96 .setPackageNames(Collections.singleton(CommonFixture.TEST_PACKAGE_NAME_1)) in testAppInstallFilter()

123