/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/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() 95 Foo f = new Foo(); in staticFieldTest() local 96 f.$inline$StaticSet42(); in staticFieldTest() 97 f.$inline$StaticSet43(); in staticFieldTest()
|
/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/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/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-and-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() 117 int f = live2; in test3() local 129 foo.field3 = f + i + h; in test3() 135 live1 = e + f + g + j; in test3()
|
/art/runtime/native/ |
D | java_lang_reflect_Field.cc | 61 ALWAYS_INLINE inline static bool GetFieldValue(mirror::Object* o, mirror::Field* f, in GetFieldValue() argument 65 MemberOffset offset(f->GetOffset()); in GetFieldValue() 66 const bool is_volatile = f->IsVolatile(); in GetFieldValue() 101 StringPrintf("Not a primitive field: %s", PrettyField(f->GetArtField()).c_str()).c_str()); in GetFieldValue() 106 jobject j_rcvr, mirror::Field** f, in CheckReceiver() argument 110 mirror::Class* declaringClass = (*f)->GetDeclaringClass(); in CheckReceiver() 111 if ((*f)->IsStatic()) { in CheckReceiver() 114 HandleWrapper<mirror::Field> h_f(hs.NewHandleWrapper(f)); in CheckReceiver() 135 mirror::Field* f = soa.Decode<mirror::Field*>(javaField); in Field_get() local 137 if (!CheckReceiver(soa, javaObj, &f, &o)) { in Field_get() [all …]
|
/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" &
|
D | stream-trace-converter.py | 29 def ReadShortLE(f): argument 30 byte1 = f.read(1) 33 byte2 = f.read(1) 38 def WriteShortLE(f, val): argument 41 f.write(asbytearray) 43 def ReadIntLE(f): argument 44 byte1 = f.read(1) 47 byte2 = f.read(1) 50 byte3 = f.read(1) 53 byte4 = f.read(1) [all …]
|
/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/compiler/utils/ |
D | assembler_test.h | 54 void DriverFn(TestFn f, std::string test_name) { in DriverFn() argument 55 DriverWrapper(f(this, assembler_.get()), test_name); in DriverFn() 63 std::string RepeatR(void (Ass::*f)(Reg), std::string fmt) { in RepeatR() 64 return RepeatTemplatedRegister<Reg>(f, in RepeatR() 70 std::string Repeatr(void (Ass::*f)(Reg), std::string fmt) { in Repeatr() 71 return RepeatTemplatedRegister<Reg>(f, in Repeatr() 77 std::string RepeatRR(void (Ass::*f)(Reg, Reg), std::string fmt) { in RepeatRR() 78 return RepeatTemplatedRegisters<Reg, Reg>(f, in RepeatRR() 86 std::string RepeatRRNoDupes(void (Ass::*f)(Reg, Reg), std::string fmt) { in RepeatRRNoDupes() 87 return RepeatTemplatedRegistersNoDupes<Reg, Reg>(f, in RepeatRRNoDupes() [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-generated/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)
|
/art/test/405-optimizing-long-allocator/src/ |
D | Main.java | 92 long f = 0; in $opt$TestMultipleLive() local 100 f += 2; in $opt$TestMultipleLive() 103 return f; in $opt$TestMultipleLive() 135 …public static long $opt$TestAgressiveLive1(long a, long b, long c, long d, long e, long f, long g)… in $opt$TestAgressiveLive1() argument 138 long j = e - f; in $opt$TestAgressiveLive1() 153 return a - b - c - d - e - f - g - h - i - j - k; in $opt$TestAgressiveLive1() 156 …public static long $opt$TestAgressiveLive2(long a, long b, long c, long d, long e, long f, long g)… in $opt$TestAgressiveLive2() argument 159 long j = e - f; in $opt$TestAgressiveLive2() 164 return a - b - c - d - e - f - g - h - i - j - k; in $opt$TestAgressiveLive2()
|
/art/compiler/ |
D | cfi_test.h | 37 void GenerateExpected(FILE* f, InstructionSet isa, const char* isa_str, in GenerateExpected() argument 42 fprintf(f, "static constexpr uint8_t expected_asm_%s[] = {", isa_str); in GenerateExpected() 43 HexDump(f, actual_asm); in GenerateExpected() 44 fprintf(f, "\n};\n"); in GenerateExpected() 45 fprintf(f, "static constexpr uint8_t expected_cfi_%s[] = {", isa_str); in GenerateExpected() 46 HexDump(f, actual_cfi); in GenerateExpected() 47 fprintf(f, "\n};\n"); in GenerateExpected() 69 fprintf(f, "// %s\n", line.c_str()); in GenerateExpected() 71 fprintf(f, "\n"); in GenerateExpected() 137 static void HexDump(FILE* f, const std::vector<uint8_t>& data) { in HexDump() argument [all …]
|
/art/test/404-optimizing-allocator/src/ |
D | Main.java | 86 int f = 0; in $opt$reg$TestMultipleLive() local 94 f += 2; in $opt$reg$TestMultipleLive() 97 return f; in $opt$reg$TestMultipleLive() 129 public static int $opt$reg$TestAgressiveLive1(int a, int b, int c, int d, int e, int f, int g) { in $opt$reg$TestAgressiveLive1() argument 132 int j = e - f; in $opt$reg$TestAgressiveLive1() 147 return a - b - c - d - e - f - g - h - i - j - k; in $opt$reg$TestAgressiveLive1() 150 public static int $opt$reg$TestAgressiveLive2(int a, int b, int c, int d, int e, int f, int g) { in $opt$reg$TestAgressiveLive2() argument 153 int j = e - f; in $opt$reg$TestAgressiveLive2() 158 return a - b - c - d - e - f - g - h - i - j - k; in $opt$reg$TestAgressiveLive2()
|
/art/runtime/entrypoints/ |
D | math_entrypoints.cc | 39 extern "C" int64_t art_f2l(float f) { in art_f2l() argument 40 return art_float_to_integral<int64_t, float>(f); in art_f2l() 47 extern "C" int32_t art_f2i(float f) { in art_f2i() argument 48 return art_float_to_integral<int32_t, float>(f); in art_f2i()
|
/art/test/605-new-string-from-bytes/src/ |
D | Main.java | 30 byte[] f = new byte[100000000]; in main() 31 f[0] = (byte)i; in main() 32 f[1] = (byte)i; in main() 33 m.invoke(null, f, 0); in main()
|
/art/test/529-long-split/src/ |
D | Main.java | 35 int f = myField1; // EBX in testOddLow1() local 40 myField2 = f; // use of EBX in testOddLow1() 77 int f = myField1; // EBX in testNonFollowingHigh() local 82 myField2 = f; // use of EBX in testNonFollowingHigh() 117 int f = myField1; // EBX in testOddLow2() local 122 myField2 = f; // use of EBX in testOddLow2()
|
/art/test/027-arithmetic/ |
D | expected.txt | 1 f=1234.5677 --> i=1234 2 f=-1234.5677 --> i=-1234 11 i=1234 --> f=1234.0 12 i=-1234 --> f=-1234.0
|