Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 25 of 50) sorted by relevance

12

/hardware/google/pixel/pixelstats/
DTempResidencyReporter.cpp43 bool updateOffsetAndCheckBound(int *offset, const int &bytes_read, const int &data_len) { in updateOffsetAndCheckBound() argument
44 *offset += bytes_read; in updateOffsetAndCheckBound()
57 int bytes_read; in parse_file_contents() local
59 while (sscanf(data + offset, "THERMAL ZONE: %31s\n%n", sensor_name, &bytes_read) == 1) { in parse_file_contents()
64 if (!updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
70 &bytes_read) || in parse_file_contents()
71 !updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
75 &temp_residency_stats.max_temp_timestamp, &bytes_read) || in parse_file_contents()
76 !updateOffsetAndCheckBound(&offset, bytes_read, data_len)) in parse_file_contents()
80 &bytes_read) || in parse_file_contents()
[all …]
DSysfsCollector.cpp1747 int bytes_read; in logVendorResumeLatencyStats() local
1753 &bytes_read)) in logVendorResumeLatencyStats()
1755 offset += bytes_read; in logVendorResumeLatencyStats()
1760 if (!sscanf(data + offset, "Max Resume Latency: %" PRId64 "\n%n", &max_latency, &bytes_read)) in logVendorResumeLatencyStats()
1762 offset += bytes_read; in logVendorResumeLatencyStats()
1767 if (!sscanf(data + offset, "Sum Resume Latency: %" PRIu64 "\n%n", &sum_latency, &bytes_read)) in logVendorResumeLatencyStats()
1769 offset += bytes_read; in logVendorResumeLatencyStats()
1785 while (sscanf(data + offset, "%*ld - %*ldms ====> %" PRId64 "\n%n", &count, &bytes_read) == 1 || in logVendorResumeLatencyStats()
1786 sscanf(data + offset, "%*ld - infms ====> %" PRId64 "\n%n", &count, &bytes_read) == 1) { in logVendorResumeLatencyStats()
1787 offset += bytes_read; in logVendorResumeLatencyStats()
[all …]
/hardware/interfaces/bluetooth/1.0/default/
Dhci_packetizer.cc64 ssize_t bytes_read = TEMP_FAILURE_RETRY( in OnDataReady() local
67 if (bytes_read == 0) { in OnDataReady()
73 if (bytes_read < 0) { in OnDataReady()
77 bytes_read_ += bytes_read; in OnDataReady()
91 ssize_t bytes_read = TEMP_FAILURE_RETRY(read( in OnDataReady() local
95 if (bytes_read == 0) { in OnDataReady()
101 if (bytes_read < 0) { in OnDataReady()
105 bytes_remaining_ -= bytes_read; in OnDataReady()
106 bytes_read_ += bytes_read; in OnDataReady()
Dh4_protocol.cc106 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, 1)); in OnDataReady() local
107 if (bytes_read != 1) { in OnDataReady()
108 if (bytes_read == 0) { in OnDataReady()
113 } else if (bytes_read < 0) { in OnDataReady()
118 static_cast<unsigned int>(bytes_read)); in OnDataReady()
Dbluetooth_address.cc56 int bytes_read = read(addr_fd, address, kStringLength); in get_local_address() local
57 if (bytes_read == -1) { in get_local_address()
/hardware/qcom/audio/hal/audio_extn/
Daudiozoom.c124 int bytes_read; in audio_extn_audiozoom_parse_info() local
152 bytes_read = fread(buf, 1, kBufSize, file); in audio_extn_audiozoom_parse_info()
153 if (bytes_read < 0) { in audio_extn_audiozoom_parse_info()
154 ALOGE("%s: fread failed, bytes read = %d", __func__, bytes_read); in audio_extn_audiozoom_parse_info()
155 ret = bytes_read; in audio_extn_audiozoom_parse_info()
159 if (XML_ParseBuffer(parser, bytes_read, in audio_extn_audiozoom_parse_info()
160 bytes_read == 0) == XML_STATUS_ERROR) { in audio_extn_audiozoom_parse_info()
167 if (bytes_read == 0) in audio_extn_audiozoom_parse_info()
/hardware/knowles/athletico/sound_trigger_hal/tests/
Dcrash_event_logger.c242 int bytes_read = 0; in dump_crash_log() local
277 bytes_read = read(inp_fp, buf, BUF_SIZE); in dump_crash_log()
278 if (bytes_read > 0) in dump_crash_log()
279 write(out_fp, buf, bytes_read); in dump_crash_log()
280 } while (bytes_read > 0); in dump_crash_log()
308 int bytes_read = 0; in dump_reg_access_hist_log() local
343 bytes_read = read(inp_fp, buf, BUF_SIZE); in dump_reg_access_hist_log()
344 if (bytes_read > 0) in dump_reg_access_hist_log()
345 write(out_fp, buf, bytes_read); in dump_reg_access_hist_log()
346 } while (bytes_read > 0); in dump_reg_access_hist_log()
[all …]
Dsetparamblk_test.c61 long file_len, bytes_read; in setparamblk_with_ack_test() local
79 bytes_read = fread(data, 1, file_len, fp); in setparamblk_with_ack_test()
80 if (bytes_read != file_len) { in setparamblk_with_ack_test()
Dtunnel_test_sensor.c74 int bytes_read = 0; in main() local
276 bytes_read += rft.format.frameSizeInBytes + min_bytes_req; in main()
286 ALOGD("bytes_read so far %d", bytes_read); in main()
/hardware/interfaces/gnss/common/utils/default/
DDeviceFileReader.cpp69 int bytes_read = -1; in getDataFromDeviceFile() local
73 bytes_read = read(gnss_fd, &inputBuffer, INPUT_BUFFER_SIZE); in getDataFromDeviceFile()
74 if (bytes_read <= 0) { in getDataFromDeviceFile()
77 s_buffer_ += std::string(inputBuffer, bytes_read); in getDataFromDeviceFile()
/hardware/google/pixel/power-libperfmgr/aidl/
DGpuCapacityNode.cpp100 auto const bytes_read = fd_interface_->read(frequency_fd_, buffer.data() + bytes_read_total, in gpu_frequency() local
102 if (bytes_read == 0) { in gpu_frequency()
106 if (bytes_read < 0) { in gpu_frequency()
107 LOG(ERROR) << "could not read gpu frequency:" << bytes_read << ": " << strerror(errno); in gpu_frequency()
110 bytes_read_total += bytes_read; in gpu_frequency()
/hardware/interfaces/bluetooth/hci/
Dh4_protocol.cc124 ssize_t bytes_read = in OnDataReady() local
126 if (bytes_read == 0) { in OnDataReady()
132 if (bytes_read < 0) { in OnDataReady()
136 SendDataToPacketizer(buffer, bytes_read); in OnDataReady()
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/
Dring_buffer.cpp357 unsigned int bytes_read = 0; in rb_read() local
361 while (bytes_read < max_length) { in rb_read()
376 (max_length - bytes_read)) { in rb_read()
380 cur_cpy_len = max_length - bytes_read; in rb_read()
386 if (rbc->cur_valid_bytes <= bytes_read) { in rb_read()
392 (max_length - bytes_read)); in rb_read()
400 (max_length - bytes_read)); in rb_read()
403 memcpy((buf + bytes_read), in rb_read()
424 bytes_read += cur_cpy_len; in rb_read()
430 rbc->total_bytes_read += bytes_read; in rb_read()
[all …]
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/
Dring_buffer.cpp357 unsigned int bytes_read = 0; in rb_read() local
361 while (bytes_read < max_length) { in rb_read()
376 (max_length - bytes_read)) { in rb_read()
380 cur_cpy_len = max_length - bytes_read; in rb_read()
386 if (rbc->cur_valid_bytes <= bytes_read) { in rb_read()
392 (max_length - bytes_read)); in rb_read()
400 (max_length - bytes_read)); in rb_read()
403 memcpy((buf + bytes_read), in rb_read()
424 bytes_read += cur_cpy_len; in rb_read()
430 rbc->total_bytes_read += bytes_read; in rb_read()
[all …]
/hardware/st/nfc/1.0/adaptation/
Di2clayer.c188 size_t bytes_read = 1; in I2cWorkerThread() local
190 while((bytes_read > 0) && (length > 0)) in I2cWorkerThread()
192 bytes_read = read(cmdPipe[0],buffer,MAX_BUFFER_SIZE); in I2cWorkerThread()
193 length = length - bytes_read; in I2cWorkerThread()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/
Domx_vdec_test.cpp2831 int bytes_read=0; in Read_Buffer_From_DAT_File() local
2857 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, frameSize); in Read_Buffer_From_DAT_File()
2860 frameSize, bytes_read); in Read_Buffer_From_DAT_File()
2862 if (bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
2870 return bytes_read; in Read_Buffer_From_DAT_File()
2875 int bytes_read = 0; in Read_Buffer_From_H264_Start_Code_File() local
2884 bytes_read = read(inputBufferFileFd, &dataptr[cnt], 1); in Read_Buffer_From_H264_Start_Code_File()
2885 if (!bytes_read) { in Read_Buffer_From_H264_Start_Code_File()
2899 bytes_read = read(inputBufferFileFd, &dataptr[cnt], 1); in Read_Buffer_From_H264_Start_Code_File()
2900 if (!bytes_read) { in Read_Buffer_From_H264_Start_Code_File()
[all …]
Ddecoder_driver_test.c1006 int bytes_read = 0; in read_frame() local
1023 bytes_read = fread(&dataptr[readOffset],1, 1,inputBufferFile); in read_frame()
1025 if ( !bytes_read) { in read_frame()
1079 bytes_read = Read_Buffer_From_DAT_File(&dataptr[readOffset], in read_frame()
1082 readOffset += bytes_read; in read_frame()
1098 int bytes_read=0; in Read_Buffer_From_DAT_File() local
1125 bytes_read = fread(dataptr, 1, frameSize, inputBufferFile); in Read_Buffer_From_DAT_File()
1127 if (bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
1131 return bytes_read; in Read_Buffer_From_DAT_File()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
Domx_vdec_test.cpp2590 int bytes_read=0; in Read_Buffer_From_DAT_File() local
2615 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, frameSize); in Read_Buffer_From_DAT_File()
2618 frameSize, bytes_read); in Read_Buffer_From_DAT_File()
2620 if(bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
2628 return bytes_read; in Read_Buffer_From_DAT_File()
2633 int bytes_read=0; in Read_Buffer_ArbitraryBytes() local
2635 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, NUMBER_OF_ARBITRARYBYTES_READ); in Read_Buffer_ArbitraryBytes()
2636 if(bytes_read == 0) { in Read_Buffer_ArbitraryBytes()
2651 return bytes_read; in Read_Buffer_ArbitraryBytes()
2657 int bytes_read = 0; in Read_Buffer_From_Vop_Start_Code_File() local
[all …]
Ddecoder_driver_test.c1069 int bytes_read = 0; in read_frame() local
1088 bytes_read = fread(&dataptr[readOffset],1, 1,inputBufferFile); in read_frame()
1089 if( !bytes_read) in read_frame()
1151 bytes_read = Read_Buffer_From_DAT_File(&dataptr[readOffset], in read_frame()
1154 readOffset += bytes_read; in read_frame()
1169 int bytes_read=0; in Read_Buffer_From_DAT_File() local
1192 bytes_read = fread(dataptr, 1, frameSize, inputBufferFile); in Read_Buffer_From_DAT_File()
1194 if(bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
1197 return bytes_read; in Read_Buffer_From_DAT_File()
/hardware/google/gfxstream/guest/mesa/src/util/
Dos_memory_fd.c78 int bytes_read = read(fd, &header, sizeof(header)); in os_import_memory_fd() local
79 if(bytes_read != sizeof(header)) in os_import_memory_fd()
/hardware/interfaces/tv/tuner/aidl/default/
DDemux.cpp142 ssize_t bytes_read; in frontendIptvInputThreadLoop() local
147 bytes_read = interface->read_stream(streamer, (void*)offsetBuf, IPTV_BUFFER_SIZE - 1, in frontendIptvInputThreadLoop()
151 bytes_read = in frontendIptvInputThreadLoop()
155 if (bytes_read <= 0) { in frontendIptvInputThreadLoop()
167 ALOGI("Number of bytes read: %zd", bytes_read); in frontendIptvInputThreadLoop()
168 int result = mDvrPlayback->writePlaybackFMQ(buf, bytes_read); in frontendIptvInputThreadLoop()
182 ALOGI("Wrote %zd bytes to DVR FMQ", bytes_read); in frontendIptvInputThreadLoop()
/hardware/st/nfc/st21nfc/adaptation/
Di2clayer.cc214 size_t bytes_read = 1; in I2cWorkerThread() local
216 while ((bytes_read > 0) && (length > 0)) { in I2cWorkerThread()
217 bytes_read = read(cmdPipe[0], buffer, MAX_BUFFER_SIZE); in I2cWorkerThread()
218 length = length - bytes_read; in I2cWorkerThread()
/hardware/interfaces/wifi/aidl/default/
Dwifi.cpp75 ssize_t bytes_read = read(fd_read, read_buf.data(), read_buf.size()); in cpioWriteFileContent() local
76 if (bytes_read == -1) { in cpioWriteFileContent()
80 llen -= bytes_read; in cpioWriteFileContent()
81 if (write(out_fd, read_buf.data(), bytes_read) == -1) { in cpioWriteFileContent()
85 if (bytes_read == 0) { // this should never happen, but just in case in cpioWriteFileContent()
/hardware/knowles/athletico/sound_trigger_hal/
Dadnc_strm.c296 int bytes_read, bytes_rem; in adnc_strm_read() local
327 bytes_read = ia_read_tunnel_data(adnc_strm_dev->tun_hdl, in adnc_strm_read()
332 if (bytes_read <= 0) { in adnc_strm_read()
340 adnc_strm_dev->unparsed_avail_size += bytes_read; in adnc_strm_read()
/hardware/qcom/audio/hal/
Dplatform_info.c1089 int bytes_read; in platform_info_init() local
1135 bytes_read = fread(buf, 1, kBufSize, file); in platform_info_init()
1136 if (bytes_read < 0) { in platform_info_init()
1137 ALOGE("%s: fread failed, bytes read = %d", __func__, bytes_read); in platform_info_init()
1138 ret = bytes_read; in platform_info_init()
1142 if (XML_ParseBuffer(parser, bytes_read, in platform_info_init()
1143 bytes_read == 0) == XML_STATUS_ERROR) { in platform_info_init()
1150 if (bytes_read == 0) in platform_info_init()

12