Home
last modified time | relevance | path

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

/aosp12/system/nvram/messages/include/nvram/messages/
H A 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()
/aosp12/system/update_engine/payload_generator/
H A 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()
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()
755 if (old_data == new_data) { in ReadExtentsToDiff()
819 new_data, &dst_deflates)); in ReadExtentsToDiff()
828 new_data, in ReadExtentsToDiff()
[all …]
H A 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()
H A Ddelta_diff_utils.h119 bool GenerateBestFullOperation(const brillo::Blob& new_data,
/aosp12/bionic/libc/kernel/tools/
H A Dclean_header.py184 new_data = cleanupFile(dst_file, src_file, path) variable
190 sys.stdout.write(new_data)
201 new_data = cleanupFile(dst_file, src_file, path, no_update) variable
202 if not new_data:
206 r = b.editFile(dst_file, new_data)
H A Dutils.py78 self.new_data = {}
108 self.new_data[dst] = data
134 f.write(self.new_data[dst])
H A Dupdate_all.py53 new_data = clean_header.cleanupFile(dst_file, src_file, rel_path)
54 if not new_data:
57 ret_val = updater.editFile(dst_file, new_data)
/aosp12/system/bt/osi/src/
H A 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()
/aosp12/system/logging/logd/
H A 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()
/aosp12/build/make/tools/releasetools/
H A Dota_package_parser.py145 new_data = self.package.getinfo(partition + ".new.dat")
147 logging.info("{:<40}{:<40}".format(new_data.filename, patch_data.filename))
149 "compress_type: " + str(new_data.compress_type),
153 new_data.compress_size),
157 "file_size: " + OtaPackageParser.GetSizeString(new_data.file_size),
160 self.new_data_size += new_data.file_size
H A Dsign_target_files_apks598 new_data = data
600 new_data = RewriteProps(data.decode())
601 common.ZipWriteStr(output_tf_zip, out_info, new_data)
607 new_data = ReplaceCerts(data.decode())
608 common.ZipWriteStr(output_tf_zip, out_info, new_data)
H A Dsign_target_files_apks.py598 new_data = data
600 new_data = RewriteProps(data.decode())
601 common.ZipWriteStr(output_tf_zip, out_info, new_data)
607 new_data = ReplaceCerts(data.decode())
608 common.ZipWriteStr(output_tf_zip, out_info, new_data)
/aosp12/art/openjdkjvmti/
H A Dti_class_definition.h86 art::ArrayRef<const unsigned char> new_data(new_dex_data, new_dex_len); in SetNewDexData()
87 if (new_data != dex_data_) { in SetNewDexData()
H A Dtransform.cc278 unsigned char* new_data = nullptr; in TransformSingleClassDirect() local
290 /*out*/&new_data); in TransformSingleClassDirect()
291 def->SetNewDexData(new_len, new_data, kEvent); in TransformSingleClassDirect()
H A Devents-inl.h240 unsigned char* new_data = nullptr; in DispatchClassFileLoadHookEvent() local
250 &new_data); in DispatchClassFileLoadHookEvent()
251 if (new_data != nullptr && new_data != current_class_data) { in DispatchClassFileLoadHookEvent()
260 current_class_data = new_data; in DispatchClassFileLoadHookEvent()
/aosp12/system/core/fastboot/
H A 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()
/aosp12/system/keymaster/android_keymaster/
H A 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()
/aosp12/art/test/ti-agent/
H A Dredefinition_helper.cc339 unsigned char* new_data; in CommonClassFileLoadHookRetransformable() local
340 CHECK_EQ(JVMTI_ERROR_NONE, jvmti_env->Allocate(desired_array.size(), &new_data)); in CommonClassFileLoadHookRetransformable()
341 memcpy(new_data, desired_array.data(), desired_array.size()); in CommonClassFileLoadHookRetransformable()
342 *new_class_data = new_data; in CommonClassFileLoadHookRetransformable()
/aosp12/frameworks/base/media/mca/filterfw/native/core/
H A Dvalue.cpp214 int SetMutableBufferValue(Value* value, const char* new_data, int size) { in SetMutableBufferValue() argument
215 return SetPtrValue<char, MUTABLE_BUFFER_VALUE_TYPE>(value, new_data, size); in SetMutableBufferValue()
H A Dvalue.h68 int SetMutableBufferValue(Value* value, const char* new_data, int size);
/aosp12/frameworks/native/libs/vr/libpdx/private/pdx/
H A Dutility.h74 void* new_data = data_ ? std::realloc(data_, size) : std::malloc(size); in reserve() local
76 data_ = static_cast<uint8_t*>(new_data); in reserve()
/aosp12/system/core/fs_mgr/liblp/
H A 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 ()()
/aosp12/bootable/recovery/tests/unit/
H A Dupdater_test.cpp166 std::string new_data = in RunBlockImageUpdate() local
1157 std::string new_data = i + h + f; in GenerateTransferList() local
1161 { "new_data", new_data }, in GenerateTransferList()
/aosp12/bootable/recovery/updater/
H A Dblockimg.cpp1697 std::string_view new_data(new_data_fn->data); in PerformBlockImageUpdate() local
1699 if (FindEntry(za, new_data, &new_entry) != 0) { in PerformBlockImageUpdate()
/aosp12/art/runtime/gc/space/
H A Dimage_space.cc777 const uint8_t* new_data = new_space->Begin() + new_interns.Offset(); in RemoveInternTableDuplicates() local
779 InternTable::UnorderedSet new_set(new_data, /*make_copy_of_data=*/ false, &new_read_count); in RemoveInternTableDuplicates()