| /hardware/interfaces/bluetooth/1.0/default/ |
| D | hci_packetizer.cc | 64 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()
|
| D | h4_protocol.cc | 106 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()
|
| D | bluetooth_address.cc | 56 int bytes_read = read(addr_fd, address, kStringLength); in get_local_address() local 57 if (bytes_read == -1) { in get_local_address()
|
| /hardware/google/pixel/pixelstats/ |
| D | TempResidencyReporter.cpp | 51 int bytes_read; in parse_file_contents() local 53 while (sscanf(data + offset, "THERMAL ZONE: %31s\n%n", sensor_name, &bytes_read) == 1) { in parse_file_contents() 57 offset += bytes_read; in parse_file_contents() 64 &bytes_read)) in parse_file_contents() 66 offset += bytes_read; in parse_file_contents() 70 if (sscanf(data + offset, "-inf - %*d ====> %ldms\n%n", &temp_res_value, &bytes_read) != in parse_file_contents() 72 sscanf(data + offset, "%*d - %*d ====> %ldms\n%n", &temp_res_value, &bytes_read) != in parse_file_contents() 75 &bytes_read) != 1) in parse_file_contents() 81 offset += bytes_read; in parse_file_contents()
|
| D | SysfsCollector.cpp | 1083 int bytes_read; in logVendorResumeLatencyStats() local 1089 &bytes_read)) in logVendorResumeLatencyStats() 1091 offset += bytes_read; in logVendorResumeLatencyStats() 1096 if (!sscanf(data + offset, "Max Resume Latency: %ld\n%n", &max_latency, &bytes_read)) in logVendorResumeLatencyStats() 1098 offset += bytes_read; in logVendorResumeLatencyStats() 1103 if (!sscanf(data + offset, "Sum Resume Latency: %lu\n%n", &sum_latency, &bytes_read)) in logVendorResumeLatencyStats() 1105 offset += bytes_read; in logVendorResumeLatencyStats() 1121 while (sscanf(data + offset, "%*ld - %*ldms ====> %ld\n%n", &count, &bytes_read) == 1 || in logVendorResumeLatencyStats() 1122 sscanf(data + offset, "%*ld - infms ====> %ld\n%n", &count, &bytes_read) == 1) { in logVendorResumeLatencyStats() 1123 offset += bytes_read; in logVendorResumeLatencyStats() [all …]
|
| /hardware/qcom/audio/hal/audio_extn/ |
| D | audiozoom.c | 124 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/ |
| D | crash_event_logger.c | 242 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 …]
|
| D | setparamblk_test.c | 61 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()
|
| D | tunnel_test_sensor.c | 74 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()
|
| D | tunnel_test.c | 88 int bytes_read = 0; local 373 bytes_read += rft.format.frameSizeInBytes + min_bytes_req; 383 ALOGE("bytes_read so far %d", bytes_read);
|
| /hardware/interfaces/gnss/common/utils/default/ |
| D | DeviceFileReader.cpp | 69 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/qcom/wlan/wcn6740/qcwcn/wifi_hal/ |
| D | ring_buffer.cpp | 357 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/ |
| D | ring_buffer.cpp | 357 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/ |
| D | i2clayer.c | 188 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/ |
| D | omx_vdec_test.cpp | 2831 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 …]
|
| D | decoder_driver_test.c | 1006 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/ |
| D | omx_vdec_test.cpp | 2590 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 …]
|
| D | decoder_driver_test.c | 1069 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/st/nfc/st21nfc/adaptation/ |
| D | i2clayer.cc | 209 size_t bytes_read = 1; in I2cWorkerThread() local 211 while ((bytes_read > 0) && (length > 0)) { in I2cWorkerThread() 212 bytes_read = read(cmdPipe[0], buffer, MAX_BUFFER_SIZE); in I2cWorkerThread() 213 length = length - bytes_read; in I2cWorkerThread()
|
| /hardware/knowles/athletico/sound_trigger_hal/ |
| D | adnc_strm.c | 296 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/ |
| D | platform_info.c | 1089 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()
|
| /hardware/nxp/secure_element/pn8x/ls_client/src/ |
| D | LsLib.cpp | 427 Os_info->bytes_read = 0; in LSC_loadapplet() 435 while (!feof(Os_info->fp) && (Os_info->bytes_read < Os_info->fls_size)) { in LSC_loadapplet() 578 while (!feof(Os_info->fp) && (Os_info->bytes_read < Os_info->fls_size)) { in LSC_Check_KeyIdentifier() 674 Os_info->bytes_read = Os_info->bytes_read + (wCount * 2); in LSC_ReadScript() 687 Os_info->bytes_read = Os_info->bytes_read + (wCount * 2); in LSC_ReadScript() 721 Os_info->bytes_read = Os_info->bytes_read + (wCount * 2); in LSC_ReadScript() 735 Os_info->bytes_read = Os_info->bytes_read + (wCount * 2); in LSC_ReadScript() 760 Os_info->bytes_read = in LSC_ReadScript() 761 Os_info->bytes_read + (wCount * 2) + 1; // not sure why 2 added in LSC_ReadScript() 764 Os_info->bytes_read, wIndex); in LSC_ReadScript()
|
| /hardware/qcom/camera/msm8998/usbcamcore/src/ |
| D | QCameraMjpegDecode.cpp | 622 int bytes_to_read, bytes_read, rc; in decoder_input_req_handler() local 632 bytes_read = 0; in decoder_input_req_handler() 644 bytes_read = bytes_to_read; in decoder_input_req_handler() 648 return bytes_read; in decoder_input_req_handler()
|
| /hardware/libhardware/include/hardware/ |
| D | nvram.h | 276 uint8_t* buffer, uint64_t* bytes_read);
|
| /hardware/qcom/display/msm8996/sdm/libs/core/fb/ |
| D | hw_hdmi.cpp | 495 ssize_t bytes_read = 0; in ReadResolutionFile() local 498 bytes_read = Sys::pread_(fd, config_buffer, kPageSize, 0); in ReadResolutionFile() 502 DLOGI_IF(kTagDriverConfig, "bytes_read = %d", bytes_read); in ReadResolutionFile() 504 return (bytes_read > 0); in ReadResolutionFile()
|