Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 181) sorted by relevance

12345678

/art/test/123-inline-execute2/src/
DMain.java24 + 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/
DHtmlDoc.java41 ps.format("<title>%s</title>\n", title.html()); in HtmlDoc()
42 ps.format("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n", in HtmlDoc()
49 public void title(String format, Object... args) { in title() argument
51 ps.print(DocString.text(String.format(format, args)).html()); in title()
57 ps.format("<div class=\"menu\">%s</div>", string.html()); in menu()
90 ps.format("<th>%s</th>", columns[i].heading.html()); in table()
97 ps.format("<th align=\"left\">%s</th>", columns[columns.length - 1].heading.html()); in table()
119 ps.format("<tr><th colspan=\"%d\">%s</th>", visibleSubCols, description.html()); in table()
122 ps.format("<th rowspan=\"2\">%s</th>", cols.get(i).heading.html()); in table()
130 ps.format("<th align=\"left\" rowspan=\"2\">%s</th>", col.heading.html()); in table()
[all …]
DDocString.java44 public static DocString format(String format, Object... args) { in format() method in DocString
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("%+,14d", 0 - baseline))); in appendDelta()
169 append(added(format("%+,14d", current - baseline))); in appendDelta()
171 append(removed(format("%+,14d", 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/tools/jvmti-agents/field-counts/
Dcount-fields.py88 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/test/968-default-partial-compile-gen/util-src/
Dgenerate_smali.py122 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 …]
Dgenerate_java.py71 print("Running compile command: {}".format(cmd))
73 print("Compiled {} files".format(len(files)))
86 self.compile_files("-d {}".format(self.classes_dir), self.temp_dir.glob("*.java"))
105 self.compile_files("-d {outdir} -cp {outdir}".format(outdir = self.classes_dir), files)
114 print("{} is not a shell script".format(javac_exec), file=sys.stderr)
118 print("{} is not a valid source dir".format(temp_dir), file=sys.stderr)
122 print("{} is not a valid classes directory".format(classes_dir), file=sys.stderr)
/art/test/971-iface-super/util-src/
Dgenerate_smali.py122 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 …]
Dgenerate_java.py71 print("Running compile command: {}".format(cmd))
73 print("Compiled {} files".format(len(files)))
86 self.compile_files("-d {}".format(self.classes_dir), self.temp_dir.glob("*.java"))
109 self.compile_files("-d {outdir} -cp {outdir}".format(outdir = self.classes_dir), files)
118 print("{} is not a shell script".format(javac_exec), file=sys.stderr)
122 print("{} is not a valid source dir".format(temp_dir), file=sys.stderr)
126 print("{} is not a valid classes directory".format(classes_dir), file=sys.stderr)
/art/test/964-default-iface-init-gen/util-src/
Dgenerate_java.py101 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/sigchainlib/
Dlog.h32 static void log(const char* format, ...) { in log() argument
34 va_start(ap, format); in log()
35 vprintf(format, ap); in log()
/art/test/970-iface-super-resolution-gen/util-src/
Dgenerate_smali.py124 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/common/
Dcommon.py75 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/
Dgenerate_java.py104 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/tools/dexfuzz/src/dexfuzz/program/mutators/
DConstantValueChanger.java82 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()
DPoolIndexChanger.java83 if (mInsn.insn.info.format instanceof ContainsPoolIndex) { in generateCachedPoolIndexInsns()
95 if (mInsn.insn.info.format instanceof ContainsPoolIndex) { in canMutate()
98 (ContainsPoolIndex)mInsn.insn.info.format; in canMutate()
145 (ContainsPoolIndex)poolIndexInsn.insn.info.format; in generateMutation()
184 (ContainsPoolIndex) poolIndexInsn.insn.info.format; in applyMutation()
/art/tools/class2greylist/src/com/android/class2greylist/
DAnnotatedClassContext.java41 return String.format(Locale.US, signatureFormatString, getClassDescriptor()); in getMemberDescriptor()
48 .format("%s: %s: ", definingClass.getSourceFileName(), definingClass.getClassName()) in reportError()
49 .format(Locale.US, message, args); in reportError()
DAnnotatedMemberContext.java45 return String.format(Locale.US, signatureFormatString, in getMemberDescriptor()
53 .format("%s: %s.%s: ", definingClass.getSourceFileName(), in reportError()
55 .format(Locale.US, message, args); in reportError()
/art/runtime/entrypoints/quick/
Dquick_string_builder_append_entrypoints.cc24 extern "C" mirror::String* artStringBuilderAppend(uint32_t format, in artStringBuilderAppend() argument
27 return StringBuilderAppend::AppendF(format, args, self).Ptr(); in artStringBuilderAppend()
/art/test/648-many-direct-methods/util-src/
Dgenerate_java.py82 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/dexfuzz/src/dexfuzz/rawdex/
DOpcodeInfo.java30 public final AbstractFormat format; field in OpcodeInfo
39 this.format = fmt; in OpcodeInfo()
/art/tools/jvmti-agents/field-null-percent/
Dcheck-null-fields.py87 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/test/1972-jni-id-swap-indices/src/
DMain.java44 DbgPrint(String.format("expected_ptr_id is 0x%x", expect_ptr_id)); in main()
53 DbgPrint(String.format("expected_idx_id is 0x%x", expect_idx_id)); in main()
67 DbgPrint(String.format("well_known_id is 0x%x", well_known_id)); in main()
/art/test/utils/python/
Dgenerate_java_main.py99 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name())
100 main_func = self.MAIN_FUNCTION_TEMPLATE.format(test_group_invoke=test_invoke)
105 return self.MAIN_CLASS_TEMPLATE.format(copyright = get_copyright('java'),
160 func_invokes += self.TEST_INVOKE_TEMPLATE.format(fname=f.get_name(),
163 return self.INSTANCE_TEST_TEMPLATE.format(test_name=self.get_name(), ty=self.ty,
199 return "Test_Func_{}_{}_{}".format(self.func, self.farg, self.invoke)
205 return self.TEST_FUNCTION_TEMPLATE.format(fname=self.get_name(),
307 print("{} is not a valid java dir".format(java_dir), file=sys.stderr)
/art/tools/bisection_search/
Dbisection_search.py111 print('Testing methods: {0} passes: {1}.'.format(
123 print('Test passed: {0}.'.format(res))
169 cmd += ['-Xcompiler-option', '--run-passes={0}'.format(
360 base_cmd += ['-XXlib:{0}'.format(args.lib)]
366 base_cmd += ['-Ximage:{0}'.format(image_path)]
417 print('Error occurred.\nLogfile: {0}'.format(test_env.logfile.name))
418 test_env.logfile.write('Exception: {0}\n'.format(e))
425 print('Faulty method: {0}. Fails with just mandatory passes.'.format(
428 print('Faulty method and pass: {0}, {1}.'.format(method, opt_pass))
429 print('Logfile: {0}'.format(test_env.logfile.name))
/art/test/988-method-trace/src/art/
DTest988.java211 private String format;
214 public FibThrow(String format, int arg, Throwable res) {
215 this.format = format;
222 System.out.printf(format, arg, genericToString(res));
227 private String format;
230 public FibResult(String format, int arg, int res) {
231 this.format = format;
238 System.out.printf(format, arg, res);

12345678