/aosp12/build/soong/rust/ |
H A D | project_json.go | 176 cInfo, known := singleton.knownCrates[rChild.Name()] 246 singleton.mergeDependencies(ctx, rModule, &crate, deps) 248 idx := len(singleton.project.Crates) 250 singleton.project.Crates = append(singleton.project.Crates, crate) 253 singleton.project.Roots = append(singleton.project.Roots, path.Dir(crate.RootModule)) 267 crate := singleton.project.Crates[cInfo.Idx] 269 singleton.project.Crates[cInfo.Idx] = crate 272 singleton.addCrate(ctx, rModule, comp) 280 singleton.knownCrates = make(map[string]crateInfo) 282 singleton.appendCrateAndDependencies(ctx, module) [all …]
|
/aosp12/build/soong/android/ |
H A D | register.go | 63 type singleton struct { struct 72 return singleton{false, name, factory} 76 return singleton{true, name, factory} 79 func (s singleton) componentName() string { 83 func (s singleton) register(ctx *Context) { 92 var _ sortableComponent = singleton{} 123 singleton := factory() 127 return &singletonAdaptor{Singleton: singleton} 214 singleton{false, "bazeldeps", BazelSingleton}, 217 singleton{false, "phony", phonySingletonFactory}, [all …]
|
H A D | singleton_module_test.go | 91 singleton := result.SingletonForTests("test_singleton_module").Singleton() 92 sm := singleton.(*singletonModuleSingletonAdaptor).sm
|
H A D | makevars.go | 145 func registerSingletonMakeVarsProvider(config Config, singleton SingletonMakeVarsProvider) { 154 makeVarsProvider{pctx, singletonMakeVarsProviderAdapter(singleton)}) 158 func singletonMakeVarsProviderAdapter(singleton SingletonMakeVarsProvider) MakeVarsProvider { 159 return func(ctx MakeVarsContext) { singleton.MakeVars(ctx) }
|
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/ |
H A D | VmsPublisherSubscriberTest.java | 112 mPublisher.setLayersOffering(new VmsLayersOffering(Collections.singleton( 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() 160 Collections.singleton(publisherId2))); in testLayerAvailability_MultiplePublishers_MultipleLayers() 194 Collections.singleton(publisherId2))); in testLayerAvailability_MultiplePublishers_Overwrite() 420 Collections.singleton(publisherId))); in testSubscribeToPublisher_MultipleLayers() 455 Collections.singleton(publisherId2))); in testSubscribeToPublisher_MultipleLayers_MultiplePublishers() 470 Collections.singleton(UNKNOWN_PUBLISHER))); in testSubscribeToPublisher_UnknownPublisher() [all …]
|
H A D | VmsSubscriberManagerTest.java | 47 private static final Set<Integer> PUBLISHERS_LIST = Collections.singleton(PUBLISHER_ID); 241 Collections.singleton(SUBSCRIPTION_ASSOCIATED_LAYER), in testSimpleAvailableLayers() 272 Collections.singleton(SUBSCRIPTION_ASSOCIATED_LAYER), in testSimpleAvailableLayersAfterSubscription() 411 Collections.singleton(SUBSCRIPTION_ASSOCIATED_LAYER), in testDoubleOfferingAvailableLayers() 500 Collections.singleton(SUBSCRIPTION_ASSOCIATED_LAYER), in testGetAvailableLayers()
|
/aosp12/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/ |
H A D | PublishServiceDescTracker.java | 58 Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_IM)); in map.put() 60 Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_SESSION)); in map.put() 62 Collections.singleton(FeatureTags.FEATURE_TAG_FILE_TRANSFER)); in map.put() 66 Collections.singleton(FeatureTags.FEATURE_TAG_PRESENCE)); in map.put() 69 Collections.singleton(FeatureTags.FEATURE_TAG_MMTEL)); in map.put() 73 Collections.singleton(FeatureTags.FEATURE_TAG_GEO_PUSH)); in map.put() 75 Collections.singleton(FeatureTags.FEATURE_TAG_GEO_PUSH_VIA_SMS)); in map.put() 81 Collections.singleton(FeatureTags.FEATURE_TAG_POST_CALL)); in map.put() 83 Collections.singleton(FeatureTags.FEATURE_TAG_SHARED_MAP)); in map.put() 85 Collections.singleton(FeatureTags.FEATURE_TAG_SHARED_SKETCH)); in map.put() [all …]
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/ |
H A D | VmsLayerAvailabilityTest.java | 41 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 …]
|
/aosp12/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/publish/ |
H A D | PublishServiceDescTrackerTest.java | 91 Set<ServiceDescription> expectedSet = Collections.singleton( in testDefaultConfigMatch() 115 expectedSet = Collections.singleton( in testDefaultConfigMatch() 121 expectedSet = Collections.singleton( in testDefaultConfigMatch() 136 Set<ServiceDescription> expectedSet = Collections.singleton( in testOverrideCarrierConfigMatch() 159 expectedSet = Collections.singleton( in testOverrideCarrierConfigMatch() 166 expectedSet = Collections.singleton(TEST_OVERRIDE_MMTEL_DESC); in testOverrideCarrierConfigMatch() 198 expectedSet = Collections.singleton( in testNonstandardImsRegFormatMatch() 204 expectedSet = Collections.singleton( in testNonstandardImsRegFormatMatch() 219 Set<ServiceDescription> expectedSet = Collections.singleton( in testOverrideCarrierConfigNonstandardFormatMatch() 242 expectedSet = Collections.singleton( in testOverrideCarrierConfigNonstandardFormatMatch() [all …]
|
/aosp12/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/ |
H A D | CrossProfileAppsPregrantControllerTest.java | 96 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()
|
/aosp12/frameworks/base/packages/StatementService/src/com/android/statementservice/domain/ |
H A D | DomainVerifier.kt | 46 private var singleton: DomainVerifier? = null 49 singleton != null -> singleton!! 51 if (singleton == null) { 55 singleton = DomainVerifier(appContext, manager) 57 singleton!!
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
H A D | VmsHalServiceTest.java | 107 mHalService.takeProperties(Collections.singleton(propConfig)); in initHalService() 159 mHalService.takeProperties(Collections.singleton(propConfig)); in testCoreId_IntegerOverflow() 435 new VmsLayerDependency(LAYER, Collections.singleton( in testHandleOfferingEvent_LayerAndDependency() 468 new VmsLayerDependency(new VmsLayer(6, 5, 4), Collections.singleton( in testHandleOfferingEvent_MultipleLayersAndDependencies() 520 new VmsAvailableLayers(Collections.singleton( in testHandleAvailabilityRequestEvent_OneLayer() 550 Collections.singleton(99999)))), in testHandleAvailabilityRequestEvent_MultipleLayers() 650 new VmsAvailableLayers(Collections.singleton( in testOnLayersAvailabilityChanged_OneLayer() 676 Collections.singleton(99999)))), in testOnLayersAvailabilityChanged_MultipleLayers() 758 new VmsSubscriptionState(123, Collections.singleton(LAYER), in testHandleSubscriptionsRequestEvent_OneLayer_ZeroAssociatedLayers() 781 new VmsSubscriptionState(123, Collections.emptySet(), Collections.singleton( in testHandleSubscriptionsRequestEvent_ZeroLayers_OneAssociatedLayer() [all …]
|
/aosp12/packages/services/Car/tests/CarLibTests/src/android/car/ |
H A D | CarProjectionManagerTest.java | 137 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP), in keyEventListener_registerMultipleEventListeners() 186 mProjectionManager.addKeyEventHandler(Collections.singleton(-1), eventHandler); in keyEventHandler_eventsOutOfRange_throw() 192 Collections.singleton(CarProjectionManager.NUM_KEY_EVENTS), eventHandler); in keyEventHandler_eventsOutOfRange_throw() 204 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP), in keyEventHandler_whenRegisteredAgain_replacesEventList() 212 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_LONG_PRESS_KEY_DOWN), in keyEventHandler_whenRegisteredAgain_replacesEventList() 226 Collections.singleton(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP), in keyEventHandler_removed_noLongerFires() 244 Collections.singleton( in keyEventHandler_withAlternateExecutor_usesExecutor()
|
/aosp12/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ContentProviderRecord.java | 50 final boolean singleton; field in ContentProviderRecord 74 singleton = _singleton; in ContentProviderRecord() 85 singleton = cpr.singleton; in ContentProviderRecord() 242 if (singleton) { in dump() 243 pw.print(prefix); pw.print("singleton="); pw.println(singleton); in dump()
|
/aosp12/frameworks/base/services/core/java/com/android/server/policy/role/ |
H A D | RoleServicePlatformHelperImpl.java | 207 roles.put(RoleManager.ROLE_ASSISTANT, Collections.singleton(assistantPackageName)); in readFromLegacySettings() 216 roles.put(RoleManager.ROLE_BROWSER, Collections.singleton(browserPackageName)); in readFromLegacySettings() 235 roles.put(RoleManager.ROLE_DIALER, Collections.singleton(dialerPackageName)); in readFromLegacySettings() 252 roles.put(RoleManager.ROLE_SMS, Collections.singleton(smsPackageName)); in readFromLegacySettings() 272 roles.put(RoleManager.ROLE_HOME, Collections.singleton(homePackageName)); in readFromLegacySettings() 279 roles.put(RoleManager.ROLE_EMERGENCY, Collections.singleton(emergencyPackageName)); in readFromLegacySettings()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiConfigStoreTest.java | 656 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 658 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 677 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 679 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 698 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 700 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 721 .thenReturn(new HashSet<>(Collections.singleton(storeData1Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 723 .thenReturn(new HashSet<>(Collections.singleton(storeData2Name))); in testReadWifiConfigStoreDataIndicateClientsThatThereIsNoDataForThem() 841 .thenReturn(new HashSet<>(Collections.singleton(TEST_USER_DATA))); in testReadVersion1StoreFile() 891 .thenReturn(new HashSet<>(Collections.singleton(TEST_USER_DATA))); in testReadVersion2StoreFile() [all …]
|
H A D | WakeupEvaluatorTest.java | 159 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks() 172 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold() 185 Set<ScanResult> scanResults = Collections.singleton(savedScanResult); in findViableNetwork_returnsConnectableScanResult()
|
/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/validator/ |
H A 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()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | BrightLineFalsingManager.java | 160 Collections.singleton( 233 mPriorResults = Collections.singleton(result); in isSimpleTap() 274 mPriorResults = Collections.singleton(singleTapResult); in isFalseTap() 289 mPriorResults = Collections.singleton( in isFalseTap() 322 mPriorResults = Collections.singleton(result); in isFalseDoubleTap() 437 return Collections.singleton(FalsingClassifier.Result.passed(confidence)); in getPassedResult()
|
/aosp12/build/soong/bloaty/ |
H A D | bloaty.go | 85 func (singleton *sizesSingleton) GenerateBuildActions(ctx android.SingletonContext) { 112 func (singleton *sizesSingleton) MakeVars(ctx android.MakeVarsContext) {
|
/aosp12/frameworks/base/tests/vcn/java/com/android/server/ |
H A D | VcnManagementServiceTest.java | 370 : Collections.singleton(TEST_PACKAGE_NAME); in buildSubscriptionSnapshot() 556 triggerSubscriptionTrackerCbAndGetSnapshot(TEST_UUID_2, Collections.singleton(TEST_UUID_2)); in testTelephonyNetworkTrackerCallbackSimSwitchesDoNotKillVcnInstances() 580 triggerSubscriptionTrackerCbAndGetSnapshot(TEST_UUID_2, Collections.singleton(TEST_UUID_2)); in testTelephonyNetworkTrackerCallbackDoesNotKillNewVcnInstances() 733 triggerSubscriptionTrackerCbAndGetSnapshot(TEST_UUID_2, Collections.singleton(TEST_UUID_2)); in testSetVcnConfigNotifiesStatusCallback() 930 Collections.singleton(subGrp), in setupSubscriptionAndStartVcn() 947 ncBuilder.setSubscriptionIds(Collections.singleton(subId)); in getNetworkCapabilitiesBuilderForTransport() 1105 TEST_UUID_2, Collections.singleton(TEST_UUID_2)); in testSubscriptionSnapshotUpdateNotifiesVcn() 1142 Collections.singleton(TEST_UUID_2), in testVcnSubIdChangeUpdatesPolicyListener() 1169 TEST_UUID_1, Collections.singleton(TEST_UUID_1)); in verifyVcnSafeModeChangesNotifiesPolicyListeners() 1196 subGroup, Collections.singleton(subGroup)); in triggerVcnStatusCallbackOnSafeModeStatusChanged() [all …]
|
/aosp12/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/ |
H A D | GrallocLoader.h | 55 static GrallocImportedBufferPool* singleton = new GrallocImportedBufferPool; in getInstance() local 56 return *singleton; in getInstance()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | DictionaryCollection.java | 50 mDictionaries.removeAll(Collections.singleton(null)); in DictionaryCollection() 58 mDictionaries.removeAll(Collections.singleton(null)); in DictionaryCollection()
|
/aosp12/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/warning/ |
H A D | BluetoothErrorStringLiveDataTest.java | 108 mPairedListLiveData.setValue(Collections.singleton(mockBluetoothDevice)); in testDialerAppState_hfpNoConnected_bluetoothError() 123 mPairedListLiveData.setValue(Collections.singleton(mockBluetoothDevice)); in testDialerAppState_bluetoothAllSet_dialerAppNoError()
|
/aosp12/packages/services/Telephony/src/com/android/phone/ |
H A D | TelephonyShellCommand.java | 226 map.put("chat_v1", Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_IM)); 227 map.put("chat_v2", Collections.singleton(FeatureTags.FEATURE_TAG_CHAT_SESSION)); 228 map.put("ft", Collections.singleton(FeatureTags.FEATURE_TAG_FILE_TRANSFER)); 230 map.put("mmtel", Collections.singleton(FeatureTags.FEATURE_TAG_MMTEL)); 233 map.put("geo_push", Collections.singleton(FeatureTags.FEATURE_TAG_GEO_PUSH)); 236 Collections.singleton(FeatureTags.FEATURE_TAG_CALL_COMPOSER_ENRICHED_CALLING)); 238 Collections.singleton(FeatureTags.FEATURE_TAG_CALL_COMPOSER_VIA_TELEPHONY)); 239 map.put("call_post", Collections.singleton(FeatureTags.FEATURE_TAG_POST_CALL)); 240 map.put("map", Collections.singleton(FeatureTags.FEATURE_TAG_SHARED_MAP)); 241 map.put("sketch", Collections.singleton(FeatureTags.FEATURE_TAG_SHARED_SKETCH)); [all …]
|