Home
last modified time | relevance | path

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

12

/system/nvram/messages/include/nvram/messages/
Dvector.h40 for (size_t i = 0; i < size_; ++i) { in ~Vector()
45 size_ = 0; in ~Vector()
64 size_t tmp_size = first.size_; in swap()
66 first.size_ = second.size_; in swap()
68 second.size_ = tmp_size; in swap()
72 NVRAM_CHECK(pos < size_);
76 NVRAM_CHECK(pos < size_);
81 ElementType* end() { return data_ + size_; } in end()
84 const ElementType* end() const { return data_ + size_; } in end()
86 size_t size() const { return size_; } in size()
[all …]
Dblob.h50 size_t size() const { return size_; } in size()
69 size_t size_ = 0; variable
/system/core/logd/
DSerializedData.h30 SerializedData(size_t size) : data_(new uint8_t[size]), size_(size) {} in SerializedData()
33 if (size_ == 0) { in Resize()
35 size_ = new_size; in Resize()
38 size_ = 0; in Resize()
39 } else if (new_size != size_) { in Resize()
41 size_t copy_size = std::min(size_, new_size); in Resize()
44 size_ = new_size; in Resize()
50 size_t size() const { return size_; } in size()
54 size_t size_ = 0; variable
/system/nvram/messages/
Dblob.cpp31 size_ = 0; in ~Blob()
47 size_t size_tmp = first.size_; in swap()
49 first.size_ = second.size_; in swap()
51 second.size_ = size_tmp; in swap()
58 size_ = 0; in Assign()
62 size_ = size; in Assign()
73 size_ = size; in Resize()
/system/teeui/libteeui/include/teeui/
Dstatic_vec.h43 size_t size_; variable
46 static_vec() : data_(nullptr), size_(0) {} in static_vec()
47 static_vec(T* begin, T* end) : data_(begin), size_(end - begin) {} in static_vec()
48 template <size_t s> static_vec(T (&arr)[s]) : data_(&arr[0]), size_(s) {} in static_vec()
56 size_t size() const { return size_; } in size()
59 T* end() { return data_ + size_; } in end()
61 const T* end() const { return data_ + size_; } in end()
Dlabel.h32 size_t size_; variable
35 constexpr FontBuffer() : data_(nullptr), size_(0) {} in FontBuffer()
36 constexpr FontBuffer(const uint8_t* data, size_t size) noexcept : data_(data), size_(size) {} in FontBuffer()
39 : data_(&data[0]), size_(size) {} in FontBuffer()
48 size_t size() const { return size_; } in size()
60 size_t size_; member
63 info_t* end() { return &info_[size_]; } in end()
65 const info_t* end() const { return &info_[size_]; } in end()
Dcbor.h75 size_t size_;
76 StringBuffer(const T* data, size_t size) : data_(data), size_(size) {
80 size_t size() const { return size_; }
167 WriteState() : data_(nullptr), size_(0), error_(Error::OK) {}
168 WriteState(uint8_t* buffer, size_t size) : data_(buffer), size_(size), error_(Error::OK) {}
170 : data_(buffer), size_(size), error_(error) {}
172 WriteState(uint8_t (&buffer)[size]) : data_(buffer), size_(size), error_(Error::OK) {}
175 if (size_) {
177 --size_;
184 if (offset > size_) {
[all …]
/system/memory/libmemunreachable/
DPtracerThread.cpp42 explicit Stack(size_t size) : size_(size) { in Stack()
46 size_ += page_size_ * 2; // guard pages in Stack()
47 base_ = mmap(NULL, size_, prot, flags, -1, 0); in Stack()
50 size_ = 0; in Stack()
53 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, base_, size_, "libmemunreachable stack"); in Stack()
57 ~Stack() { munmap(base_, size_); }; in ~Stack()
59 return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(base_) + size_ - page_size_); in top()
66 size_t size_; member in android::Stack
/system/gsid/
Dpartition_installer.cpp53 size_(size), in PartitionInstaller()
118 if (size_ < 0) { in PerformSanityChecks()
119 LOG(ERROR) << "image size " << size_ << " is negative"; in PerformSanityChecks()
137 if (free_space <= (size_)) { in PerformSanityChecks()
166 service_->StartAsyncOperation("create " + name_, size_); in Preallocate()
167 if (!CreateImage(file, size_)) { in Preallocate()
193 service_->StartAsyncOperation("write " + name_, size_); in CommitGsiChunk()
224 int new_progress = ((size_ - remaining) * 1000) / size_; in CommitGsiChunk()
226 service_->UpdateProgress(IGsiService::STATUS_WORKING, size_ - remaining); in CommitGsiChunk()
230 service_->UpdateProgress(IGsiService::STATUS_COMPLETE, size_); in CommitGsiChunk()
[all …]
/system/core/libunwindstack/
DMemoryBuffer.h41 size_ = 0; in Resize()
44 size_ = size; in Resize()
48 uint64_t Size() { return size_; } in Size()
52 size_t size_ = 0; variable
DMemoryFileAtOffset.h35 size_t Size() { return size_; } in Size()
40 size_t size_ = 0;
DMemory.cpp219 if (addr >= size_) { in Read()
223 size_t bytes_left = size_ - static_cast<size_t>(addr); in Read()
232 if (offset < size_) { in GetPtr()
244 munmap(&data_[-offset_], size_ + offset_); in Clear()
272 size_ = buf.st_size - aligned_offset; in Init()
274 if (!__builtin_add_overflow(size, offset_, &max_size) && max_size < size_) { in Init()
276 size_ = max_size; in Init()
278 void* map = mmap(nullptr, size_, PROT_READ, MAP_PRIVATE, fd, aligned_offset); in Init()
284 size_ -= offset_; in Init()
290 if (addr >= size_) { in Read()
[all …]
/system/libbase/
Dmapped_file.cpp90 size_(std::exchange(other.size_, 0)), in MappedFile()
102 size_ = std::exchange(other.size_, 0); in operator =()
116 if (base_ != nullptr && size_ != 0) UnmapViewOfFile(base_); in Close()
120 if (base_ != nullptr && size_ != 0) munmap(base_, size_ + offset_); in Close()
124 offset_ = size_ = 0; in Close()
/system/libbase/include/android-base/
Dmapped_file.h71 size_t size() const { return size_; } in size()
79 size_t size_; variable
85 : base_(base), size_(size), offset_(offset), handle_(handle) {} in MappedFile()
88 MappedFile(char* base, size_t size, size_t offset) : base_(base), size_(size), offset_(offset) {} in MappedFile()
/system/core/adb/
Dtypes.h48 size_(std::exchange(move.size_, 0)) {} in Block()
55 size_ = std::exchange(move.size_, 0);
66 size_ = new_size; in resize()
80 size_ = 0; in clear()
84 size_t size() const { return size_; } in size()
93 char* end() { return data() + size_; } in end()
94 const char* end() const { return data() + size_; } in end()
107 CHECK_EQ(0ULL, size_); in allocate()
114 size_ = size; in allocate()
120 size_t size_ = 0; member
/system/bt/gd/packet/parser/
Dcustom_field_def.cc31 if (size_ == -1) { in GetNewField()
34 return new CustomFieldFixedSize(name, name_, size_, loc); in GetNewField()
67 s << "static_assert(CustomFieldFixedSizeInterface<" << name_ << ">::length() * 8 == " << size_ in GenFixedSizeCustomFieldCheck()
69 << size_ << "\");"; in GenFixedSizeCustomFieldCheck()
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};
/system/update_engine/payload_consumer/
Dfake_file_descriptor.cc26 if (offset_ >= static_cast<uint64_t>(size_) || count == 0) in Read()
30 uint64_t first_failure = size_; in Read()
64 if (offset > size_) in Seek()
67 offset_ = size_ - offset_; in Seek()
Dfake_file_descriptor.h63 uint64_t BlockDevSize() override { return size_; } in BlockDevSize()
88 void SetFileSize(uint64_t size) { size_ = size; } in SetFileSize()
112 off64_t size_{std::numeric_limits<off64_t>::max()};
/system/bt/gd/packet/parser/fields/
Dscalar_field.cc23 …:ScalarField(std::string name, int size, ParseLocation loc) : PacketField(name, loc), size_(size) { in ScalarField()
24 if (size_ > 64 || size_ < 0) { in ScalarField()
25 ERROR(this) << "Not implemented for size_ = " << size_; in ScalarField()
34 return size_; in GetSize()
38 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()
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/
Ddmabufinfo.h34 : inode_(inode), size_(size), count_(count), exporter_(exporter), name_(name) { in DmaBuffer()
53 uint64_t size() const { return size_; } in size()
65 uint64_t Pss(pid_t pid) const { return maprefs_.count(pid) > 0 ? size_ / maprefs_.size() : 0; } in Pss()
68 return (inode_ == rhs.inode()) && (size_ == rhs.size()) && (name_ == rhs.name()) &&
74 uint64_t size_; member
/system/core/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()
/system/update_engine/payload_generator/
Dfull_update_generator.cc59 size_(size), in ChunkProcessor()
80 size_t size_; member in chromeos_update_engine::__anonfb5e7ce80111::ChunkProcessor
90 << size_; in Run()
95 brillo::Blob buffer_in_(size_); in ProcessChunk()
100 TEST_AND_RETURN_FALSE(bytes_read == static_cast<ssize_t>(size_)); in ProcessChunk()

12