Home
last modified time | relevance | path

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

12345678910>>...44

/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.cc50 bool DexoptTest::Dex2Oat(const std::vector<std::string>& args, std::string* error_msg) { in Dex2Oat() argument
66 argv.insert(argv.end(), args.begin(), args.end()); in Dex2Oat()
100 std::vector<std::string> args; in GenerateOatForTest() local
101 args.push_back("--dex-file=" + dex_location); in GenerateOatForTest()
102 args.push_back("--oat-file=" + oat_location); in GenerateOatForTest()
103 args.push_back("--compiler-filter=" + CompilerFilter::NameOfFilter(filter)); in GenerateOatForTest()
104 args.push_back("--runtime-arg"); in GenerateOatForTest()
109 args.push_back("-Xnorelocate"); in GenerateOatForTest()
113 args.push_back("--profile-file=" + profile_file.GetFilename()); in GenerateOatForTest()
121 args.push_back("--boot-image=" + alternate_image_location); in GenerateOatForTest()
[all …]
/art/tools/
Drun-jdwp-tests.sh56 args=$@
127 args=${args/$1}
128 args="$args --mode=device_testdex"
152 args=${args/$1}
155 args=${args/$1}
160 args=${args/$1}
164 args=${args/$1}
168 args=${args/$1}
172 args=${args/$1}
176 args=${args/$1}
[all …]
Drun-libjdwp-tests.sh38 declare -a args=("$@")
70 unset args[arg_idx]
74 unset args[arg_idx]
83 unset args[arg_idx]
85 unset args[arg_idx]
99 args+=(--mode=device)
103 args+=(--variant=X32)
108 args+=(--test-timeout-ms)
110 args+=(20000)
113 args+=(200000)
[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/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/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/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/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/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/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/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/tools/jvmti-agents/ti-fast/
Dtifast.cc40 template <typename ...Args> static void Unused(Args... args ATTRIBUTE_UNUSED) {} in Unused()
111 #define GENERATE_EMPTY_FUNCTION(name, number, args, argnames) \ argument
112 static void JNICALL empty ## name args { Unused argnames ; }
117 #define CREATE_EMPTY_EVENT_CALLBACKS(name, num, args, argnames) \ in FOR_ALL_SUPPORTED_EVENTS() argument
324 template <typename ...Args> void PrintRestNoJNI(jvmtiEnv* jvmti, Args... args) { in PrintRestNoJNI() argument
325 PrintRest(jvmti, static_cast<JNIEnv*>(nullptr), args...); in PrintRestNoJNI()
328 template <typename ...Args> void PrintRest(jvmtiEnv* jvmti, JNIEnv* env, Args... args);
332 Args... args);
336 Args... args);
340 Args... args);
[all …]
/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-alloc-sample/
Dmkflame.py25 def __init__(self, args): argument
26 self.args = args
102 if self.args.type_only:
104 elif self.args.thread_only:
118 if self.args.depth_limit > 0 and i >= self.args.depth_limit:
126 if not self.args.ignore_type:
131 if self.args.reverse_stack:
161 if self.args.use_size:
203 args = parser.parse_args()
204 return 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.java133 public static boolean canDiscoverWithGetDeclaredConstructor(Class<?> klass, Class<?> args[]) { in canDiscoverWithGetDeclaredConstructor() argument
135 klass.getDeclaredConstructor(args); in canDiscoverWithGetDeclaredConstructor()
142 public static boolean canDiscoverWithGetDeclaredConstructors(Class<?> klass, Class<?> args[]) { in canDiscoverWithGetDeclaredConstructors() argument
144 if (Arrays.equals(c.getParameterTypes(), args)) { in canDiscoverWithGetDeclaredConstructors()
151 public static boolean canDiscoverWithGetConstructor(Class<?> klass, Class<?> args[]) { in canDiscoverWithGetConstructor() argument
153 klass.getConstructor(args); in canDiscoverWithGetConstructor()
160 public static boolean canDiscoverWithGetConstructors(Class<?> klass, Class<?> args[]) { in canDiscoverWithGetConstructors() argument
162 if (Arrays.equals(c.getParameterTypes(), args)) { in canDiscoverWithGetConstructors()
169 public static boolean canInvokeConstructor(Class<?> klass, Class<?> args[], Object[] initargs) { in canInvokeConstructor() argument
171 Constructor c = klass.getDeclaredConstructor(args); in canInvokeConstructor()
[all …]
/art/test/993-breakpoints/
Dexpected.txt3 Native invoking: public static void art.Test993.breakpoint() args: [this: null]
4 Reflective invoking: public static void art.Test993.breakpoint() args: [this: null]
7 Native invoking: public static void art.Test993.breakpoint() args: [this: null]
9 Reflective invoking: public static void art.Test993.breakpoint() args: [this: null]
15 Native invoking: private static void art.Test993.privateBreakpoint() args: [this: null]
18 Native invoking: private static void art.Test993.privateBreakpoint() args: [this: null]
24 Native invoking: public static void art.Test993$Breakable.iBreakpoint() args: [this: null]
25 Reflective invoking: public static void art.Test993$Breakable.iBreakpoint() args: [this: null]
28 Native invoking: public static void art.Test993$Breakable.iBreakpoint() args: [this: null]
30 Reflective invoking: public static void art.Test993$Breakable.iBreakpoint() args: [this: null]
[all …]
/art/test/137-cfi/
Dexpected.txt1 args: --test-local --test-remote
7 args: --test-local --test-remote --secondary
11 args: --test-remote
15 args: --test-remote --secondary
/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()

12345678910>>...44