Home
last modified time | relevance | path

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

12345678910>>...40

/art/runtime/
Dreflection_test.cc152 jvalue args[1]; in InvokeIdentityByteMethod() local
154 args[0].b = 0; in InvokeIdentityByteMethod()
155 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
158 args[0].b = -1; in InvokeIdentityByteMethod()
159 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
162 args[0].b = SCHAR_MAX; in InvokeIdentityByteMethod()
163 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
167 args[0].b = SCHAR_MIN; in InvokeIdentityByteMethod()
168 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
178 jvalue args[1]; in InvokeIdentityIntMethod() local
[all …]
Dcommon_throws.cc64 va_list* args = nullptr) in ThrowException() argument
67 if (args != nullptr) { in ThrowException()
69 StringAppendV(&vmsg, fmt, *args); in ThrowException()
82 va_list* args = nullptr) in ThrowWrappedException() argument
85 if (args != nullptr) { in ThrowWrappedException()
87 StringAppendV(&vmsg, fmt, *args); in ThrowWrappedException()
138 va_list args; in ThrowBootstrapMethodError() local
139 va_start(args, fmt); in ThrowBootstrapMethodError()
140 ThrowException("Ljava/lang/BootstrapMethodError;", nullptr, fmt, &args); in ThrowBootstrapMethodError()
141 va_end(args); in ThrowBootstrapMethodError()
[all …]
Ddexopt_test.cc49 bool DexoptTest::Dex2Oat(const std::vector<std::string>& args, std::string* error_msg) { in Dex2Oat() argument
65 argv.insert(argv.end(), args.begin(), args.end()); in Dex2Oat()
80 std::vector<std::string> args; in GenerateOatForTest() local
81 args.push_back("--dex-file=" + dex_location); in GenerateOatForTest()
82 args.push_back("--oat-file=" + oat_location); in GenerateOatForTest()
83 args.push_back("--compiler-filter=" + CompilerFilter::NameOfFilter(filter)); in GenerateOatForTest()
84 args.push_back("--runtime-arg"); in GenerateOatForTest()
89 args.push_back("-Xnorelocate"); in GenerateOatForTest()
93 args.push_back("--profile-file=" + profile_file.GetFilename()); in GenerateOatForTest()
98 args.push_back("--boot-image=" + GetImageLocation2()); in GenerateOatForTest()
[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/tools/
Drun-jdwp-tests.sh66 args=$@
130 args=${args/$1}
131 args="$args --mode=device_testdex"
153 args=${args/$1}
157 args=${args/$1}
161 args=${args/$1}
165 args=${args/$1}
173 args=${args/$1}
178 args=${args/$1}
184 args=${args/$1}
[all …]
Drun-libjdwp-tests.sh27 declare -a args=("$@")
59 unset args[arg_idx]
68 unset args[arg_idx]
70 unset args[arg_idx]
84 args+=(--mode=device)
88 args+=(--variant=X32)
93 args+=(--test-timeout-ms)
95 args+=(20000)
98 args+=(200000)
103 args+=(--vm-arg)
[all …]
Dwrap-logcat.py40 args = parser.parse_args()
41 if len(args.command) == 0:
46 with subprocess.Popen(shlex.split(args.logcat_invoke),
47 stdout=args.output,
52 with subprocess.Popen(shlex.split(args.command[0]) if len(args.command) == 1 else args.command,
/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.py355 def PrepareBaseCommand(args, classpath): argument
357 if args.raw_cmd:
358 return shlex.split(args.raw_cmd)
360 base_cmd = ['dalvikvm64'] if args.x64 else ['dalvikvm32']
361 if not args.device:
362 base_cmd += ['-XXlib:{0}'.format(args.lib)]
363 if not args.image:
367 image_path = args.image
369 if args.dalvikvm_opts:
370 base_cmd += args.dalvikvm_opts
[all …]
/art/compiler/utils/
Dassembler_test_base.h218 std::vector<std::string> args; in Assemble() local
223 args.push_back(GetAssemblerCommand()); in Assemble()
224 args.push_back("-o"); in Assemble()
225 args.push_back(to_file); in Assemble()
226 args.push_back(from_file); in Assemble()
227 std::string cmd = android::base::Join(args, ' '); in Assemble()
229 args.clear(); in Assemble()
230 args.push_back("/bin/sh"); in Assemble()
231 args.push_back("-c"); in Assemble()
232 args.push_back(cmd); in Assemble()
[all …]
/art/disassembler/
Ddisassembler_mips.cc528 std::ostringstream args; in Dump() local
541 args << sa; in Dump()
548 args << FormatInstructionPointer(instr_ptr + offset) in Dump()
557 args << FormatInstructionPointer(instr_ptr + offset) in Dump()
562 args << "cc" << (sa >> 2); in Dump()
565 args << "cc" << (rt >> 2); in Dump()
567 case 'D': args << RegName(rd); break; in Dump()
568 case 'd': args << 'f' << rd; break; in Dump()
569 case 'a': args << 'f' << sa; break; in Dump()
570 case 'F': args << (sa + 32); break; // dinsu position. in Dump()
[all …]
/art/runtime/arch/arm/
Dquick_entrypoints_cc_arm.cc28 static void quick_invoke_reg_setup(ArtMethod* method, uint32_t* args, uint32_t args_size, in quick_invoke_reg_setup() argument
41 core_reg_args[gpr_index++] = args[arg_index++]; in quick_invoke_reg_setup()
52 fp_reg_args[fpr_double_index++] = args[arg_index]; in quick_invoke_reg_setup()
53 fp_reg_args[fpr_double_index++] = args[arg_index + 1]; in quick_invoke_reg_setup()
69 fp_reg_args[fpr_index++] = args[arg_index]; in quick_invoke_reg_setup()
81 core_reg_args[gpr_index++] = args[arg_index]; in quick_invoke_reg_setup()
87 core_reg_args[gpr_index++] = args[arg_index]; in quick_invoke_reg_setup()
93 art_quick_invoke_stub_internal(method, args, args_size, self, result, result_in_float, in quick_invoke_reg_setup()
99 extern "C" void art_quick_invoke_stub(ArtMethod* method, uint32_t* args, uint32_t args_size, in art_quick_invoke_stub() argument
101 quick_invoke_reg_setup<false>(method, args, args_size, self, result, shorty); in art_quick_invoke_stub()
[all …]
/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 …]
DVarHandleTypeConversionTests.java50 public static void main(String[] args) { in main() argument
84 public static void main(String[] args) { in main() argument
112 public static void main(String[] args) { in main() argument
139 public static void main(String[] args) { in main() argument
168 public static void main(String[] args) { in main() argument
196 public static void main(String[] args) { in main() argument
225 public static void main(String[] args) { in main() argument
254 public static void main(String[] args) { in main() argument
285 public static void main(String[] args) { in main() argument
343 public static void main(String[] args) { in main() argument
[all …]
/art/test/137-cfi/src/
DMain.java33 public static void main(String[] args) throws Exception { in main() argument
34 System.loadLibrary(args[0]); in main()
35 for (int i = 1; i < args.length; i++) { in main()
36 if (args[i].equals("--test-local")) { in main()
38 } else if (args[i].equals("--test-remote")) { in main()
40 } else if (args[i].equals("--secondary")) { in main()
43 System.out.println("Unknown argument: " + args[i]); in main()
/art/tools/checker/
Dchecker.py99 args = ParseArguments() variable
101 if args.quiet:
104 if args.list_passes:
105 ListPasses(args.tested_file)
106 elif args.dump_pass:
107 DumpPass(args.tested_file, args.dump_pass)
109 RunTests(args.check_prefix, args.source_path, args.tested_file, args.arch, args.debuggable)
/art/test/1945-proxy-method-arguments/src/
DMain.java32 public Object invoke(Object proxy, Method method, Object[] args) { in invoke() argument
39 testMethod0(proxy, args); in invoke()
41 testMethod1(proxy, args); in invoke()
43 testMethod10(proxy, args); in invoke()
45 testMethod10Even(proxy, args); in invoke()
50 private void testMethod0(Object proxy, Object[] args) { in testMethod0() argument
57 private void testMethod1(Object proxy, Object[] args) { in testMethod1() argument
65 Main.assertEquals(args[0], arg1); in testMethod1()
68 private void testMethod10(Object proxy, Object[] args) { in testMethod10() argument
78 Main.assertEquals(args[i], arg); in testMethod10()
[all …]
/art/tools/jvmti-agents/ti-fast/
Dtifast.cc40 template <typename ...Args> static void Unused(Args... args ATTRIBUTE_UNUSED) {} in Unused()
114 #define GENERATE_EMPTY_FUNCTION(name, number, args, argnames) \ argument
115 static void JNICALL empty ## name args { Unused argnames ; }
120 #define CREATE_EMPTY_EVENT_CALLBACKS(name, num, args, argnames) \ in FOR_ALL_SUPPORTED_EVENTS() argument
327 template <typename ...Args> void PrintRestNoJNI(jvmtiEnv* jvmti, Args... args) { in PrintRestNoJNI() argument
328 PrintRest(jvmti, static_cast<JNIEnv*>(nullptr), args...); in PrintRestNoJNI()
331 template <typename ...Args> void PrintRest(jvmtiEnv* jvmti, JNIEnv* env, Args... args);
335 Args... args);
339 Args... args);
343 Args... args);
[all …]
/art/tools/ahat/src/test-dump/
DMain.java29 public static void main(String[] args) throws IOException { in main() argument
30 if (args.length < 1) { in main()
34 String file = args[0]; in main()
38 boolean baseline = args.length > 1 && args[1].equals("--base"); in main()
/art/test/674-hiddenapi/src-ex/
DReflection.java132 public static boolean canDiscoverWithGetDeclaredConstructor(Class<?> klass, Class<?> args[]) { in canDiscoverWithGetDeclaredConstructor() argument
134 klass.getDeclaredConstructor(args); in canDiscoverWithGetDeclaredConstructor()
141 public static boolean canDiscoverWithGetDeclaredConstructors(Class<?> klass, Class<?> args[]) { in canDiscoverWithGetDeclaredConstructors() argument
143 if (Arrays.equals(c.getParameterTypes(), args)) { in canDiscoverWithGetDeclaredConstructors()
150 public static boolean canDiscoverWithGetConstructor(Class<?> klass, Class<?> args[]) { in canDiscoverWithGetConstructor() argument
152 klass.getConstructor(args); in canDiscoverWithGetConstructor()
159 public static boolean canDiscoverWithGetConstructors(Class<?> klass, Class<?> args[]) { in canDiscoverWithGetConstructors() argument
161 if (Arrays.equals(c.getParameterTypes(), args)) { in canDiscoverWithGetConstructors()
168 public static boolean canInvokeConstructor(Class<?> klass, Class<?> args[], Object[] initargs) { in canInvokeConstructor() argument
170 Constructor c = klass.getDeclaredConstructor(args); in canInvokeConstructor()
[all …]
/art/tools/ahat/src/test/com/android/ahat/
DAhatTestSuite.java44 public static void main(String[] args) { in main() argument
45 if (args.length == 0) { in main()
46 args = new String[]{"com.android.ahat.AhatTestSuite"}; in main()
48 JUnitCore.main(args); in main()
/art/test/023-many-interfaces/src/
DMain.java2 static public void main(String[] args) throws Exception { in main() argument
3 boolean timing = (args.length >= 1) && args[0].equals("--timing"); in main()
/art/test/909-attach-agent/
Drun35 --args agent:${agent}=909-attach-agent
40 --args agent:${agent}=909-attach-agent
43 ./default-run "$@" --args agent:${agent}=909-attach-agent --external-log-tags
46 ./default-run "$@" --args agent:${agent}=909-attach-agent \
47 --args disallow-debugging \

12345678910>>...40