Home
last modified time | relevance | path

Searched refs:mapKey (Results 1 – 24 of 24) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/binding/
DMapKeys.java83 static Optional<? extends AnnotationValue> unwrapValue(AnnotationMirror mapKey) { in unwrapValue() argument
84 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue()
86 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()
88 ? Optional.of(getOnlyElement(getAnnotationValuesWithDefaults(mapKey).values())) in unwrapValue()
169 AnnotationMirror mapKey, DaggerElements elements) { in directMapKeyExpression() argument
170 Optional<? extends AnnotationValue> unwrappedValue = unwrapValue(mapKey); in directMapKeyExpression()
171 AnnotationExpression annotationExpression = new AnnotationExpression(mapKey); in directMapKeyExpression()
173 if (MoreTypes.asTypeElement(mapKey.getAnnotationType()) in directMapKeyExpression()
186 getOnlyElement(getAnnotationValuesWithDefaults(mapKey).keySet()).getReturnType(); in directMapKeyExpression()
211 .filter(mapKey -> !isMapKeyPubliclyAccessible(mapKey)) in mapKeyFactoryMethod()
[all …]
/external/guice/core/src/com/google/inject/internal/
DProvidesMethodScanner.java60 AnnotationOrError mapKey = findMapKeyAnnotation(binder, method); in prepareMethod() local
62 if (mapKey.annotation != null) { in prepareMethod()
69 if (mapKey.annotation != null) { in prepareMethod()
74 if (mapKey.error) { in prepareMethod()
78 if (mapKey.annotation == null) { in prepareMethod()
83 TypeAndValue typeAndValue = typeAndValueOfMapKey(mapKey.annotation); in prepareMethod()
87 if (mapKey.annotation != null) { in prepareMethod()
121 MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class); in findMapKeyAnnotation() local
122 if (mapKey != null) { in findMapKeyAnnotation()
127 if (mapKey.unwrapValue()) { in findMapKeyAnnotation()
DRealMapBinder.java236 Key<Map<K, V>> mapKey, in newRealMapBinder() argument
239 new RealMapBinder<K, V>(binder, keyType, valueType, mapKey, entrySetBinder); in newRealMapBinder()
258 Key<Map<K, V>> mapKey, in RealMapBinder() argument
260 this.bindingSelection = new BindingSelection<>(keyType, valueType, mapKey, entrySetBinder); in RealMapBinder()
357 private final Key<Map<K, V>> mapKey; field in RealMapBinder.BindingSelection
392 Key<Map<K, V>> mapKey, in BindingSelection() argument
396 this.mapKey = mapKey; in BindingSelection()
575 local = providerMapKey = mapKey.ofType(mapOfProviderOf(keyType, valueType)); in getProviderMapKey()
583 local = javaxProviderMapKey = mapKey.ofType(mapOfJavaxProviderOf(keyType, valueType)); in getJavaxProviderMapKey()
591 local = multimapKey = mapKey.ofType(mapOf(keyType, setOf(valueType))); in getMultimapKey()
[all …]
/external/guice/core/test/com/google/inject/internal/
DSpiUtils.java121 Key<T> mapKey, in assertMapVisitor() argument
135 mapKey, keyType, valueType, modules, allowDuplicates, expectedMapBindings, results); in assertMapVisitor()
140 mapKey, keyType, valueType, modules, allowDuplicates, expectedMapBindings, results); in assertMapVisitor()
146 Key<T> mapKey, in mapInjectorTest() argument
155 Binding<T> mapBinding = injector.getBinding(mapKey); in mapInjectorTest()
192 Key<?> mapOfJavaxProvider = mapKey.ofType(mapOfJavaxProviderOf(keyType, valueType)); in mapInjectorTest()
193 Key<?> mapOfProvider = mapKey.ofType(mapOfProviderOf(keyType, valueType)); in mapInjectorTest()
194 Key<?> mapOfSetOfProvider = mapKey.ofType(mapOfSetOfProviderOf(keyType, valueType)); in mapInjectorTest()
195 Key<?> mapOfSetOfJavaxProvider = mapKey.ofType(mapOfSetOfJavaxProviderOf(keyType, valueType)); in mapInjectorTest()
197 mapKey.ofType(mapOfCollectionOfProviderOf(keyType, valueType)); in mapInjectorTest()
[all …]
DMapBinderTest.java1338 Key<Map<String, String>> mapKey = Key.get(new TypeLiteral<Map<String, String>>() {}); in testWeakKeySet_integration_mapbinder() local
1348 WeakKeySetUtils.assertNotBlacklisted(parentInjector, mapKey); in testWeakKeySet_integration_mapbinder()
1361 WeakKeySetUtils.assertBlacklisted(parentInjector, mapKey); in testWeakKeySet_integration_mapbinder()
1367 WeakKeySetUtils.assertNotBlacklisted(parentInjector, mapKey); in testWeakKeySet_integration_mapbinder()
/external/dagger2/java/dagger/android/processor/
DDuplicateAndroidInjectorsChecker.java85 AnnotationMirror mapKey = mapKey(injectorFactory).get(); in validateMapKeyUniqueness() local
86 Optional<String> injectedType = injectedTypeFromMapKey(mapKey); in validateMapKeyUniqueness()
91 ERROR, injectorFactory, "Unrecognized class: %s", mapKey); in validateMapKeyUniqueness()
130 private Optional<AnnotationMirror> mapKey(Binding binding) { in mapKey() method
DAndroidMapKeys.java34 static Optional<String> injectedTypeFromMapKey(AnnotationMirror mapKey) { in injectedTypeFromMapKey() argument
35 Object mapKeyClass = getAnnotationValue(mapKey, "value").getValue(); in injectedTypeFromMapKey()
/external/dagger2/javatests/dagger/functional/multibindings/
DComplexMapKeysInDifferentOrderTest.java69 assertThat(map.get(mapKey(1, 2))).isEqualTo(3); in test()
70 assertThat(map.get(mapKey(5, 4))).isEqualTo(6); in test()
74 static ComplexMapKey mapKey(int i, int j) { in mapKey() method in ComplexMapKeysInDifferentOrderTest
DMapKeyWithDefaultTest.java69 assertThat(map.get(mapKey(true, false))).isEqualTo(1); in test()
70 assertThat(map.get(mapKey(false, false))).isEqualTo(2); in test()
74 static MapKeyWithDefault mapKey(boolean hasDefault, boolean required) { in mapKey() method in MapKeyWithDefaultTest
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
DNGramList.java26 Object mapKey(String key); in mapKey() method
105 Object mappedKey = keyMapper.mapKey(key); in get()
112 Object mappedKey = keyMapper.mapKey(key); in put()
DInputFile.java132 public Object mapKey(String key) in mapKey() method in InputFile
DStatisticsTool.java139 public Object mapKey(String key) in mapKey() method in StatisticsTool
/external/jsilver/src/com/google/clearsilver/jsilver/precompiler/
DPrecompiledTemplateLoader.java66 PrecompiledTemplateMapKey mapKey = (PrecompiledTemplateMapKey) entry.getKey(); in makeTemplateMap() local
69 compiledTemplate.setEscapeMode(mapKey.getEscapeMode()); in makeTemplateMap()
106 PrecompiledTemplateMapKey mapKey = new PrecompiledTemplateMapKey(key, escapeMode); in load() local
107 Template template = templateMap.get(mapKey); in load()
/external/dagger2/java/dagger/android/internal/
DAndroidInjectionKeys.java33 public static String of(String mapKey) { in of() argument
34 return mapKey; in of()
/external/emma/core/java12/com/vladium/jcd/cls/
DConstantCollection.java155 final String mapKey = ((CONSTANT_Utf8_info) result).m_value; in set() local
158 if (m_CONSTANT_Utf8_index.get (mapKey, out) && (out [0] == zindex)) in set()
159 m_CONSTANT_Utf8_index.remove (mapKey); in set()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTrieMapTest.java238 String mapKey = mapEntry.getKey(); in checkContents() local
240 if (!mapKey.contentEquals(trieKey)) { in checkContents()
241 assertEquals(style + "\tKeys match", mapKey, trieKey.toString()); in checkContents()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTrieMapTest.java235 String mapKey = mapEntry.getKey(); in checkContents() local
237 if (!mapKey.contentEquals(trieKey)) { in checkContents()
238 assertEquals(style + "\tKeys match", mapKey, trieKey.toString()); in checkContents()
/external/dagger2/java/dagger/hilt/android/processor/internal/bindvalue/
DBindValueGenerator.java151 builder.addAnnotation(AnnotationSpec.get(bindValue.mapKey().get())); in providesMethod()
DBindValueMetadata.java85 abstract Optional<AnnotationMirror> mapKey(); in mapKey() method in BindValueMetadata.BindValueElement
/external/protobuf/php/tests/
Dgenerated_class_test.php1405 foreach ($value as $mapKey => &$element) {
1413 foreach ($value as $mapKey => &$element) {
1421 foreach ($value as $mapKey => &$element) {
1429 foreach ($value as $mapKey => &$element) {
1441 foreach ($value as $mapKey => &$element) {
/external/opencensus-java/exporters/trace/stackdriver/src/main/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverV2ExporterHandler.java287 attributesBuilder.putAttributeMap(mapKey(label.getKey()), value); in toAttributesBuilderProto()
401 private static String mapKey(String key) { in mapKey() method in StackdriverV2ExporterHandler
/external/icu/icu4c/source/tools/genrb/
Dreslist.h92 int32_t mapKey(int32_t oldpos) const;
Dreslist.cpp492 SRBRoot::mapKey(int32_t oldpos) const { in mapKey() function in SRBRoot
607 fKey = bundle->mapKey(fKey); in write16()
/external/chromium-trace/catapult/systrace/systrace/test_data/
Dprofile-chrome_systrace_perf_chrome_data1 …, "1494": {"category": "libinputflinger.so", "name": "android::EventHub::mapKey(int, int, int, int…