/art/dexlayout/ |
D | dex_verify.cc | 52 dex_ir::CollectionVector<T>& output, in VerifyIds() argument 56 auto output_iter = output.begin(); in VerifyIds() 57 for (; orig_iter != orig.end() && output_iter != output.end(); ++orig_iter, ++output_iter) { in VerifyIds() 62 if (orig_iter != orig.end() || output_iter != output.end()) { in VerifyIds() 75 bool VerifyId(dex_ir::StringId* orig, dex_ir::StringId* output, std::string* error_msg) { in VerifyId() argument 76 if (strcmp(orig->Data(), output->Data()) != 0) { in VerifyId() 81 output->Data()); in VerifyId() 87 bool VerifyId(dex_ir::TypeId* orig, dex_ir::TypeId* output, std::string* error_msg) { in VerifyId() argument 88 if (orig->GetStringId()->GetIndex() != output->GetStringId()->GetIndex()) { in VerifyId() 93 output->GetStringId()->GetIndex()); in VerifyId() [all …]
|
D | dex_verify.h | 34 dex_ir::CollectionVector<T>& output, 37 bool VerifyId(dex_ir::StringId* orig, dex_ir::StringId* output, std::string* error_msg); 38 bool VerifyId(dex_ir::TypeId* orig, dex_ir::TypeId* output, std::string* error_msg); 39 bool VerifyId(dex_ir::ProtoId* orig, dex_ir::ProtoId* output, std::string* error_msg); 40 bool VerifyId(dex_ir::FieldId* orig, dex_ir::FieldId* output, std::string* error_msg); 41 bool VerifyId(dex_ir::MethodId* orig, dex_ir::MethodId* output, std::string* error_msg); 44 dex_ir::CollectionVector<dex_ir::ClassDef>& output, 46 bool VerifyClassDef(dex_ir::ClassDef* orig, dex_ir::ClassDef* output, std::string* error_msg); 48 bool VerifyTypeList(const dex_ir::TypeList* orig, const dex_ir::TypeList* output); 51 dex_ir::AnnotationsDirectoryItem* output, [all …]
|
/art/libartbase/base/ |
D | transform_array_ref_test.cc | 42 std::vector<int> output; in TEST() local 54 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST() 55 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST() 56 output.clear(); in TEST() 58 std::copy(taref.cbegin(), taref.cend(), std::back_inserter(output)); in TEST() 59 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST() 60 output.clear(); in TEST() 62 std::copy(taref.rbegin(), taref.rend(), std::back_inserter(output)); in TEST() 63 ASSERT_EQ(std::vector<int>({ 1, 5, 7, 8 }), output); in TEST() 64 output.clear(); in TEST() [all …]
|
D | indenter_test.cc | 24 std::ostringstream output; in TEST() local 25 Indenter indent_filter(output.rdbuf(), '\t', 2); in TEST() 28 EXPECT_EQ(output.str(), ""); in TEST() 31 EXPECT_EQ(output.str(), "\t\thello"); in TEST() 34 EXPECT_EQ(output.str(), "\t\thello\n\t\thello again"); in TEST() 37 EXPECT_EQ(output.str(), "\t\thello\n\t\thello again\n"); in TEST()
|
D | transform_iterator_test.cc | 45 std::vector<int> output; in TEST() local 77 std::back_inserter(output)); in TEST() 78 ASSERT_EQ(std::vector<int>({ 2, 8, 4, 9 }), output); in TEST() 79 output.clear(); in TEST() 83 std::back_inserter(output)); in TEST() 84 ASSERT_EQ(std::vector<int>({ 2, 8, 4, 9 }), output); in TEST() 85 output.clear(); in TEST() 89 std::back_inserter(output)); in TEST() 90 ASSERT_EQ(std::vector<int>({ 9, 4, 8, 2 }), output); in TEST() 91 output.clear(); in TEST() [all …]
|
/art/test/923-monitors/src/art/ |
D | Test923.java | 35 output = new ArrayList<String>(100); in doTest() 39 for (String s : output) { in doTest() 42 output.clear(); in doTest() 143 Iterator<String> it = output.iterator(); in threadTests() 154 System.out.println(output); in threadTests() 159 System.out.println(output); in threadTests() 166 expect("Lock", it, output); in threadTests() 167 expect("Notify", it, output); in threadTests() 168 expect("Unlock", it, output); in threadTests() 171 expect("Awakened", it, output); in threadTests() [all …]
|
/art/tools/dmtracedump/ |
D | dmtracedump.pl | 11 $output = "$input.html"; 13 print("dmtracedump -h -p $input > $output\n"); 14 system("dmtracedump -h -p '$input' > '$output'");
|
/art/tools/bisection_search/ |
D | README.md | 5 accepts a program which exposes a bug by producing incorrect output and expected 6 output for the program. It then attempts to narrow down the issue to a single 10 interpreting all other methods produces incorrect output. Then, given ordered 12 P0..Pj-1 produces expected output and compiling Mi with passes P0..Pj produces 13 incorrect output. Prints Mi and Pj. 22 ./bisection_search.py -cp classes.dex --expected-output out_int --class Test 41 [--expected-output EXPECTED_OUTPUT] 64 --expected-output EXPECTED_OUTPUT file containing expected output 66 --check-script CHECK_SCRIPT script comparing output and expected output 70 --verbose enable verbose output
|
D | bisection_search.py | 115 (output, ret_code) = self._test_env.RunCommand( 121 res = res and self._output_checker.Check(output) 136 (output, _) = self._test_env.RunCommand(cmd, LogSeverity.INFO) 137 match_methods = re.findall(r'Building ([^\n]+)\n', output) 156 (output, _) = self._test_env.RunCommand(cmd, LogSeverity.INFO) 157 match_passes = re.findall(r'Starting pass: ([^\n]+)\n', output) 185 def Check(self, output): argument 207 def Check(self, output): argument 209 return self._expected_output == output 232 def Check(self, output): argument [all …]
|
/art/compiler/utils/ |
D | assembler_test_base.h | 162 std::string output; in Assemble() local 163 bool ok = CommonArtTestImpl::ForkAndExec(args, [](){ return true; }, &output).StandardSuccess(); in Assemble() 165 LOG(ERROR) << "Assembler error:\n" << output; in Assemble() 170 bool Disassemble(const std::string& obj_file, std::string* output) { in Disassemble() argument 173 bool ok = CommonArtTestImpl::ForkAndExec(args, [](){ return true; }, output).StandardSuccess(); in Disassemble() 175 LOG(ERROR) << "Disassembler error:\n" << *output; in Disassemble() 177 *output = Replace(*output, "\t", " "); in Disassemble() 239 std::string output; in Replace() local 242 output += str.substr(pos, match - pos); in Replace() 243 output += to; in Replace() [all …]
|
/art/tools/cpp-define-generator/ |
D | make_header.py | 43 output = [] 49 output.append("#define {0} {1:#x}".format(name, value)) 50 return "\n".join(output)
|
/art/tools/dexfuzz/src/dexfuzz/ |
D | StreamConsumer.java | 34 private List<String> output; field in StreamConsumer 54 output = new ArrayList<String>(); in StreamConsumer() 66 output.clear(); in giveStreamAndStartConsuming() 98 List<String> copy = new ArrayList<String>(output); in getOutput() 119 output.add(reader.readLine()); in consume() 126 output.add(reader.readLine()); in consume()
|
D | ExecutionResult.java | 25 public List<String> output; field in ExecutionResult 45 for (String line : output) { in getFlattenedOutput() 59 for (String line : output) { in getFlattenedOutputWithNewlines()
|
/art/tools/class2greylist/test/src/com/android/class2greylist/ |
D | AnnotationPropertyWriterTest.java | 53 String output = mByteArrayOutputStream.toString(); in testExportPropertiesNoEscaping() local 56 assertThat(output).isEqualTo(expected); in testExportPropertiesNoEscaping() 69 String output = mByteArrayOutputStream.toString(); in testExportPropertiesEscapeQuotes() local 72 assertThat(output).isEqualTo(expected); in testExportPropertiesEscapeQuotes()
|
/art/test/ |
D | run-test | 127 output="output.txt" 992 "./${run}" "${run_args[@]}" "$@" >"$output" 2>&1 997 "$checker" -q $checker_args "$cfg_output" "$tmp_dir" >> "$output" 2>&1 999 sed -e 's/[[:cntrl:]]$//g' < "$output" >"${td_expected}" 1010 cp "$build_output" "$output" 1011 echo "build exit status: $build_exit" >>"$output" 1012 diff --strip-trailing-cr -q "$expected" "$output" >/dev/null 1019 find $tmp_dir -mindepth 1 ! -regex ".*/\(.*jar\|$output\|$expected\)" | xargs rm -rf 1026 "./${run}" "${run_args[@]}" "$@" >"$output" 2>&1 1035 "$checker" -q $checker_args "$cfg_output" "$tmp_dir" >> "$output" 2>&1 [all …]
|
/art/tools/common/ |
D | common.py | 151 (output, stderr_output) = proc.communicate(timeout=timeout) 158 (output, stderr_output) = proc.communicate() 160 return (output, stderr_output, retcode) 163 def _LogCmdOutput(logfile, cmd, output, retcode): argument 173 CommandListToCommandString(cmd), output, retcode)) 339 (output, err_output, retcode) = RunCommandForOutput( 343 output += err_output 344 _LogCmdOutput(self._logfile, cmd, output, retcode) 345 return (output, retcode) 450 (output, _, retcode) = RunCommandForOutput(cmd, self._shell_env, PIPE, [all …]
|
/art/tools/dexfuzz/src/dexfuzz/fuzzers/ |
D | Fuzzer.java | 296 String output = goldenExecutor.getResult().getFlattenedOutput(); in checkGoldenExecutorForSelfDivergence() local 298 seenOutput = output; in checkGoldenExecutorForSelfDivergence() 299 } else if (!seenOutput.equals(output)) { in checkGoldenExecutorForSelfDivergence() 330 String output = executor.getResult().getFlattenedOutput(); in analyseResults() local 335 if (outputMap.containsKey(output)) { in analyseResults() 336 outputMap.get(output).add(executor); in analyseResults() 340 outputMap.put(output, newList); in analyseResults() 400 DexRandomAccessFile output = new DexRandomAccessFile(outputName, "rw"); in saveProgram() local 401 output.setOffsetTracker(offsetTracker); in saveProgram() 403 output.setLength(0); in saveProgram() [all …]
|
/art/runtime/native/ |
D | dalvik_system_VMDebug.cc | 461 std::string output = std::to_string(heap->GetGcCount()); in VMDebug_getRuntimeStatInternal() local 462 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 465 std::string output = std::to_string(NsToMs(heap->GetGcTime())); in VMDebug_getRuntimeStatInternal() local 466 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 469 std::string output = std::to_string(heap->GetBytesAllocatedEver()); in VMDebug_getRuntimeStatInternal() local 470 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 473 std::string output = std::to_string(heap->GetBytesFreedEver()); in VMDebug_getRuntimeStatInternal() local 474 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 477 std::string output = std::to_string(heap->GetBlockingGcCount()); in VMDebug_getRuntimeStatInternal() local 478 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() [all …]
|
/art/libelffile/stream/ |
D | error_delaying_output_stream.h | 31 explicit ErrorDelayingOutputStream(OutputStream* output) in ErrorDelayingOutputStream() argument 32 : OutputStream(output->GetLocation()), in ErrorDelayingOutputStream() 33 output_(output), in ErrorDelayingOutputStream()
|
/art/test/692-vdex-inmem-loader/src-secondary/ |
D | gen.sh | 26 d8 --output . "$TMP/${CLASS_A}.class" && 28 d8 --output . "$TMP/${CLASS_B}.class" &&
|
/art/tools/ |
D | test_presubmit.py | 71 def command_line_for_tool(tool_dict, output): argument 75 proc_args = [tool_dict['tool']] + tool_dict['args'](output) 78 def run_tool(tool_dict, output): argument 82 proc_args = command_line_for_tool(tool_dict, output)
|
/art/tools/runtime_memusage/ |
D | README | 32 This is necessary in order to get symbolized traces from the output given by 37 sanitizer_logcat_analysis.sh at minimum requires all logcat output in the form 55 Puts all output in specified directory. 56 If not given, output will be put in a local 66 Forces redo of all commands even if output 67 files exist. Steps are skipped if their output 93 output based on each word. 95 LOGCAT_FILE is the piped output from adb logcat.
|
/art/tools/dexfuzz/src/dexfuzz/listeners/ |
D | UniqueProgramTrackerListener.java | 105 private String getMD5SumOfOutput(String output) { in getMD5SumOfOutput() argument 106 digest.update(output.getBytes()); in getMD5SumOfOutput() 232 String output = (String) outputMap.keySet().toArray()[0]; in handleDivergences() local 233 String md5sum = getMD5SumOfOutput(output); in handleDivergences() 242 String output = (String) outputMap.keySet().toArray()[0]; in handleSuccess() local 243 String md5sum = getMD5SumOfOutput(output); in handleSuccess()
|
D | BisectionSearchListener.java | 66 for (int i = 0; i < result.output.size() - 1; i++) { in extractExpectedOutput() 67 builder.append(result.output.get(i)).append("\n"); in extractExpectedOutput() 89 String output = outputs.get(i); in handleDivergences() local
|
/art/compiler/optimizing/ |
D | scheduler.cc | 419 static void DumpAsDotNode(std::ostream& output, const SchedulingNode* node) { in DumpAsDotNode() argument 423 output << instruction_id << "[shape=record, label=\"" in DumpAsDotNode() 429 output << seperator << InstructionTypeId(input); in DumpAsDotNode() 432 output << "]"; in DumpAsDotNode() 434 output << "\\ninternal_latency: " << node->GetInternalLatency(); in DumpAsDotNode() 435 output << "\\ncritical_path: " << node->GetCriticalPath(); in DumpAsDotNode() 437 output << "\\n(barrier)"; in DumpAsDotNode() 439 output << "\"];\n"; in DumpAsDotNode() 444 output << InstructionTypeId(predecessor_instruction) << ":s -> " << instruction_id << ":n " in DumpAsDotNode() 449 output << InstructionTypeId(predecessor_instruction) << ":s -> " << instruction_id << ":n " in DumpAsDotNode() [all …]
|