Home
last modified time | relevance | path

Searched refs:zeros (Results 1 – 12 of 12) sorted by relevance

/system/update_engine/payload_consumer/
Dxor_extent_writer_unittest.cc112 auto zeros = utils::GetReadonlyZeroBlock(kBlockSize * 10); in TEST_F() local
114 AddRawBlocks(455, zeros->data() + 2 * kBlockSize, kBlockSize)) in TEST_F()
115 .With(Args<1, 2>(BytesEqual(zeros->data(), kBlockSize))) in TEST_F()
118 AddRawBlocks(320, zeros->data() + 5 * kBlockSize, kBlockSize)) in TEST_F()
119 .With(Args<1, 2>(BytesEqual(zeros->data(), kBlockSize))) in TEST_F()
122 AddRawBlocks(323, zeros->data() + 8 * kBlockSize, kBlockSize)) in TEST_F()
123 .With(Args<1, 2>(BytesEqual(zeros->data(), kBlockSize))) in TEST_F()
134 ASSERT_TRUE(writer_.Write(zeros->data(), 9 * kBlockSize)); in TEST_F()
164 auto zeros = utils::GetReadonlyZeroBlock(kBlockSize * 7); in TEST_F() local
166 AddRawBlocks(420, zeros->data() + 3 * kBlockSize, kBlockSize * 3)) in TEST_F()
[all …]
Dvabc_partition_writer_unittest.cc211 auto zeros = GetReadonlyZeroBlock(data_size); in GetNoopBSDIFF() local
213 int error = bsdiff::bsdiff(reinterpret_cast<const uint8_t*>(zeros->data()), in GetNoopBSDIFF()
214 zeros->size(), in GetNoopBSDIFF()
215 reinterpret_cast<const uint8_t*>(zeros->data()), in GetNoopBSDIFF()
216 zeros->size(), in GetNoopBSDIFF()
238 auto zeros = GetReadonlyZeroBlock(kBlockSize * 5); in TEST_F() local
241 HashCalculator::RawHashOfBytes(zeros->data(), zeros->size(), &expected_hash); in TEST_F()
Ddelta_performer_integration_test.cc422 brillo::Blob zeros(16 * 1024, 0); in GenerateDeltaFile() local
423 ASSERT_EQ(static_cast<int>(zeros.size()), in GenerateDeltaFile()
426 reinterpret_cast<const char*>(zeros.data()), in GenerateDeltaFile()
427 zeros.size())); in GenerateDeltaFile()
478 brillo::Blob zeros(16 * 1024, 0); in GenerateDeltaFile() local
479 ASSERT_EQ(static_cast<int>(zeros.size()), in GenerateDeltaFile()
481 reinterpret_cast<const char*>(zeros.data()), in GenerateDeltaFile()
482 zeros.size())); in GenerateDeltaFile()
/system/media/camera/docs/
Dplots.py146 redMap = np.dstack( (redMap, np.zeros(shadingMapSize), np.zeros(shadingMapSize) ) )
147 greenEMap = np.dstack( (np.zeros(shadingMapSize), greenEMap, np.zeros(shadingMapSize) ) )
148 greenOMap = np.dstack( (np.zeros(shadingMapSize), greenOMap, np.zeros(shadingMapSize) ) )
149 blueMap = np.dstack( (np.zeros(shadingMapSize), np.zeros(shadingMapSize), blueMap ) )
/system/keymaster/km_openssl/
Dhkdf.cpp36 UniquePtr<uint8_t[]> zeros(new (std::nothrow) uint8_t[digest_size_]); in GenerateKey() local
37 if (zeros.get() == nullptr) return false; in GenerateKey()
39 memset(zeros.get(), 0, digest_size_); in GenerateKey()
40 result = prk_hmac.Init(zeros.get(), digest_size_); in GenerateKey()
/system/update_engine/payload_generator/
Dpayload_properties_unittest.cc68 string zeros(size, '\0'); in SetUp() local
69 EXPECT_TRUE(utils::WriteFile(path, zeros.c_str(), zeros.size())); in SetUp()
/system/chre/chpp/test/
Dwwan_convert_test.cpp343 uint8_t zeros[sizePastEnd]; in TEST() local
344 memset(zeros, 0, sizePastEnd); in TEST()
345 EXPECT_EQ(memcmp(pastEnd, zeros, sizeof(zeros)), 0); in TEST()
/system/core/fs_mgr/libsnapshot/
Dutility.cpp116 std::vector<uint8_t> zeros(kDmSnapZeroFillSize, 0); in InitializeKernelCow() local
124 if (!android::base::WriteFully(fd, zeros.data(), kDmSnapZeroFillSize)) { in InitializeKernelCow()
/system/update_engine/sample_images/
Dgenerate_images.sh53 sudo dd if=/dev/zero of="${mntdir}"/regular-32k-zeros bs=1024 count=16 \
/system/update_engine/aosp/
Ddynamic_partition_control_android.cc632 brillo::Blob zeros(write_size); in Erase() local
633 TEST_AND_RETURN_FALSE(utils::WriteAll(fd_, zeros.data(), zeros.size())); in Erase()
/system/update_engine/update_engine/
Dupdate_metadata.proto79 // - ZERO: Write zeros to the destination dst_extents.
164 ZERO = 6; // Write zeros in the destination.
/system/update_engine/
Dupdate_metadata.proto79 // - ZERO: Write zeros to the destination dst_extents.
164 ZERO = 6; // Write zeros in the destination.