Home
last modified time | relevance | path

Searched refs:keyType (Results 1 – 25 of 39) sorted by relevance

12

/external/guava/guava/src/com/google/common/collect/
DEnumHashBiMap.java49 private transient Class<K> keyType; field in EnumHashBiMap
57 create(Class<K> keyType) { in create() argument
58 return new EnumHashBiMap<K, V>(keyType); in create()
78 private EnumHashBiMap(Class<K> keyType) { in EnumHashBiMap() argument
80 new EnumMap<K, V>(keyType)), in EnumHashBiMap()
82 keyType.getEnumConstants().length)); in EnumHashBiMap()
83 this.keyType = keyType; in EnumHashBiMap()
102 public Class<K> keyType() { in keyType() method in EnumHashBiMap
103 return keyType; in keyType()
113 stream.writeObject(keyType); in writeObject()
[all …]
DEnumBiMap.java46 private transient Class<K> keyType; field in EnumBiMap
57 create(Class<K> keyType, Class<V> valueType) { in create() argument
58 return new EnumBiMap<K, V>(keyType, valueType); in create()
78 private EnumBiMap(Class<K> keyType, Class<V> valueType) { in EnumBiMap() argument
79 super(WellBehavedMap.wrap(new EnumMap<K, V>(keyType)), in EnumBiMap()
81 this.keyType = keyType; in EnumBiMap()
87 return ((EnumBiMap<K, ?>) map).keyType(); in inferKeyType()
90 return ((EnumHashBiMap<K, ?>) map).keyType(); in inferKeyType()
105 public Class<K> keyType() { in keyType() method in EnumBiMap
106 return keyType; in keyType()
[all …]
/external/jetty/src/java/org/eclipse/jetty/util/ssl/
DAliasedX509ExtendedKeyManager.java59 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) in chooseClientAlias() argument
61 … return _keyAlias == null ? _keyManager.chooseClientAlias(keyType, issuers, socket) : _keyAlias; in chooseClientAlias()
68 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) in chooseServerAlias() argument
70 … return _keyAlias == null ? _keyManager.chooseServerAlias(keyType, issuers, socket) : _keyAlias; in chooseServerAlias()
77 public String[] getClientAliases(String keyType, Principal[] issuers) in getClientAliases() argument
79 return _keyManager.getClientAliases(keyType, issuers); in getClientAliases()
87 public String[] getServerAliases(String keyType, Principal[] issuers) in getServerAliases() argument
89 return _keyManager.getServerAliases(keyType, issuers); in getServerAliases()
115 public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) in chooseEngineServerAlias() argument
117 … return _keyAlias == null ? super.chooseEngineServerAlias(keyType,issuers,engine) : _keyAlias; in chooseEngineServerAlias()
[all …]
DAliasedX509KeyManager.java57 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) in chooseClientAlias() argument
59 … return _keyAlias == null ? _keyManager.chooseClientAlias(keyType, issuers, socket) : _keyAlias; in chooseClientAlias()
66 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) in chooseServerAlias() argument
68 … return _keyAlias == null ?_keyManager.chooseServerAlias(keyType, issuers, socket) : _keyAlias; in chooseServerAlias()
75 public String[] getClientAliases(String keyType, Principal[] issuers) in getClientAliases() argument
77 return _keyManager.getClientAliases(keyType, issuers); in getClientAliases()
85 public String[] getServerAliases(String keyType, Principal[] issuers) in getServerAliases() argument
87 return _keyManager.getServerAliases(keyType, issuers); in getServerAliases()
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DRealElement.java33 private final String keyType; field in RealElement
35 RealElement(String setName, Element.Type type, String keyType) { in RealElement() argument
36 this(setName, type, keyType, nextUniqueId.incrementAndGet()); in RealElement()
39 RealElement(String setName, Element.Type type, String keyType, int uniqueId) { in RealElement() argument
43 this.keyType = keyType; in RealElement()
58 @Override public String keyType() { in keyType() method in RealElement
59 return keyType; in keyType()
68 + ",uniqueId=" + uniqueId + ", type=" + type + ", keyType=" + keyType + ")"; in toString()
76 && ((Element) o).keyType().equals(keyType()); in equals()
83 + ((127 * "keyType".hashCode()) ^ keyType.hashCode()); in hashCode()
DMapBinder.java144 TypeLiteral<K> keyType, TypeLiteral<V> valueType) { in newMapBinder() argument
146 return newRealMapBinder(binder, keyType, valueType, Key.get(mapOf(keyType, valueType)), in newMapBinder()
147 Multibinder.newSetBinder(binder, entryOfProviderOf(keyType, valueType))); in newMapBinder()
155 Class<K> keyType, Class<V> valueType) { in newMapBinder() argument
156 return newMapBinder(binder, TypeLiteral.get(keyType), TypeLiteral.get(valueType)); in newMapBinder()
164 TypeLiteral<K> keyType, TypeLiteral<V> valueType, Annotation annotation) { in newMapBinder() argument
166 return newRealMapBinder(binder, keyType, valueType, in newMapBinder()
167 Key.get(mapOf(keyType, valueType), annotation), in newMapBinder()
168 Multibinder.newSetBinder(binder, entryOfProviderOf(keyType, valueType), annotation)); in newMapBinder()
176 Class<K> keyType, Class<V> valueType, Annotation annotation) { in newMapBinder() argument
[all …]
DElement.java45 String keyType(); in keyType() method
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DEnumHashBiMap.java44 private transient Class<K> keyType; field in EnumHashBiMap
52 create(Class<K> keyType) { in create() argument
53 return new EnumHashBiMap<K, V>(keyType); in create()
73 private EnumHashBiMap(Class<K> keyType) { in EnumHashBiMap() argument
75 new EnumMap<K, V>(keyType)), in EnumHashBiMap()
77 keyType.getEnumConstants().length)); in EnumHashBiMap()
78 this.keyType = keyType; in EnumHashBiMap()
97 public Class<K> keyType() { in keyType() method in EnumHashBiMap
98 return keyType; in keyType()
DEnumBiMap.java42 private transient Class<K> keyType; field in EnumBiMap
53 create(Class<K> keyType, Class<V> valueType) { in create() argument
54 return new EnumBiMap<K, V>(keyType, valueType); in create()
74 private EnumBiMap(Class<K> keyType, Class<V> valueType) { in EnumBiMap() argument
75 super(WellBehavedMap.wrap(new EnumMap<K, V>(keyType)), in EnumBiMap()
77 this.keyType = keyType; in EnumBiMap()
83 return ((EnumBiMap<K, ?>) map).keyType(); in inferKeyType()
86 return ((EnumHashBiMap<K, ?>) map).keyType(); in inferKeyType()
101 public Class<K> keyType() { in keyType() method in EnumBiMap
102 return keyType; in keyType()
/external/conscrypt/src/test/java/org/conscrypt/
DSSLParametersImplTest.java30 String keyType = SSLParametersImpl.getClientKeyType(b); in testGetClientKeyType() local
33 assertEquals(byteString, "RSA", keyType); in testGetClientKeyType()
36 assertEquals(byteString, "DH_RSA", keyType); in testGetClientKeyType()
39 assertEquals(byteString, "EC", keyType); in testGetClientKeyType()
42 assertEquals(byteString, "EC_RSA", keyType); in testGetClientKeyType()
45 assertEquals(byteString, "EC_EC", keyType); in testGetClientKeyType()
48 assertNull(byteString, keyType); in testGetClientKeyType()
/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
137 assertEquals(keyType, mapbinder.getKeyTypeLiteral()); 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 …]
DRealElementTest.java46 assertEquals("a", realElement.keyType()); in testProperties()
53 @Element(keyType = "a", setName = "b", type = Type.MULTIBINDER, uniqueId = 1)
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DKeyManagerImplTest.java38 String[] keyType = { "RSA", "DSA" }; in testKeyManagerImpl1() local
39 String al = km.chooseClientAlias(keyType, null, new Socket()); in testKeyManagerImpl1()
42 al = km.chooseEngineClientAlias(keyType, null, new SSLEngineImpl(null)); in testKeyManagerImpl1()
65 String[] keyType = { "RSA", "DSA" }; in testKeyManagerImpl2() local
66 String al = km.chooseClientAlias(keyType, null, new Socket()); in testKeyManagerImpl2()
69 al = km.chooseEngineClientAlias(keyType, null, new SSLEngineImpl(null)); in testKeyManagerImpl2()
/external/conscrypt/src/main/java/org/conscrypt/
DKeyManagerImpl.java94 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
95 final String[] al = chooseAlias(new String[] { keyType }, issuers); in chooseServerAlias()
119 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument
120 return chooseAlias(new String[] { keyType }, issuers); in getClientAliases()
124 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
125 return chooseAlias(new String[] { keyType }, issuers); in getServerAliases()
146 public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) { in chooseEngineServerAlias() argument
147 final String[] al = chooseAlias(new String[] { keyType }, issuers); in chooseEngineServerAlias()
DSSLParametersImpl.java539 String keyType = getServerX509KeyType(sslCipherNativePointer); in setSSLParameters() local
540 if (keyType != null) { in setSSLParameters()
541 keyTypes.add(keyType); in setSSLParameters()
546 for (String keyType : keyTypes) { in setSSLParameters()
549 chooser.chooseServerAlias(x509KeyManager, keyType)); in setSSLParameters()
825 String chooseServerAlias(X509KeyManager keyManager, String keyType); in chooseServerAlias() argument
1057 String keyType = getClientKeyType(keyTypeCode); in getSupportedClientKeyTypes() local
1058 if (keyType == null) { in getSupportedClientKeyTypes()
1062 result.add(keyType); in getSupportedClientKeyTypes()
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
DX509ExtendedKeyManagerTest.java57 public String chooseClientAlias(String[] keyType, Principal[] issuers, in chooseClientAlias() argument
66 public String chooseServerAlias(String keyType, Principal[] issuers, in chooseServerAlias() argument
82 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument
90 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DKey.java198 TypeMirror keyType = returnType;
200 keyType = Iterables.getOnlyElement(MoreTypes.asDeclared(returnType).getTypeArguments());
202 return forMethod(componentMethod, keyType);
221 TypeMirror keyType =
227 return forMethod(method, keyType);
243 TypeMirror keyType =
249 return forMethod(method, keyType);
292 private Key forMethod(ExecutableElement method, TypeMirror keyType) {
295 MoreTypes.equivalence().wrap(keyType));
349 TypeMirror keyType = Util.getKeyTypeOfMap(declaredMapType);
[all …]
DMapKeyProcessingStep.java76 DeclaredType keyType = in process() local
78 if (keyType.asElement().getKind() == ElementKind.ANNOTATION_TYPE) { in process()
81 MoreElements.asType(element), MoreTypes.asTypeElement(keyType))); in process()
DFactoryGenerator.java104 TypeMirror keyType = binding.provisionType().equals(Type.MAP) in write() local
107 TypeName providedTypeName = TypeNames.forTypeMirror(keyType); in write()
192 TypeNames.forTypeMirror(keyType)); in write()
241 MoreTypes.asDeclared(keyType).getTypeArguments().get(0)); in write()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/nodes/
DMappingNode.java64 public void setOnlyKeyType(Class<? extends Object> keyType) { in setOnlyKeyType() argument
66 nodes.getKeyNode().setType(keyType); in setOnlyKeyType()
70 public void setTypes(Class<? extends Object> keyType, Class<? extends Object> valueType) { in setTypes() argument
73 nodes.getKeyNode().setType(keyType); in setTypes()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypeTokenResolutionTest.java260 Type keyType = Map.class.getTypeParameters()[0];
264 assertEquals(String.class, TypeToken.of(context).resolveType(keyType).getType());
269 assertEquals(keyType, TypeToken.of(keyType).resolveType(keyType).getType());
511 TypeToken<?> keyType = TypeToken.of(returnType)
513 assertEquals("java.util.List<V>", keyType.getType().toString());
519 TypeToken<?> keyType = TypeToken.of(returnType)
521 assertEquals("java.util.List<K>", keyType.getType().toString());
527 TypeToken<?> keyType = TypeToken.of(returnType)
529 assertEquals("java.util.List<java.util.List<V>>", keyType.getType().toString());
535 TypeToken<?> keyType = TypeToken.of(returnType)
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/json/
DImmutableMultimapTypeAdapterFactory.java48 TypeToken<K> keyType = (TypeToken<K>) TypeToken.of(rawType.getActualTypeArguments()[0]); in getMapOfListsToken() local
52 .where(new TypeParameter<K>() {}, keyType) in getMapOfListsToken()
60 TypeToken<K> keyType = (TypeToken<K>) TypeToken.of(rawType.getActualTypeArguments()[0]); in getMapOfSetsToken() local
64 .where(new TypeParameter<K>() {}, keyType) in getMapOfSetsToken()
/external/icu/icu4c/source/i18n/
Dplurrule.cpp1302 PluralRuleParser::getKeyType(const UnicodeString &token, tokenType keyType) in getKeyType() argument
1304 if (keyType != tKeyword) { in getKeyType()
1305 return keyType; in getKeyType()
1309 keyType = tVariableN; in getKeyType()
1311 keyType = tVariableI; in getKeyType()
1313 keyType = tVariableF; in getKeyType()
1315 keyType = tVariableT; in getKeyType()
1317 keyType = tVariableV; in getKeyType()
1319 keyType = tIs; in getKeyType()
1321 keyType = tAnd; in getKeyType()
[all …]
/external/guice/core/src/com/google/inject/util/
DTypes.java119 public static ParameterizedType mapOf(Type keyType, Type valueType) { in mapOf() argument
120 return newParameterizedType(Map.class, keyType, valueType); in mapOf()
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/
DPeerConnection.java154 public KeyType keyType; field in PeerConnection.RTCConfiguration
167 keyType = KeyType.ECDSA; in RTCConfiguration()

12