Home
last modified time | relevance | path

Searched refs:mapping (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DButtonChooserFactory.java56 Map<Integer, MappingInfo> mapping = createCommonMapping(); in newImsAndWiFiButtonChooser() local
57 mapping.put( in newImsAndWiFiButtonChooser()
61 mapping.put( in newImsAndWiFiButtonChooser()
63 mapping.put( in newImsAndWiFiButtonChooser()
65 mapping.put( in newImsAndWiFiButtonChooser()
67 mapping.put(InCallButtonIds.BUTTON_HOLD, MappingInfo.builder(5).setSlotOrder(10).build()); in newImsAndWiFiButtonChooser()
69 return new ButtonChooser(new MappedButtonConfig(mapping)); in newImsAndWiFiButtonChooser()
73 Map<Integer, MappingInfo> mapping = createCommonMapping(); in newCdmaButtonChooser() local
74 mapping.put( in newCdmaButtonChooser()
77 mapping.put( in newCdmaButtonChooser()
[all …]
DMappedButtonConfig.java49 @NonNull private final Map<Integer, MappingInfo> mapping; field in MappedButtonConfig
58 public MappedButtonConfig(@NonNull Map<Integer, MappingInfo> mapping) { in MappedButtonConfig() argument
59 this.mapping = new ArrayMap<>(); in MappedButtonConfig()
60 this.mapping.putAll(Assert.isNotNull(mapping)); in MappedButtonConfig()
66 for (Entry<Integer, MappingInfo> entry : mapping.entrySet()) { in findOrderedMappedSlots()
77 if (mapping.isEmpty()) { in getOrderedMappedSlots()
90 for (Entry<Integer, MappingInfo> entry : mapping.entrySet()) { in getButtonsForSlot()
145 MappingInfo info = mapping.get(button);
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DControllerRendererPoolTest.java55 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach(mapping -> assertThat( in getController_hasSupportedCardType_shouldReturnCorrespondingController()
56 mPool.getController(mContext, mapping.mCardType).getClass()).isEqualTo( in getController_hasSupportedCardType_shouldReturnCorrespondingController()
57 mapping.mControllerClass)); in getController_hasSupportedCardType_shouldReturnCorrespondingController()
63 mapping -> mapping.mControllerClass).distinct().count(); in getController_hasSupportedCardType_shouldHaveTwoControllersInPool()
66 mapping -> mPool.getController(mContext, mapping.mCardType)); in getController_hasSupportedCardType_shouldHaveTwoControllersInPool()
82 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach(mapping -> assertThat( in getRenderer_hasSupportedViewType_shouldReturnCorrespondingRenderer()
84 mapping.mViewType).getClass()).isEqualTo(mapping.mRendererClass)); in getRenderer_hasSupportedViewType_shouldReturnCorrespondingRenderer()
90 mapping -> mapping.mRendererClass).distinct().count(); in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool()
93 mapping -> mPool.getRendererByViewType(mContext, mLifecycleOwner, in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool()
94 mapping.mViewType)); in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool()
DContextualCardLookupTableTest.java44 .forEach(mapping -> mOriginalLookupTable.add(mapping)); in setUp()
55 for (ControllerRendererMapping mapping : ContextualCardLookupTable.LOOKUP_TABLE) { in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()
56 assertThat(ContextualCardLookupTable.getCardControllerClass(mapping.mCardType)) in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()
57 .isEqualTo(mapping.mControllerClass); in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()
70 for (ControllerRendererMapping mapping : ContextualCardLookupTable.LOOKUP_TABLE) { in getCardRendererClassByViewType_hasSupportedViewType_shouldGetCorrespondingRenderer()
71 assertThat(ContextualCardLookupTable.getCardRendererClassByViewType(mapping.mViewType)) in getCardRendererClassByViewType_hasSupportedViewType_shouldGetCorrespondingRenderer()
72 .isEqualTo(mapping.mRendererClass); in getCardRendererClassByViewType_hasSupportedViewType_shouldGetCorrespondingRenderer()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardLookupTable.java61 return Comparator.comparingInt((ControllerRendererMapping mapping) -> mapping.mCardType) in compareTo()
62 .thenComparingInt(mapping -> mapping.mViewType) in compareTo()
106 for (ControllerRendererMapping mapping : LOOKUP_TABLE) { in getCardControllerClass()
107 if (mapping.mCardType == cardType) { in getCardControllerClass()
108 return mapping.mControllerClass; in getCardControllerClass()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCardLookupTable.java61 return Comparator.comparingInt((ControllerRendererMapping mapping) -> mapping.mCardType) in compareTo()
62 .thenComparingInt(mapping -> mapping.mViewType) in compareTo()
106 for (ControllerRendererMapping mapping : LOOKUP_TABLE) { in getCardControllerClass()
107 if (mapping.mCardType == cardType) { in getCardControllerClass()
108 return mapping.mControllerClass; in getCardControllerClass()
/packages/modules/DnsResolver/tests/
Dresolv_stress_test.cpp59 auto& mapping = mappings[ofs]; in RunGetAddrInfoStressTest() local
61 int rv = getaddrinfo(mapping.host.c_str(), nullptr, nullptr, &result); in RunGetAddrInfoStressTest()
65 EXPECT_TRUE(result_str == mapping.ip4 || result_str == mapping.ip6) in RunGetAddrInfoStressTest()
66 << "result='" << result_str << "', ip4='" << mapping.ip4 in RunGetAddrInfoStressTest()
67 << "', ip6='" << mapping.ip6; in RunGetAddrInfoStressTest()
Dgolddata.proto198 // Used to build the packet mapping (query, response) in DNS responser. See also
Dresolv_integration_test.cpp590 const DnsResponderClient::Mapping& mapping = mappings[0]; in TEST_F() local
594 const hostent* result = gethostbyname(mapping.host.c_str()); in TEST_F()
596 std::accumulate(dns.begin(), dns.end(), 0, [&mapping](size_t total, auto& d) { in TEST_F()
597 return total + GetNumQueriesForType(*d, ns_type::ns_t_a, mapping.entry.c_str()); in TEST_F()
604 EXPECT_EQ(mapping.ip4, ToString(result)); in TEST_F()
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DAccountDisplayInfoFactoryTests.java178 final Map<AccountWithDataSet, AccountType> mapping) { in createFakeAccountTypeManager() argument
179 return new MockAccountTypeManager(mapping.values().toArray(new AccountType[mapping.size()]), in createFakeAccountTypeManager()
180 mapping.keySet().toArray(new AccountWithDataSet[mapping.size()])); in createFakeAccountTypeManager()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp183 for (const auto& mapping : mappings) { in SetupDNSServers() local
184 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_a, mapping.ip4.c_str()); in SetupDNSServers()
185 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_aaaa, mapping.ip6.c_str()); in SetupDNSServers()
/packages/apps/Camera2/src/com/android/camera/ui/
DZoomView.java99 Matrix mapping = new Matrix(); in doInBackground() local
100 mapping.setRectToRect(endRect, fullResRect, Matrix.ScaleToFit.CENTER); in doInBackground()
102 mapping.mapRect(visibleAfterRotation, visibleRect); in doInBackground()
/packages/modules/DnsResolver/
DREADME-DoT.md70 query a new ID for transmission, records the mapping from input IDs to sent IDs, and
71 applies the inverse mapping to responses before returning them to the caller.
Dstats.proto111 NS_T_PX = 26; // X.400 mail mapping.
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java548 Map<Integer, Integer> mapping = mTelephonyManager.getLogicalToPhysicalSlotMapping(); in updateEid() local
549 int pSlotId = mapping.getOrDefault(mSlotIndex, in updateEid()
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java1486 @ViewDebug.ExportedProperty(category = "layout", mapping = {
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DMatchParentShrinkingLinearLayout.java1486 @ViewDebug.ExportedProperty(category = "layout", mapping = {
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dsax.md122 When the `Reader` encounters a JSON number, it chooses a suitable C++ type mapping. And then it cal…
DDoxyfile.in244 # A mapping has the form "name=value". For example adding "class=itcl::class"
279 # extension. Doxygen has a built-in mapping, but you can override or extend it
1591 # unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java163 mapping = {
/packages/apps/LegacyCamera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile222 # Doxygen has a built-in mapping, but you can override or extend it using this tag.
/packages/apps/LegacyCamera/jni/feature_stab/doc/
Ddbreg_API_doxyfile222 # Doxygen has a built-in mapping, but you can override or extend it using this tag.
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...

12