Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 1065) sorted by relevance

12345678910>>...43

/art/test/100-reflect2/src/
DMain.java25 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/
Ddefault_run.py143 assert len(arches) == 1, f"Can not find (unique) 64-bit arch in {arches}"
146 assert len(arches) == 1, f"Can not find (unique) 32-bit arch in {arches}"
168 bpath_jar = f"/apex/{apex_module}/javalib/{bpath_module}.jar"
169 bpath += f"{bpath_separator}{bpath_prefix}{bpath_jar}"
191 if ANDROID_HOST_OUT[0:len(ANDROID_BUILD_TOP)+1] == f"{ANDROID_BUILD_TOP}/":
194 print(f"ANDROID_BUILD_TOP/ is not a prefix of ANDROID_HOST_OUT"\
222 cmd = f"({cmd} | tee -a {DEX_LOCATION}/{basename(args.stdout_file)}) 3>&1 1>&2 2>&3"
223 cmd = f"({cmd} | tee -a {DEX_LOCATION}/{basename(args.stderr_file)}) 3>&1 1>&2 2>&3"
224 return f"set -o pipefail; {cmd}" # Use exit code of first failure in piped command.
359 ARGS += f" {arg}"
[all …]
Drun-test64 self.run(f"echo {text} > {test_stdout}")
69 self.runner.append(f"export {name}={value}")
78 self.runner.append(f"echo '{COLOR_BLUE}$$ {cmd_esc}{COLOR_NORMAL}'")
85 msg = f"{self.test_name} FAILED: [{source}] "
88 msg += f" Expected {expected_exit_code}."
90 f"exit_code=$?; if [ $exit_code -ne {expected_exit_code} ]; then "
91 f"echo {COLOR_RED}{msg}{COLOR_NORMAL}; exit 100; "
92 f"fi; ")
111 tmp_dir = f"/tmp/{USER}/{test_dir}"
113 tmp_dir = f"{TMPDIR}/{test_dir}"
[all …]
/art/test/626-checker-arm64-scratch-register/smali/
DMain2.smali168 ## 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/libnativebridge/
Dnative_bridge_lazy.cc38 auto f = reinterpret_cast<FuncPtr>(dlsym(GetLibHandle(), function_name)); in GetFuncPtr() local
39 LOG_FATAL_IF(f == nullptr, "Failed to get address of %s: %s", function_name, dlerror()); in GetFuncPtr()
40 return f; in GetFuncPtr()
48 static auto f = GET_FUNC_PTR(NeedsNativeBridge); in NeedsNativeBridge() local
49 return f(instruction_set); in NeedsNativeBridge()
53 static auto f = GET_FUNC_PTR(PreInitializeNativeBridge); in PreInitializeNativeBridge() local
54 return f(app_data_dir, instruction_set); in PreInitializeNativeBridge()
58 static auto f = GET_FUNC_PTR(NativeBridgeAvailable); in NativeBridgeAvailable() local
59 return f(); in NativeBridgeAvailable()
63 static auto f = GET_FUNC_PTR(NativeBridgeInitialized); in NativeBridgeInitialized() local
[all …]
/art/test/567-checker-builder-intrinsics/src/
DTestFpAbs.java35 private static float $opt$noinline$absSP(float f) { in $opt$noinline$absSP() argument
36 return Math.abs(f); in $opt$noinline$absSP()
48 for (float f = -100.0f; f < 0.0f; f += 0.5f) { in main()
49 expectEqualsSP(-f, $opt$noinline$absSP(f)); in main()
51 for (float f = 0.0f; f <= 100.0f; f += 0.5f) { in main()
52 expectEqualsSP(f, $opt$noinline$absSP(f)); in main()
54 for (float f = -1.5f; f <= -1.499f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main()
55 expectEqualsSP(-f, $opt$noinline$absSP(f)); in main()
57 for (float f = 1.499f; f <= 1.5f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main()
58 expectEqualsSP(f, $opt$noinline$absSP(f)); in main()
[all …]
/art/libnativeloader/
Dnative_loader_lazy.cpp38 auto f = reinterpret_cast<FuncPtr>(dlsym(GetLibHandle(), function_name)); in GetFuncPtr() local
39 LOG_FATAL_IF(f == nullptr, "Failed to get address of %s: %s", function_name, dlerror()); in GetFuncPtr()
40 return f; in GetFuncPtr()
50 static auto f = GET_FUNC_PTR(CreateClassLoaderNamespace); in CreateClassLoaderNamespace() local
51 return f(env, target_sdk_version, class_loader, is_shared, dex_path, library_path, in CreateClassLoaderNamespace()
58 static auto f = GET_FUNC_PTR(OpenNativeLibrary); in OpenNativeLibrary() local
59 return f(env, target_sdk_version, path, class_loader, caller_location, library_path, in OpenNativeLibrary()
64 static auto f = GET_FUNC_PTR(CloseNativeLibrary); in CloseNativeLibrary() local
65 return f(handle, needs_native_bridge, error_msg); in CloseNativeLibrary()
69 static auto f = GET_FUNC_PTR(NativeLoaderFreeErrorMessage); in NativeLoaderFreeErrorMessage() local
[all …]
/art/test/918-fields/src/art/
DTest918.java38 Field f = base.getDeclaredField(fieldName); in testField() local
39 String[] result = getFieldName(f); in testField()
42 Class<?> declClass = getFieldDeclaringClass(f); in testField()
48 int modifiers = getFieldModifiers(f); in testField()
49 if (modifiers != f.getModifiers()) { in testField()
51 "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/
DMain.java19 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/
DFloatMath.java25 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/
DMain.java76 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/1984-structural-redefine-field-trace/src/art/
DTest1984.java25 Executable method, long location, Class<?> f_klass, Object target, Field f, Object value) { in notifyFieldModify() argument
26 System.out.println("method: " + method + "\tMODIFY: " + f + "\tSet to: " + value); in notifyFieldModify()
30 Executable method, long location, Class<?> f_klass, Object target, Field f) { in notifyFieldAccess() argument
31 System.out.println("method: " + method + "\tACCESS: " + f); in notifyFieldAccess()
94 for (Field f : Transform.class.getDeclaredFields()) { in run()
95 System.out.println(f.toString() + "=" + f.get(null)); in run()
116 for (Field f : Transform.class.getDeclaredFields()) { in run()
117 Trace.watchFieldAccess(f); in run()
118 Trace.watchFieldModification(f); in run()
128 for (Field f : Transform.class.getDeclaredFields()) { in run()
[all …]
/art/test/530-checker-instance-of-simplifier/jasmin/
DMain.j38 ; Foo f = new Foo();
39 ; f.intField = 7
41 ; if (f instanceof Bar) {
42 ; $noinline$escape(f);
45 ; return f.intField;
50 ; Stack: [f]
52 ; Stack: [f, f]
54 ; Stack: [f]
56 ; Stack: [f, f]
58 ; Stack: [f, f, 7]
[all …]
/art/compiler/utils/
Dassembler_test.h65 void DriverFn(TestFn f, const std::string& test_name) { in DriverFn() argument
66 DriverWrapper(f(this, assembler_.get()), test_name); in DriverFn()
78 std::string RepeatR(void (Ass::*f)(Reg), const std::string& fmt) { in RepeatR()
79 return RepeatTemplatedRegister<Reg>(f, in RepeatR()
85 std::string Repeatr(void (Ass::*f)(Reg), const std::string& fmt) { in Repeatr()
86 return RepeatTemplatedRegister<Reg>(f, in Repeatr()
92 std::string RepeatRR(void (Ass::*f)(Reg, Reg),
95 return RepeatTemplatedRegisters<Reg, Reg>(f,
104 std::string RepeatRRNoDupes(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRRNoDupes()
105 return RepeatTemplatedRegistersNoDupes<Reg, Reg>(f, in RepeatRRNoDupes()
[all …]
/art/test/utils/
Dregen-test-files39 ADVISORY = f"Generated by `{ME}`. Do not edit manually."
53 return reindent(f"""\
340 with open(metadata_file, "r") as f:
342 metadata = json.load(f)
344 logging.error(f"Unable to parse test metadata file `{metadata_file}`")
432 return f"""
444 return f"""\
478 logging.debug(f"Removing `{bp_file}`.")
509 test_suites = f"""\
532 f"{run_test_module_name}-{source_dir}",
[all …]
/art/test/991-field-trace-2/src/art/
DTest991.java32 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/
DMain.java58 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/608-checker-unresolved-lse/src/
DMain.java40 Foo f = sf; in instanceFieldTest() local
41 f.iField = 42; in instanceFieldTest()
43 throw new Error("Expected 42, got " + f.iField); in instanceFieldTest()
65 Foo f = sf; in instanceFieldTest2() local
66 f.iField = 42; in instanceFieldTest2()
67 int a = f.iField; in instanceFieldTest2()
69 a = f.iField; in instanceFieldTest2()
/art/test/439-swap-double/src/
DMain.java28 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/
DMain.java28 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/909-attach-agent/
Drun.py36 agent = f"{libpath}/{agent}"
48 f"-Xplugin:{plugin}", "-Xcompiler-option", "--debuggable"
50 test_args=[f"agent:{agent}=909-attach-agent"])
52 ctx.default_run(args, test_args=[f"agent:{agent}=909-attach-agent"])
56 test_args=[f"agent:{agent}=909-attach-agent"],
61 test_args=[f"agent:{agent}=909-attach-agent", "disallow-debugging"],
/art/test/012-math/
Dexpected-stdout.txt28 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/
DMain.java29 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/
DMain.java45 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/1975-hello-structural-transformation/src/art/
DTest1975.java113 for (Field f : Transform1975.class.getFields()) { in ReadFields()
114 System.out.println(f.toString() + " = " + printGeneric(f.get(null))); in ReadFields()
127 for (Field f : Transform1975.class.getFields()) { in ReadFields()
128 System.out.println(f.toString() + " = " + printGeneric(f.get(null))); in ReadFields()
142 private Field f; field in Test1975.MethodHandleWrapper
143 public MethodHandleWrapper(MethodHandle mh, Field f) { in MethodHandleWrapper() argument
144 this.f = f; in MethodHandleWrapper()
151 return f; in getField()
191 for (Field f : old_fields) { in doTest()
192 System.out.println("Saving Field object " + printGeneric(f) + " for later"); in doTest()
[all …]

12345678910>>...43