Home
last modified time | relevance | path

Searched refs:end_offset (Results 1 – 25 of 48) sorted by relevance

12

/system/bt/gd/packet/parser/fields/
Dpacket_field.cc43 int PacketField::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const { in GenBounds() argument
45 if ((start_offset.empty() && size.empty()) || (start_offset.empty() && end_offset.empty()) || in GenBounds()
46 (end_offset.empty() && size.empty())) { in GenBounds()
47 …ERROR(this) << "GenBounds called without enough information. " << start_offset << end_offset << si… in GenBounds()
50 if (start_offset.bits() % 8 != 0 || end_offset.bits() % 8 != 0) { in GenBounds()
51 …< "Can not find the bounds of a field at a non byte-aligned offset." << start_offset << end_offset; in GenBounds()
57 s << "size_t field_begin = end_index - (" << end_offset << " + " << size << ") / 8;"; in GenBounds()
60 if (!end_offset.empty()) { in GenBounds()
61 s << "size_t field_end = end_index - (" << end_offset << ") / 8;"; in GenBounds()
109 std::ostream&, Size start_offset, Size end_offset, Size size) const { in GetRustBitOffset() argument
[all …]
Dscalar_field.cc52 int ScalarField::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const { in GenBounds() argument
59 } else if (!end_offset.empty()) { in GenBounds()
60 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GenBounds()
61 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GenBounds()
99 void ScalarField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter()
103 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
148 std::ostream&, Size start_offset, Size end_offset, Size size) const { in GetRustBitOffset() argument
154 } else if (!end_offset.empty()) { in GetRustBitOffset()
155 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GetRustBitOffset()
156 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GetRustBitOffset()
[all …]
Dcustom_field_fixed_size.cc38 int CustomFieldFixedSize::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size)… in GenBounds() argument
42 } else if (!end_offset.empty()) { in GenBounds()
43 Size byte_offset = size + end_offset; in GenBounds()
80 void CustomFieldFixedSize::GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const… in GenRustGetter()
82 int num_leading_bits = GetRustBitOffset(s, start_offset, end_offset, GetSize()); in GenRustGetter()
94 void CustomFieldFixedSize::GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const… in GenRustWriter()
96 int num_leading_bits = GetRustBitOffset(s, start_offset, end_offset, GetSize()); in GenRustWriter()
Dfixed_scalar_field.cc41 void FixedScalarField::GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const { in GenRustWriter()
43 FixedField::GenRustWriter(s, start_offset, end_offset); in GenRustWriter()
46 void FixedScalarField::GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenRustGetter()
47 FixedField::GenRustGetter(s, start_offset, end_offset); in GenRustGetter()
Dscalar_field.h34 …virtual int GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const overri…
40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
59 Size end_offset, Size size) const override;
61 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
63 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dpacket_field.h54 virtual int GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const;
63 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const = 0;
125 std::ostream& s, Size start_offset, Size end_offset, Size size) const;
127 virtual void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const = 0;
129 virtual void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const = 0;
Dstruct_field.h40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
56 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
58 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
60 …void GenBoundsCheck(std::ostream& s, Size start_offset, Size end_offset, std::string) const overri…
Dvector_field.h46 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
74 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
76 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
78 …void GenBoundsCheck(std::ostream& s, Size start_offset, Size end_offset, std::string context) cons…
Dcustom_field_fixed_size.h32 …virtual int GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const overri…
46 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
48 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dchecksum_field.h37 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
51 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
53 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dpadding_field.h42 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
56 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
58 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dchecksum_start_field.h40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
58 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
60 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dcustom_field.h40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
58 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
60 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dpayload_field.h41 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
61 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
63 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dfixed_scalar_field.h42 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
44 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Darray_field.h45 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
69 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
71 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dfixed_field.cc25 void FixedField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter()
27 ScalarField::GenGetter(s, start_offset, end_offset); in GenGetter()
Dcount_field.h33 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
47 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dpayload_field.cc65 void PayloadField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter()
70 GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
78 GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
Dsize_field.cc29 void SizeField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter()
31 ScalarField::GenGetter(s, start_offset, end_offset); in GenGetter()
Dcount_field.cc29 void CountField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter()
31 ScalarField::GenGetter(s, start_offset, end_offset); in GenGetter()
Dgroup_field.h60 void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
62 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
/system/update_engine/
Dtest_http_server.cc77 off_t end_offset{0}; // non-inclusive, zero indicates unspecified. member
131 request->end_offset = atoll(range.c_str() + range.find('-') + 1) + 1; in ParseRequest()
137 if (request->end_offset > 0) in ParseRequest()
139 &tmp_str, "%jd (non-inclusive)", (intmax_t)request->end_offset); in ParseRequest()
185 const off_t end_offset, in WriteHeaders() argument
199 const off_t content_length = end_offset - start_offset; in WriteHeaders()
203 if (start_offset || start_offset == end_offset) { in WriteHeaders()
207 Itoa(start_offset == end_offset ? 0 : start_offset) + "-" + in WriteHeaders()
208 Itoa(end_offset - 1) + "/" + Itoa(end_offset) + EOL); in WriteHeaders()
228 const off_t end_offset, in WritePayload() argument
[all …]
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action.cc203 const off64_t end_offset, in WriteVerityAndHashPartition() argument
206 if (start_offset >= end_offset) { in WriteVerityAndHashPartition()
207 LOG_IF(WARNING, start_offset > end_offset) in WriteVerityAndHashPartition()
209 << end_offset; in WriteVerityAndHashPartition()
233 std::min<size_t>(buffer_size, end_offset - start_offset); in WriteVerityAndHashPartition()
255 end_offset, in WriteVerityAndHashPartition()
262 const off64_t end_offset, in HashPartition() argument
265 if (start_offset >= end_offset) { in HashPartition()
266 LOG_IF(WARNING, start_offset > end_offset) in HashPartition()
268 << end_offset; in HashPartition()
[all …]
/system/unwinding/libunwindstack/
DDwarfCfa.cpp43 bool DwarfCfa<AddressType>::GetLocationInfo(uint64_t pc, uint64_t start_offset, uint64_t end_offset, in GetLocationInfo() argument
62 if ((cfa_offset = memory_->cur_offset()) >= end_offset) { in GetLocationInfo()
189 uint64_t end_offset = memory_->cur_offset(); in LogOffsetRegisterString() local
193 for (uint64_t i = cfa_offset; i < end_offset; i++) { in LogOffsetRegisterString()
224 uint64_t end_offset; in LogInstruction() local
225 if (!memory_->ReadULEB128(&end_offset)) { in LogInstruction()
228 log_string += " " + std::to_string(end_offset); in LogInstruction()
229 end_offset += memory_->cur_offset(); in LogInstruction()
232 op.GetLogInfo(memory_->cur_offset(), end_offset, &expression_lines); in LogInstruction()
233 memory_->set_cur_offset(end_offset); in LogInstruction()
[all …]

12