Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Dfull_update_generator.cc145 int in_fd = open(new_part.path.c_str(), O_RDONLY, 0); in GenerateOperations() local
146 TEST_AND_RETURN_FALSE(in_fd >= 0); in GenerateOperations()
147 ScopedFdCloser in_fd_closer(&in_fd); in GenerateOperations()
175 in_fd, in GenerateOperations()
Dpayload_file.cc302 int in_fd = open(data_blobs_path.c_str(), O_RDONLY, 0); in ReorderDataBlobs() local
303 TEST_AND_RETURN_FALSE_ERRNO(in_fd >= 0); in ReorderDataBlobs()
304 ScopedFdCloser in_fd_closer(&in_fd); in ReorderDataBlobs()
322 ssize_t rc = pread(in_fd, buf.data(), buf.size(), aop.op.data_offset()); in ReorderDataBlobs()
/system/extras/simpleperf/
Dcmd_api.cpp177 android::base::unique_fd in_fd(FileHelper::OpenReadOnly(path)); in CollectRecordingData() local
178 if (in_fd == -1) { in CollectRecordingData()
183 ssize_t nread = TEMP_FAILURE_RETRY(read(in_fd, buffer.data(), buffer.size())); in CollectRecordingData()
Dcmd_record.cpp576 android::base::unique_fd in_fd(FileHelper::OpenReadOnly(in_filename)); in WriteRecordDataToOutFd() local
577 if (in_fd == -1) { in WriteRecordDataToOutFd()
583 ssize_t n = TEMP_FAILURE_RETRY(read(in_fd, buf, sizeof(buf))); in WriteRecordDataToOutFd()
/system/core/adb/client/
Dcommandline.cpp800 static int adb_sideload_legacy(const char* filename, int in_fd, int size) { in adb_sideload_legacy() argument
815 if (!ReadFdExactly(in_fd, buf, xfer)) { in adb_sideload_legacy()