/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/ |
D | HtmlDoc.java | 41 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 …]
|
D | DocString.java | 45 public static DocString format(String format, Object... args) { in format() argument 47 return doc.appendFormat(format, args); in format() 78 public DocString appendFormat(String format, Object... args) { in appendFormat() argument 79 append(String.format(format, args)); in appendFormat() 166 append(removed(format("%+,14d", 0 - baseline))); in appendDelta() 170 append(added(format("%+,14d", current - baseline))); in appendDelta() 172 append(removed(format("%+,14d", current - baseline))); in appendDelta() 220 public static URI formattedUri(String format, Object... args) { in formattedUri() argument 221 return uri(String.format(format, args)); in formattedUri()
|
/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 …]
|
D | generate_java.py | 71 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/ |
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 …]
|
D | generate_java.py | 71 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/ |
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/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( 136 return ('{0}/dalvik-cache/{1}'.format(android_data_path, arch) 180 logfile.write('Command:\n{0}\n{1}\nReturn code: {2}\n'.format( 302 self._logfile = open('{0}/log'.format(self._env_path), 'w+') 305 os.mkdir('{0}/dalvik-cache'.format(self._env_path)) 329 f = open('{0}/{1}'.format(self._env_path, name), 'w+') 334 f.writelines('{0}\n'.format(line) for line in lines) 361 file_path = '{0}/{1}'.format(arch_cache_path, file_path) 388 self._logfile = open('{0}/log'.format(self._host_env_path), 'w+') [all …]
|
/art/compiler/debug/ |
D | elf_debug_frame_writer.h | 33 dwarf::CFIFormat format, in WriteCIE() argument 61 WriteCIE(is64bit, return_reg, opcodes, format, buffer); in WriteCIE() 84 WriteCIE(is64bit, return_reg, opcodes, format, buffer); in WriteCIE() 108 WriteCIE(is64bit, return_reg, opcodes, format, buffer); in WriteCIE() 134 WriteCIE(is64bit, return_reg, opcodes, format, buffer); in WriteCIE() 160 WriteCIE(is64bit, return_reg, opcodes, format, buffer); in WriteCIE() 173 dwarf::CFIFormat format, in WriteCFISection() argument 175 CHECK(format == dwarf::DW_DEBUG_FRAME_FORMAT || format == dwarf::DW_EH_FRAME_FORMAT); in WriteCFISection() 203 if (format == dwarf::DW_EH_FRAME_FORMAT) { in WriteCFISection() 210 auto* cfi_section = (format == dwarf::DW_DEBUG_FRAME_FORMAT in WriteCFISection() [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/compiler/debug/dwarf/ |
D | headers.h | 44 CFIFormat format, in WriteCIE() argument 51 writer.PushUint32((format == DW_EH_FRAME_FORMAT) ? 0 : 0xFFFFFFFF); // CIE id. in WriteCIE() 59 if (format == DW_EH_FRAME_FORMAT) { in WriteCIE() 62 DCHECK(format == DW_DEBUG_FRAME_FORMAT); in WriteCIE() 66 if (format == DW_EH_FRAME_FORMAT) { in WriteCIE() 69 DCHECK(format == DW_DEBUG_FRAME_FORMAT); in WriteCIE() 86 CFIFormat format, in WriteFDE() argument 96 if (format == DW_EH_FRAME_FORMAT) { in WriteFDE() 100 DCHECK(format == DW_DEBUG_FRAME_FORMAT); in WriteFDE() 104 if (format == DW_EH_FRAME_FORMAT) { in WriteFDE() [all …]
|
/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()
|
D | PoolIndexChanger.java | 83 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/sigchainlib/ |
D | sigchain_dummy.cc | 36 static void log(const char* format, ...) { in log() argument 39 va_start(ap, format); in log() 40 vsnprintf(buf, sizeof(buf), format, ap); in log()
|
/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/test/988-method-trace/src/art/ |
D | Test988.java | 191 private String format; 194 public FibThrow(String format, int arg, Throwable res) { 195 this.format = format; 202 System.out.printf(format, arg, genericToString(res)); 207 private String format; 210 public FibResult(String format, int arg, int res) { 211 this.format = format; 218 System.out.printf(format, arg, res);
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | OpcodeInfo.java | 30 public final AbstractFormat format; field in OpcodeInfo 39 this.format = fmt; in OpcodeInfo()
|
D | Instruction.java | 131 vregA = info.format.getA(rawBytes); in read() 132 vregB = info.format.getB(rawBytes); in read() 133 vregC = info.format.getC(rawBytes); in read() 136 if (info.format.needsInvokeFormatInfo()) { in read() 152 info.format.writeToFile(file, this); in write() 165 return info.format.getSize(); in getSize() 213 AbstractFormat format = info.format; in toString() local 249 long poolIndex = ((ContainsPoolIndex)format).getPoolIndex(this); in toString() 257 if (format instanceof ContainsVRegs) { in toString() 259 switch (((ContainsVRegs)format).getVRegCount()) { in toString() [all …]
|
/art/test/utils/python/ |
D | generate_java_main.py | 99 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/ |
D | bisection_search.py | 113 print('Testing methods: {0} passes: {1}.'.format( 125 print('Test passed: {0}.'.format(res)) 171 cmd += ['-Xcompiler-option', '--compiled-methods={0}'.format( 175 cmd += ['-Xcompiler-option', '--run-passes={0}'.format( 366 base_cmd += ['-XXlib:{0}'.format(args.lib)] 372 base_cmd += ['-Ximage:{0}'.format(image_path)] 423 print('Error occurred.\nLogfile: {0}'.format(test_env.logfile.name)) 424 test_env.logfile.write('Exception: {0}\n'.format(e)) 431 print('Faulty method: {0}. Fails with just mandatory passes.'.format( 434 print('Faulty method and pass: {0}, {1}.'.format(method, opt_pass)) [all …]
|
/art/runtime/ |
D | dex_instruction.cc | 44 Instruction::Format format) { in InstructionSizeInCodeUnitsByOpcode() argument 47 } else if ((format >= Instruction::Format::k10x) && (format <= Instruction::Format::k10t)) { in InstructionSizeInCodeUnitsByOpcode() 49 } else if ((format >= Instruction::Format::k20t) && (format <= Instruction::Format::k22c)) { in InstructionSizeInCodeUnitsByOpcode() 51 } else if ((format >= Instruction::Format::k32x) && (format <= Instruction::Format::k3rc)) { in InstructionSizeInCodeUnitsByOpcode() 53 } else if ((format >= Instruction::Format::k45cc) && (format <= Instruction::Format::k4rcc)) { in InstructionSizeInCodeUnitsByOpcode() 55 } else if (format == Instruction::Format::k51l) { in InstructionSizeInCodeUnitsByOpcode() 63 #define INSTRUCTION_DESCR(opcode, c, p, format, index, flags, eflags, vflags) \ argument 65 format, \ 68 InstructionSizeInCodeUnitsByOpcode((c), (format)), \
|
/art/tools/dexfuzz/src/dexfuzz/listeners/ |
D | LogFileListener.java | 196 write(String.format("'%s': %.3fs", name, elapsedTime)); in handleTiming() 225 write(String.format("Percentage Verified/Total: %.3f%%", verifiedTotalRatio)); in handleSummary() 229 write(String.format("Percentage Timed Out/Verified: %.3f%%", timedOutVerifiedRatio)); in handleSummary() 233 write(String.format("Percentage Successful/Verified: %.3f%%", successfulVerifiedRatio)); in handleSummary() 237 write(String.format("Percentage Divergent/Verified: %.3f%%", divergentVerifiedRatio)); in handleSummary()
|
/art/test/082-inline-execute/src/junit/framework/ |
D | ComparisonCompactor.java | 29 return format(message, fExpected, fActual); in compact() 36 return format(message, expected, actual); in compact() 81 private static String format(String message, Object expected, Object actual) { in format() method in ComparisonCompactor
|