Home
last modified time | relevance | path

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

/system/core/base/
Dmapped_file.cpp38 off64_t file_length = length + slop; in FromFd() local
53 file_offset, file_length); in FromFd()
61 void* base = mmap(nullptr, file_length, prot, MAP_SHARED, fd, file_offset); in FromFd()
/system/core/libziparchive/
Dzip_archive.cc230 off64_t file_length, off64_t read_amount, in MapCentralDirectory0() argument
232 const off64_t search_start = file_length - read_amount; in MapCentralDirectory0()
268 if (calculated_length != file_length) { in MapCentralDirectory0()
270 static_cast<int64_t>(file_length - calculated_length)); in MapCentralDirectory0()
322 off64_t file_length = archive->mapped_zip.GetFileLength(); in MapCentralDirectory() local
323 if (file_length == -1) { in MapCentralDirectory()
327 if (file_length > static_cast<off64_t>(0xffffffff)) { in MapCentralDirectory()
328 ALOGV("Zip: zip file too long %" PRId64, static_cast<int64_t>(file_length)); in MapCentralDirectory()
332 if (file_length < static_cast<off64_t>(sizeof(EocdRecord))) { in MapCentralDirectory()
333 ALOGV("Zip: length %" PRId64 " is too small to be zip", static_cast<int64_t>(file_length)); in MapCentralDirectory()
[all …]
/system/core/fs_mgr/liblp/
Dimages.cpp297 uint64_t file_length; in AddPartitionImage() local
298 if (!GetDescriptorSize(fd, &file_length)) { in AddPartitionImage()
303 if (file_length > partition_size) { in AddPartitionImage()
305 << "' is greater than its size (" << file_length << ", expected " << partition_size in AddPartitionImage()
329 uint64_t remaining = file_length; in AddPartitionImage()
/system/nfc/src/nfc/tags/
Dce_t4t.cc242 uint8_t file_length[2]; in ce_t4t_update_binary() local
255 p = file_length; in ce_t4t_update_binary()
259 *(file_length + offset++) = *(p_data++); in ce_t4t_update_binary()
263 p = file_length; in ce_t4t_update_binary()
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc745 const uint64_t file_length = 4 * block_size - 13; in TEST_F() local
755 extents, block_size, file_length, &actual_output)); in TEST_F()