Home
last modified time | relevance | path

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

12345678910>>...34

/art/libartbase/base/
Dtransform_array_ref_test.cc42 std::vector<int> output; in TEST() local
53 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST()
54 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST()
55 output.clear(); in TEST()
57 std::copy(taref.cbegin(), taref.cend(), std::back_inserter(output)); in TEST()
58 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST()
59 output.clear(); in TEST()
61 std::copy(taref.rbegin(), taref.rend(), std::back_inserter(output)); in TEST()
62 ASSERT_EQ(std::vector<int>({ 1, 5, 7, 8 }), output); in TEST()
63 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
73 std::back_inserter(output)); in TEST()
74 ASSERT_EQ(std::vector<int>({ 2, 8, 4, 9 }), output); in TEST()
75 output.clear(); in TEST()
79 std::back_inserter(output)); in TEST()
80 ASSERT_EQ(std::vector<int>({ 2, 8, 4, 9 }), output); in TEST()
81 output.clear(); in TEST()
85 std::back_inserter(output)); in TEST()
86 ASSERT_EQ(std::vector<int>({ 9, 4, 8, 2 }), output); in TEST()
87 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/dex2oat/linker/
Dcode_info_table_deduper.h30 explicit CodeInfoTableDeduper(std::vector<uint8_t>* output) in CodeInfoTableDeduper() argument
31 : writer_(output), in CodeInfoTableDeduper()
34 DedupeSetEntryHash(output), in CodeInfoTableDeduper()
35 DedupeSetEntryEquals(output)) { in CodeInfoTableDeduper()
36 DCHECK_EQ(output->size(), 0u); in CodeInfoTableDeduper()
63 explicit DedupeSetEntryHash(std::vector<uint8_t>* output) : output_(output) {} in DedupeSetEntryHash() argument
75 explicit DedupeSetEntryEquals(std::vector<uint8_t>* output) : output_(output) {} in DedupeSetEntryEquals() argument
/art/runtime/native/
Ddalvik_system_VMDebug.cc325 std::string output = std::to_string(heap->GetGcCount()); in VMDebug_getRuntimeStatInternal() local
326 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
329 std::string output = std::to_string(NsToMs(heap->GetGcTime())); in VMDebug_getRuntimeStatInternal() local
330 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
333 std::string output = std::to_string(heap->GetBytesAllocatedEver()); in VMDebug_getRuntimeStatInternal() local
334 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
337 std::string output = std::to_string(heap->GetBytesFreedEver()); in VMDebug_getRuntimeStatInternal() local
338 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
341 std::string output = std::to_string(heap->GetBlockingGcCount()); in VMDebug_getRuntimeStatInternal() local
342 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
[all …]
/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/compiler/utils/
Dassembler_test_base.h193 std::string output; in Assemble() local
194 bool ok = CommonArtTestImpl::ForkAndExec(args, [](){ return true; }, &output).StandardSuccess(); in Assemble()
196 LOG(ERROR) << "Assembler error:\n" << output; in Assemble()
201 bool Disassemble(const std::string& obj_file, std::string* output) { in Disassemble() argument
204 bool ok = CommonArtTestImpl::ForkAndExec(args, [](){ return true; }, output).StandardSuccess(); in Disassemble()
206 LOG(ERROR) << "Disassembler error:\n" << *output; in Disassemble()
208 *output = Replace(*output, "\t", " "); in Disassemble()
270 std::string output; in Replace() local
273 output += str.substr(pos, match - pos); in Replace()
274 output += to; in Replace()
[all …]
/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/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/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/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/
Dbisect_profile.py87 def dump_files(meths, args, output): argument
89 print("HS{}".format(m), file=output)
90 output.flush()
125 with open(args.output_source, "wt") as output:
126 dump_files(meths, args, output)
195 with open(args.output_source, "wt") as output:
196 dump_files(meth_list, args, output)
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/dex2oat/
Ddex2oat_cts_test.cc38 std::string* output, in Dex2Oat() argument
51 ForkAndExecResult res = ForkAndExec(argv, post_fork_fn, output); in Dex2Oat()
87 std::string output = ""; in TEST_F() local
89 int res = Dex2Oat(args, &output, &error_msg); in TEST_F()
/art/compiler/optimizing/
Dscheduler.cc391 static void DumpAsDotNode(std::ostream& output, const SchedulingNode* node) { in DumpAsDotNode() argument
395 output << instruction_id << "[shape=record, label=\"" in DumpAsDotNode()
401 output << seperator << InstructionTypeId(input); in DumpAsDotNode()
404 output << "]"; in DumpAsDotNode()
406 output << "\\ninternal_latency: " << node->GetInternalLatency(); in DumpAsDotNode()
407 output << "\\ncritical_path: " << node->GetCriticalPath(); in DumpAsDotNode()
409 output << "\\n(barrier)"; in DumpAsDotNode()
411 output << "\"];\n"; in DumpAsDotNode()
416 output << InstructionTypeId(predecessor_instruction) << ":s -> " << instruction_id << ":n " in DumpAsDotNode()
421 output << InstructionTypeId(predecessor_instruction) << ":s -> " << instruction_id << ":n " in DumpAsDotNode()
[all …]
/art/tools/create_minidebuginfo/
Dcreate_minidebuginfo.cc42 static void WriteMinidebugInfo(const std::vector<uint8_t>& input, std::vector<uint8_t>* output) { in WriteMinidebugInfo() argument
133 XzCompress(ArrayRef<const uint8_t>(output_elf_data), output, 9 /*size*/, kBlockSize); in WriteMinidebugInfo()
154 std::vector<uint8_t> output; in Main() local
156 WriteMinidebugInfo<ElfTypes32>(elf, &output); in Main()
158 WriteMinidebugInfo<ElfTypes64>(elf, &output); in Main()
163 if (!output_file->WriteFully(output.data(), output.size()) || output_file->FlushClose() != 0) { in Main()
/art/test/181-default-methods/src/
DMain.java27 String output = target.testMethod(); // invoke-virtual Super.testMethod() in expectDefault() local
30 expectSameString(output, output2); in expectDefault()
31 System.out.println("Output from " + target.getClass().getName() + ": " + output); in expectDefault()
36 String output = target.testMethod(); // invoke-virtual Super.testMethod() in expectConflict() local
38 " output: " + output); in expectConflict()
47 String output = abstractTarget.testMethod(); // invoke-interface Abstract.testMethod() in expectConflict() local
49 " output: " + output); in expectConflict()
61 String output = target.testMethod(); // invoke-virtual Super.testMethod() in expectMiranda() local
63 " output: " + output); in expectMiranda()
68 String output = abstractTarget.testMethod(); // invoke-interface Abstract.testMethod() in expectMiranda() local
[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/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()
/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/hiddenapi/
Dhiddenapi.cc663 std::vector<uint8_t> output; in WriteTo() local
669 header_offset.push_back(output.size()); in WriteTo()
670 std::copy(dex->Begin(), dex->End(), std::back_inserter(output)); in WriteTo()
676 CHECK_LE(map_off, output.size()) << "Map list past the end of file"; in WriteTo()
677 CHECK_EQ(map_size, output.size() - map_off) << "Map list expected at the end of file"; in WriteTo()
678 std::fill_n(output.data() + map_off, map_size, 0); in WriteTo()
685 output.resize(RoundUp(output.size(), kHiddenapiClassDataAlignment)); // Align. in WriteTo()
686 hiddenapi_offset.push_back(output.size()); in WriteTo()
687 std::copy(hiddenapi_data.begin(), hiddenapi_data.end(), std::back_inserter(output)); in WriteTo()
693 output.resize(RoundUp(output.size(), kMapListAlignment)); // Align. in WriteTo()
[all …]

12345678910>>...34