Home
last modified time | relevance | path

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

123

/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/logging/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.cpp49 size_(size), in PartitionInstaller()
112 if (size_ < 0) { in PerformSanityChecks()
113 LOG(ERROR) << "image size " << size_ << " is negative"; in PerformSanityChecks()
131 if (free_space <= (size_)) { in PerformSanityChecks()
160 service_->StartAsyncOperation("create " + name_, size_); in Preallocate()
161 if (!CreateImage(file, size_)) { in Preallocate()
187 service_->StartAsyncOperation("write " + name_, size_); in CommitGsiChunk()
218 int new_progress = ((size_ - remaining) * 1000) / size_; in CommitGsiChunk()
220 service_->UpdateProgress(IGsiService::STATUS_WORKING, size_ - remaining); in CommitGsiChunk()
224 service_->UpdateProgress(IGsiService::STATUS_COMPLETE, size_); in CommitGsiChunk()
[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/unwinding/libunwindstack/
DMemoryBuffer.h43 size_ = 0; in Resize()
47 size_ = size; in Resize()
51 uint64_t Size() { return size_; } in Size()
55 size_t size_ = 0; variable
DMemoryFileAtOffset.h33 uint8_t* GetPtr(size_t addr = 0) override { return addr < size_ ? data_ + addr : nullptr; }
37 size_t Size() { return size_; } in Size()
42 size_t size_ = 0;
/system/core/fs_mgr/libsnapshot/
Dcow_snapuserd_test.cpp151 size_t size_ = 50_MiB; member in android::snapshot::CowSnapuserdTest
170 size_t size_ = 1_MiB; member in android::snapshot::CowSnapuserdMetadataTest
262 total_base_size_ = (size_ * 4); in CreateBaseDevice()
286 std::unique_ptr<uint8_t[]> snapuserd_buffer = std::make_unique<uint8_t[]>(size_); in ReadSnapshotDeviceAndValidate()
290 ASSERT_EQ(ReadFullyAtOffset(snapshot_fd, snapuserd_buffer.get(), size_, offset), true); in ReadSnapshotDeviceAndValidate()
291 ASSERT_EQ(memcmp(snapuserd_buffer.get(), orig_buffer_.get(), size_), 0); in ReadSnapshotDeviceAndValidate()
294 offset += size_; in ReadSnapshotDeviceAndValidate()
295 ASSERT_EQ(ReadFullyAtOffset(snapshot_fd, snapuserd_buffer.get(), size_, offset), true); in ReadSnapshotDeviceAndValidate()
296 ASSERT_EQ(memcmp(snapuserd_buffer.get(), (char*)orig_buffer_.get() + size_, size_), 0); in ReadSnapshotDeviceAndValidate()
299 offset += size_; in ReadSnapshotDeviceAndValidate()
[all …]
/system/bt/gd/packet/parser/fields/
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()
72 return util::GetRustTypeForSize(size_); in GetRustDataType()
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()
140 return util::GetRustTypeForSize(size_); in GetRustDataType()
144 return util::GetRustTypeForSize(size_); in GetRustParseDataType()
172 if (size_ <= 8) { in GenRustGetter()
174 } else if (size_ <= 16) { in GenRustGetter()
176 } else if (size_ <= 32) { in GenRustGetter()
/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/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/
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};
Denum_def.cc31 if (value > util::GetMaxValueForBits(size_)) { in AddEntry()
33 << name_ << "(" << util::GetMaxValueForBits(size_) << ")\n"; in AddEntry()
/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/keymaster/include/keymaster/
Dmem.h128 explicit Eraser(T& t) : buf_(reinterpret_cast<uint8_t*>(&t)), size_(sizeof(t)) {} in Eraser()
130 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser()
132 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {} in Eraser()
133 ~Eraser() { memset_s(buf_, 0, size_); } in ~Eraser()
140 size_t size_; variable
/system/update_engine/payload_generator/
Dfull_update_generator.cc59 size_(size), in ChunkProcessor()
80 size_t size_; member in chromeos_update_engine::__anon3988e8ef0111::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()

123