Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 91) sorted by relevance

1234

/art/dexlayout/
Ddex_writer.cc117 void DexWriter::WriteEncodedValue(Stream* stream, dex_ir::EncodedValue* encoded_value) { in WriteEncodedValue() argument
166 WriteEncodedValueHeader(stream, type, 0); in WriteEncodedValue()
167 WriteEncodedArray(stream, encoded_value->GetEncodedArray()->GetEncodedValues()); in WriteEncodedValue()
170 WriteEncodedValueHeader(stream, type, 0); in WriteEncodedValue()
171 WriteEncodedAnnotation(stream, encoded_value->GetEncodedAnnotation()); in WriteEncodedValue()
174 WriteEncodedValueHeader(stream, type, 0); in WriteEncodedValue()
177 WriteEncodedValueHeader(stream, type, encoded_value->GetBoolean() ? 1 : 0); in WriteEncodedValue()
182 WriteEncodedValueHeader(stream, type, length - 1); in WriteEncodedValue()
183 stream->Write(buffer + start, length); in WriteEncodedValue()
186 void DexWriter::WriteEncodedValueHeader(Stream* stream, int8_t value_type, size_t value_arg) { in WriteEncodedValueHeader() argument
[all …]
Ddex_writer.h142 ScopedSeek(Stream* stream, uint32_t offset) : stream_(stream), offset_(stream->Tell()) { in ScopedSeek() argument
143 stream->Seek(offset); in ScopedSeek()
227 void WriteEncodedValue(Stream* stream, dex_ir::EncodedValue* encoded_value);
228 void WriteEncodedValueHeader(Stream* stream, int8_t value_type, size_t value_arg);
229 void WriteEncodedArray(Stream* stream, dex_ir::EncodedValueVector* values);
230 void WriteEncodedAnnotation(Stream* stream, dex_ir::EncodedAnnotation* annotation);
231 void WriteEncodedFields(Stream* stream, dex_ir::FieldItemVector* fields);
232 void WriteEncodedMethods(Stream* stream, dex_ir::MethodItemVector* methods);
235 virtual void WriteHeader(Stream* stream);
239 void WriteStringIds(Stream* stream, bool reserve_only);
[all …]
Dcompact_dex_writer.cc41 uint32_t CompactDexWriter::WriteDebugInfoOffsetTable(Stream* stream) { in WriteDebugInfoOffsetTable() argument
42 const uint32_t start_offset = stream->Tell(); in WriteDebugInfoOffsetTable()
83 stream->AlignTo(CompactOffsetTable::kAlignment); in WriteDebugInfoOffsetTable()
84 debug_info_offsets_pos_ = stream->Tell(); in WriteDebugInfoOffsetTable()
85 stream->Write(data.data(), data.size()); in WriteDebugInfoOffsetTable()
91 stream->Begin(); in WriteDebugInfoOffsetTable()
92 CompactOffsetTable::Accessor accessor(stream->Begin() + debug_info_offsets_pos_, in WriteDebugInfoOffsetTable()
104 return stream->Tell() - start_offset; in WriteDebugInfoOffsetTable()
107 CompactDexWriter::ScopedDataSectionItem::ScopedDataSectionItem(Stream* stream, in ScopedDataSectionItem() argument
111 : stream_(stream), in ScopedDataSectionItem()
[all …]
Dcompact_dex_writer.h100 ScopedDataSectionItem(Stream* stream, dex_ir::Item* item, size_t alignment, Deduper* deduper);
146 void WriteHeader(Stream* stream) override;
150 uint32_t WriteDebugInfoOffsetTable(Stream* stream);
152 void WriteCodeItem(Stream* stream, dex_ir::CodeItem* code_item, bool reserve_only) override;
154 void WriteStringData(Stream* stream, dex_ir::StringData* string_data) override;
156 void WriteDebugInfoItem(Stream* stream, dex_ir::DebugInfoItem* debug_info) override;
/art/runtime/
Ddex_register_location.cc21 std::ostream& operator<<(std::ostream& stream, DexRegisterLocation::Kind kind) { in operator <<() argument
22 return stream << "Kind<" << static_cast<int32_t>(kind) << ">"; in operator <<()
25 std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg) { in operator <<() argument
29 return stream << "Invalid"; in operator <<()
31 return stream << "None"; in operator <<()
33 return stream << "sp+" << reg.GetValue(); in operator <<()
35 return stream << "r" << reg.GetValue(); in operator <<()
37 return stream << "r" << reg.GetValue() << "/hi"; in operator <<()
39 return stream << "f" << reg.GetValue(); in operator <<()
41 return stream << "f" << reg.GetValue() << "/hi"; in operator <<()
[all …]
Dexperimental_flags.h66 inline std::ostream& operator<<(std::ostream& stream, const ExperimentalFlags& e) {
69 stream << (started ? "|" : "") << "kMethodHandles";
73 stream << "kNone";
75 return stream;
78 inline std::ostream& operator<<(std::ostream& stream, const decltype(ExperimentalFlags::kNone)& e) {
79 return stream << ExperimentalFlags(e);
Dparsed_options.h60 jint (*hook_vfprintf_)(FILE* stream, const char* format, va_list ap);
72 void UsageMessage(FILE* stream, const char* fmt, ...);
73 void UsageMessageV(FILE* stream, const char* fmt, va_list ap);
/art/compiler/optimizing/
Dstack_map_test.cc54 StackMapStream stream(&allocator, kRuntimeISA); in TEST() local
55 stream.BeginMethod(32, 0, 0, 2); in TEST()
59 stream.BeginStackMapEntry(0, 64 * kPcAlign, 0x3, &sp_mask); in TEST()
60 stream.AddDexRegisterEntry(Kind::kInStack, 0); // Short location. in TEST()
61 stream.AddDexRegisterEntry(Kind::kConstant, -2); // Short location. in TEST()
62 stream.EndStackMapEntry(); in TEST()
64 stream.EndMethod(); in TEST()
65 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST()
108 StackMapStream stream(&allocator, kRuntimeISA); in TEST() local
109 stream.BeginMethod(32, 0, 0, 2); in TEST()
[all …]
Dgraph_visualizer.cc290 void DumpLocation(std::ostream& stream, const Location& location) { in DumpLocation() argument
292 codegen_.DumpCoreRegister(stream, location.reg()); in DumpLocation()
294 codegen_.DumpFloatingPointRegister(stream, location.reg()); in DumpLocation()
296 stream << "#"; in DumpLocation()
299 stream << constant->AsIntConstant()->GetValue(); in DumpLocation()
301 stream << constant->AsLongConstant()->GetValue(); in DumpLocation()
303 stream << constant->AsFloatConstant()->GetValue(); in DumpLocation()
305 stream << constant->AsDoubleConstant()->GetValue(); in DumpLocation()
307 stream << "null"; in DumpLocation()
310 stream << "invalid"; in DumpLocation()
[all …]
/art/runtime/verifier/
Dscoped_newline.h29 explicit ScopedNewLine(std::ostream& os) : stream(os) {} in ScopedNewLine()
31 ScopedNewLine(ScopedNewLine&& other) : stream(other.stream), active(other.active) { in ScopedNewLine()
40 stream << std::endl; in ~ScopedNewLine()
47 stream << t;
53 stream << f;
57 std::ostream& stream; member
/art/cmdline/
Dcmdline_result.h78 static inline std::ostream& operator<<(std::ostream& stream, CmdlineResult::Status status) {
81 stream << "kSuccess";
84 stream << "kUsage";
87 stream << "kFailure";
90 stream << "kOutOfRange";
93 stream << "kUnknown";
98 return stream;
Dmemory_representation.h62 std::ostream& operator<<(std::ostream& stream, Memory<kDivisor> memory) {
63 return stream << memory.Value << '*' << kDivisor;
/art/libdexfile/dex/
Ddex_file-inl.h181 bool DexFile::DecodeDebugLocalInfo(const uint8_t* stream, in DecodeDebugLocalInfo() argument
193 if (stream == nullptr) { in DecodeDebugLocalInfo()
210 DecodeUnsignedLeb128(&stream); // Line. in DecodeDebugLocalInfo()
211 uint32_t parameters_size = DecodeUnsignedLeb128(&stream); in DecodeDebugLocalInfo()
224 uint32_t name_idx = DecodeUnsignedLeb128P1(&stream); in DecodeDebugLocalInfo()
245 uint8_t opcode = *stream++; in DecodeDebugLocalInfo()
257 address += DecodeUnsignedLeb128(&stream); in DecodeDebugLocalInfo()
260 DecodeSignedLeb128(&stream); // Line. in DecodeDebugLocalInfo()
264 uint16_t reg = DecodeUnsignedLeb128(&stream); in DecodeDebugLocalInfo()
271 uint32_t name_idx = DecodeUnsignedLeb128P1(&stream); in DecodeDebugLocalInfo()
[all …]
/art/cmdline/detail/
Dcmdline_parser_detail.h94 std::stringstream stream;
95 stream << value;
96 return stream.str();
103 std::stringstream stream;
104 stream << "vector{";
107 stream << ToStringAny(value[i]);
110 stream << ',';
114 stream << "}";
115 return stream.str();
/art/libartbase/base/
Dhistogram_test.cc124 std::stringstream stream; in TEST() local
126 hist->PrintConfidenceIntervals(stream, 0.99, data); in TEST()
128 EXPECT_EQ(expected, stream.str()); in TEST()
167 std::stringstream stream; in TEST() local
169 hist->PrintConfidenceIntervals(stream, 0.99, data); in TEST()
171 EXPECT_EQ(expected, stream.str()); in TEST()
206 std::stringstream stream; in TEST() local
208 hist->PrintConfidenceIntervals(stream, 0.99, data); in TEST()
210 EXPECT_EQ(expected, stream.str()); in TEST()
221 std::stringstream stream; in TEST() local
[all …]
Dlogging.h129 std::ostream& stream() { in stream() function
133 return std::get<::android::base::LogMessage>(msg_).stream(); in stream()
150 .stream()
Dsystrace.h88 std::ostream& stream() { in stream() function
99 (ATraceEnabled()) && ::art::ScopedTraceNoStart::ScopedTraceMessageHelper().stream()
/art/tools/dexanalyze/
Ddexanalyze_experiments.cc98 const uint8_t* stream = debug_info; in ProcessDexFiles() local
99 DecodeUnsignedLeb128(&stream); // line_start in ProcessDexFiles()
100 uint32_t parameters_size = DecodeUnsignedLeb128(&stream); in ProcessDexFiles()
102 DecodeUnsignedLeb128P1(&stream); // Parameter name. in ProcessDexFiles()
105 const uint8_t* after_header_start = stream; in ProcessDexFiles()
107 const uint8_t* const op_start = stream; in ProcessDexFiles()
108 uint8_t opcode = *stream++; in ProcessDexFiles()
117 DecodeUnsignedLeb128(&stream); // addr_diff in ProcessDexFiles()
118 total_advance_pc_bytes_ += stream - op_start; in ProcessDexFiles()
121 DecodeSignedLeb128(&stream); // line_diff in ProcessDexFiles()
[all …]
/art/libelffile/
DAndroid.bp23 "stream/buffered_output_stream.cc",
24 "stream/file_output_stream.cc",
25 "stream/output_stream.cc",
26 "stream/vector_output_stream.cc",
/art/tools/class2greylist/src/com/android/class2greylist/
DJarReader.java24 import java.util.stream.Stream;
55 public Stream<JavaClass> stream() { in stream() method in JarReader
56 return mZipFile.stream() in stream()
DApiResolver.java26 import java.util.stream.Collectors;
42 mPotentialPublicAlternatives = publicApis.stream() in ApiResolver()
51 mPublicApiClasses = mPotentialPublicAlternatives.stream() in ApiResolver()
93 List<ApiComponents> almostMatches = mPotentialPublicAlternatives.stream() in resolvePublicAlternatives()
DAnnotationPropertyWriter.java15 import java.util.stream.Collectors;
59 mOutput.println(columns.stream().collect(Collectors.joining(","))); in close()
63 mOutput.println(columns.stream().map(column -> row.getOrDefault(column, "")) in close()
/art/tools/checker/file_format/
Dcommon.py15 def SplitStream(stream, fnProcessLine, fnLineOutsideChunk): argument
31 for line in stream:
/art/tools/jvmti-agents/ti-fast/
Dtifast.cc399 std::string out_str = stream.str(); in GetResult()
406 std::ostringstream stream; member in tifast::__anon4fd488430111::LogPrinter
424 stream << ", const jvmtiAddrLocationMap*[start_address: " in PrintRest()
427 stream << ", const jvmtiAddrLocationMap*[nullptr]"; in PrintRest()
434 stream << ", jint*[" << static_cast<const void*>(v) << "]"; in PrintRest()
440 stream << ", const void*[" << v << "]"; in PrintRest()
446 stream << ", unsigned char**[" << static_cast<const void*>(v) << "]"; in PrintRest()
452 stream << ", const unsigned char*[" << static_cast<const void*>(v) << "]"; in PrintRest()
458 stream << ", const char*[" << v << "]"; in PrintRest()
472 stream << ", jvalue[{<hex: 0x" << hex.str() << ">" in PrintRest()
[all …]
/art/compiler/
Dcfi_test.h71 std::stringstream stream; in GenerateExpected() local
73 disasm->Dump(stream, base, base + actual_asm.size()); in GenerateExpected()
74 ReformatAsm(&stream, &lines); in GenerateExpected()
92 static void ReformatAsm(std::stringstream* stream, in ReformatAsm() argument
95 while (std::getline(*stream, line)) { in ReformatAsm()

1234