Home
last modified time | relevance | path

Searched refs:TypeId (Results 1 – 25 of 64) sorted by relevance

123

/external/dexmaker/src/main/java/com/google/dexmaker/
DTypeId.java34 public final class TypeId<T> { class
36 public static final TypeId<Boolean> BOOLEAN
37 = new TypeId<Boolean>(com.android.dx.rop.type.Type.BOOLEAN);
40 public static final TypeId<Byte> BYTE = new TypeId<Byte>(com.android.dx.rop.type.Type.BYTE);
43 public static final TypeId<Character> CHAR
44 = new TypeId<Character>(com.android.dx.rop.type.Type.CHAR);
47 …public static final TypeId<Double> DOUBLE = new TypeId<Double>(com.android.dx.rop.type.Type.DOUBLE…
50 public static final TypeId<Float> FLOAT = new TypeId<Float>(com.android.dx.rop.type.Type.FLOAT);
53 public static final TypeId<Integer> INT = new TypeId<Integer>(com.android.dx.rop.type.Type.INT);
56 public static final TypeId<Long> LONG = new TypeId<Long>(com.android.dx.rop.type.Type.LONG);
[all …]
DMethodId.java32 final TypeId<D> declaringType;
33 final TypeId<R> returnType;
41 MethodId(TypeId<D> declaringType, TypeId<R> returnType, String name, TypeList parameters) { in MethodId()
53 public TypeId<D> getDeclaringType() { in getDeclaringType()
57 public TypeId<R> getReturnType() { in getReturnType()
75 public List<TypeId<?>> getParameters() { in getParameters()
88 for (TypeId t : parameters.types) { in descriptor()
DFieldId.java30 final TypeId<D> declaringType;
31 final TypeId<V> type;
38 FieldId(TypeId<D> declaringType, TypeId<V> type, String name) { in FieldId()
49 public TypeId<D> getDeclaringType() { in getDeclaringType()
53 public TypeId<V> getType() { in getType()
DDexMaker.java198 private final Map<TypeId<?>, TypeDeclaration> types
199 = new LinkedHashMap<TypeId<?>, TypeDeclaration>();
208 private TypeDeclaration getTypeDeclaration(TypeId<?> type) { in getTypeDeclaration()
223 public void declare(TypeId<?> type, String sourceFile, int flags, in declare()
224 TypeId<?> supertype, TypeId<?>... interfaces) { in declare()
335 Set<TypeId<?>> typesKeySet = types.keySet(); in generateFileName()
336 Iterator<TypeId<?>> it = typesKeySet.iterator(); in generateFileName()
341 TypeId<?> typeId = it.next(); in generateFileName()
443 private final TypeId<?> type;
448 private TypeId<?> supertype;
[all …]
DLocal.java26 final TypeId<T> type;
30 private Local(Code code, TypeId<T> type) { in Local()
35 static <T> Local<T> get(Code code, TypeId<T> type) { in get()
67 public TypeId getType() { in getType()
DUnaryOp.java29 @Override Rop rop(TypeId<?> type) { in NOT()
36 @Override Rop rop(TypeId<?> type) { in NEGATE()
41 abstract Rop rop(TypeId<?> type); in rop()
DTypeList.java28 final TypeId<?>[] types;
31 TypeList(TypeId<?>[] types) { in TypeList()
42 public List<TypeId<?>> asList() { in asList()
DConstants.java65 return new CstType(TypeId.get((Class<?>) value).ropType); in getConstant()
66 } else if (value instanceof TypeId) { in getConstant()
67 return new CstType(((TypeId) value).ropType); in getConstant()
DCode.java204 private final List<TypeId<?>> catchTypes = new ArrayList<TypeId<?>>();
216 for (TypeId<?> parameter : method.parameters.types) { in Code()
228 public <T> Local<T> newLocal(TypeId<T> type) { in newLocal()
241 public <T> Local<T> getParameter(int index, TypeId<T> type) { in getParameter()
252 public <T> Local<T> getThis(TypeId<T> type) { in getThis()
260 private <T> Local<T> coerce(Local<?> local, TypeId<T> expectedType) { in coerce()
361 public void addCatchClause(TypeId<? extends Throwable> toCatch, Label catchClause) { in addCatchClause()
374 public Label removeCatchClause(TypeId<? extends Throwable> toCatch) { in removeCatchClause()
392 private StdTypeList toTypeList(List<TypeId<?>> types) { in toTypeList()
705 public void instanceOfType(Local<?> target, Local<?> source, TypeId<?> type) { in instanceOfType()
[all …]
/external/dexmaker/src/test/java/com/google/dexmaker/
DDexMakerTest.java48 private static TypeId<DexMakerTest> TEST_TYPE = TypeId.get(DexMakerTest.class);
49 private static TypeId<?> INT_ARRAY = TypeId.get(int[].class);
50 private static TypeId<boolean[]> BOOLEAN_ARRAY = TypeId.get(boolean[].class);
51 private static TypeId<long[]> LONG_ARRAY = TypeId.get(long[].class);
52 private static TypeId<Object[]> OBJECT_ARRAY = TypeId.get(Object[].class);
53 private static TypeId<long[][]> LONG_2D_ARRAY = TypeId.get(long[][].class);
54 private static TypeId<?> GENERATED = TypeId.get("LGenerated;");
55 private static TypeId<Callable> CALLABLE = TypeId.get(Callable.class);
56 private static MethodId<Callable, Object> CALL = CALLABLE.getMethod(TypeId.OBJECT, "call");
69 dexMaker.declare(GENERATED, "Generated.java", PUBLIC, TypeId.OBJECT); in reset()
[all …]
DTypeIdTest.java23 assertEquals("Ljava/lang/String;", TypeId.get(String.class).getName()); in testGetType()
24 assertEquals("[Ljava/lang/String;", TypeId.get(String[].class).getName()); in testGetType()
25 assertEquals("[[Ljava/lang/String;", TypeId.get(String[][].class).getName()); in testGetType()
26 assertEquals("I", TypeId.get(int.class).getName()); in testGetType()
27 assertEquals("[I", TypeId.get(int[].class).getName()); in testGetType()
28 assertEquals("[[I", TypeId.get(int[][].class).getName()); in testGetType()
/external/dexmaker/src/test/java/com/google/dexmaker/examples/
DHelloWorldMaker.java25 import com.google.dexmaker.TypeId;
35 TypeId<?> helloWorld = TypeId.get("LHelloWorld;"); in main()
36 dexMaker.declare(helloWorld, "HelloWorld.generated", Modifier.PUBLIC, TypeId.OBJECT); in main()
60 private static void generateHelloMethod(DexMaker dexMaker, TypeId<?> declaringType) { in generateHelloMethod()
62 TypeId<System> systemType = TypeId.get(System.class); in generateHelloMethod()
63 TypeId<PrintStream> printStreamType = TypeId.get(PrintStream.class); in generateHelloMethod()
66 MethodId hello = declaringType.getMethod(TypeId.VOID, "hello"); in generateHelloMethod()
73 Local<Integer> a = code.newLocal(TypeId.INT); in generateHelloMethod()
74 Local<Integer> b = code.newLocal(TypeId.INT); in generateHelloMethod()
75 Local<Integer> c = code.newLocal(TypeId.INT); in generateHelloMethod()
[all …]
DFibonacciMaker.java26 import com.google.dexmaker.TypeId;
33 TypeId<?> fibonacci = TypeId.get("Lcom/google/dexmaker/examples/Fibonacci;"); in main()
37 dexMaker.declare(fibonacci, fileName, Modifier.PUBLIC, TypeId.OBJECT); in main()
39 MethodId<?, Integer> fib = fibonacci.getMethod(TypeId.INT, "fib", TypeId.INT); in main()
42 Local<Integer> i = code.getParameter(0, TypeId.INT); in main()
43 Local<Integer> constant1 = code.newLocal(TypeId.INT); in main()
44 Local<Integer> constant2 = code.newLocal(TypeId.INT); in main()
45 Local<Integer> a = code.newLocal(TypeId.INT); in main()
46 Local<Integer> b = code.newLocal(TypeId.INT); in main()
47 Local<Integer> c = code.newLocal(TypeId.INT); in main()
[all …]
/external/dexmaker/src/main/java/com/google/dexmaker/stock/
DProxyBuilder.java26 import com.google.dexmaker.TypeId;
251 TypeId<? extends T> generatedType = TypeId.get("L" + generatedName + ";"); in buildProxyClass()
252 TypeId<T> superType = TypeId.get(baseClass); in buildProxyClass()
357 TypeId<G> generatedType, Method[] methodsToProxy, TypeId<T> superclassType) { in generateCodeForAllMethods()
358 TypeId<InvocationHandler> handlerType = TypeId.get(InvocationHandler.class); in generateCodeForAllMethods()
359 TypeId<Method[]> methodArrayType = TypeId.get(Method[].class); in generateCodeForAllMethods()
364 TypeId<Method> methodType = TypeId.get(Method.class); in generateCodeForAllMethods()
365 TypeId<Object[]> objectArrayType = TypeId.get(Object[].class); in generateCodeForAllMethods()
366 MethodId<InvocationHandler, Object> methodInvoke = handlerType.getMethod(TypeId.OBJECT, in generateCodeForAllMethods()
367 "invoke", TypeId.OBJECT, methodType, objectArrayType); in generateCodeForAllMethods()
[all …]
/external/gemmlowp/internal/
Dallocator.h54 enum class TypeId : std::uint8_t { Uint8, Int8, Uint16, Int16, Uint32, Int32 }; enum
60 inline TypeId GetTypeId() { in GetTypeId()
70 static const TypeId Value = TypeId::id; \
140 TypeId type_;
/external/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp108 if (ConstantInt *TypeId = extractBitSetTypeId(BitSetNM->getOperand(I))) in buildCFICheck() local
109 BitSetIds.insert(TypeId->getZExtValue()); in buildCFICheck()
143 for (uint64_t TypeId : BitSetIds) { in buildCFICheck() local
144 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId); in buildCFICheck()
/external/protobuf/gtest/include/gtest/internal/
Dgtest-internal.h490 typedef const void* TypeId; typedef
508 TypeId GetTypeId() { in GetTypeId()
521 GTEST_API_ TypeId GetTestTypeId();
599 TypeId fixture_class_id,
/external/protobuf/gtest/src/
Dgtest-internal-inl.h81 GTEST_API_ extern const TypeId kTestTypeIdInGoogleTest;
347 const char* comment, TypeId fixture_class_id,
382 TypeId fixture_class_id() const { return fixture_class_id_; } in fixture_class_id()
407 const TypeId fixture_class_id_; // ID of the test fixture class
/external/llvm/tools/llvm-pdbdump/
DFunctionDumper.cpp219 uint32_t TypeId = Symbol.getTypeId(); in dump() local
220 auto Type = Symbol.getSession().getSymbolById(TypeId); in dump()
/external/gtest/include/gtest/internal/
Dgtest-internal.h399 typedef const void* TypeId; typedef
417 TypeId GetTypeId() { in GetTypeId()
430 GTEST_API_ TypeId GetTestTypeId();
496 TypeId fixture_class_id,
/external/vulkan-validation-layers/tests/gtest-1.7.0/include/gtest/internal/
Dgtest-internal.h399 typedef const void* TypeId; typedef
417 TypeId GetTypeId() { in GetTypeId()
430 GTEST_API_ TypeId GetTestTypeId();
496 TypeId fixture_class_id,
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-internal.h474 typedef const void* TypeId; typedef
492 TypeId GetTypeId() { in GetTypeId()
505 GTEST_API_ TypeId GetTestTypeId();
570 TypeId fixture_class_id,
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-internal.h503 typedef const void* TypeId; typedef
521 TypeId GetTypeId() { in GetTypeId()
534 GTEST_API_ TypeId GetTestTypeId();
599 TypeId fixture_class_id,
/external/google-breakpad/src/testing/gtest/include/gtest/internal/
Dgtest-internal.h474 typedef const void* TypeId; typedef
492 TypeId GetTypeId() { in GetTypeId()
505 GTEST_API_ TypeId GetTestTypeId();
570 TypeId fixture_class_id,
/external/llvm/lib/IR/
DDebugInfo.cpp69 if (MDString *TypeId = Ty->getRawIdentifier()) { in generateDITypeIdentifierMap() local
73 Map.insert(std::make_pair(TypeId, Ty)); in generateDITypeIdentifierMap()

123