/art/runtime/ |
D | reflection_test.cc | 152 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 …]
|
D | common_throws.cc | 64 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 …]
|
/art/tools/ |
D | run-jdwp-tests.sh | 63 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 …]
|
D | run-libcore-tests.py | 126 if args.mode == "device" and args.gcstress: 128 if args.debug: 130 return args.timeout or default_timeout_secs 134 if args.mode != "jvm": 135 if args.gcstress: 137 if args.gcstress and args.debug: 139 if args.debug and not args.gcstress and args.getrandom: 141 if not args.getrandom: 146 if args.tests: 147 return args.tests [all …]
|
D | compile-jar.py | 104 args = [ 110 print("Running: {}".format(run_print(args))) 112 res = subprocess.run(args, capture_output=True, text=True) 116 args = [ 122 print("Running: {}".format(run_print(args))) 124 res = subprocess.run(args, capture_output=True, text=True) 160 def get_profile_args(args, location_base): argument 162 if args.profile_file is None and len(args.profile_line) == 0: 164 if args.profile_file: 165 with open(args.profile_file, "rb") as prof: [all …]
|
D | run-libjdwp-tests.sh | 38 declare -a args=("$@") 71 unset args[arg_idx] 75 unset args[arg_idx] 84 unset args[arg_idx] 86 unset args[arg_idx] 103 args+=(--mode=device) 107 args+=(--variant=X32) 112 args+=(--test-timeout-ms) 116 args+=(300000) 118 args+=(20000) [all …]
|
D | bisect_profile.py | 87 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 …]
|
D | wrap-logcat.py | 40 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/ |
D | Main.java | 19 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/ |
D | Main.java | 37 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/ |
D | Main.java | 24 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/ |
D | bisection_search.py | 353 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/ |
D | quick_entrypoints_cc_arm.cc | 28 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/ |
D | Main.java | 33 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/ |
D | Main.java | 90 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/ |
D | VarHandleAccessorExceptionTests.java | 36 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 …]
|
/art/tools/checker/ |
D | checker.py | 104 args = parse_arguments() variable 106 if args.quiet: 109 if args.list_passes: 110 list_passes(args.tested_file) 111 elif args.dump_pass: 112 dump_pass(args.tested_file, args.dump_pass) 114 run_tests(args.check_prefix, args.source_path, args.tested_file, args.arch, args.debuggable, 115 args.print_cfg)
|
/art/tools/jvmti-agents/ti-fast/ |
D | tifast.cc | 40 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/ |
D | Main.java | 32 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/test/137-cfi/ |
D | expected-stdout.txt | 1 args: --test-local --test-remote 7 args: --test-local --test-remote --secondary 11 args: --test-local --test-remote 17 args: --test-local --test-remote --secondary 21 args: --test-remote 25 args: --test-remote --secondary
|
D | run | 20 --args --test-local --args --test-remote 27 --args --test-local --args --test-remote 35 --args --test-remote
|
/art/tools/jvmti-agents/ti-alloc-sample/ |
D | mkflame.py | 25 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/test/2037-thread-name-inherit/ |
D | thread_name_inherit.cc | 32 ThreadArgs* args = reinterpret_cast<ThreadArgs*>(arg); in ThreadMain() local 39 args->jvm->AttachCurrentThread(&env, args->attach_args); in ThreadMain() 48 if (args->set_in_java) { in ThreadMain() 59 env->CallVoidMethod(args->consumer, accept_method, str_name, current_thread); in ThreadMain() 61 args->jvm->DetachCurrentThread(); in ThreadMain() 70 JavaVMAttachArgs args; in Java_Main_runThreadTestWithName() local 71 args.group = nullptr; in Java_Main_runThreadTestWithName() 72 args.name = "java-native-thread"; in Java_Main_runThreadTestWithName() 73 args.version = JNI_VERSION_1_6; in Java_Main_runThreadTestWithName() 75 .jvm = nullptr, .consumer = global_consumer, .attach_args = &args, .set_in_java = false in Java_Main_runThreadTestWithName()
|
/art/test/993-breakpoints/ |
D | expected_cts.txt | 3 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/006-args/ |
D | Android.bp | 3 // Build rules for ART run-test `006-args`. 16 name: "art-run-test-006-args", 21 ":art-run-test-006-args-expected-stdout", 22 ":art-run-test-006-args-expected-stderr", 28 name: "art-run-test-006-args-expected-stdout", 29 out: ["art-run-test-006-args-expected-stdout.txt"], 36 name: "art-run-test-006-args-expected-stderr", 37 out: ["art-run-test-006-args-expected-stderr.txt"],
|