Home
last modified time | relevance | path

Searched refs:zeroes (Results 1 – 5 of 5) sorted by relevance

/system/core/libziparchive/
Dentry_name_utils_test.cc23 const uint8_t zeroes[] = {0x41, 0x52, 0x00, 0x53, 0x45}; in TEST() local
24 ASSERT_FALSE(IsValidEntryName(zeroes, sizeof(zeroes))); in TEST()
/system/gsid/
Dpartition_installer.cpp303 std::string zeroes(4096, 0); in Format() local
304 if (!android::base::WriteFully(device->fd(), zeroes.data(), zeroes.size())) { in Format()
347 std::string zeroes(4096, 0); in WipeWritable() local
349 for (uint64_t i = 0; i < erase_size; i += zeroes.size()) { in WipeWritable()
350 if (!android::base::WriteFully(device->fd(), zeroes.data(), zeroes.size())) { in WipeWritable()
/system/core/fs_mgr/liblp/
Dwriter.cpp276 std::string zeroes(LP_PARTITION_RESERVED_BYTES, 0); in FlashPartitionTable() local
281 if (!android::base::WriteFully(fd, zeroes.data(), zeroes.size())) { in FlashPartitionTable()
282 PERROR << __PRETTY_FUNCTION__ << " write " << zeroes.size() << " bytes failed"; in FlashPartitionTable()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp230 std::string zeroes(kChunkSize, '\0'); in ZeroFillNewImage() local
243 uint64_t to_write = std::min(static_cast<uint64_t>(zeroes.size()), remaining); in ZeroFillNewImage()
244 if (!android::base::WriteFully(device->fd(), zeroes.data(), in ZeroFillNewImage()
/system/core/fs_mgr/libdm/
Ddm_test.cpp355 std::string zeroes(data.size(), '\0'); in TEST() local
358 ASSERT_EQ(read, zeroes); in TEST()
363 ASSERT_EQ(read, zeroes); in TEST()