/art/test/100-reflect2/src/ |
D | Main.java | 25 private static float f = 3.14f; field in Main 31 Field f; in testFieldReflection() local 33 f = Main.class.getDeclaredField("z"); in testFieldReflection() 34 System.out.println(f.getBoolean(null)); in testFieldReflection() 35 f = Main.class.getDeclaredField("b"); in testFieldReflection() 36 System.out.println(f.getByte(null)); in testFieldReflection() 37 f = Main.class.getDeclaredField("c"); in testFieldReflection() 38 System.out.println(f.getChar(null)); in testFieldReflection() 39 f = Main.class.getDeclaredField("d"); in testFieldReflection() 40 System.out.println(f.getDouble(null)); in testFieldReflection() [all …]
|
/art/test/626-checker-arm64-scratch-register/smali/ |
D | Main2.smali | 168 ## CHECK: ldr s3, pc+{{\d+}} (addr {{0x[0-9a-f]+}}) (100) 181 # float f17 = b17 ? 0.0f : 1.0f; 182 # float f16 = b16 ? 0.0f : 1.0f; 183 # float f18 = b18 ? 0.0f : 1.0f; 184 # float f19 = b19 ? 0.0f : 1.0f; 185 # float f20 = b20 ? 0.0f : 1.0f; 186 # float f21 = b21 ? 0.0f : 1.0f; 187 # float f15 = b15 ? 0.0f : 1.0f; 188 # float f00 = b00 ? 0.0f : 1.0f; 189 # float f22 = b22 ? 0.0f : 1.0f; [all …]
|
/art/test/631-checker-fp-abs/src/ |
D | Main.java | 37 private static float $opt$noinline$absSP(float f) { in $opt$noinline$absSP() argument 41 return Math.abs(f); in $opt$noinline$absSP() 56 for (float f = -100.0f; f < 0.0f; f += 0.5f) { in main() 57 expectEqualsSP(-f, $opt$noinline$absSP(f)); in main() 59 for (float f = 0.0f; f <= 100.0f; f += 0.5f) { in main() 60 expectEqualsSP(f, $opt$noinline$absSP(f)); in main() 62 for (float f = -1.5f; f <= -1.499f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main() 63 expectEqualsSP(-f, $opt$noinline$absSP(f)); in main() 65 for (float f = 1.499f; f <= 1.5f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main() 66 expectEqualsSP(f, $opt$noinline$absSP(f)); in main() [all …]
|
/art/test/608-checker-unresolved-lse/src/ |
D | Main.java | 45 Foo f = new Foo(); in instanceFieldTest() local 46 if (f.iField != 42) { in instanceFieldTest() 47 throw new Error("Expected 42, got " + f.iField); in instanceFieldTest() 72 Foo f = new Foo(); in instanceFieldTest2() local 73 int a = f.$inline$GetInstanceField(); in instanceFieldTest2() 74 f.iField = 43; in instanceFieldTest2() 75 a = f.$inline$GetInstanceField(); in instanceFieldTest2() 94 Foo f = new Foo(); in staticFieldTest() local 95 f.$inline$StaticSet42(); in staticFieldTest() 96 f.$inline$StaticSet43(); in staticFieldTest()
|
/art/test/918-fields/src/art/ |
D | Test918.java | 39 Field f = base.getDeclaredField(fieldName); in testField() local 40 String[] result = getFieldName(f); in testField() 43 Class<?> declClass = getFieldDeclaringClass(f); in testField() 49 int modifiers = getFieldModifiers(f); in testField() 50 if (modifiers != f.getModifiers()) { in testField() 51 throw new RuntimeException("Modifiers not equal: " + f.getModifiers() + " vs " + modifiers); in testField() 55 boolean synth = isFieldSynthetic(f); in testField() 56 if (synth != f.isSynthetic()) { in testField() 57 throw new RuntimeException("Synthetic not equal: " + f.isSynthetic() + " vs " + synth); in testField() 62 private static native String[] getFieldName(Field f); in getFieldName() argument [all …]
|
/art/test/474-fp-sub-neg/src/ |
D | Main.java | 19 float f = 0; in floatTest() local 23 f -= fc; in floatTest() 24 f = -f; in floatTest() 29 System.out.println(f); in floatTest() 31 System.out.println(f + 0f); in floatTest() 32 System.out.println(f - (-0f)); in floatTest() 33 System.out.println(-f - (-nf)); in floatTest() 34 System.out.println(-f + (-nf)); in floatTest() 59 float f=-0.0f; in bug_1() local 62 d = -f + (-a); in bug_1() [all …]
|
/art/test/003-omnibus-opcodes/src/ |
D | FloatMath.java | 25 float f; in convTest() local 31 f = 1234.5678f; in convTest() 32 i = (int) f; in convTest() 35 f = -1234.5678f; in convTest() 36 i = (int) f; in convTest() 40 f = 1238.5678f; in convTest() 41 l = (long) f; in convTest() 44 f = -1238.5678f; in convTest() 45 l = (long) f; in convTest() 49 f = 1238.5678f; in convTest() [all …]
|
/art/test/680-sink-regression/src/ |
D | Main.java | 28 private int f; field in Main 35 f = 11; in doit() 38 f = x; in doit() 53 t.f = 0; in main() 59 if (x != 1 || t.f != 0) { in main() 60 throw new Error("Main 1: x=" + x + " f=" + t.f); in main() 70 if (x != -1 || t.f != 11) { in main() 71 throw new Error("Main 2: x=" + x + " f=" + t.f); in main() 81 if (x != -1 || t.f != 1) { in main() 82 throw new Error("Main 3: x=" + x + " f=" + t.f); in main()
|
/art/test/012-math/src/ |
D | Main.java | 76 double f, g, fres; in math_012() local 78 f = 3.0f; in math_012() 81 fres = f + g; in math_012() 83 fres = f - g; in math_012() 85 fres = f * g; in math_012() 87 fres = f / g; in math_012() 89 fres = f % g; in math_012() 91 f += g; in math_012() 92 System.out.println("f:" +f); in math_012() 93 f -= g; in math_012() [all …]
|
/art/compiler/utils/ |
D | assembler_test.h | 64 void DriverFn(TestFn f, const std::string& test_name) { in DriverFn() argument 65 DriverWrapper(f(this, assembler_.get()), test_name); in DriverFn() 77 std::string RepeatR(void (Ass::*f)(Reg), const std::string& fmt) { in RepeatR() 78 return RepeatTemplatedRegister<Reg>(f, in RepeatR() 84 std::string Repeatr(void (Ass::*f)(Reg), const std::string& fmt) { in Repeatr() 85 return RepeatTemplatedRegister<Reg>(f, in Repeatr() 91 std::string RepeatRR(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRR() 92 return RepeatTemplatedRegisters<Reg, Reg>(f, in RepeatRR() 100 std::string RepeatRRNoDupes(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRRNoDupes() 101 return RepeatTemplatedRegistersNoDupes<Reg, Reg>(f, in RepeatRRNoDupes() [all …]
|
/art/test/991-field-trace-2/src/art/ |
D | Test991.java | 32 Executable method, long location, Class<?> f_klass, Object target, Field f) { in notifyFieldAccess() argument 34 System.out.println("\tACCESS of " + f + " on object of" + in notifyFieldAccess() 37 handleFieldAccess(method, location, f_klass, target, f); in notifyFieldAccess() 41 Executable method, long location, Class<?> f_klass, Object target, Field f, Object value) { in notifyFieldModify() argument 43 System.out.println("\tMODIFY of " + f + " on object of" + in notifyFieldModify() 47 handleFieldModify(method, location, f_klass, target, f, value); in notifyFieldModify() 50 public void handleFieldAccess(Executable m, long l, Class<?> fk, Object t, Field f) {} in handleFieldAccess() argument 51 public void handleFieldModify(Executable m, long l, Class<?> fk, Object t, Field f, Object v) {} in handleFieldModify() argument 61 public void handleFieldAccess(Executable m, long l, Class<?> fk, Object t, Field f) { in handleFieldAccess() argument 67 public void handleFieldModify(Executable m, long l, Class<?> fk, Object t, Field f, Object v) { in handleFieldModify() argument [all …]
|
/art/test/027-arithmetic/src/ |
D | Main.java | 58 long f = 0x66; in shiftTest2() local 63 (e << 24) | (f << 16) | (g << 8) | h); in shiftTest2() 70 float f; in convTest() local 76 f = 1234.5678f; in convTest() 77 i = (int) f; in convTest() 78 System.out.println("f=" + f + " --> i=" + i); in convTest() 80 f = -1234.5678f; in convTest() 81 i = (int) f; in convTest() 82 System.out.println("f=" + f + " --> i=" + i); in convTest() 122 f = (float) i; in convTest() [all …]
|
/art/test/439-swap-double/src/ |
D | Main.java | 28 callWithDoubles(a, b, c, d, e, f, g); in foo() 29 callWithDoubles(b, c, d, e, f, g, a); in foo() 30 callWithDoubles(c, d, e, f, g, a, b); in foo() 31 callWithDoubles(d, e, f, g, a, b, c); in foo() 35 double a, double b, double c, double d, double e, double f, double g) { in callWithDoubles() argument 36 System.out.println(a - b - c - d - e - f - g); in callWithDoubles() 44 double f = 6.0; field in Main
|
/art/test/497-inlining-and-class-loader/src/ |
D | Main.java | 28 Field f = baseDexClassLoader.getDeclaredField("pathList"); in MyClassLoader() local 29 f.setAccessible(true); in MyClassLoader() 30 Object pathList = f.get(loader); in MyClassLoader() 33 f = pathList.getClass().getDeclaredField("dexElements"); in MyClassLoader() 34 f.setAccessible(true); in MyClassLoader() 35 dexElements = (Object[]) f.get(pathList); in MyClassLoader() 108 Field f = Class.class.getDeclaredField("dexCache"); in $noinline$bar() local 109 f.setAccessible(true); in $noinline$bar() 110 Object dexCache = f.get(Main.class); in $noinline$bar() 111 f = dexCache.getClass().getDeclaredField("resolvedTypes"); in $noinline$bar() [all …]
|
/art/test/012-math/ |
D | expected.txt | 28 f:10.0 29 f:3.0 30 f:21.0 31 f:3.0 32 f:3.0
|
/art/test/496-checker-inlining-class-loader/src/ |
D | Main.java | 29 Field f = baseDexClassLoader.getDeclaredField("pathList"); in MyClassLoader() local 30 f.setAccessible(true); in MyClassLoader() 31 Object pathList = f.get(loader); in MyClassLoader() 36 f = pathList.getClass().getDeclaredField("dexElements"); in MyClassLoader() 37 f.setAccessible(true); in MyClassLoader() 38 Object[] dexElements = (Object[]) f.get(pathList); in MyClassLoader() 39 f = dexElements[0].getClass().getDeclaredField("dexFile"); in MyClassLoader() 40 f.setAccessible(true); in MyClassLoader() 42 Object dexFile = f.get(element); in MyClassLoader()
|
/art/test/484-checker-register-hints/src/ |
D | Main.java | 45 int f = live2; in test1() local 54 foo.field3 = f + i + h; in test1() 59 live1 = e + f + g + j; in test1() 80 int f = live2; in test2() local 88 foo.field3 = f + i + h; in test2() 94 live1 = e + f + g + j; in test2() 105 int f = live2; in test3() local 117 foo.field3 = f + i + h; in test3() 123 live1 = e + f + g + j; in test3()
|
/art/test/1941-dispose-stress/src/art/ |
D | Test1941.java | 29 public static long fib(long f) { in fib() argument 30 if (f < 0) { in fib() 31 throw new IllegalArgumentException("Bad argument f < 0: f = " + f); in fib() 32 } else if (f == 0) { in fib() 34 } else if (f == 1) { in fib() 37 return fib(f - 1) + fib(f - 2); in fib()
|
/art/tools/ |
D | extract-embedded-java | 28 for f in `find "$1" -type f -name "*.smali" | xargs -n 1 -P 0 -i basename -s .smali \{\}`; do 31 grep "^# " "$1/${f}.smali" | sed "s:# ::" > "${2}/${f}.java" &
|
/art/test/528-long-hint/src/ |
D | Main.java | 28 Main f = new Main(); in main() local 36 unsafe.compareAndSwapLong(f, offset, a, b); in main() 41 Field f = Unsafe.class.getDeclaredField("theUnsafe"); in getUnsafe() local 42 f.setAccessible(true); in getUnsafe() 43 return (Unsafe) f.get(null); in getUnsafe()
|
/art/test/674-hiddenapi/src-ex/ |
D | Reflection.java | 34 for (Field f : klass.getDeclaredFields()) { in canDiscoverWithGetDeclaredFields() 35 if (f.getName().equals(name)) { in canDiscoverWithGetDeclaredFields() 52 for (Field f : klass.getFields()) { in canDiscoverWithGetFields() 53 if (f.getName().equals(name)) { in canDiscoverWithGetFields() 62 Field f = klass.getDeclaredField(name); in canGetField() local 63 f.setAccessible(true); in canGetField() 64 f.getInt(Modifier.isStatic(f.getModifiers()) ? null : klass.newInstance()); in canGetField() 74 Field f = klass.getDeclaredField(name); in canSetField() local 75 f.setAccessible(true); in canSetField() 76 f.setInt(Modifier.isStatic(f.getModifiers()) ? null : klass.newInstance(), 42); in canSetField()
|
/art/test/655-checker-simd-arm-opt/src/ |
D | Main.java | 51 … void encodableConstants(byte[] b, short[] s, char[] c, int[] a, long[] l, float[] f, double[] d) { in encodableConstants() argument 68 f[i] += 2.0f; in encodableConstants() 75 …private static int sumArray(byte[] b, short[] s, char[] c, int[] a, long[] l, float[] f, double[] … in sumArray() argument 78 sum += b[i] + s[i] + c[i] + a[i] + l[i] + f[i] + d[i]; in sumArray() 91 float[] f = new float[ARRAY_SIZE]; in main() local 94 encodableConstants(b, s, c, a, l, f, d); in main() 95 expectEquals(3700, sumArray(b, s, c, a, l, f, d)); in main()
|
/art/runtime/native/ |
D | java_lang_reflect_Field.cc | 78 ObjPtr<mirror::Field> f, in GetFieldValue() argument 83 MemberOffset offset(f->GetOffset()); in GetFieldValue() 84 const bool is_volatile = f->IsVolatile(); in GetFieldValue() 120 ArtField::PrettyField(f->GetArtField()).c_str()).c_str()); in GetFieldValue() 126 ObjPtr<mirror::Field>* f, in CheckReceiver() argument 130 ObjPtr<mirror::Class> declaring_class = (*f)->GetDeclaringClass(); in CheckReceiver() 131 if ((*f)->IsStatic()) { in CheckReceiver() 134 HandleWrapperObjPtr<mirror::Field> h_f(hs.NewHandleWrapper(f)); in CheckReceiver() 155 ObjPtr<mirror::Field> f = soa.Decode<mirror::Field>(javaField); in Field_get() local 157 if (!CheckReceiver(soa, javaObj, &f, &o)) { in Field_get() [all …]
|
/art/test/017-float/src/ |
D | Main.java | 22 float f = 3.1415926535f; in float_017() local 27 System.out.println("base values: d=" + d + " f=" + f); in float_017() 28 System.out.println("base values: d=" + d + " f=" + f); in float_017() 29 System.out.println("base values: f=" + f + " d=" + d); in float_017()
|
/art/test/970-iface-super-resolution-gen/util-src/ |
D | generate_java.py | 66 for f in all_files: 67 if f.initial_build_different(): 68 JavaConverter(f).dump(final_java_dir) 69 JavaConverter(f.get_initial_build_version()).dump(initial_java_dir) 71 JavaConverter(f).dump(initial_java_dir) 72 if isinstance(f, base.TestInterface): 73 JavaConverter(f).dump(final_java_dir)
|