Home
last modified time | relevance | path

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

/system/libbase/
Dmapped_file.cpp52 off64_t file_length = length + slop; in FromOsHandle() local
67 (file_offset >> 32), file_offset, file_length); in FromOsHandle()
75 void* base = mmap(nullptr, file_length, prot, MAP_SHARED, h, file_offset); in FromOsHandle()
/system/core/fs_mgr/liblp/
Dimages.cpp336 uint64_t file_length; in AddPartitionImage() local
337 if (!GetDescriptorSize(fd, &file_length)) { in AddPartitionImage()
342 if (file_length > partition_size) { in AddPartitionImage()
344 << "' is greater than its size (" << file_length << ", expected " << partition_size in AddPartitionImage()
368 uint64_t remaining = file_length; in AddPartitionImage()
/system/libziparchive/
Dzip_archive.cc275 off64_t file_length, in FindCentralDirectoryInfo() argument
279 const off64_t search_start = file_length - read_amount; in FindCentralDirectoryInfo()
317 if (calculated_length != file_length) { in FindCentralDirectoryInfo()
319 static_cast<int64_t>(file_length - calculated_length)); in FindCentralDirectoryInfo()
357 off64_t file_length = archive->mapped_zip.GetFileLength(); in MapCentralDirectory() local
358 if (file_length == -1) { in MapCentralDirectory()
362 if (file_length > kMaxFileLength) { in MapCentralDirectory()
363 ALOGV("Zip: zip file too long %" PRId64, static_cast<int64_t>(file_length)); in MapCentralDirectory()
367 if (file_length < static_cast<off64_t>(sizeof(EocdRecord))) { in MapCentralDirectory()
368 ALOGV("Zip: length %" PRId64 " is too small to be zip", static_cast<int64_t>(file_length)); in MapCentralDirectory()
[all …]
/system/nfc/src/nfc/tags/
Dce_t4t.cc240 uint8_t file_length[2]; in ce_t4t_update_binary() local
253 p = file_length; in ce_t4t_update_binary()
257 *(file_length + offset++) = *(p_data++); in ce_t4t_update_binary()
261 p = file_length; in ce_t4t_update_binary()
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc663 const uint64_t file_length = 4 * block_size - 13; in TEST_F() local
673 extents, block_size, file_length, &actual_output)); in TEST_F()