/external/gson/gson/src/main/java/com/google/gson/internal/bind/ |
D | TreeTypeAdapter.java | 45 private final TypeToken<T> typeToken; field in TreeTypeAdapter 54 Gson gson, TypeToken<T> typeToken, TypeAdapterFactory skipPast, boolean nullSafe) { in TreeTypeAdapter() argument 58 this.typeToken = typeToken; in TreeTypeAdapter() 64 Gson gson, TypeToken<T> typeToken, TypeAdapterFactory skipPast) { in TreeTypeAdapter() argument 65 this(serializer, deserializer, gson, typeToken, skipPast, true); in TreeTypeAdapter() 76 return deserializer.deserialize(value, typeToken.getType(), context); in read() 88 JsonElement tree = serializer.serialize(value, typeToken.getType(), context); in write() 97 : (delegate = gson.getDelegateAdapter(skipPast, typeToken)); in delegate()
|
D | CollectionTypeAdapterFactory.java | 44 public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { in create() argument 45 Type type = typeToken.getType(); in create() 47 Class<? super T> rawType = typeToken.getRawType(); in create() 54 ObjectConstructor<T> constructor = constructorConstructor.get(typeToken); in create()
|
D | MapTypeAdapterFactory.java | 115 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { in create() argument 116 Type type = typeToken.getType(); in create() 118 Class<? super T> rawType = typeToken.getRawType(); in create() 126 ObjectConstructor<T> constructor = constructorConstructor.get(typeToken); in create()
|
D | TypeAdapters.java | 921 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { 922 Class<? super T> rawType = typeToken.getRawType(); 939 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { in newFactory() 940 return typeToken.equals(type) ? (TypeAdapter<T>) typeAdapter : null; in newFactory() 949 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { 950 return typeToken.getRawType() == type ? (TypeAdapter<T>) typeAdapter : null; 962 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { 963 Class<? super T> rawType = typeToken.getRawType(); 977 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { 978 Class<? super T> rawType = typeToken.getRawType(); [all …]
|
D | DateTypeAdapter.java | 49 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { 50 return typeToken.getRawType() == Date.class ? (TypeAdapter<T>) new DateTypeAdapter() : null;
|
D | ArrayTypeAdapter.java | 38 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { 39 Type type = typeToken.getType();
|
/external/caliper/caliper/src/main/java/com/google/caliper/json/ |
D | ImmutableMapTypeAdapterFactory.java | 40 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { in create() argument 41 Type type = typeToken.getType(); in create() 42 if (typeToken.getRawType() != ImmutableMap.class in create() 49 com.google.common.reflect.TypeToken.of(typeToken.getType()); in create()
|
D | ImmutableListTypeAdatperFactory.java | 40 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { in create() argument 41 Type type = typeToken.getType(); in create() 42 if (typeToken.getRawType() != ImmutableList.class in create() 49 com.google.common.reflect.TypeToken.of(typeToken.getType()); in create()
|
D | NaturallySortedMapTypeAdapterFactory.java | 45 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { in create() argument 46 Type type = typeToken.getType(); in create() 47 if (!CLASSES.contains(typeToken.getRawType()) in create() 54 com.google.common.reflect.TypeToken.of(typeToken.getType()); in create()
|
D | ImmutableMultimapTypeAdapterFactory.java | 70 public <T> TypeAdapter<T> create(Gson gson, com.google.gson.reflect.TypeToken<T> typeToken) { in create() argument 71 if (ImmutableListMultimap.class.isAssignableFrom(typeToken.getRawType())) { in create() 73 getMapOfListsToken((TypeToken) TypeToken.of(typeToken.getType())); in create() 92 } else if (ImmutableSetMultimap.class.isAssignableFrom(typeToken.getRawType())) { in create() 94 getMapOfSetsToken((TypeToken) TypeToken.of(typeToken.getType())); in create()
|
/external/TestParameterInjector/src/main/java/com/google/testing/junit/testparameterinjector/ |
D | ParameterValueParsing.java | 156 private static TypeToken<?> getGenericParameterType(TypeToken<?> typeToken, int parameterIndex) { in getGenericParameterType() argument 158 typeToken.getType() instanceof ParameterizedType, in getGenericParameterType() 160 typeToken); in getGenericParameterType() local 162 ParameterizedType parameterizedType = (ParameterizedType) typeToken.getType(); in getGenericParameterType()
|
/external/gson/gson/src/main/java/com/google/gson/internal/sql/ |
D | SqlTimestampTypeAdapter.java | 17 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { 18 if (typeToken.getRawType() == Timestamp.class) {
|
D | SqlTimeTypeAdapter.java | 43 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { 44 … return typeToken.getRawType() == Time.class ? (TypeAdapter<T>) new SqlTimeTypeAdapter() : null;
|
D | SqlDateTypeAdapter.java | 42 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { 43 return typeToken.getRawType() == java.sql.Date.class
|
/external/gson/gson/src/test/java/com/google/gson/functional/ |
D | ParameterizedTypesTest.java | 533 TypeToken<List<Quantity>> typeToken = new TypeToken<List<Quantity>>() {}; in testGsonFromJsonTypeToken() local 534 Type type = typeToken.getType(); in testGsonFromJsonTypeToken() 542 assertCorrectlyDeserialized(gson.fromJson(jsonArray, typeToken)); in testGsonFromJsonTypeToken() 549 assertCorrectlyDeserialized(gson.fromJson(json, typeToken)); in testGsonFromJsonTypeToken() 554 assertCorrectlyDeserialized(gson.fromJson(new StringReader(json), typeToken)); in testGsonFromJsonTypeToken() 560 assertCorrectlyDeserialized(gson.fromJson(reader, typeToken)); in testGsonFromJsonTypeToken()
|
/external/gson/gson/src/test/java/com/google/gson/reflect/ |
D | TypeTokenTest.java | 211 TypeToken<?> typeToken = new CustomTypeToken(); in testTypeTokenNonAnonymousSubclass() local 212 assertEquals(String.class, typeToken.getRawType()); in testTypeTokenNonAnonymousSubclass() 213 assertEquals(String.class, typeToken.getType()); in testTypeTokenNonAnonymousSubclass()
|
/external/gson/gson/src/main/java/com/google/gson/internal/ |
D | ConstructorConstructor.java | 83 public <T> ObjectConstructor<T> get(TypeToken<T> typeToken) { in get() argument 84 final Type type = typeToken.getType(); in get() 85 final Class<? super T> rawType = typeToken.getRawType(); in get()
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenTest.java | 811 for (TypeToken<?> typeToken : allTokens) { in testAssignableWithWildcards() 812 assertTrue(typeToken.toString(), unboundedToken.isSupertypeOf(typeToken)); in testAssignableWithWildcards() 829 for (TypeToken<?> typeToken : allTokens) { in testAssignableWithWildcards() 831 typeToken.toString(), typeToken == concreteToken, concreteToken.isSupertypeOf(typeToken)); in testAssignableWithWildcards() 834 for (TypeToken<?> typeToken : allTokens) { in testAssignableWithWildcards() 836 typeToken.toString(), typeToken == subtypeToken, subtypeToken.isSupertypeOf(typeToken)); in testAssignableWithWildcards() 839 for (TypeToken<?> typeToken : allTokens) { in testAssignableWithWildcards() 841 typeToken.toString(), in testAssignableWithWildcards() 842 typeToken == supertypeToken, in testAssignableWithWildcards() 843 supertypeToken.isSupertypeOf(typeToken)); in testAssignableWithWildcards()
|
/external/guava/android/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenTest.java | 811 for (TypeToken<?> typeToken : allTokens) { in testAssignableWithWildcards() 812 assertTrue(typeToken.toString(), unboundedToken.isSupertypeOf(typeToken)); in testAssignableWithWildcards() 829 for (TypeToken<?> typeToken : allTokens) { in testAssignableWithWildcards() 831 typeToken.toString(), typeToken == concreteToken, concreteToken.isSupertypeOf(typeToken)); in testAssignableWithWildcards() 834 for (TypeToken<?> typeToken : allTokens) { in testAssignableWithWildcards() 836 typeToken.toString(), typeToken == subtypeToken, subtypeToken.isSupertypeOf(typeToken)); in testAssignableWithWildcards() 839 for (TypeToken<?> typeToken : allTokens) { in testAssignableWithWildcards() 841 typeToken.toString(), in testAssignableWithWildcards() 842 typeToken == supertypeToken, in testAssignableWithWildcards() 843 supertypeToken.isSupertypeOf(typeToken)); in testAssignableWithWildcards()
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmFloatControlsTests.cpp | 814 const string typeToken = "_float"; in updateSpirvSnippets() local 817 typeAnnotationsSnippet = replace(typeAnnotationsTemplate, typeToken, typeName); in updateSpirvSnippets() 818 typeDefinitionsSnippet = replace(typeDefinitionsTemplate, typeToken, typeName); in updateSpirvSnippets() 819 minTypeDefinitionsSnippet = replace(minTypeDefinitionsTemplate, typeToken, typeName); in updateSpirvSnippets() 820 constantsDefinitionsSnippet = replace(constantsDefinitionsTemplate, typeToken, typeName); in updateSpirvSnippets() 821 argumentsFromInputSnippet = replace(argumentsFromInputTemplate, typeToken, typeName); in updateSpirvSnippets() 822 multiArgumentsFromInputSnippet = replace(multiArgumentsFromInputTemplate, typeToken, typeName); in updateSpirvSnippets() 823 inputDefinitionsSnippet = replace(inputDefinitionsTemplate, typeToken, typeName); in updateSpirvSnippets() 824 multiOutputAnnotationsSnippet = replace(multiOutputAnnotationsTemplate, typeToken, typeName); in updateSpirvSnippets() 825 outputDefinitionsSnippet = replace(outputDefinitionsTemplate, typeToken, typeName); in updateSpirvSnippets() [all …]
|
/external/gson/gson/src/main/java/com/google/gson/ |
D | GsonBuilder.java | 614 TypeToken<?> typeToken = TypeToken.get(type); in registerTypeAdapter() local 615 factories.add(TreeTypeAdapter.newFactoryWithMatchRawType(typeToken, typeAdapter)); in registerTypeAdapter()
|
/external/gson/metrics/src/main/java/com/google/gson/metrics/ |
D | ParseBenchmark.java | 69 private Document(TypeToken<?> typeToken, TypeReference<?> typeReference) { in Document() argument 70 this.gsonType = typeToken; in Document()
|
/external/python/cpython2/Lib/plat-mac/Carbon/ |
D | AppleEvents.py | 940 typeToken = FOUR_CHAR_CODE('toke') variable
|