Searched refs:TypeId (Results 1 - 25 of 60) sorted by relevance

123

/external/dexmaker/src/test/java/com/google/dexmaker/
H A DTypeIdTest.java23 assertEquals("Ljava/lang/String;", TypeId.get(String.class).getName());
24 assertEquals("[Ljava/lang/String;", TypeId.get(String[].class).getName());
25 assertEquals("[[Ljava/lang/String;", TypeId.get(String[][].class).getName());
26 assertEquals("I", TypeId.get(int.class).getName());
27 assertEquals("[I", TypeId.get(int[].class).getName());
28 assertEquals("[[I", TypeId.get(int[][].class).getName());
H A DDexMakerTest.java47 private static TypeId<DexMakerTest> TEST_TYPE = TypeId.get(DexMakerTest.class);
48 private static TypeId<?> INT_ARRAY = TypeId.get(int[].class);
49 private static TypeId<boolean[]> BOOLEAN_ARRAY = TypeId.get(boolean[].class);
50 private static TypeId<long[]> LONG_ARRAY = TypeId.get(long[].class);
51 private static TypeId<Object[]> OBJECT_ARRAY = TypeId
[all...]
/external/dexmaker/src/test/java/com/google/dexmaker/examples/
H A DHelloWorldMaker.java25 import com.google.dexmaker.TypeId;
35 TypeId<?> helloWorld = TypeId.get("LHelloWorld;");
36 dexMaker.declare(helloWorld, "HelloWorld.generated", Modifier.PUBLIC, TypeId.OBJECT);
60 private static void generateHelloMethod(DexMaker dexMaker, TypeId<?> declaringType) {
62 TypeId<System> systemType = TypeId.get(System.class);
63 TypeId<PrintStream> printStreamType = TypeId.get(PrintStream.class);
66 MethodId hello = declaringType.getMethod(TypeId
[all...]
H A DFibonacciMaker.java26 import com.google.dexmaker.TypeId;
33 TypeId<?> fibonacci = TypeId.get("Lcom/google/dexmaker/examples/Fibonacci;");
37 dexMaker.declare(fibonacci, fileName, Modifier.PUBLIC, TypeId.OBJECT);
39 MethodId<?, Integer> fib = fibonacci.getMethod(TypeId.INT, "fib", TypeId.INT);
42 Local<Integer> i = code.getParameter(0, TypeId.INT);
43 Local<Integer> constant1 = code.newLocal(TypeId.INT);
44 Local<Integer> constant2 = code.newLocal(TypeId.INT);
45 Local<Integer> a = code.newLocal(TypeId
[all...]
/external/dexmaker/src/main/java/com/google/dexmaker/
H A DTypeId.java29 * java.lang.Integer} have the same type parameter: {@code TypeId<Integer>}.
34 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<Doubl
90 TypeId(com.android.dx.rop.type.Type ropType) { method in class:TypeId
94 TypeId(String name, com.android.dx.rop.type.Type ropType) { method in class:TypeId
[all...]
H A DUnaryOp.java29 @Override Rop rop(TypeId<?> type) {
36 @Override Rop rop(TypeId<?> type) {
41 abstract Rop rop(TypeId<?> type);
H A DLocal.java26 final TypeId<T> type;
30 private Local(Code code, TypeId<T> type) {
35 static <T> Local<T> get(Code code, TypeId<T> type) {
67 public TypeId getType() {
H A DFieldId.java30 final TypeId<D> declaringType;
31 final TypeId<V> type;
38 FieldId(TypeId<D> declaringType, TypeId<V> type, String name) {
49 public TypeId<D> getDeclaringType() {
53 public TypeId<V> getType() {
H A DMethodId.java32 final TypeId<D> declaringType;
33 final TypeId<R> returnType;
41 MethodId(TypeId<D> declaringType, TypeId<R> returnType, String name, TypeList parameters) {
53 public TypeId<D> getDeclaringType() {
57 public TypeId<R> getReturnType() {
75 public List<TypeId<?>> getParameters() {
88 for (TypeId t : parameters.types) {
H A DTypeList.java28 final TypeId<?>[] types;
31 TypeList(TypeId<?>[] types) {
42 public List<TypeId<?>> asList() {
H A DConstants.java41 * @param value null, a boxed primitive, String, Class, or TypeId.
65 return new CstType(TypeId.get((Class<?>) value).ropType);
66 } else if (value instanceof TypeId) {
67 return new CstType(((TypeId) value).ropType);
H A DDexMaker.java81 * <p>We start by creating a {@link TypeId} to identify the generated {@code
86 * TypeId<?> fibonacci = TypeId.get("Lcom/google/dexmaker/examples/Fibonacci;");
96 * dexMaker.declare(fibonacci, fileName, Modifier.PUBLIC, TypeId.OBJECT);
122 * takes the method's return type (possibly {@link TypeId#VOID}), its name and
128 * MethodId<?, Integer> fib = fibonacci.getMethod(TypeId.INT, "fib", TypeId.INT);
140 * Local<Integer> i = code.getParameter(0, TypeId.INT);
141 * Local<Integer> constant1 = code.newLocal(TypeId.INT);
142 * Local<Integer> constant2 = code.newLocal(TypeId
[all...]
H A DCode.java126 * kind. Lookup a method on a type using {@link TypeId#getMethod
127 * TypeId.getMethod()}. This is more onerous than Java language invokes, which
204 private final List<TypeId<?>> catchTypes = new ArrayList<TypeId<?>>();
216 for (TypeId<?> parameter : method.parameters.types) {
228 public <T> Local<T> newLocal(TypeId<T> type) {
241 public <T> Local<T> getParameter(int index, TypeId<T> type) {
252 public <T> Local<T> getThis(TypeId<T> type) {
260 private <T> Local<T> coerce(Local<?> local, TypeId<T> expectedType) {
361 public void addCatchClause(TypeId<
[all...]
/external/dexmaker/src/main/java/com/google/dexmaker/stock/
H A DProxyBuilder.java26 import com.google.dexmaker.TypeId;
245 TypeId<? extends T> generatedType = TypeId.get("L" + generatedName + ";");
246 TypeId<T> superType = TypeId.get(baseClass);
351 TypeId<G> generatedType, Method[] methodsToProxy, TypeId<T> superclassType) {
352 TypeId<InvocationHandler> handlerType = TypeId.get(InvocationHandler.class);
353 TypeId<Metho
[all...]
/external/gtest/include/gtest/internal/
H A Dgtest-internal.h395 // unique IDs to fixture classes and compare them. The TypeId type is
396 // used to hold such IDs. The user should treat TypeId as an opaque
397 // type: the only operation allowed on TypeId values is to compare
399 typedef const void* TypeId; typedef in namespace:testing::internal
417 TypeId GetTypeId() {
430 GTEST_API_ TypeId GetTestTypeId();
496 TypeId fixture_class_id,
H A Dgtest-param-util.h422 virtual TypeId GetTestCaseTypeId() const = 0;
459 virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); }
/external/protobuf/gtest/include/gtest/internal/
H A Dgtest-internal.h486 // unique IDs to fixture classes and compare them. The TypeId type is
487 // used to hold such IDs. The user should treat TypeId as an opaque
488 // type: the only operation allowed on TypeId values is to compare
490 typedef const void* TypeId; typedef in namespace:testing::internal
508 TypeId GetTypeId() {
521 TypeId GetTestTypeId();
597 TypeId fixture_class_id,
H A Dgtest-param-util.h440 virtual TypeId GetTestCaseTypeId() const = 0;
477 virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); }
/external/protobuf/gtest/src/
H A Dgtest-internal-inl.h79 extern const TypeId kTestTypeIdInGoogleTest;
518 const char* comment, TypeId fixture_class_id,
553 TypeId fixture_class_id() const { return fixture_class_id_; }
578 const TypeId fixture_class_id_; // ID of the test fixture class
/external/llvm/lib/MC/MCParser/
H A DCOFFAsmParser.cpp469 StringRef TypeId = getTok().getIdentifier(); local
471 Type = StringSwitch<COFF::COMDATType>(TypeId)
482 return TokError(Twine("unrecognized COMDAT type '" + TypeId + "'"));
/external/chromium_org/testing/gtest/include/gtest/internal/
H A Dgtest-param-util.h422 virtual TypeId GetTestCaseTypeId() const = 0;
459 virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); }
H A Dgtest-internal.h427 // unique IDs to fixture classes and compare them. The TypeId type is
428 // used to hold such IDs. The user should treat TypeId as an opaque
429 // type: the only operation allowed on TypeId values is to compare
431 typedef const void* TypeId; typedef in namespace:testing::internal
449 TypeId GetTypeId() {
462 GTEST_API_ TypeId GetTestTypeId();
528 TypeId fixture_class_id,
/external/chromium_org/third_party/mesa/src/src/gtest/include/gtest/internal/
H A Dgtest-param-util.h422 virtual TypeId GetTestCaseTypeId() const = 0;
459 virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); }
/external/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-param-util.h422 virtual TypeId GetTestCaseTypeId() const = 0;
459 virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); }
/external/mesa3d/src/gtest/include/gtest/internal/
H A Dgtest-param-util.h422 virtual TypeId GetTestCaseTypeId() const = 0;
459 virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); }

Completed in 201 milliseconds

123