Home
last modified time | relevance | path

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

1234

/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DKeyManagerFactoryTest.java175 for (String keyType : keyTypes) { in test_X509KeyManager()
176 String[] aliases = km.getClientAliases(keyType, null); in test_X509KeyManager()
177 if (empty || keyType == null || keyType.isEmpty()) { in test_X509KeyManager()
178 assertNull(keyType, aliases); in test_X509KeyManager()
181 assertNotNull(keyType, aliases); in test_X509KeyManager()
183 test_X509KeyManager_alias(km, alias, keyType, false, empty); in test_X509KeyManager()
186 for (String keyType : keyTypes) { in test_X509KeyManager()
187 String[] aliases = km.getServerAliases(keyType, null); in test_X509KeyManager()
188 if (empty || keyType == null || keyType.isEmpty()) { in test_X509KeyManager()
189 assertNull(keyType, aliases); in test_X509KeyManager()
[all …]
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DKeyManagerFactoryTest.java179 for (String keyType : keyTypes) { in test_X509KeyManager()
180 String[] aliases = km.getClientAliases(keyType, null); in test_X509KeyManager()
181 if (empty || keyType == null || keyType.isEmpty()) { in test_X509KeyManager()
182 assertNull(keyType, aliases); in test_X509KeyManager()
185 assertNotNull(keyType, aliases); in test_X509KeyManager()
187 test_X509KeyManager_alias(km, alias, keyType, false, empty); in test_X509KeyManager()
190 for (String keyType : keyTypes) { in test_X509KeyManager()
191 String[] aliases = km.getServerAliases(keyType, null); in test_X509KeyManager()
192 if (empty || keyType == null || keyType.isEmpty()) { in test_X509KeyManager()
193 assertNull(keyType, aliases); in test_X509KeyManager()
[all …]
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DTestKeyManager.java65 for (String keyType : keyTypes) { in chooseClientAlias()
66 out.print(keyType); in chooseClientAlias()
76 for (String keyType : keyTypes) { in assertKeyTypes()
77 assertKeyType(keyType); in assertKeyTypes()
81 private void assertKeyType(String keyType) { in assertKeyType() argument
82 if (!StandardNames.KEY_TYPES.contains(keyType)) { in assertKeyType()
83 throw new AssertionError("Unexpected key type " + keyType); in assertKeyType()
88 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
91 out.print(keyType); in chooseServerAlias()
95 assertKeyType(keyType); in chooseServerAlias()
[all …]
DForwardingX509ExtendedKeyManager.java33 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { in chooseClientAlias() argument
34 return delegate.chooseClientAlias(keyType, issuers, socket); in chooseClientAlias()
37 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
38 return delegate.chooseServerAlias(keyType, issuers, socket); in chooseServerAlias()
45 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument
46 return delegate.getClientAliases(keyType, issuers); in getClientAliases()
49 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
50 return delegate.getServerAliases(keyType, issuers); in getServerAliases()
53 public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine) { in chooseEngineClientAlias() argument
54 return delegate.chooseEngineClientAlias(keyType, issuers, engine); in chooseEngineClientAlias()
[all …]
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DTestKeyManager.java67 for (String keyType : keyTypes) { in chooseClientAlias()
68 out.print(keyType); in chooseClientAlias()
78 for (String keyType : keyTypes) { in assertKeyTypes()
79 assertKeyType(keyType); in assertKeyTypes()
83 private void assertKeyType(String keyType) { in assertKeyType() argument
84 if (!StandardNames.KEY_TYPES.contains(keyType)) { in assertKeyType()
85 throw new AssertionError("Unexpected key type " + keyType); in assertKeyType()
90 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
93 out.print(keyType); in chooseServerAlias()
97 assertKeyType(keyType); in chooseServerAlias()
[all …]
DForwardingX509ExtendedKeyManager.java35 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { in chooseClientAlias() argument
36 return delegate.chooseClientAlias(keyType, issuers, socket); in chooseClientAlias()
39 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
40 return delegate.chooseServerAlias(keyType, issuers, socket); in chooseServerAlias()
47 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument
48 return delegate.getClientAliases(keyType, issuers); in getClientAliases()
51 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
52 return delegate.getServerAliases(keyType, issuers); in getServerAliases()
55 public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine) { in chooseEngineClientAlias() argument
56 return delegate.chooseEngineClientAlias(keyType, issuers, engine); in chooseEngineClientAlias()
[all …]
/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/guice/core/src/com/google/inject/internal/
DRealElement.java31 private final String keyType; field in RealElement
33 RealElement(String setName, Element.Type type, String keyType) { in RealElement() argument
34 this(setName, type, keyType, nextUniqueId.incrementAndGet()); in RealElement()
37 RealElement(String setName, Element.Type type, String keyType, int uniqueId) { in RealElement() argument
41 this.keyType = keyType; in RealElement()
60 public String keyType() { in keyType() method in RealElement
61 return keyType; in keyType()
80 + keyType in toString()
90 && ((Element) o).keyType().equals(keyType()); in equals()
98 + ((127 * "keyType".hashCode()) ^ keyType.hashCode()); in hashCode()
DRealMapBinder.java73 Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType) { in newMapRealBinder() argument
77 keyType, in newMapRealBinder()
79 Key.get(mapOf(keyType, valueType)), in newMapRealBinder()
80 RealMultibinder.newRealSetBinder(binder, Key.get(entryOfProviderOf(keyType, valueType)))); in newMapRealBinder()
88 Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Annotation annotation) { in newRealMapBinder() argument
92 keyType, in newRealMapBinder()
94 Key.get(mapOf(keyType, valueType), annotation), in newRealMapBinder()
96 binder, Key.get(entryOfProviderOf(keyType, valueType), annotation))); in newRealMapBinder()
105 TypeLiteral<K> keyType, in newRealMapBinder() argument
111 keyType, in newRealMapBinder()
[all …]
/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/guice/core/src/com/google/inject/multibindings/
DMapBinder.java101 Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType) { in newMapBinder() argument
103 newMapRealBinder(binder.skipSources(MapBinder.class), keyType, valueType)); in newMapBinder()
111 Binder binder, Class<K> keyType, Class<V> valueType) { in newMapBinder() argument
112 return newMapBinder(binder, TypeLiteral.get(keyType), TypeLiteral.get(valueType)); in newMapBinder()
120 Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Annotation annotation) { in newMapBinder() argument
122 newRealMapBinder(binder.skipSources(MapBinder.class), keyType, valueType, annotation)); in newMapBinder()
130 Binder binder, Class<K> keyType, Class<V> valueType, Annotation annotation) { in newMapBinder() argument
131 return newMapBinder(binder, TypeLiteral.get(keyType), TypeLiteral.get(valueType), annotation); in newMapBinder()
140 TypeLiteral<K> keyType, in newMapBinder() argument
144 newRealMapBinder(binder.skipSources(MapBinder.class), keyType, valueType, annotationType)); in newMapBinder()
[all …]
/external/guice/core/test/com/google/inject/internal/
DSpiUtils.java122 TypeLiteral<?> keyType, in assertMapVisitor() argument
135 mapKey, keyType, valueType, modules, allowDuplicates, expectedMapBindings, results); in assertMapVisitor()
140 mapKey, keyType, valueType, modules, allowDuplicates, expectedMapBindings, results); in assertMapVisitor()
147 TypeLiteral<?> keyType, in mapInjectorTest() argument
158 assertEquals(keyType, mapbinder.getKeyTypeLiteral()); 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 …]
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DModifierKey.java36 private final String keyType; field in ModifierKey
38 private ModifierKey(Variant variant, String keyType) { in ModifierKey() argument
40 this.keyType = checkNotNull(keyType); in ModifierKey()
68 return fromString(keyType + variant.opposite()); in sibling()
79 return fromString(keyType); in parent()
90 … return ImmutableList.of(fromString(keyType + Variant.LEFT), fromString(keyType + Variant.RIGHT)); in children()
95 return keyType + variant.value; in toString()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMapEntryLite.java48 public final WireFormat.FieldType keyType; field in MapEntryLite.Metadata
53 WireFormat.FieldType keyType, in Metadata() argument
56 this.keyType = keyType; in Metadata()
79 WireFormat.FieldType keyType, K defaultKey, in MapEntryLite() argument
81 this.metadata = new Metadata<K, V>(this, keyType, valueType); in MapEntryLite()
110 WireFormat.FieldType keyType, K defaultKey, in newDefaultInstance() argument
113 keyType, defaultKey, valueType, defaultValue); in newDefaultInstance()
118 writeField(KEY_FIELD_NUMBER, metadata.keyType, key, output); in writeTo()
136 size += getFieldSize(KEY_FIELD_NUMBER, metadata.keyType, key); in getSerializedSize()
163 KEY_FIELD_NUMBER, metadata.keyType.getWireType())) { in MapEntryLite()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DKeyManagerImpl.java91 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
92 final String[] al = chooseAlias(new String[] { keyType }, issuers); in chooseServerAlias()
116 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument
117 return chooseAlias(new String[] { keyType }, issuers); in getClientAliases()
121 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
122 return chooseAlias(new String[] { keyType }, issuers); in getServerAliases()
143 public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) { in chooseEngineServerAlias() argument
144 final String[] al = chooseAlias(new String[] { keyType }, issuers); in chooseEngineServerAlias()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DKeyManagerImpl.java92 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
93 final String[] al = chooseAlias(new String[] { keyType }, issuers); in chooseServerAlias()
117 public String[] getClientAliases(String keyType, Principal[] issuers) { in getClientAliases() argument
118 return chooseAlias(new String[] { keyType }, issuers); in getClientAliases()
122 public String[] getServerAliases(String keyType, Principal[] issuers) { in getServerAliases() argument
123 return chooseAlias(new String[] { keyType }, issuers); in getServerAliases()
144 public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) { in chooseEngineServerAlias() argument
145 final String[] al = chooseAlias(new String[] { keyType }, issuers); in chooseEngineServerAlias()
/external/bcc/src/cc/frontends/p4/compiler/
Dtarget.py38 isHash, keyType, valueType, size): argument
42 assert isinstance(keyType, str)
60 self.tableKeyAttribute, keyType)
126 isHash, keyType, valueType, size): argument
130 assert isinstance(keyType, str)
141 kind, keyType, valueType, tableName, size)
/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 …]
/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/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/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DInternalNano.java395 int keyType, in mergeMapEntry() argument
410 key = (K) input.readPrimitiveField(keyType); in mergeMapEntry()
428 key = (K) primitiveDefaultValue(keyType); in mergeMapEntry()
442 Map<K, V> map, int number, int keyType, int valueType) in serializeMapField() argument
452 CodedOutputByteBufferNano.computeFieldSize(1, keyType, key) + in serializeMapField()
456 output.writeField(1, keyType, key); in serializeMapField()
462 Map<K, V> map, int number, int keyType, int valueType) { in computeMapFieldSize() argument
473 CodedOutputByteBufferNano.computeFieldSize(1, keyType, key) + in computeMapFieldSize()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMap.java107 this.keyType = Utils.rubyToFieldType(args[0]); in initialize()
110 switch(keyType) { in initialize()
151 Utils.checkType(context, keyType, key, (RubyModule) valueTypeClass); in indexSet()
398 return this.keyType == other.keyType && in typeCompatible()
407 Utils.fieldTypeToRuby(context, keyType), in newThisType()
412 Utils.fieldTypeToRuby(context, keyType), in newThisType()
430 private Descriptors.FieldDescriptor.Type keyType; field in RubyMap
DRubyMessageBuilderContext.java145 IRubyObject keyType = args[1]; in map() local
153 if (keyType.equals(RubySymbol.newSymbol(runtime, "float")) || in map()
154 keyType.equals(RubySymbol.newSymbol(runtime, "double")) || in map()
155 keyType.equals(RubySymbol.newSymbol(runtime, "enum")) || in map()
156 keyType.equals(RubySymbol.newSymbol(runtime, "message"))) in map()
171 keyField.setType(context, keyType); in map()

1234