Home
last modified time | relevance | path

Searched refs:size_ (Results 1 – 23 of 23) sorted by relevance

/packages/modules/adb/
Dtypes.h49 size_(std::exchange(move.size_, 0)) {} in Block()
56 size_ = std::exchange(move.size_, 0);
67 size_ = new_size; in resize()
81 size_ = 0; in clear()
85 size_t size() const { return size_; } in size()
94 char* end() { return data() + size_; } in end()
95 const char* end() const { return data() + size_; } in end()
109 CHECK_EQ(0ULL, size_); in allocate()
116 size_ = size; in allocate()
122 size_t size_ = 0; member
/packages/modules/Bluetooth/system/gd/packet/parser/fields/
Dscalar_field.cc25 …:ScalarField(std::string name, int size, ParseLocation loc) : PacketField(name, loc), size_(size) { in ScalarField()
26 if (size_ > 64 || size_ < 0) { in ScalarField()
27 ERROR(this) << "Not implemented for size_ = " << size_; in ScalarField()
36 return size_; in GetSize()
40 return util::GetTypeForSize(size_); in GetDataType()
Dreserved_field.cc25 : PacketField("ReservedScalar" + std::to_string(unique_id_++), loc), size_(size) {} in ReservedField()
32 return size_; in GetSize()
36 return util::GetTypeForSize(size_); in GetDataType()
Dpadding_field.cc23 : PacketField("padding_" + std::to_string(size * 8), loc), size_(size * 8) {} in PaddingField()
30 return size_; in GetSize()
Dstruct_field.cc23 : PacketField(name, loc), type_name_(type_name), size_(size) {} in StructField()
30 return size_; in GetSize()
Dfixed_enum_field.cc23 : FixedField("fixed_enum", enum_def->size_, loc), enum_(enum_def), value_(value) {} in FixedEnumField()
Dcount_field.h48 int size_;
Denum_field.cc24 : ScalarField(name, enum_def.size_, loc), enum_def_(enum_def), value_(value) {} in EnumField()
Dreserved_field.h52 int size_; variable
Dsize_field.h52 int size_;
Dpadding_field.h55 Size size_;
Dstruct_field.h58 const Size size_{};
Dscalar_field.h59 const int size_;
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Dapk_archive.cpp69 ApkArchive::ApkArchive(const std::string& path) : path_(path), size_(0) { in ApkArchive()
81 size_ = st.st_size; in ApkArchive()
113 auto sizeToRead = std::min(size_, endOfCDMaxSize); in FindEndOfCDRecord()
114 auto readOffset = size_ - sizeToRead; in FindEndOfCDRecord()
334 if (localFileHeaderOffset + kLocalFileHeaderSize > size_) { in CalculateLocalFileEntrySize()
338 static_cast<long long>(size_)); in CalculateLocalFileEntrySize()
375 if (ddOffset + int(sizeof(uint32_t)) > size_) { in CalculateLocalFileEntrySize()
379 path_.c_str(), static_cast<long long>(ddOffset), static_cast<long long>(size_)); in CalculateLocalFileEntrySize()
391 if (ddOffset + kDataDescriptorSize > size_) { in CalculateLocalFileEntrySize()
395 path_.c_str(), static_cast<long long>(ddOffset), static_cast<long long>(size_)); in CalculateLocalFileEntrySize()
Dapk_archive.h78 off_t size_; variable
/packages/modules/Bluetooth/system/gd/packet/parser/
Dcustom_field_def.cc31 if (size_ == -1) { in GetNewField()
34 return new CustomFieldFixedSize(name, name_, size_, loc); in GetNewField()
63 s << "static_assert(CustomFieldFixedSizeInterface<" << name_ << ">::length() * 8 == " << size_ in GenFixedSizeCustomFieldCheck()
65 << size_ << "\");"; in GenFixedSizeCustomFieldCheck()
Denum_gen.cc28 stream << " : " << util::GetTypeForSize(e_.size_); in GenDefinition()
57 stream << "<< std::setw(" << (e_.size_ > 0 ? e_.size_ : 0) << "/4)"; in GenLogging()
Dchecksum_def.cc25 return new ChecksumField(name, name_, size_, loc); in GetNewField()
33 …s << "static_assert(ChecksumTypeChecker<" << name_ << "," << util::GetTypeForSize(size_) << ">::va… in GenChecksumCheck()
Dtype_def.h27 TypeDef(std::string name, int size) : name_(name), size_(size) {} in TypeDef()
49 const int size_{-1};
Denum_def.cc31 if (value > util::GetMaxValueForBits(size_)) { in AddEntry()
33 << name_ << "(" << util::GetMaxValueForBits(size_) << ")\n"; in AddEntry()
Dgen_cpp.cc198 if (c.second->size_ == -1 /* Variable Size */) { in generate_cpp_headers_one_file()
/packages/modules/Bluetooth/system/gd/common/
Dcircular_buffer.h42 const size_t size_;
86 bluetooth::common::CircularBuffer<T>::CircularBuffer(size_t size) : size_(size) {} in CircularBuffer()
92 while (queue_.size() > size_) { in Push()
/packages/modules/Bluetooth/system/bta/csis/
Dcsis_types.h327 size_(kDefaultCsisSetSize), in CsisGroup()
359 int GetDesiredSize(void) const { return size_; } in GetDesiredSize()
360 void SetDesiredSize(int size) { size_ = size; } in SetDesiredSize()
361 bool IsGroupComplete(void) const { return size_ == (int)devices_.size(); } in IsGroupComplete()
546 int size_; variable