/art/tools/ |
D | compile-jar.py | 107 "${{OUT}}/system/framework/oat/{}/services.odex".format(arch)), 109 print("Running: {}".format(run_print(args))) 114 print("Falling back to ART boot image: {}".format(res)) 118 "${{OUT}}/apex/art_boot_images/javalib/{}/boot.oat".format(arch)), 120 print("Running: {}".format(run_print(args))) 139 "$ANDROID_HOST_OUT/apex/art_boot_images/javalib/{}/boot.oat".format( 149 "--runtime-arg", "-Xbootclasspath:{}".format(str_bcp), 150 "--runtime-arg", "-Xbootclasspath-locations:{}".format(str_bcp_loc) 155 return "/proc/{}/fd/{}".format(os.getpid(), fd) 167 return ['--profile-file={}'.format(args.profile_file)] [all …]
|
D | bisect_profile.py | 89 print("HS{}".format(m), file=output) 92 "profmand", "--reference-profile-file={}".format(args.output_file), 93 "--create-profile-from={}".format(args.output_source) 98 "--apk={}".format(apk.file), "--dex-location={}".format(apk.location) 107 answer = input("Does the file at {} cause the issue (y/n):".format( 127 print("Currently testing {} methods. ~{} rounds to go.".format( 136 args.output_source = "/proc/{}/fd/{}".format(os.getpid(), fdnum) 145 parser.error("Failed to open file: {}. errors were {} and {}".format( 150 "--profile-file={}".format(args.input_profile) 153 profman_args.append("--apk={}".format(apk.file)) [all …]
|
/art/test/123-inline-execute2/src/ |
D | Main.java | 24 + String.format(Locale.US, "%.12f", Math.sin(d))); in main() 27 + String.format(Locale.US, "%.12f", Math.sinh(d))); in main() 29 + String.format(Locale.US, "%.12f", Math.asin(d))); in main() 31 + String.format(Locale.US, "%.12f", Math.cos(d))); in main() 33 + String.format(Locale.US, "%.12f", Math.cosh(d))); in main() 35 + String.format(Locale.US, "%.12f", Math.acos(d))); in main() 38 + String.format(Locale.US, "%.12f", Math.tan(d))); in main() 41 + String.format(Locale.US, "%.12f", Math.tanh(d))); in main() 43 + String.format(Locale.US, "%.12f", Math.atan(d))); in main() 45 + String.format(Locale.US, "%.12f", Math.atan2(d, d + 1.0))); in main() [all …]
|
/art/tools/ahat/src/main/com/android/ahat/ |
D | HtmlDoc.java | 44 ps.format("<title>%s</title>\n", title.html()); in HtmlDoc() 45 ps.format("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n", in HtmlDoc() 52 public void title(String format, Object... args) { in title() argument 54 ps.print(DocString.text(String.format(format, args)).html()); in title() 60 ps.format("<div class=\"menu\">%s</div>", string.html()); in menu() 65 ps.format("<h2 id=\"%d\">", mSections.size()); in section() 94 ps.format("<th>%s</th>", columns[i].heading.html()); in table() 101 ps.format("<th align=\"left\">%s</th>", columns[columns.length - 1].heading.html()); in table() 123 ps.format("<tr><th colspan=\"%d\">%s</th>", visibleSubCols, description.html()); in table() 126 ps.format("<th rowspan=\"2\">%s</th>", cols.get(i).heading.html()); in table() [all …]
|
D | DocString.java | 44 public static DocString format(String format, Object... args) { in format() argument 46 return doc.appendFormat(format, args); in format() 77 public DocString appendFormat(String format, Object... args) { in appendFormat() argument 78 append(String.format(format, args)); in appendFormat() 165 append(removed(format("%+,d", 0 - baseline))); in appendDelta() 169 append(added(format("%+,d", current - baseline))); in appendDelta() 171 append(removed(format("%+,d", current - baseline))); in appendDelta() 219 public static URI formattedUri(String format, Object... args) { in formattedUri() argument 220 return uri(String.format(format, args)); in formattedUri()
|
/art/test/ |
D | Android.run-test.bp.py | 46 for shard in ["{:02}".format(i) for i in range(100)]: 73 name = "art-run-test-{mode}-data-shardHiddenApi".format(mode=mode) 132 name = "art-run-test-{mode}-data-merged".format(mode=mode) 133 srcs = ("\n"+" "*16).join('":{}-tmp",'.format(n) for n in names) 134 deps = ("\n"+" "*16).join('"{}",'.format(n) for n in names) 158 name = "art-run-test-{mode}-data".format(mode=mode) 159 srcs = ("\n"+" "*16).join('":{}-tmp",'.format(n) for n in names) 160 deps = ("\n"+" "*16).join('"{}",'.format(n) for n in names)
|
/art/test/303-verification-stress/ |
D | classes-gen | 21 name = "src/Test{:03}.java".format(i) 23 fp.write("public class Test{:03} {{\n".format(i)) 24 fp.write(" static String[] array = new String[{}];\n".format(array_size)) 27 fp.write(" array[{}] = \"string_{:04}\";\n".format(k, k)) 35 fp.write(" System.out.println(\"Create new Test{:03}\");\n".format(i)) 36 fp.write(" new Test{:03}();\n".format(i))
|
/art/tools/jvmti-agents/field-counts/ |
D | count-fields.py | 88 mkcmd = lambda lib: "'{}={}'".format(lib, ','.join(out.fields)) 109 device.shell('rm {}'.format(lib32).split()) 110 device.shell('rm {}'.format(lib64).split()) 120 name = device.shell('cat /proc/{}/cmdline'.format(pid).split())[0].strip('\0') 121 targetdir = str('/data/data/{}/code_cache'.format(str(name).strip())) 122 print("Will place agents in {}".format(targetdir)) 123 target32 = device.shell('mktemp -p {}'.format(targetdir).split())[0].strip() 124 print("{} -> {}".format(bit32, target32)) 125 target64 = device.shell('mktemp -p {}'.format(targetdir).split())[0].strip() 126 print("{} -> {}".format(bit64, target64)) [all …]
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | AhatBitmapInstance.java | 60 private int format; field in AhatBitmapInstance.BitmapDumpData 65 BitmapDumpData(int count, int format) { in BitmapDumpData() argument 67 this.format = format; in BitmapDumpData() 140 int format = inst.getIntField("format", -1); in toBitmapDumpData() local 142 if (count == 0 || format == -1) { in toBitmapDumpData() 146 BitmapDumpData result = new BitmapDumpData(count, format); in toBitmapDumpData() 200 private final int format; field in AhatBitmapInstance.BitmapInfo 204 public BitmapInfo(int width, int height, int format, byte[] buffer) { in BitmapInfo() argument 207 this.format = format; in BitmapInfo() 214 return Objects.hash(width, height, format, bufferHash); in hashCode() [all …]
|
/art/test/023-many-interfaces/ |
D | iface-gen | 22 with open("src/Interface{:03}.java".format(i), "wt") as fp: 23 fp.write("interface Interface{:03} {{\n".format(i)) 25 fp.write(" int func{:03}();\n".format(i)) 31 fp.write(" Interface{:03},\n".format(i)) 34 fp.write(" public int func{:03}() {{ return {}; }}\n".format(i, i))
|
/art/test/odsign/test-src/com/android/tests/odsign/ |
D | DeviceState.java | 66 mTestInfo.getDevice().executeShellV2Command(String.format("umount '%s'", mountPoint)); in restore() 81 String.format("device_config put '%s' '%s' '%s'", PHENOTYPE_FLAG_NAMESPACE, in restore() 85 String.format("device_config delete '%s' '%s'", PHENOTYPE_FLAG_NAMESPACE, in restore() 92 String.format("cp '%s' '%s'", entry.getValue(), entry.getKey())); in restore() 93 mTestInfo.getDevice().executeShellV2Command(String.format("rm '%s'", entry.getValue())); in restore() 95 String.format("restorecon '%s'", entry.getKey())); in restore() 100 String.format("rm -rf '%s'", OdsignTestUtils.ART_APEX_DALVIK_CACHE_DIRNAME)); in restore() 102 String.format("mv '%s' '%s'", ART_APEX_DALVIK_CACHE_BACKUP_DIRNAME, in restore() 188 String.format("device_config get '%s' '%s'", PHENOTYPE_FLAG_NAMESPACE, key)); in setPhenotypeFlag() 193 mTestUtils.assertCommandSucceeds(String.format( in setPhenotypeFlag() [all …]
|
/art/test/968-default-partial-compile-gen/util-src/ |
D | generate_smali.py | 122 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name()) 123 main_func = self.MAIN_FUNCTION_TEMPLATE.format(test_group_invoke=test_invoke) 125 return self.MAIN_CLASS_TEMPLATE.format(copyright = get_copyright("smali"), 228 return self.NSME_RESULT_TEMPLATE.format(tree = self.farg.get_tree()) 230 return self.AME_RESULT_TEMPLATE.format(tree = self.farg.get_tree()) 232 return self.ICCE_RESULT_TEMPLATE.format(tree = self.farg.get_tree()) 235 return self.NORMAL_RESULT_TEMPLATE.format(tree = self.farg.get_tree(), 242 return "TEST_FUNC_{}".format(self.farg.get_name()) 248 return self.TEST_FUNCTION_TEMPLATE.format(tree = self.farg.get_tree(), 293 return "[{class_name} {iface_tree}]".format(class_name = self.class_name, [all …]
|
/art/test/971-iface-super/util-src/ |
D | generate_smali.py | 122 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name()) 123 main_func = self.MAIN_FUNCTION_TEMPLATE.format(test_group_invoke=test_invoke) 125 return self.MAIN_CLASS_TEMPLATE.format(copyright = get_copyright("smali"), 197 return "TEST_FUNC_{}".format(self.farg.get_name()) 203 return self.TEST_FUNCTION_TEMPLATE.format(fname = self.get_name(), 338 return "[{class_name} {iface_tree}]".format(class_name = self.class_name, 351 yield self.OUTPUT_PREFIX.format(iface_name = iface.get_name(), tree = self.get_tree()) 353 yield iface.get_response().get_output_format().format(iface_name = iface.get_name(), 360 s_ifaces = '\n'.join(map(lambda a: self.IMPLEMENTS_TEMPLATE.format(iface_name = a.get_name()), 364 super_calls = "\n".join(super_template.format(iface_name = iface.get_name(), [all …]
|
/art/test/964-default-iface-init-gen/util-src/ |
D | generate_java.py | 101 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name()) 102 main_func = self.MAIN_FUNCTION_TEMPLATE.format(test_group_invoke=test_invoke) 104 return self.MAIN_CLASS_TEMPLATE.format(copyright = get_copyright('java'), 148 return self.TEST_FUNCTION_TEMPLATE.format(fname=self.get_name(), 156 return "TEST_FUNC_{}".format(self.farg.get_name()) 162 return self.OUTPUT_FORMAT.format( 211 return "[{fname} {iftree}]".format(fname = self.get_name(), iftree = print_tree(self.ifaces)) 217 return "\n".join(map(lambda a: self.TOUCH_OUTPUT_TEMPLATE.format( 234 touches = '\n'.join(map(lambda a: self.TOUCH_CALL_TEMPLATE.format(class_name = self.class_name, 237 return self.TEST_CLASS_TEMPLATE.format(copyright = get_copyright('java'), [all …]
|
/art/test/970-iface-super-resolution-gen/util-src/ |
D | generate_smali.py | 124 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name()) 125 main_func = self.MAIN_FUNCTION_TEMPLATE.format(test_group_invoke=test_invoke) 127 return self.MAIN_CLASS_TEMPLATE.format(copyright = get_copyright('smali'), 196 return self.TEST_FUNCTION_TEMPLATE.format(fname = self.get_name(), 204 return "TEST_FUNC_{}".format(self.farg.get_name()) 210 return self.OUTPUT_FORMAT.format( 376 return "[{fname} {iftree}]".format(fname = self.get_name(), iftree = print_tree(self.ifaces)) 379 return '\n'.join(map(lambda a: self.OUTPUT_TEMPLATE.format(class_name = self.get_name(), 388 funcs = '\n'.join(map(lambda a: self.TEST_FUNC_TEMPLATE.format(iface = a.get_name(), 391 calls = '\n'.join(map(lambda a: self.TEST_CALL_TEMPLATE.format(iface = a.get_name(), [all …]
|
/art/tools/ahat/src/test-dump/android/graphics/ |
D | Bitmap.java | 37 private final int format; field in Bitmap.DumpData 43 public DumpData(int format, int max) { in DumpData() argument 45 this.format = format; in DumpData()
|
/art/test/013-math2/src/ |
D | Main.java | 34 System.out.println(String.format("c:0x%016x", c)); in math_013() 37 System.out.println(String.format("d:0x%016x", d)); in math_013() 40 System.out.println(String.format("e:0x%016x", e)); in math_013() 43 System.out.println(String.format("f:0x%016x", f)); in math_013()
|
/art/tools/common/ |
D | common.py | 75 raise ValueError("{0} is not a valid log severity symbol".format(s)) 114 raise FatalError('{0} environmental variable not set.'.format( 128 return ('{0}/dalvik-cache/{1}'.format(android_data_path, arch) 172 logfile.write('Command:\n{0}\n{1}\nReturn code: {2}\n'.format( 294 self._logfile = open('{0}/log'.format(self._env_path), 'w+') 297 os.mkdir('{0}/dalvik-cache'.format(self._env_path)) 327 f = open('{0}/{1}'.format(self._env_path, name), 'w+') 332 f.writelines('{0}\n'.format(line) for line in lines) 359 file_path = '{0}/{1}'.format(arch_cache_path, file_path) 386 self._logfile = open('{0}/log'.format(self._host_env_path), 'w+') [all …]
|
/art/test/961-default-iface-resolution-gen/util-src/ |
D | generate_java.py | 104 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name()) 105 main_func = self.MAIN_FUNCTION_TEMPLATE.format(test_group_invoke=test_invoke) 107 return self.MAIN_CLASS_TEMPLATE.format(copyright = get_copyright("java"), 142 return "{tree} calls default method on {iface_tree}".format( 149 return "TEST_FUNC_{}".format(self.farg.get_name()) 155 return self.TEST_FUNCTION_TEMPLATE.format(fname=self.get_name(), farg=self.farg.get_name()) 187 return "[{class_name} {iface_tree}]".format(class_name = self.class_name, 212 return self.TEST_CLASS_TEMPLATE.format(copyright = get_copyright('java'), 261 return "[{class_name} {iftree}]".format(class_name = self.get_name(), 279 j_ifaces += " {},".format(i.get_name()) [all …]
|
/art/sigchainlib/ |
D | log.h | 32 static void LogError(const char* format, ...) { in LogError() argument 34 va_start(ap, format); in LogError() 35 vprintf(format, ap); in LogError()
|
/art/tools/dexfuzz/src/dexfuzz/program/mutators/ |
D | ConstantValueChanger.java | 82 if (mInsn.insn.info.format instanceof ContainsConst) { in generateCachedConstInsns() 91 if (mInsn.insn.info.format instanceof ContainsConst) { in canMutate() 109 long oldConstant = ((ContainsConst)constInsn.insn.info.format).getConst(constInsn.insn); in generateMutation() 116 % ((ContainsConst)constInsn.insn.info.format).getConstRange(); in generateMutation() 136 long oldConstant = ((ContainsConst)constInsn.insn.info.format).getConst(constInsn.insn); in applyMutation() 144 ((ContainsConst)constInsn.insn.info.format).setConst(constInsn.insn, mutation.newConstant); in applyMutation()
|
/art/test/648-many-direct-methods/util-src/ |
D | generate_java.py | 82 return self.MAIN_CLASS_TEMPLATE.format(copyright = get_copyright("java"), 105 return "method{:05d}".format(self.farg) 111 return self.TEST_FUNCTION_TEMPLATE.format(fname=self.get_name()) 131 print("{} is not a valid Java dir".format(java_dir), file=sys.stderr)
|
/art/tools/jvmti-agents/field-null-percent/ |
D | check-null-fields.py | 87 cmd32 = "'{}={}'".format(lib32, ','.join(out.fields)) 88 cmd64 = "'{}={}'".format(lib64, ','.join(out.fields)) 109 device.shell('rm {}'.format(lib32).split()) 110 device.shell('rm {}'.format(lib64).split()) 123 device.shell('kill -3 {}'.format(pid).split()) 127 lc_cmd = "logcat -d -b main --pid={} -e '^\\t.*\\t[0-9]*\\t[0-9]*$'".format(pid).split(' ')
|
/art/libarttools/include/tools/ |
D | cmdline_builder.h | 33 constexpr bool ContainsOneFormatSpecifier(std::string_view format, char specifier) { in ContainsOneFormatSpecifier() argument 36 while ((pos = format.find('%', pos)) != std::string_view::npos) { in ContainsOneFormatSpecifier() 37 if (pos == format.length() - 1) { in ContainsOneFormatSpecifier() 41 if (format[pos + 1] == specifier) { in ContainsOneFormatSpecifier() 43 } else if (format[pos + 1] != '%') { in ContainsOneFormatSpecifier()
|
/art/runtime/entrypoints/quick/ |
D | quick_string_builder_append_entrypoints.cc | 24 extern "C" mirror::String* artStringBuilderAppend(uint32_t format, in artStringBuilderAppend() argument 27 return StringBuilderAppend::AppendF(format, args, self).Ptr(); in artStringBuilderAppend()
|