Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 90) sorted by relevance

1234

/art/dexlayout/
Ddex_verify.cc52 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 …]
Ddex_verify.h34 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/
Dtransform_array_ref_test.cc42 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 …]
Dindenter_test.cc24 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()
Dtransform_iterator_test.cc45 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/
DTest923.java35 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/
Ddmtracedump.pl11 $output = "$input.html";
13 print("dmtracedump -h -p $input > $output\n");
14 system("dmtracedump -h -p '$input' > '$output'");
/art/tools/bisection_search/
DREADME.md5 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
Dbisection_search.py115 (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/tools/cpp-define-generator/
Dmake_header.py43 output = []
49 output.append("#define {0} {1:#x}".format(name, value))
50 return "\n".join(output)
/art/tools/dexfuzz/src/dexfuzz/
DStreamConsumer.java34 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()
DExecutionResult.java25 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/
DAnnotationPropertyWriterTest.java53 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/
Drun-test127 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/
Dcommon.py151 (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/
DFuzzer.java296 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/tools/checker/
DREADME8 followed by a pattern that the engine attempts to match in the compiler output.
12 header which specifies the output group it should be tested against. The group
13 name must exactly match one of the groups recognized in the output (they can
18 - CHECK: Must match an output line which appears in the output group
22 - CHECK-DAG: Must match an output line which appears in the output group
24 In other words, the order of output lines does not matter
26 - CHECK-NOT: Must not match any output line which appears in the output group
31 - CHECK-NEXT: Must match the output line which comes right after the line which
56 The engine will attempt to match the check lines against the output of the
/art/runtime/native/
Ddalvik_system_VMDebug.cc471 std::string output = std::to_string(heap->GetGcCount()); in VMDebug_getRuntimeStatInternal() local
472 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
475 std::string output = std::to_string(NsToMs(heap->GetGcTime())); in VMDebug_getRuntimeStatInternal() local
476 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
479 std::string output = std::to_string(heap->GetBytesAllocatedEver()); in VMDebug_getRuntimeStatInternal() local
480 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
483 std::string output = std::to_string(heap->GetBytesFreedEver()); in VMDebug_getRuntimeStatInternal() local
484 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
487 std::string output = std::to_string(heap->GetBlockingGcCount()); in VMDebug_getRuntimeStatInternal() local
488 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
[all …]
/art/libelffile/stream/
Derror_delaying_output_stream.h31 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/
Dgen.sh26 d8 --output . "$TMP/${CLASS_A}.class" &&
28 d8 --output . "$TMP/${CLASS_B}.class" &&
/art/tools/
Dtest_presubmit.py71 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/
DREADME32 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/
DUniqueProgramTrackerListener.java105 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()
DBisectionSearchListener.java66 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/
Dscheduler.cc419 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 …]

1234