/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | VmsPublisherSubscriberTest.java | 112 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 …]
|
D | VmsSubscriberManagerTest.java | 46 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/ |
D | VmsLayerAvailabilityTest.java | 44 private static final Set<Integer> PUBLISHERS_1 = Collections.singleton(PUBLISHER_ID_1); 45 private static final Set<Integer> PUBLISHERS_2 = Collections.singleton(PUBLISHER_ID_2); 50 new VmsLayerDependency(LAYER_X, Collections.singleton(LAYER_Y)); 53 new VmsLayerDependency(LAYER_X, Collections.singleton(LAYER_Z)); 56 new VmsLayerDependency(LAYER_Y, Collections.singleton(LAYER_Z)); 59 new VmsLayerDependency(LAYER_Y, Collections.singleton(LAYER_X)); 62 new VmsLayerDependency(LAYER_Z, Collections.singleton(LAYER_X)); 68 new VmsLayerDependency(LAYER_X, Collections.singleton(LAYER_X)); 94 new VmsLayersOffering(Collections.singleton(new VmsLayerDependency(LAYER_X)), in testSingleLayerNoDeps() 135 new VmsLayersOffering(Collections.singleton(Z_DEPENDS_ON_NOTHING), in testChainOfDependenciesSatisfiedTwoOfferings() [all …]
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/ |
D | CrossProfileAppsPregrantControllerTest.java | 103 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in onPrimaryProfile_noManagedProfile_doesNotPregrant() 104 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in onPrimaryProfile_noManagedProfile_doesNotPregrant() 118 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in onManagedProfile_doesNotPregrant() 119 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in onManagedProfile_doesNotPregrant() 133 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in defaultConfigurablePackage_doesPregrant() 134 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in defaultConfigurablePackage_doesPregrant() 148 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in nonDefaultConfigurablePackage_doesNotPregrant() 149 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in nonDefaultConfigurablePackage_doesNotPregrant()
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/provider/ |
D | ChreCommunicationTest.java | 103 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/ |
D | VmsHalServiceTest.java | 114 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/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/ |
D | AudioRoutesManagerTest.java | 115 .thenReturn(new ArrayList<>(Collections.singleton(mAudioDeviceAttributes))); in init_verifyAudioRouteList() 143 .thenReturn(new ArrayList<>(Collections.singleton(mAudioDeviceAttributes))); in init_verifyActiveDeviceAddress() 154 .thenReturn(new ArrayList<>(Collections.singleton(mAudioDeviceAttributes))); in init_verifyAudioRouteItemMap() 190 .thenReturn(Collections.singleton(mCachedBluetoothDevice)); in initMocks() 201 .thenReturn(new ArrayList<>(Collections.singleton(mCarAudioZoneConfigInfo))); in initMocks() 204 .thenReturn(new ArrayList<>(Collections.singleton(mCarVolumeGroupInfo))); in initMocks() 206 .thenReturn(new ArrayList<>(Collections.singleton(mAudioAttributes))); in initMocks()
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarProjectionManagerTest.java | 162 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP), in keyEventListener_registerMultipleEventListeners() 211 mProjectionManager.addKeyEventHandler(Collections.singleton(-1), eventHandler); in keyEventHandler_eventsOutOfRange_throw() 217 Collections.singleton(CarProjectionManager.NUM_KEY_EVENTS), eventHandler); in keyEventHandler_eventsOutOfRange_throw() 229 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP), in keyEventHandler_whenRegisteredAgain_replacesEventList() 237 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_LONG_PRESS_KEY_DOWN), in keyEventHandler_whenRegisteredAgain_replacesEventList() 251 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP), in keyEventHandler_removed_noLongerFires() 269 Collections.singleton( in keyEventHandler_withAlternateExecutor_usesExecutor()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigStoreTest.java | 577 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 579 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 598 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 600 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 619 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 621 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 642 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 644 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 756 .thenReturn(new HashSet<>(Collections.singleton(TEST_SHARE_DATA))); in testReadVersion1StoreFile() 762 .thenReturn(new HashSet<>(Collections.singleton(TEST_USER_DATA))); in testReadVersion1StoreFile() [all …]
|
D | WakeupEvaluatorTest.java | 160 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()
|
D | WakeupControllerTest.java | 449 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithSavedScanResults() 489 Collections.singleton(ScanResultMatchInfo.fromScanResult(savedScanResult)); in startInitializesWakeupLockWithNetworkSuggestions() 615 Collections.singleton(ScanResultMatchInfo.fromScanResult(scanResult24)); in startFiltersOutDfsScanResults() 649 verify(mWakeupLock).update(eq(Collections.singleton(expectedMatchInfo))); in onResultsUpdatesWakeupLockForSavedNetworks() 679 verify(mWakeupLock).update(eq(Collections.singleton(expectedMatchInfo))); in onResultsUpdatesWakeupLockForNetworkSuggestions()
|
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/common/ |
D | SingletonTester.java | 87 T singleton = singletonRef.get(); in assertAllInstancesAreTheSame() local 97 + singleton); in assertAllInstancesAreTheSame() 100 .isSameInstanceAs(singleton); in assertAllInstancesAreTheSame()
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_arbiter_acl_arbiter.cc | 40 static auto singleton = AclArbiter(); in GetArbiter() local 41 return singleton; in GetArbiter()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/validator/ |
D | OutgoingTransportStateValidatorTest.java | 71 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/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/updateprocessors/ |
D | RemoveTest.java | 70 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testRemoveSingleNotPresent() 86 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testRemoveSinglePresent() 102 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testRemoveMultiplePresent()
|
D | AppendTest.java | 94 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testAppendSingle() 116 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testAppendMultipleValues() 178 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testOverwriteExisting() 208 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testOverwriteMultipleExisting() 236 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testAddToExisting()
|
D | PutTest.java | 82 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testPutSingle() 118 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testOverwriteExisting() 140 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testOverwriteMultipleExisting()
|
D | PutIfNotPresentTest.java | 79 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testPutSingle() 116 assertEquals(Collections.singleton(BB_KEY_1), output.getKeysTouched()); in testKeepExisting()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
D | CarSystemBarViewTest.java | 80 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/ |
D | DictionaryCollection.java | 50 mDictionaries.removeAll(Collections.singleton(null)); in DictionaryCollection() 58 mDictionaries.removeAll(Collections.singleton(null)); in DictionaryCollection()
|
/packages/modules/Bluetooth/system/stack/arbiter/ |
D | acl_arbiter.cc | 149 static auto singleton = AclArbiter(); in GetArbiter() local 150 return singleton; in GetArbiter()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeE2ETest.java | 2321 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters() 2322 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters() 2323 Collections.singleton(KeyedFrequencyCapFixture.KEY1)); in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters() 2483 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters() 2484 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters() 2485 Collections.singleton(KeyedFrequencyCapFixture.KEY1)); in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudience_appInstallFilters() 2647 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_bothFilters() 2648 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_bothFilters() 2649 Collections.singleton(KeyedFrequencyCapFixture.KEY1)); in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_bothFilters() 2834 Collections.singleton(KeyedFrequencyCapFixture.KEY1), in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_FCapEnabled_AppInstallDisabled() [all …]
|
/packages/modules/IntentResolver/aconfig/ |
D | README.md | 8 * Static singleton provider for FeatureFlags impl
|
/packages/services/Telephony/src/com/android/phone/ |
D | TelephonyShellCommand.java | 287 map.put("chat_v1", Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_IM)); 288 map.put("chat_v2", Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_SESSION)); 289 map.put("ft", Collections.singleton(FeatureTags.FEATURE_TAG_FILE_TRANSFER)); 290 map.put("ft_sms", Collections.singleton(FeatureTags.FEATURE_TAG_FILE_TRANSFER_VIA_SMS)); 291 map.put("mmtel", Collections.singleton(FeatureTags.FEATURE_TAG_MMTEL)); 294 map.put("geo_push", Collections.singleton(FeatureTags.FEATURE_TAG_GEO_PUSH)); 295 map.put("geo_push_sms", Collections.singleton(FeatureTags.FEATURE_TAG_GEO_PUSH_VIA_SMS)); 297 Collections.singleton(FeatureTags.FEATURE_TAG_CALL_COMPOSER_ENRICHED_CALLING)); 299 Collections.singleton(FeatureTags.FEATURE_TAG_CALL_COMPOSER_VIA_TELEPHONY)); 300 map.put("call_post", Collections.singleton(FeatureTags.FEATURE_TAG_POST_CALL)); [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/ui/ |
D | Android.bp | 24 // The tests below are interacting with the JsSandbox singleton and should 101 // The tests below are interacting with the JsSandbox singleton and should
|