Home
last modified time | relevance | path

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

/aosp12/frameworks/av/media/mtp/
H A DMtpFfsCompatHandle.cpp163 uint32_t file_length = mfr.length; in receiveFile() local
182 while (file_length > 0 || write) { in receiveFile()
183 if (file_length > 0) { in receiveFile()
218 if (file_length == MAX_MTP_FILE_SIZE) { in receiveFile()
221 file_length = 0; in receiveFile()
224 file_length -= ret; in receiveFile()
247 uint64_t file_length = mfr.length; in sendFile() local
284 file_length -= init_read_len; in sendFile()
289 while (file_length > 0) { in sendFile()
303 file_length -= ret; in sendFile()
[all …]
H A DMtpFfsHandle.cpp446 uint32_t file_length = mfr.length; in receiveFile() local
468 if (file_length > 0) { in receiveFile()
491 if (file_length > 0) { in receiveFile()
529 file_length = 0; in receiveFile()
537 file_length -= ret; in receiveFile()
565 uint64_t file_length = mfr.length; in sendFile() local
603 file_length -= init_read_len; in sendFile()
608 while(file_length > 0 || has_write) { in sendFile()
609 if (file_length > 0) { in sendFile()
628 if (file_length > 0) { in sendFile()
[all …]
/aosp12/art/libartbase/base/
H A Dmem_map_windows.cc89 LARGE_INTEGER file_length; in TargetMMap() local
90 if (!::GetFileSizeEx(file_handle, &file_length)) { in TargetMMap()
96 file_offset + map_length > file_length.QuadPart) { in TargetMMap()
/aosp12/system/iorap/src/prefetcher/
H A Dread_ahead.cc374 if (file_entry.file_length() < 0 || file_entry.file_offset() < 0) { in BeginTask()
381 …if (!PerformReadAhead(session, file_entry.index_id(), kind, file_entry.file_length(), file_entry.f… in BeginTask()
385 prefetch_bytes += static_cast<size_t>(file_entry.file_length()); in BeginTask()
395 length_sum += static_cast<size_t>(file_entry.file_length()); in BeginTask()
433 if (file_entry.file_length() < 0 || file_entry.file_offset() < 0) { in PrefetchSizeInBytes()
439 length_sum += static_cast<size_t>(file_entry.file_length()); in PrefetchSizeInBytes()
H A Dsession.cc395 if (file_entry.file_length() < 0 || file_entry.file_offset() < 0) { in ProcessFd()
404 file_entry.file_length(), in ProcessFd()
/aosp12/system/libbase/
H A Dmapped_file.cpp52 off64_t file_length = length + slop; in FromOsHandle() local
67 file_offset, file_length); in FromOsHandle()
75 void* base = mmap(nullptr, file_length, prot, MAP_SHARED, h, file_offset); in FromOsHandle()
/aosp12/system/core/fs_mgr/liblp/
H A Dimages.cpp331 uint64_t file_length; in AddPartitionImage() local
332 if (!GetDescriptorSize(fd, &file_length)) { in AddPartitionImage()
337 if (file_length > partition_size) { in AddPartitionImage()
339 << "' is greater than its size (" << file_length << ", expected " << partition_size in AddPartitionImage()
363 uint64_t remaining = file_length; in AddPartitionImage()
/aosp12/system/libziparchive/
H A Dzip_archive.cc217 off64_t file_length, in FindCentralDirectoryInfo() argument
221 const off64_t search_start = file_length - read_amount; in FindCentralDirectoryInfo()
258 if (calculated_length != file_length) { in FindCentralDirectoryInfo()
260 static_cast<int64_t>(file_length - calculated_length)); in FindCentralDirectoryInfo()
297 off64_t file_length = archive->mapped_zip.GetFileLength(); in MapCentralDirectory() local
298 if (file_length == -1) { in MapCentralDirectory()
302 if (file_length > kMaxFileLength) { in MapCentralDirectory()
303 ALOGV("Zip: zip file too long %" PRId64, static_cast<int64_t>(file_length)); in MapCentralDirectory()
307 if (file_length < static_cast<off64_t>(sizeof(EocdRecord))) { in MapCentralDirectory()
325 if (file_length < read_amount) { in MapCentralDirectory()
[all …]
/aosp12/frameworks/base/startop/scripts/iorap/
H A Dcompile_handcrafted_file.py232 file_entry.file_length = rec.length
233 stats_length_total += file_entry.file_length
236 filename_stats[filename] = filename_stats.get(filename, 0) + file_entry.file_length
H A Dcompiler_ri.py156 file_entry.file_length = pg_entry.length
157 stats_length_total += file_entry.file_length
160 filename_stats[filename] = filename_stats.get(filename, 0) + file_entry.file_length
H A Danalyze_prefetch_file.py144 … FileEntry(id=entry.index_id, name=file_name, offset=entry.file_offset, length=entry.file_length)
/aosp12/art/runtime/
H A Delf_file.cc109 size_t file_length = static_cast<size_t>(temp_file_length); in Setup() local
110 if (file_length < sizeof(Elf_Ehdr)) { in Setup()
112 "%zd bytes: '%s'", file_length, sizeof(Elf_Ehdr), in Setup()
134 if (file_length < program_header_size) { in Setup()
136 "header of %zd bytes: '%s'", file_length, in Setup()
1142 size_t file_length = static_cast<size_t>(temp_file_length); in Load() local
1216 if (file_length < (program_header->p_offset + program_header->p_filesz)) { in Load()
1218 "%d of %" PRIu64 " bytes: '%s'", file_length, i, in Load()
/aosp12/system/nfc/src/nfc/tags/
H A 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()
/aosp12/system/iorap/src/serialize/
H A DTraceFile.proto44 required int64 file_length = 3; field
/aosp12/bionic/linker/
H A Dlinker_phdr.cpp708 ElfW(Addr) file_length = file_end - file_page_start; in LoadSegments()
724 if (file_length != 0) { in LoadSegments()
740 file_length, in LoadSegments()
754 madvise(seg_addr, file_length, MADV_HUGEPAGE); in LoadSegments()
/aosp12/system/iorap/src/compiler/
H A Dcompiler.cc945 entry->file_offset() + entry->file_length() == in PerformCompilation()
947 entry->set_file_length(entry->file_length() + kPageSize); in PerformCompilation()
/aosp12/system/update_engine/payload_consumer/
H A Ddelta_performer_unittest.cc664 const uint64_t file_length = 4 * block_size - 13; in TEST_F() local
674 extents, block_size, file_length, &actual_output)); in TEST_F()
/aosp12/art/libprofile/profile/
H A Dprofile_compilation_info_test.cc493 int64_t file_length = profile.GetFile()->GetLength(); in TEST_F() local
494 ASSERT_GT(file_length, 0); in TEST_F()
495 ASSERT_TRUE(profile.GetFile()->PwriteFully(random_data, sizeof(random_data), file_length)); in TEST_F()
499 file_length + static_cast<int64_t>(sizeof(random_data))); in TEST_F()