Home
last modified time | relevance | path

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

/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DMultibindingsScanner.java81 AnnotationOrError mapKey = findMapKeyAnnotation(binder, method);
83 if (mapKey.annotation != null) {
88 if (mapKey.error) {
92 if (mapKey.annotation == null) {
97 TypeAndValue typeAndValue = typeAndValueOfMapKey(mapKey.annotation);
101 if (mapKey.annotation != null) {
135 MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class);
136 if (mapKey != null) {
141 if (mapKey.unwrapValue()) {
DMapBinder.java252 TypeLiteral<K> keyType, TypeLiteral<V> valueType, Key<Map<K, V>> mapKey, in newRealMapBinder() argument
255 new RealMapBinder<K, V>(binder, keyType, valueType, mapKey, entrySetBinder); in newRealMapBinder()
317 private final Key<Map<K, V>> mapKey; field in MapBinder.RealMapBinder
332 Key<Map<K, V>> mapKey, Multibinder<Map.Entry<K, Provider<V>>> entrySetBinder) { in RealMapBinder() argument
335 this.mapKey = mapKey; in RealMapBinder()
336 this.providerMapKey = mapKey.ofType(mapOfProviderOf(keyType, valueType)); in RealMapBinder()
337 this.javaxProviderMapKey = mapKey.ofType(mapOfJavaxProviderOf(keyType, valueType)); in RealMapBinder()
338 this.multimapKey = mapKey.ofType(mapOf(keyType, setOf(valueType))); in RealMapBinder()
339 this.providerMultimapKey = mapKey.ofType(mapOfSetOfProviderOf(keyType, valueType)); in RealMapBinder()
398 binder.bind(mapKey).toProvider(new RealMapProvider(dependencies, mapProvider)); in configure()
[all …]
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DMapKeys.java86 static Optional<? extends AnnotationValue> unwrapValue(AnnotationMirror mapKey) { in unwrapValue() argument
87 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue()
89 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()
91 ? Optional.of(getOnlyElement(mapKey.getElementValues().values())) in unwrapValue()
154 AnnotationMirror mapKey = getMapKey(bindingElement).get(); in getMapKeySnippet() local
156 getMapKeyCreatorClassName(MoreTypes.asTypeElement(mapKey.getAnnotationType())); in getMapKeySnippet()
157 Optional<? extends AnnotationValue> unwrappedValue = unwrapValue(mapKey); in getMapKeySnippet()
162 return annotationSnippet(mapKey, new MapKeySnippet(mapKeyCreator)); in getMapKeySnippet()
DContributionBinding.java265 AnnotationMirror mapKey = getMapKey(mapBinding.bindingElement()).get();
266 Optional<? extends AnnotationValue> unwrappedValue = unwrapValue(mapKey);
267 return unwrappedValue.isPresent() ? unwrappedValue.get().getValue() : mapKey;
/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/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/guice/extensions/multibindings/test/com/google/inject/multibindings/
DSpiUtils.java110 static <T> void assertMapVisitor(Key<T> mapKey, TypeLiteral<?> keyType, TypeLiteral<?> valueType, in assertMapVisitor() argument
118 mapInjectorTest(mapKey, keyType, valueType, modules, allowDuplicates, expectedMapBindings, in assertMapVisitor()
123 mapModuleTest(mapKey, keyType, valueType, modules, allowDuplicates, expectedMapBindings, in assertMapVisitor()
129 private static <T> void mapInjectorTest(Key<T> mapKey, TypeLiteral<?> keyType, in mapInjectorTest() argument
134 Binding<T> mapBinding = injector.getBinding(mapKey); in mapInjectorTest()
168 Key<?> mapOfJavaxProvider = mapKey.ofType(mapOfJavaxProviderOf(keyType, valueType)); in mapInjectorTest()
169 Key<?> mapOfProvider = mapKey.ofType(mapOfProviderOf(keyType, valueType)); in mapInjectorTest()
170 Key<?> mapOfSetOfProvider = mapKey.ofType(mapOfSetOfProviderOf(keyType, valueType)); in mapInjectorTest()
171 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapInjectorTest()
172 Key<?> setOfEntry = mapKey.ofType(setOf(entryOfProviderOf(keyType, valueType))); in mapInjectorTest()
[all …]
DMapBinderTest.java1007 Key<Map<String, String>> mapKey = Key.get(new TypeLiteral<Map<String, String>>() {}); in testWeakKeySet_integration_mapbinder() local
1014 WeakKeySetUtils.assertNotBlacklisted(parentInjector, mapKey); in testWeakKeySet_integration_mapbinder()
1024 WeakKeySetUtils.assertBlacklisted(parentInjector, mapKey); in testWeakKeySet_integration_mapbinder()
1030 WeakKeySetUtils.assertNotBlacklisted(parentInjector, mapKey); in testWeakKeySet_integration_mapbinder()
/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.java231 String mapKey = mapEntry.getKey(); in checkContents() local
233 if (!mapKey.contentEquals(trieKey)) { in checkContents()
234 assertEquals(style + "\tKeys match", mapKey, trieKey.toString()); in checkContents()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTrieMapTest.java230 String mapKey = mapEntry.getKey(); in checkContents() local
232 if (!mapKey.contentEquals(trieKey)) { in checkContents()
233 assertEquals(style + "\tKeys match", mapKey, trieKey.toString()); in checkContents()
/external/icu/icu4c/source/tools/genrb/
Dreslist.h88 int32_t mapKey(int32_t oldpos) const;
Dreslist.cpp485 SRBRoot::mapKey(int32_t oldpos) const { in mapKey() function in SRBRoot
600 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…