Home
last modified time | relevance | path

Searched refs:new_data (Results 1 – 9 of 9) sorted by relevance

/system/nvram/messages/include/nvram/messages/
Dvector.h101 ElementType* new_data = nullptr; in Resize() local
104 new_data = nullptr; in Resize()
106 new_data = static_cast<ElementType*>( in Resize()
108 if (!new_data) { in Resize()
113 new_data = data_; in Resize()
117 if (new_data != data_) { in Resize()
120 new (&new_data[i]) ElementType(static_cast<ElementType&&>(data_[i])); in Resize()
131 new (&new_data[i]) ElementType; in Resize()
134 if (new_data != data_) { in Resize()
137 data_ = new_data; in Resize()
/system/logging/logd/
DSerializedData.h40 std::unique_ptr<uint8_t[]> new_data(new uint8_t[new_size]); in Resize()
42 memcpy(new_data.get(), data_.get(), copy_size); in Resize()
43 data_.swap(new_data); in Resize()
/system/bt/osi/src/
Darray.cc100 void* new_data = realloc(is_moving ? NULL : array->data, in grow() local
102 if (!new_data) return false; in grow()
105 memcpy(new_data, array->internal_storage, in grow()
108 array->data = static_cast<uint8_t*>(new_data); in grow()
/system/update_engine/payload_generator/
Dpayload_file_unittest.cc71 string new_data; in TEST_F() local
72 EXPECT_TRUE(utils::ReadFile(new_blobs.path(), &new_data)); in TEST_F()
74 EXPECT_EQ("bcdakernel", new_data); in TEST_F()
Ddelta_diff_utils.cc637 bool GenerateBestFullOperation(const brillo::Blob& new_data, in GenerateBestFullOperation() argument
641 if (new_data.empty()) in GenerateBestFullOperation()
646 new_data.begin(), new_data.end(), [](uint8_t x) { return x == 0; })) { in GenerateBestFullOperation()
659 if (XzCompress(new_data, &new_data_xz) && !new_data_xz.empty()) { in GenerateBestFullOperation()
671 if (BzipCompress(new_data, &new_data_bz) && !new_data_bz.empty() && in GenerateBestFullOperation()
681 if (!out_blob_set || out_blob->size() >= new_data.size()) { in GenerateBestFullOperation()
686 *out_blob = new_data; in GenerateBestFullOperation()
729 brillo::Blob new_data; in ReadExtentsToDiff() local
732 &new_data, in ReadExtentsToDiff()
735 TEST_AND_RETURN_FALSE(!new_data.empty()); in ReadExtentsToDiff()
[all …]
Ddelta_diff_utils.h119 bool GenerateBestFullOperation(const brillo::Blob& new_data,
/system/core/fastboot/
Dvendor_boot_img_utils.cpp51 [[nodiscard]] Result<void> Replace(uint32_t old_num_bytes, const std::string& new_data) { in Replace() argument
52 return Replace(old_num_bytes, new_data.data(), new_data.size()); in Replace()
54 [[nodiscard]] Result<void> Replace(uint32_t old_num_bytes, const void* new_data, in Replace() argument
65 memcpy(new_data_ptr_, new_data, new_data_size); in Replace()
/system/keymaster/android_keymaster/
Dauthorization_set.cpp83 uint8_t* new_data = new (std::nothrow) uint8_t[length]; in reserve_indirect() local
84 if (new_data == nullptr) { in reserve_indirect()
88 memcpy(new_data, indirect_data_, indirect_data_size_); in reserve_indirect()
93 elems_[i].blob.data = new_data + (elems_[i].blob.data - indirect_data_); in reserve_indirect()
96 indirect_data_ = new_data; in reserve_indirect()
/system/core/fs_mgr/liblp/
Dio_test.cpp465 std::unique_ptr<char[]> new_data = std::make_unique<char[]>(blob.size()); in operator ()() local
466 memset(new_data.get(), 0xe5, blob.size()); in operator ()()
467 EXPECT_TRUE(android::base::WriteFully(fd, new_data.get(), blob.size())); in operator ()()