Home
last modified time | relevance | path

Searched refs:dexMaker (Results 1 – 7 of 7) sorted by relevance

/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DDexMakerTest.java68 private DexMaker dexMaker; field in DexMakerTest
89 dexMaker = new DexMaker(); in reset()
90 dexMaker.declare(GENERATED, "Generated.java", PUBLIC, TypeId.OBJECT); in reset()
113 Code code = dexMaker.declare(methodId, PUBLIC | STATIC); in testNewInstance()
143 Code code = dexMaker.declare(methodId, PUBLIC); in testVoidNoArgMemberMethod()
163 Code code = dexMaker.declare(methodId, PUBLIC | STATIC); in testInvokeStatic()
183 Code code = dexMaker.declare(methodId, PUBLIC); in testCreateLocalMethodAsNull()
210 Code code = dexMaker.declare(methodId, PUBLIC | STATIC); in testInvokeVirtual()
242 Code directCode = dexMaker.declare(directMethodId, PRIVATE); in testInvokeDirect()
249 Code code = dexMaker.declare(methodId, PUBLIC | STATIC); in testInvokeDirect()
[all …]
DAnnotationIdTest.java67 private DexMaker dexMaker; field in AnnotationIdTest
349 dexMaker = new DexMaker(); in init()
350 dexMaker.declare(GENERATED, "Generated.java", PUBLIC, TypeId.OBJECT); in init()
368 Code code = dexMaker.declare(methodId, PUBLIC); in generateVoidMethod()
379 annotationId.addToMethod(dexMaker, methodId); in addAnnotationToMethod()
409 return dexMaker.generateAndLoad(getClass().getClassLoader(), getDataDirectory()) in generateAndLoad()
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/examples/
DHelloWorldMaker.java33 DexMaker dexMaker = new DexMaker(); in main() local
37 dexMaker.declare(helloWorld, "HelloWorld.generated", Modifier.PUBLIC, TypeId.OBJECT); in main()
38 generateHelloMethod(dexMaker, helloWorld); in main()
42 ClassLoader loader = dexMaker.generateAndLoad(HelloWorldMaker.class.getClassLoader(), in main()
61 private static void generateHelloMethod(DexMaker dexMaker, TypeId<?> declaringType) { in generateHelloMethod() argument
71 Code code = dexMaker.declare(hello, Modifier.STATIC | Modifier.PUBLIC); in generateHelloMethod()
DFibonacciMaker.java37 DexMaker dexMaker = new DexMaker(); in main() local
38 dexMaker.declare(fibonacci, fileName, Modifier.PUBLIC, TypeId.OBJECT); in main()
41 Code code = dexMaker.declare(fib, Modifier.PUBLIC | Modifier.STATIC); in main()
65 ClassLoader loader = dexMaker.generateAndLoad( in main()
/external/dexmaker/dexmaker/src/main/java/com/android/dx/stock/
DProxyBuilder.java288 DexMaker dexMaker = new DexMaker(); in buildProxyClass() local
292 generateConstructorsAndFields(dexMaker, generatedType, superType, baseClass); in buildProxyClass()
316 generateCodeForAllMethods(dexMaker, generatedType, methodsToProxy, superType); in buildProxyClass()
317dexMaker.declare(generatedType, generatedName + ".generated", PUBLIC, superType, getInterfacesAsTy… in buildProxyClass()
319 dexMaker.setSharedClassLoader(requestedClassloader); in buildProxyClass()
331 dexMaker.markAsTrusted(); in buildProxyClass()
335 classLoader = dexMaker.generateAndLoad(null, dexCache); in buildProxyClass()
337 classLoader = dexMaker.generateAndLoad(parentClassLoader, dexCache); in buildProxyClass()
477 private static <T, G extends T> void generateCodeForAllMethods(DexMaker dexMaker, in generateCodeForAllMethods() argument
531 Code code = dexMaker.declare(methodId, PUBLIC); in generateCodeForAllMethods()
[all …]
/external/dexmaker/
DREADME.md33 DexMaker dexMaker = new DexMaker();
37 dexMaker.declare(helloWorld, "HelloWorld.generated", Modifier.PUBLIC, TypeId.OBJECT);
38 generateHelloMethod(dexMaker, helloWorld);
42 ClassLoader loader = dexMaker.generateAndLoad(HelloWorldMaker.class.getClassLoader(),
61 private static void generateHelloMethod(DexMaker dexMaker, TypeId<?> declaringType) {
69 // Declare that method on the dexMaker. Use the returned Code instance
71 Code code = dexMaker.declare(hello, Modifier.STATIC | Modifier.PUBLIC);
/external/dexmaker/dexmaker/src/main/java/com/android/dx/
DAnnotationId.java128 public void addToMethod(DexMaker dexMaker, MethodId<?, ?> method) { in addToMethod() argument
137 ClassDefItem classDefItem = dexMaker.getTypeDeclaration(declaringType).toClassDefItem(); in addToMethod()
159 classDefItem.addMethodAnnotations(cstMethodRef, annotations, dexMaker.getDexFile()); in addToMethod()