/hardware/bsp/intel/peripheral/sensors/mraa/ |
D | Sensor.cpp | 39 int bytes_read = 0, bytes_to_read = sizeof(sensors_event_t); in readOneEvent() local 51 bytes_read = read(fd, ptr, bytes_to_read); in readOneEvent() 52 if (bytes_read <= 0) { in readOneEvent() 55 bytes_to_read -= bytes_read; in readOneEvent() 56 ptr += bytes_read; in readOneEvent()
|
/hardware/qcom/audio/msm8909/hal/ |
D | platform_info.c | 344 int bytes_read; in platform_info_init() local 374 bytes_read = fread(buf, 1, BUF_SIZE, file); in platform_info_init() 375 if (bytes_read < 0) { in platform_info_init() 376 ALOGE("%s: fread failed, bytes read = %d", __func__, bytes_read); in platform_info_init() 377 ret = bytes_read; in platform_info_init() 381 if (XML_ParseBuffer(parser, bytes_read, in platform_info_init() 382 bytes_read == 0) == XML_STATUS_ERROR) { in platform_info_init() 389 if (bytes_read == 0) in platform_info_init()
|
/hardware/qcom/audio/hal/ |
D | platform_info.c | 350 int bytes_read; in platform_info_init() local 393 bytes_read = fread(buf, 1, kBufSize, file); in platform_info_init() 394 if (bytes_read < 0) { in platform_info_init() 395 ALOGE("%s: fread failed, bytes read = %d", __func__, bytes_read); in platform_info_init() 396 ret = bytes_read; in platform_info_init() 400 if (XML_ParseBuffer(parser, bytes_read, in platform_info_init() 401 bytes_read == 0) == XML_STATUS_ERROR) { in platform_info_init() 408 if (bytes_read == 0) in platform_info_init()
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
D | ring_buffer.cpp | 345 unsigned int bytes_read = 0; in rb_read() local 349 while (bytes_read < max_length) { in rb_read() 364 (max_length - bytes_read)) { in rb_read() 368 cur_cpy_len = max_length - bytes_read; in rb_read() 374 if (rbc->cur_valid_bytes <= bytes_read) { in rb_read() 380 (max_length - bytes_read)); in rb_read() 388 (max_length - bytes_read)); in rb_read() 391 memcpy((buf + bytes_read), in rb_read() 412 bytes_read += cur_cpy_len; in rb_read() 418 rbc->total_bytes_read += bytes_read; in rb_read() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | ivfdec.c | 73 size_t *bytes_read, size_t *buffer_size) { in ivf_read_frame() argument 107 *bytes_read = frame_size; in ivf_read_frame()
|
D | ivfdec.h | 22 size_t *bytes_read, size_t *buffer_size);
|
D | vpxdec.c | 173 size_t *bytes_read, size_t *buffer_size) { in raw_read_frame() argument 212 *bytes_read = frame_size; in raw_read_frame()
|
/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/bsp/intel/peripheral/libmraa/src/i2c/ |
D | i2c.c | 205 int bytes_read = 0; in mraa_i2c_read() local 207 bytes_read = dev->advance_func->i2c_read_replace(dev, data, length); in mraa_i2c_read() 210 bytes_read = read(dev->fh, data, length); in mraa_i2c_read() 212 if (bytes_read == length) { in mraa_i2c_read()
|
/hardware/qcom/audio/msm8909/mm-audio/aenc-qcelp13/qdsp6/test/ |
D | omx_qcelp13_enc_test.c | 1000 size_t bytes_read=0; in Read_Buffer() local 1006 bytes_read = fread(pBufHdr->pBuffer, 1, pBufHdr->nAllocLen , inputBufferFile); in Read_Buffer() 1008 pBufHdr->nFilledLen = (OMX_U32)bytes_read; in Read_Buffer() 1015 if(bytes_read == 0) in Read_Buffer() 1024 total_pcm_bytes = (unsigned)(total_pcm_bytes + bytes_read); in Read_Buffer() 1027 return (int)bytes_read;; in Read_Buffer()
|
/hardware/qcom/audio/msm8909/mm-audio/aenc-amrnb/qdsp6/test/ |
D | omx_amr_enc_test.c | 954 size_t bytes_read=0; in Read_Buffer() local 960 bytes_read = fread(pBufHdr->pBuffer, 1, pBufHdr->nAllocLen , inputBufferFile); in Read_Buffer() 962 pBufHdr->nFilledLen = (OMX_U32)bytes_read; in Read_Buffer() 969 if(bytes_read == 0) in Read_Buffer() 978 total_pcm_bytes = (unsigned)(total_pcm_bytes + bytes_read); in Read_Buffer() 981 return (int)bytes_read;; in Read_Buffer()
|
/hardware/qcom/audio/msm8909/mm-audio/aenc-evrc/qdsp6/test/ |
D | omx_evrc_enc_test.c | 997 size_t bytes_read=0; in Read_Buffer() local 1003 bytes_read = fread(pBufHdr->pBuffer, 1, pBufHdr->nAllocLen , inputBufferFile); in Read_Buffer() 1005 pBufHdr->nFilledLen = (OMX_U32)bytes_read; in Read_Buffer() 1012 if(bytes_read == 0) in Read_Buffer() 1021 total_pcm_bytes = (unsigned)(total_pcm_bytes + bytes_read); in Read_Buffer() 1024 return (int)bytes_read;; in Read_Buffer()
|
/hardware/qcom/camera/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/qcom/audio/msm8909/mm-audio/aenc-aac/qdsp6/test/ |
D | omx_aac_enc_test.c | 987 size_t bytes_read=0; in Read_Buffer() local 993 bytes_read = fread(pBufHdr->pBuffer, 1, pBufHdr->nAllocLen , inputBufferFile); in Read_Buffer() 995 pBufHdr->nFilledLen = (OMX_U32)bytes_read; in Read_Buffer() 996 if(bytes_read == 0) in Read_Buffer() 1007 return (int)bytes_read; in Read_Buffer()
|
/hardware/qcom/display/msm8996/sdm/libs/core/fb/ |
D | hw_hdmi.cpp | 496 ssize_t bytes_read = 0; in ReadResolutionFile() local 499 bytes_read = Sys::pread_(fd, config_buffer, kPageSize, 0); in ReadResolutionFile() 503 DLOGI_IF(kTagDriverConfig, "bytes_read = %d", bytes_read); in ReadResolutionFile() 505 return (bytes_read > 0); in ReadResolutionFile()
|
/hardware/libhardware/include/hardware/ |
D | nvram.h | 287 uint8_t* buffer, uint64_t* bytes_read);
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/ |
D | video_encoder_test.c | 1047 int bytes_read = 0; in read_frame() local 1060 bytes_read = fread(&dataptr[readOffset],1,length,inputBufferFile); in read_frame() 1063 return bytes_read; in read_frame()
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
D | svc_test.cc | 417 const size_t bytes_read = fread(stats_buf.buf, 1, stats_buf.sz, stats_file); in TEST_F() local 418 ASSERT_EQ(bytes_read, stats_buf.sz); in TEST_F()
|
/hardware/intel/common/libmix/mix_audio/src/ |
D | mixaudio.c | 1032 gint bytes_read; in mix_audio_capture_encode_default() local 1055 bytes_read = readv(mix->fileDescriptor, vec, iovoutcnt); in mix_audio_capture_encode_default() 1056 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_INFO, "end readv(), return: %d\n", bytes_read); in mix_audio_capture_encode_default() 1057 if (bytes_read < 0) { // TODO: should not be 0, but driver return 0 right now in mix_audio_capture_encode_default() 1058 mix_log(MIX_AUDIO_COMP, MIX_LOG_LEVEL_ERROR, "return: %d\n", bytes_read); in mix_audio_capture_encode_default()
|
/hardware/qcom/media/msm8996/videopp/src/ |
D | omx_vdpp.cpp | 301 int error_code = 0,rc=0,bytes_read = 0,bytes_written = 0; in async_message_thread() local
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_hevc.cpp | 150 int error_code = 0,rc=0,bytes_read = 0,bytes_written = 0; in async_message_thread() local
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | omx_vdec_hevc.cpp | 146 int error_code = 0,rc=0,bytes_read = 0,bytes_written = 0; in async_message_thread() local
|