/frameworks/native/cmds/bugreportz/ |
D | bugreportz.cpp | 48 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); in bugreportz() local 49 if (bytes_read == 0) { in bugreportz() 51 } else if (bytes_read == -1) { in bugreportz() 61 for (int i = 0; i < bytes_read; i++) { in bugreportz() 78 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); in bugreportz_stream() local 79 if (bytes_read == 0) { in bugreportz_stream() 81 } else if (bytes_read == -1) { in bugreportz_stream() 91 bytes_read)) { in bugreportz_stream() 92 printf("Failed to write data to stdout: trying to send %zd bytes (%s)\n", bytes_read, in bugreportz_stream()
|
/frameworks/native/cmds/dumpstate/ |
D | DumpstateInternal.cpp | 179 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in DumpFileFromFdToFd() local 180 if (bytes_read > 0) { in DumpFileFromFdToFd() 181 android::base::WriteFully(out_fd, buffer, bytes_read); in DumpFileFromFdToFd() 182 newline = (buffer[bytes_read - 1] == '\n'); in DumpFileFromFdToFd() 184 if (bytes_read == -1) { in DumpFileFromFdToFd()
|
D | dumpstate.cpp | 910 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in AddZipEntryFromFd() local 911 if (bytes_read == 0) { in AddZipEntryFromFd() 913 } else if (bytes_read == -1) { in AddZipEntryFromFd() 917 err = zip_writer_->WriteBytes(buffer.data(), bytes_read); in AddZipEntryFromFd() 4296 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd.get(), buffer, sizeof(buffer))); in read_file_as_long() local 4297 if (bytes_read == -1) { in read_file_as_long() 4301 if (bytes_read == 0) { in read_file_as_long()
|
/frameworks/base/libs/androidfw/ |
D | PngChunkFilter.cpp | 82 const size_t bytes_read = window_end_ - window_start_; in ConsumeWindow() local 84 *len = bytes_read; in ConsumeWindow()
|
D | PngCrunch.cpp | 102 const size_t bytes_read = std::min(in_len, len); in ReadDataFromStream() local 103 memcpy(buffer, in_buffer, bytes_read); in ReadDataFromStream() 104 if (bytes_read != in_len) { in ReadDataFromStream() 105 in->BackUp(in_len - bytes_read); in ReadDataFromStream()
|
/frameworks/native/cmds/atrace/ |
D | atrace.cpp | 932 ssize_t bytes_read = read(traceFD, trace_data, 4096); in streamTrace() local 933 if (bytes_read > 0) { in streamTrace() 934 write(STDOUT_FILENO, trace_data, bytes_read); in streamTrace() 939 bytes_read, errno, strerror(errno)); in streamTrace()
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 1247 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); in createInstanceFromXmlFile() local 1248 if (bytes_read < 0) { in createInstanceFromXmlFile() 1255 CHECK(::XML_ParseBuffer(parser, bytes_read, bytes_read == 0)); in createInstanceFromXmlFile() 1257 if (bytes_read == 0) break; // done parsing the xml file in createInstanceFromXmlFile()
|
/frameworks/av/media/libstagefright/xmlparser/ |
D | MediaCodecsXmlParser.cpp | 559 int bytes_read = ::fread(buff, 1, BUFF_SIZE, file); in parseXmlFile() local 560 if (bytes_read < 0) { in parseXmlFile() 566 XML_Status status = ::XML_ParseBuffer(mParser.get(), bytes_read, bytes_read == 0); in parseXmlFile() 573 if (bytes_read == 0) { in parseXmlFile()
|
/frameworks/native/cmds/installd/ |
D | dexopt.cpp | 2273 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in hash_secondary_dex_file() local 2274 if (bytes_read == 0) { in hash_secondary_dex_file() 2276 } else if (bytes_read == -1) { in hash_secondary_dex_file() 2282 SHA256_Update(&ctx, buffer.data(), bytes_read); in hash_secondary_dex_file()
|