Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 1582) sorted by relevance

12345678910>>...64

/art/runtime/
Dreflection_test.cc151 jvalue args[1]; in InvokeIdentityByteMethod() local
153 args[0].b = 0; in InvokeIdentityByteMethod()
154 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
157 args[0].b = -1; in InvokeIdentityByteMethod()
158 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
161 args[0].b = SCHAR_MAX; in InvokeIdentityByteMethod()
162 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
166 args[0].b = SCHAR_MIN; in InvokeIdentityByteMethod()
167 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
177 jvalue args[1]; in InvokeIdentityIntMethod() local
[all …]
Dcommon_throws.cc65 va_list* args = nullptr) in ThrowException() argument
68 if (args != nullptr) { in ThrowException()
70 StringAppendV(&vmsg, fmt, *args); in ThrowException()
83 va_list* args = nullptr) in ThrowWrappedException() argument
86 if (args != nullptr) { in ThrowWrappedException()
88 StringAppendV(&vmsg, fmt, *args); in ThrowWrappedException()
139 va_list args; in ThrowBootstrapMethodError() local
140 va_start(args, fmt); in ThrowBootstrapMethodError()
141 ThrowException("Ljava/lang/BootstrapMethodError;", nullptr, fmt, &args); in ThrowBootstrapMethodError()
142 va_end(args); in ThrowBootstrapMethodError()
[all …]
/art/tools/
Drun-jdwp-tests.sh63 args=$@
153 args=${args/$1}
156 args=${args/$1}
161 args=${args/$1}
165 args=${args/$1}
169 args=${args/$1}
173 args=${args/$1}
177 args=${args/$1}
185 args=${args/$1}
190 args=${args/$1}
[all …]
Drun-libcore-tests.py376 if args.gcstress:
378 if args.debug:
380 return args.timeout or default_timeout_secs
384 if args.mode != "jvm":
385 if args.gcstress:
387 if args.gcstress and args.debug:
389 if args.debug and not args.gcstress and args.getrandom:
391 if not args.getrandom:
396 if args.tests:
397 return args.tests
[all …]
Drun-libjdwp-tests.sh38 declare -a args=("$@")
72 unset args[arg_idx]
76 unset args[arg_idx]
85 unset args[arg_idx]
87 unset args[arg_idx]
107 args+=(--mode=device)
112 args+=(--variant=X32)
121 args+=(--jdwp-path $ANDROID_BUILD_TOP/"prebuilts/jdk/jdk17/linux-x86/lib/libjdwp.so")
123 args+=(--jdwp-path "libjdwp.so")
129 args+=(--test-timeout-ms)
[all …]
Dcompile-jar.py104 args = [
109 print("Running: {}".format(run_print(args)))
111 res = subprocess.run(args, capture_output=True, text=True)
115 args = [
120 print("Running: {}".format(run_print(args)))
122 res = subprocess.run(args, capture_output=True, text=True)
158 def get_profile_args(args, location_base): argument
160 if args.profile_file is None and len(args.profile_line) == 0:
162 if args.profile_file:
163 with open(args.profile_file, "rb") as prof:
[all …]
Dbisect_profile.py87 def dump_files(meths, args, output): argument
92 "profmand", "--reference-profile-file={}".format(args.output_file),
93 "--create-profile-from={}".format(args.output_source)
96 for apk in args.apks:
104 def get_answer(args): argument
105 if args.test_exec is None:
108 args.output_file))
116 test_args = shlex.split(args.test_exec)
124 def run_test(meths, args): argument
125 with open(args.output_source, "wt") as output:
[all …]
/art/test/611-checker-simplify-if/src/
DMain.java19 public static void main(String[] args) { in main() argument
20 testNoInline(args); in main()
22 testInline(args); in main()
24 testNonConstantInputs(args); in main()
26 testNonConstantEqual(args); in main()
28 testGreaterCondition(args); in main()
30 testSwitch(args); in main()
32 testFP(args); in main()
50 public static void testNoInline(String[] args) { in testNoInline() argument
52 if (args.length == 42) { in testNoInline()
[all …]
/art/test/660-store-8-16/src/
DMain.java37 Object[] args = { new byte[2] }; in main() local
38 cls.getMethod("setByteArray", byte[].class).invoke(null, args); in main()
39 expectEquals(1, ((byte[])args[0])[0]); in main()
42 Object[] args = { new short[2] }; in main() local
43 cls.getMethod("setShortArray", short[].class).invoke(null, args); in main()
44 expectEquals(0x101, ((short[])args[0])[0]); in main()
47 Object[] args = { new char[2] }; in main() local
48 cls.getMethod("setCharArray", char[].class).invoke(null, args); in main()
49 expectEquals(0x101, ((char[])args[0])[0]); in main()
52 Object[] args = { cls.newInstance() }; in main() local
[all …]
/art/test/412-new-array/src/
DMain.java24 public static void main(String[] args) throws Exception { in main() argument
153 Object[] args = {new Integer(1), new Integer(2), new Integer(3)}; in testSmaliFilledNewArray() local
154 int[] result = (int[])m.invoke(null, args); in testSmaliFilledNewArray()
163 Object[] args = {new Integer(1), new Integer(2)}; in testSmaliFilledNewArray() local
164 Object[] result = (Object[])m.invoke(null, args); in testSmaliFilledNewArray()
166 assertEquals(args[0], result[0]); in testSmaliFilledNewArray()
167 assertEquals(args[1], result[1]); in testSmaliFilledNewArray()
172 Object[] args = {new int[0], new int[1]}; in testSmaliFilledNewArray() local
173 Object[] result = (Object[])m.invoke(null, args); in testSmaliFilledNewArray()
175 assertEquals(args[0], result[0]); in testSmaliFilledNewArray()
[all …]
/art/tools/bisection_search/
Dbisection_search.py353 def PrepareBaseCommand(args, classpath): argument
355 if args.raw_cmd:
356 return shlex.split(args.raw_cmd)
358 base_cmd = ['dalvikvm64'] if args.x64 else ['dalvikvm32']
359 if not args.device:
360 base_cmd += ['-XXlib:{0}'.format(args.lib)]
361 if not args.image:
365 image_path = args.image
367 if args.dalvikvm_opts:
368 base_cmd += args.dalvikvm_opts
[all …]
/art/test/
Ddefault_run.py200 def default_run(ctx, args, **kwargs): argument
202 args = Namespace(**vars(args))
207 old_value = getattr(args, name)
210 setattr(args, name, old_value + new_value) # Lists get merged.
212 setattr(args, name, new_value)
241 ANDROID_ROOT = args.android_root
242 ANDROID_ART_ROOT = args.android_art_root
243 ANDROID_I18N_ROOT = args.android_i18n_root
244 ANDROID_TZDATA_ROOT = args.android_tzdata_root
249 BOOT_IMAGE = args.boot
[all …]
Drun_test_build.py63 def __init__(self, args, android_build_top, test_dir): argument
65 self.bootclasspath = args.bootclasspath.absolute()
68 self.mode = args.mode
80 self.d8_path = args.d8.absolute()
81 self.d8 = functools.partial(self.run, args.d8.absolute())
82 self.jasmin = functools.partial(self.run, args.jasmin.absolute())
84 self.smali_path = args.smali.absolute()
85 self.rbe_rewrapper = args.rewrapper.absolute()
86 self.smali = functools.partial(self.run, args.smali.absolute())
87 self.soong_zip = functools.partial(self.run, args.soong_zip.absolute())
[all …]
/art/test/909-attach-agent/
Drun.py18 def run(ctx, args): argument
19 agent = "libtiagent.so" if args.O else "libtiagentd.so"
20 plugin = "libopenjdkjvmti.so" if args.O else "libopenjdkjvmtid.so"
22 if args.switch_interpreter:
28 args,
35 args,
42 args,
47 args,
/art/test/1954-pop-frame-jit/
Drun.py18 def run(ctx, args): argument
21 test_args = ["DISABLE_CLASS_LOAD_TESTS"] if args.jvm else []
23 ctx.default_run(args, jvmti=True, test_args=test_args)
28 if (args.jvm or not args.prebuild or
29 (args.jvmti_redefine_stress and args.host)):
/art/test/1953-pop-frame/
Drun.py18 def run(ctx, args): argument
21 test_args = ["DISABLE_CLASS_LOAD_TESTS"] if args.jvm else []
23 ctx.default_run(args, jvmti=True, test_args=test_args)
28 if not (args.jvm or not args.prebuild or
29 (args.jvmti_redefine_stress and args.host)):
/art/test/generate-boot-image/
Dgenerate-boot-image.cc119 std::string BuildCommand(const std::vector<std::string>& args) { in BuildCommand() argument
121 for (const std::string& arg : args) { in BuildCommand()
131 std::vector<std::string> args; in GenerateBootImage() local
132 args.push_back(options.dex2oat_bin); in GenerateBootImage()
137 args.push_back("--runtime-arg"); in GenerateBootImage()
138 args.push_back("-Xbootclasspath:" + Join(dex_files, ":")); in GenerateBootImage()
139 args.push_back("--runtime-arg"); in GenerateBootImage()
140 args.push_back("-Xbootclasspath-locations:" + Join(dex_locations, ":")); in GenerateBootImage()
142 args.push_back("--dex-file=" + file); in GenerateBootImage()
145 args.push_back("--dex-location=" + location); in GenerateBootImage()
[all …]
/art/test/1956-pop-frame-jit-calling/
Drun.py18 def run(ctx, args): argument
21 test_args = ["DISABLE_CLASS_LOAD_TESTS"] if args.jvm else []
26 args,
34 if (args.jvm or not args.prebuild or
35 (args.jvmti_redefine_stress and args.host)):
/art/test/1955-pop-frame-jit-called/
Drun.py18 def run(ctx, args): argument
21 test_args = ["DISABLE_CLASS_LOAD_TESTS"] if args.jvm else []
26 args,
34 if (args.jvm or not args.prebuild or
35 (args.jvmti_redefine_stress and args.host)):
/art/runtime/arch/arm/
Dquick_entrypoints_cc_arm.cc29 static void quick_invoke_reg_setup(ArtMethod* method, uint32_t* args, uint32_t args_size, in quick_invoke_reg_setup() argument
42 core_reg_args[gpr_index++] = args[arg_index++]; in quick_invoke_reg_setup()
53 fp_reg_args[fpr_double_index++] = args[arg_index]; in quick_invoke_reg_setup()
54 fp_reg_args[fpr_double_index++] = args[arg_index + 1]; in quick_invoke_reg_setup()
70 fp_reg_args[fpr_index++] = args[arg_index]; in quick_invoke_reg_setup()
82 core_reg_args[gpr_index++] = args[arg_index]; in quick_invoke_reg_setup()
88 core_reg_args[gpr_index++] = args[arg_index]; in quick_invoke_reg_setup()
94 art_quick_invoke_stub_internal(method, args, args_size, self, result, result_in_float, in quick_invoke_reg_setup()
101 extern "C" void art_quick_invoke_stub(ArtMethod* method, uint32_t* args, uint32_t args_size, in art_quick_invoke_stub() argument
103 quick_invoke_reg_setup<false>(method, args, args_size, self, result, shorty); in art_quick_invoke_stub()
[all …]
/art/test/137-cfi/src/
DMain.java33 public static void main(String[] args) throws Exception { in main() argument
34 System.out.println("args: " + String.join(" ", Arrays.copyOfRange(args, 1, args.length))); in main()
36 System.loadLibrary(args[0]); in main()
37 for (int i = 1; i < args.length; i++) { in main()
38 if (args[i].equals("--test-local")) { in main()
40 } else if (args[i].equals("--test-remote")) { in main()
42 } else if (args[i].equals("--secondary")) { in main()
45 System.out.println("Unknown argument: " + args[i]); in main()
/art/test/1969-force-early-return-void/
Drun.py18 def run(ctx, args): argument
19 ctx.default_run(args, jvmti=True)
21 if args.jvm:
26 elif not (not args.prebuild or (args.jvmti_redefine_stress and args.host)):
/art/test/118-noimage-dex2oat/
Drun.py18 def run(ctx, args): argument
20 assert not args.prebuild
23 assert args.relocate
27 ctx.default_run(args, runtime_option=["-Xnoimage-dex2oat"])
31 ctx.default_run(args, runtime_option=["-Ximage-dex2oat"])
35 ctx.default_run(args)
/art/tools/ahat/src/main/com/android/ahat/
DMain.java90 public static void main(String[] args) { in main() argument
92 for (String arg : args) { in main()
104 for (int i = 0; i < args.length; i++) { in main()
105 if ("-p".equals(args[i]) && i + 1 < args.length) { in main()
107 port = Integer.parseInt(args[i]); in main()
108 } else if ("--proguard-map".equals(args[i]) && i + 1 < args.length) { in main()
111 map.readFromFile(new File(args[i])); in main()
116 } else if ("--baseline-proguard-map".equals(args[i]) && i + 1 < args.length) { in main()
119 mapbase.readFromFile(new File(args[i])); in main()
124 } else if ("--baseline".equals(args[i]) && i + 1 < args.length) { in main()
[all …]
/art/test/712-varhandle-invocations/src/
DVarHandleAccessorExceptionTests.java36 public static void main(String[] args) { in main() argument
67 public static void main(String[] args) { in main() argument
95 public static void main(String[] args) { in main() argument
124 public static void main(String[] args) { in main() argument
155 public static void main(String[] args) { in main() argument
186 public static void main(String[] args) { in main() argument
218 public static void main(String[] args) { in main() argument
223 public static void main(String[] args) { in main() argument
224 NullReceiverTest.main(args); in main()
225 UnsupportedAccessModeTest.main(args); in main()
[all …]

12345678910>>...64