/art/test/015-switch/src/ |
D | Main.java | 25 case -1: System.out.print("neg one\n"); break; in main() 26 case 0: System.out.print("zero\n"); break; in main() 27 case 1: System.out.print("CORRECT (one)\n"); break; in main() 28 case 2: System.out.print("two\n"); break; in main() 29 case 3: System.out.print("three\n"); break; in main() 30 case 4: System.out.print("four\n"); break; in main() 31 default: System.out.print("???\n"); break; in main() 34 case 3: System.out.print("three\n"); break; in main() 35 case 4: System.out.print("four\n"); break; in main() 36 default: System.out.print("CORRECT (not found)\n"); break; in main() [all …]
|
/art/test/010-instance/src/ |
D | InstanceTest.java | 24 System.out.println("instance begin"); in main() 39 System.out.println("x instanceof X (true): " + (test instanceof X)); in main() 40 System.out.println("x instanceof Y (false): " + (test instanceof Y)); in main() 42 System.out.println("y instanceof X (true): " + (test instanceof X)); in main() 43 System.out.println("y instanceof Y (true): " + (test instanceof Y)); in main() 46 System.out.println("xar instanceof Object (true): " in main() 48 System.out.println("xar instanceof X (false): " in main() 50 System.out.println("xar instanceof X[] (true): " in main() 52 System.out.println("xar instanceof Y[] (false): " in main() 54 System.out.println("xar instanceof Object[] (true): " in main() [all …]
|
/art/test/046-reflect/src/ |
D | Main.java | 38 System.out.println("Method name is " + meth.getName()); in printMethodInfo() 39 System.out.println(" Declaring class is " in printMethodInfo() 43 System.out.println(" Arg " + i + ": " + params[i].getName()); in printMethodInfo() 46 System.out.println(" Exc " + i + ": " + exceptions[i].getName()); in printMethodInfo() 47 System.out.println(" Return type is " + meth.getReturnType().getName()); in printMethodInfo() 48 System.out.println(" Access flags are 0x" in printMethodInfo() 54 System.out.println("Field name is " + field.getName()); in printFieldInfo() 55 System.out.println(" Declaring class is " in printFieldInfo() 57 System.out.println(" Field type is " + field.getType().getName()); in printFieldInfo() 58 System.out.println(" Access flags are 0x" in printFieldInfo() [all …]
|
/art/test/012-math/src/ |
D | Main.java | 31 System.out.println("res:" +res); in math_012() 33 System.out.println("res:" +res); in math_012() 35 System.out.println("res:" +res); in math_012() 37 System.out.println("res:" +res); in math_012() 39 System.out.println("res:" +res); in math_012() 41 System.out.println("res:" +res); in math_012() 43 System.out.println("res:" +res); in math_012() 45 System.out.println("res:" +res); in math_012() 47 System.out.println("res:" +res); in math_012() 49 System.out.println("res:" +res); in math_012() [all …]
|
/art/test/041-narrowing/src/ |
D | Main.java | 8 System.out.println(); in test_printNarrowing() 9 System.out.println("Double.POSITIVE_INFINITY = " in test_printNarrowing() 11 System.out.println("Double.NEGATIVE_INFINITY = " in test_printNarrowing() 13 System.out.println("Float.POSITIVE_INFINITY = " in test_printNarrowing() 15 System.out.println("Float.NEGATIVE_INFINITY = " in test_printNarrowing() 17 System.out.println("Double.NaN = " in test_printNarrowing() 19 System.out.println("Float.NaN = " in test_printNarrowing() 22 System.out.println(); in test_printNarrowing() 23 System.out.println("(byte) Double.NaN = " in test_printNarrowing() 26 System.out.println("(short) Double.NaN = " in test_printNarrowing() [all …]
|
/art/test/075-verification-error/src/ |
D | Main.java | 41 System.out.println("Got expected InstantationError"); in testClassNewInstance() 42 if (VERBOSE) System.out.println("--- " + ie); in testClassNewInstance() 57 System.out.println("Got expected NoSuchFieldError"); in testMissingStuff() 58 if (VERBOSE) System.out.println("--- " + nsfe); in testMissingStuff() 64 System.out.println("Got expected NoSuchFieldError"); in testMissingStuff() 65 if (VERBOSE) System.out.println("--- " + nsfe); in testMissingStuff() 71 System.out.println("Got expected NoSuchMethodError"); in testMissingStuff() 72 if (VERBOSE) System.out.println("--- " + nsme); in testMissingStuff() 78 System.out.println("Got expected NoSuchMethodError"); in testMissingStuff() 79 if (VERBOSE) System.out.println("--- " + nsme); in testMissingStuff() [all …]
|
/art/test/099-vmdebug/src/ |
D | Main.java | 25 System.out.println("This test is not supported on " + name); in main() 46 System.out.println("Confirm enable/disable"); in testMethodTracing() 47 System.out.println("status=" + VMDebug.getMethodTracingMode()); in testMethodTracing() 49 System.out.println("status=" + VMDebug.getMethodTracingMode()); in testMethodTracing() 51 System.out.println("status=" + VMDebug.getMethodTracingMode()); in testMethodTracing() 53 System.out.println("ERROR: tracing output file is empty"); in testMethodTracing() 56 System.out.println("Confirm sampling"); in testMethodTracing() 58 System.out.println("status=" + VMDebug.getMethodTracingMode()); in testMethodTracing() 60 System.out.println("status=" + VMDebug.getMethodTracingMode()); in testMethodTracing() 62 System.out.println("ERROR: sample tracing output file is empty"); in testMethodTracing() [all …]
|
/art/test/126-miranda-multidex/src/ |
D | Main.java | 25 System.out.println("MirandaClass:"); in main() 26 System.out.println(" inInterface: " + mir.inInterface()); in main() 27 System.out.println(" inInterface2: " + mir.inInterface2()); in main() 28 System.out.println(" inAbstract: " + mir.inAbstract()); in main() 32 System.out.println("MirandaAbstract / MirandaClass:"); in main() 33 System.out.println(" inInterface: " + mira.inInterface()); in main() 34 System.out.println(" inInterface2: " + mira.inInterface2()); in main() 35 System.out.println(" inAbstract: " + mira.inAbstract()); in main() 39 System.out.println("MirandaAbstract / MirandaClass2:"); in main() 40 System.out.println(" inInterface: " + mira2.inInterface()); in main() [all …]
|
/art/test/040-miranda/src/ |
D | Main.java | 25 System.out.println("MirandaClass:"); in main() 26 System.out.println(" inInterface: " + mir.inInterface()); in main() 27 System.out.println(" inInterface2: " + mir.inInterface2()); in main() 28 System.out.println(" inAbstract: " + mir.inAbstract()); in main() 32 System.out.println("MirandaAbstract / MirandaClass:"); in main() 33 System.out.println(" inInterface: " + mira.inInterface()); in main() 34 System.out.println(" inInterface2: " + mira.inInterface2()); in main() 35 System.out.println(" inAbstract: " + mira.inAbstract()); in main() 38 System.out.println("MirandaAbstract / MirandaClass2:"); in main() 39 System.out.println(" inInterface: " + mira2.inInterface()); in main() [all …]
|
/art/test/009-instanceof/src/ |
D | Main.java | 30 System.out.println("iface1.mFloaty = " + face1.mFloaty + " " + face1.mWahoo); in main() 31 System.out.println("aa.mFloaty = " + aa.mFloaty + " " + aa.mWahoo); in main() 32 System.out.println("bb.mWhoami = " + bb.mWhoami); in main() 35 System.out.print("aaOkay (false) = "); in main() 36 System.out.println(aaOkay); in main() 38 System.out.print("bbOkay (true) = "); in main() 39 System.out.println(bbOkay); in main() 46 System.out.println("Caught a ClassCastException (expected)"); in main() 56 System.out.print("instanceof Serializable = "); in main() 57 System.out.println((Object)aaArray instanceof java.io.Serializable); in main() [all …]
|
/art/test/100-reflect2/src/ |
D | Main.java | 34 System.out.println(f.getBoolean(null)); in testFieldReflection() 36 System.out.println(f.getByte(null)); in testFieldReflection() 38 System.out.println(f.getChar(null)); in testFieldReflection() 40 System.out.println(f.getDouble(null)); in testFieldReflection() 42 System.out.println(f.getFloat(null)); in testFieldReflection() 44 System.out.println(f.getInt(null)); in testFieldReflection() 46 System.out.println(f.getLong(null)); in testFieldReflection() 48 System.out.println(f.getShort(null)); in testFieldReflection() 68 System.out.println(f.getBoolean(null)); in testFieldReflection() 70 System.out.println(f.getByte(null)); in testFieldReflection() [all …]
|
/art/test/700-LoadArgRegs/src/ |
D | Main.java | 4 System.out.println(p1); in testI1() 7 System.out.println(p1+", "+p2); in testI2() 10 System.out.println(p1+", "+p2+", "+p3); in testI3() 13 System.out.println(p1+", "+p2+", "+p3+", "+p4); in testI4() 16 System.out.println(p1+", "+p2+", "+p3+", "+p4+", "+p5); in testI5() 19 System.out.println(p1+", "+p2+", "+p3+", "+p4+", "+p5+", "+p6); in testI6() 22 System.out.println(p1+", "+p2+", "+p3+", "+p4+", "+p5+", "+p6+", "+p7); in testI7() 25 System.out.println(p1+", "+p2+", "+p3+", "+p4+", "+p5+", "+p6+", "+p7+", "+p8); in testI8() 28 System.out.println(p1+", "+p2+", "+p3+", "+p4+", "+p5+", "+p6+", "+p7+", "+p8+", "+p9); in testI9() 31 … System.out.println(p1+", "+p2+", "+p3+", "+p4+", "+p5+", "+p6+", "+p7+", "+p8+", "+p9+", "+p10); in testI10() [all …]
|
/art/test/098-ddmc/src/ |
D | Main.java | 24 System.out.println("This test is not supported on " + name); in main() 31 System.out.println("Confirm empty"); in testRecentAllocationTracking() 33 System.out.println("empty=" + empty); in testRecentAllocationTracking() 35 System.out.println("Confirm enable"); in testRecentAllocationTracking() 36 System.out.println("status=" + DdmVmInternal.getRecentAllocationStatus()); in testRecentAllocationTracking() 38 System.out.println("status=" + DdmVmInternal.getRecentAllocationStatus()); in testRecentAllocationTracking() 40 System.out.println("Capture some allocations (note just this causes allocations)"); in testRecentAllocationTracking() 42 System.out.println("before > 0=" + (before.numberOfEntries > 0)); in testRecentAllocationTracking() 44 System.out.println("Confirm when we overflow, we don't roll over to zero. b/17392248"); in testRecentAllocationTracking() 50 …System.out.println("before < overflowAllocations=" + (before.numberOfEntries < overflowAllocations… in testRecentAllocationTracking() [all …]
|
/art/test/005-annotations/src/android/test/anno/ |
D | TestAnnotations.java | 23 System.out.println(prefix + " " + a); in printAnnotationArray() 24 System.out.println(prefix + " " + a.annotationType()); in printAnnotationArray() 33 System.out.println("annotations on TYPE " + clazz + in printAnnotations() 36 System.out.println(); in printAnnotations() 40 System.out.println(" annotations on CTOR " + c + ":"); in printAnnotations() 43 System.out.println(" constructor parameter annotations:"); in printAnnotations() 51 System.out.println(" annotations on METH " + m + ":"); in printAnnotations() 54 System.out.println(" method parameter annotations:"); in printAnnotations() 62 System.out.println(" annotations on FIELD " + f + ":"); in printAnnotations() 68 System.out.println(" aff: " + aff + " / " + aff.getClass()); in printAnnotations() [all …]
|
/art/test/050-sync-test/src/ |
D | Main.java | 26 System.out.println("Sleep Test"); in main() 29 System.out.println("\nCount Test"); in main() 32 System.out.println("\nInterrupt Test"); in main() 37 System.out.println("GOING"); in sleepTest() 41 System.out.println("INTERRUPT!"); in sleepTest() 44 System.out.println("GONE"); in sleepTest() 58 System.out.println("INTERRUPT!"); in countTest() 71 System.out.println("INTERRUPT!"); in countTest() 74 System.out.println("main: all done"); in countTest() 112 System.out.print("Final result: "); in run() [all …]
|
/art/test/077-method-override/src/ |
D | Derived.java | 19 System.out.println("notDeclaredInBase: Derived"); in notDeclaredInBase() 23 System.out.println("overridden: Derived"); in overridden() 27 System.out.println("wasOverridden: Derived"); in wasOverridden() 31 System.out.println("overrideWithPublic: Derived"); in overrideWithPublic() 35 System.out.println("overridePublicWithProtected: Derived"); in overridePublicWithProtected() 39 System.out.println("overrideProtectedWithPublic: Derived"); in overrideProtectedWithPublic() 43 System.out.println("overridePublicWithPrivate: Derived"); in overridePublicWithPrivate() 47 System.out.println("overridePrivateWithPublic: Derived"); in overridePrivateWithPublic() 52 System.out.println("overrideVirtualWithStatic: Derived"); in overrideVirtualWithStatic() 57 System.out.println("overrideStaticWithVirtual: Derived"); in overrideStaticWithVirtual()
|
D | Base.java | 19 System.out.println("declaredInBase: Base"); in declaredInBase() 23 System.out.println("overridden: Base"); in overridden() 28 System.out.println("wasOverridden: Base"); in wasOverridden() 35 System.out.println("overrideWithPublic: Base"); in overrideWithPublic() 43 System.out.println("overridePublicWithProtected: Base"); in overridePublicWithProtected() 50 System.out.println("overrideProtectedWithPublic: Base"); in overrideProtectedWithPublic() 58 System.out.println("overridePublicWithPrivate: Base"); in overridePublicWithPrivate() 65 System.out.println("overridePrivateWithPublic: Base"); in overridePrivateWithPublic() 73 System.out.println("overrideVirtualWithStatic: Base"); in overrideVirtualWithStatic() 81 System.out.println("overrideStaticWithVirtual: Base"); in overrideStaticWithVirtual()
|
/art/test/027-arithmetic/src/ |
D | Main.java | 34 System.out.println("values are " + Integer.toHexString(i1) in shiftTest1() 37 System.out.println("First l is " + Long.toHexString(l)); in shiftTest1() 48 System.out.println("Second l is " + Long.toHexString(l)); in shiftTest1() 65 System.out.println("shiftTest2 l is " + Long.toHexString(result)); in shiftTest2() 78 System.out.println("f=" + f + " --> i=" + i); in convTest() 82 System.out.println("f=" + f + " --> i=" + i); in convTest() 87 System.out.println("d=" + d + " --> i=" + i); in convTest() 91 System.out.println("d=" + d + " --> i=" + i); in convTest() 96 System.out.println("d=" + d + " --> l=" + l); in convTest() 100 System.out.println("d=" + d + " --> l=" + l); in convTest() [all …]
|
/art/test/113-multidex/src/ |
D | Second.java | 19 System.out.println("Second::zcall"); in zcall() 23 System.out.println("Second::zcall1"); in zcall1() 27 System.out.println("Second::zcall2"); in zcall2() 31 System.out.println("Second::zcall3"); in zcall3() 35 System.out.println("Second::zcall4"); in zcall4() 39 System.out.println("Second::zcall5"); in zcall5() 43 System.out.println("Second::zcall6"); in zcall6() 47 System.out.println("Second::zcall7"); in zcall7() 51 System.out.println("Second::zcall8"); in zcall8() 55 System.out.println("Second::zcall9"); in zcall9()
|
/art/test/051-thread/src/ |
D | Main.java | 28 System.out.println("thread test starting"); in main() 34 System.out.println("thread test done"); in main() 53 System.out.println("testThreadCapacity thread count: " + TestCapacityThread.mCount); in testThreadCapacity() 74 System.out.print("testThreadDaemons starting thread '" + t.getName() + "'\n"); in testThreadDaemons() 83 System.out.print("testThreadDaemons finished\n"); in testThreadDaemons() 88 System.out.print("testThreadDaemons @ Thread running\n"); in run() 92 System.out.print("testThreadDaemons @ FAILED: setDaemon() succeeded\n"); in run() 94 System.out.print("testThreadDaemons @ Got expected setDaemon exception\n"); in run() 101 System.out.print("testThreadDaemons @ Interrupted!\n"); in run() 104 System.out.print("testThreadDaemons @ Thread bailing\n"); in run() [all …]
|
/art/test/107-int-math2/src/ |
D | Main.java | 896 System.out.println("divideLongByBillion PASSED"); in main() 898 System.out.println("divideLongByBillion FAILED: " + lres); in main() 903 System.out.println("unopTest PASSED"); in main() 905 System.out.println("unopTest FAILED: " + res); in main() 910 System.out.println("shiftTest1 PASSED"); in main() 912 System.out.println("shiftTest1 FAILED: " + res); in main() 917 System.out.println("shiftTest2 PASSED"); in main() 919 System.out.println("shiftTest2 FAILED: " + res); in main() 924 System.out.println("unsignedShiftTest PASSED"); in main() 926 System.out.println("unsignedShiftTest FAILED: " + res); in main() [all …]
|
/art/test/031-class-attributes/src/ |
D | ClassAttrs.java | 51 System.out.println(Modifier.toString(c.getModifiers()) + " " + c.getName()); in showModifiers() 120 System.out.println("constructor signature: " in main() 125 System.out.println("method signature: " in main() 130 System.out.println("field signature: " in main() 262 System.out.println("***** " + clazz + ":"); in printClassAttrs() 264 System.out.println(" name: " in printClassAttrs() 266 System.out.println(" canonical: " in printClassAttrs() 268 System.out.println(" simple: " in printClassAttrs() 270 System.out.println(" genericSignature: " in printClassAttrs() 273 System.out.println(" super: " in printClassAttrs() [all …]
|
/art/test/077-method-override/src2/ |
D | Base.java | 19 System.out.println("declaredInBase: Base"); in declaredInBase() 23 System.out.println("overridden: Base"); in overridden() 35 System.out.println("overrideWithPublic: Base"); in overrideWithPublic() 43 System.out.println("overridePublicWithProtected: Base"); in overridePublicWithProtected() 50 System.out.println("overrideProtectedWithPublic: Base"); in overrideProtectedWithPublic() 58 System.out.println("overridePublicWithPrivate: Base"); in overridePublicWithPrivate() 65 System.out.println("overridePrivateWithPublic: Base"); in overridePrivateWithPublic() 73 System.out.println("overrideVirtualWithStatic: Base"); in overrideVirtualWithStatic() 80 System.out.println("overrideStaticWithVirtual: Base"); in overrideStaticWithVirtual()
|
/art/test/084-class-init/src/ |
D | Main.java | 29 System.out.println("caught exception thrown during clinit"); in staticMethodCalledByClinit() 53 System.out.println(PartialInit.FIELD0); in checkExceptions() 56 System.out.println("Got expected EIIE for FIELD0"); in checkExceptions() 60 System.out.println(PartialInit.FIELD0); in checkExceptions() 63 System.out.println("Got expected NCDFE for FIELD0"); in checkExceptions() 66 System.out.println(PartialInit.FIELD1); in checkExceptions() 69 System.out.println("Got expected NCDFE for FIELD1"); in checkExceptions() 73 System.out.println(Exploder.FIELD); in checkExceptions() 76 System.out.println("Got expected '" + expected.getMessage() + "' from Exploder"); in checkExceptions() 99 System.out.println("Fields (main thread): " + in checkTiming() [all …]
|
/art/test/047-returns/src/ |
D | Main.java | 23 System.out.println("pick 1"); in main() 25 System.out.println(((CommonInterface)pickOne(1)).doStuff()); in main() 27 System.out.println("pick 2"); in main() 29 System.out.println(((CommonInterface)pickOne(2)).doStuff()); in main() 31 System.out.println("pick 3"); in main() 53 System.out.println("one running"); in run() 56 System.out.println("one"); in doStuff() 63 System.out.println("two running"); in run() 66 System.out.println("two"); in doStuff() 73 System.out.println("three running"); in run()
|