/art/test/042-new-instance/src/ |
D | Main.java | 37 Object obj = c.newInstance(); in testClassNewInstance() 47 Object obj = c.newInstance(); in testClassNewInstance() 88 Object obj = cons.newInstance(); in testConstructorNewInstance() 99 Object obj = cons.newInstance(new Main()); in testConstructorNewInstance() 110 Object obj = cons.newInstance(); in testConstructorNewInstance() 134 Object obj = cons.newInstance(); in testConstructorNewInstance() 149 Object obj = cons.newInstance(); in testConstructorNewInstance() 187 CC.newInstance(); in main() 198 static Object newInstance() { in newInstance() method in LocalClass3.CC 201 return c.newInstance(); in newInstance()
|
/art/test/045-reflect-array/src/ |
D | Main.java | 27 intArray = Array.newInstance(Integer.TYPE, 2); in testSingleInt() 66 intArray = Array.newInstance(Integer.TYPE, 0); in testSingleInt() 73 Object charArray = Array.newInstance(Character.TYPE, 7); in testSingleChar() 126 Object shortArray = Array.newInstance(Short.TYPE, 1); in testSingleShort() 138 Object longArray = Array.newInstance(Long.TYPE, 2); in testSingleLong() 165 strArray = Array.newInstance(String.class, 2); in testSingle() 199 intIntIntArray = Array.newInstance(Integer.TYPE, dimensions); in testMultiInt() 218 strStrStrArray = Array.newInstance(String.class, dimensions); in testMulti() 246 strStrStrArray = Array.newInstance(String[].class, dimensions2); in testMulti() 261 Object arrayOfAbstractClasses = Array.newInstance(Number.class, 1); in testAbstract() [all …]
|
/art/test/042-new-instance/ |
D | info.txt | 1 Test various permutations of Class.newInstance and Constructor.newInstance,
|
/art/test/674-hiddenapi/src-ex/ |
D | Reflection.java | 64 f.getInt(Modifier.isStatic(f.getModifiers()) ? null : klass.newInstance()); in canGetField() 76 f.setInt(Modifier.isStatic(f.getModifiers()) ? null : klass.newInstance(), 42); in canSetField() 124 m.invoke(klass.isInterface() ? null : klass.newInstance()); in canInvokeMethod() 172 c.newInstance(initargs); in canInvokeConstructor() 182 klass.newInstance(); in canUseNewInstance()
|
/art/test/142-classloader2/src/ |
D | Main.java | 30 return (ClassLoader)constructor.newInstance(dexPath, parent); in createClassLoader() 78 badClass.newInstance(); in main() 88 badClass.newInstance(); in main()
|
/art/test/425-invoke-super/src/ |
D | Main.java | 50 assertEquals(42, ((Integer)m.invoke(c.newInstance(), new Object[0])).intValue()); in main() 53 assertEquals(42, ((Integer)m.invoke(c.newInstance(), new Object[0])).intValue()); in main()
|
/art/test/141-class-unload/src/ |
D | Main.java | 137 return intHolder.newInstance(); in testNoUnloadHelper() 151 ClassLoader loader = (ClassLoader) constructor.newInstance( in testNoUnloadInstanceHelper() 166 ClassLoader loader = (ClassLoader) constructor.newInstance( in setUpUnloadClass() 182 ClassLoader loader = (ClassLoader) constructor.newInstance( in allocObjectInOtherClassLoader() 184 return loader.loadClass("IntHolder").newInstance(); in allocObjectInOtherClassLoader() 212 ClassLoader loader = (ClassLoader) constructor.newInstance( in setUpUnloadLoader() 234 ClassLoader loader = (ClassLoader) constructor.newInstance( in setUpLoadLibrary()
|
/art/test/068-classloader/src/ |
D | Main.java | 79 Object mDexFile = ctor.newInstance(DEX_FILE); in testNullClassLoader() 164 obj = altClass.newInstance(); in testAccess1() 236 obj = doubledExtendClass.newInstance(); in testExtend() 283 obj = doubledExtendOkayClass.newInstance(); in testExtendOkay() 331 obj = getDoubledClass.newInstance(); in testInterface() 377 obj = abstractGetClass.newInstance(); in testAbstract() 424 obj = doubledImplementClass.newInstance(); in testImplement() 485 obj = ifaceImplClass.newInstance(); in testIfaceImplement()
|
/art/test/972-iface-super-multidex/src/ |
D | Main.java | 30 System.out.println((String)m.invoke(c.newInstance(), new Object[0])); in main() 38 System.out.println((String)m.invoke(c.newInstance(), new Object[0])); in main()
|
/art/test/949-in-memory-transform/src/art/ |
D | Test949.java | 95 .newInstance(ByteBuffer.wrap(INITIAL_DEX_BYTES), in run() 116 Object t = transform_class.newInstance(); in doTest()
|
/art/test/656-checker-simd-opt/src/ |
D | Main.java | 73 Array.newInstance(int.class, 1).getClass(), in stencilAddInt() 74 Array.newInstance(int.class, 1).getClass(), in stencilAddInt() 86 Array.newInstance(int.class, 1).getClass(), in stencilSubInt() 87 Array.newInstance(int.class, 1).getClass(), in stencilSubInt()
|
/art/test/616-cha-proxy-method-inline/src/ |
D | Main.java | 24 public static Object newInstance(Object obj) { in newInstance() method in DebugProxy 64 Foo foo = (Foo)DebugProxy.newInstance(null); in main()
|
/art/test/1950-unprepared-transform/src/ |
D | Main.java | 78 return (ClassLoader)ctor.newInstance(location + "/" + TEST_NAME + "-ex.jar", in getClassLoaderFor() 95 Object o = klass.newInstance(); in testCurrentThread() 132 Object o = klass.newInstance(); in testRemoteThread()
|
/art/test/155-java-set-resolved-type/src/ |
D | Main.java | 62 timpl.newInstance(); in main() 76 return (ClassLoader)ctor.newInstance(path, parent); in getClassLoaderFor()
|
/art/test/042-new-instance/src/otherpackage/ |
D | ConstructorAccess.java | 34 Object obj = cons.newInstance(); in newConstructorInstance()
|
/art/test/071-dexfile/src/ |
D | Main.java | 70 Object another = Another.newInstance(); in testDexClassLoader() 88 return (ClassLoader) DexClassLoader_init.newInstance(CLASS_PATH, in getDexClassLoader()
|
/art/test/553-invoke-super/src/ |
D | Main.java | 29 assertEquals(42, ((Integer)m.invoke(c.newInstance(), new Object[0])).intValue()); in main()
|
/art/test/552-invoke-non-existent-super/src/ |
D | Main.java | 28 m.invoke(c.newInstance(), new Object[0]); in main()
|
/art/test/551-invoke-super/src/ |
D | Main.java | 28 m.invoke(c.newInstance(), new Object[0]); in main()
|
/art/test/556-invoke-super/src/ |
D | Main.java | 33 assertEquals(42, ((Integer)m.invoke(c.newInstance(), new Object[0])).intValue()); in main()
|
/art/test/973-default-multidex/src/ |
D | Main.java | 24 System.out.println(m.invoke(c.newInstance(), new Object[0])); in main()
|
/art/test/972-default-imt-collision/src/ |
D | Main.java | 22 Object o = c.newInstance(); in main()
|
/art/test/434-invoke-direct/src/ |
D | Main.java | 30 m.invoke(c.newInstance()); in $opt$InvokeDirect()
|
/art/test/600-verifier-fails/src/ |
D | Main.java | 30 a.newInstance(); in test()
|
/art/test/601-method-access/src/ |
D | Main.java | 26 Object o = c.newInstance(); in main()
|