Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 226) sorted by relevance

12345678910

/hardware/libhardware_legacy/audio/
DAudioHardwareGeneric.cpp169 char buffer[SIZE]; in dumpInternals() local
172 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false"); in dumpInternals()
173 result.append(buffer); in dumpInternals()
233 ssize_t AudioStreamOutGeneric::write(const void* buffer, size_t bytes) in write() argument
236 return ssize_t(::write(mFd, buffer, bytes)); in write()
248 char buffer[SIZE]; in dump() local
250 snprintf(buffer, SIZE, "AudioStreamOutGeneric::dump\n"); in dump()
251 result.append(buffer); in dump()
252 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
253 result.append(buffer); in dump()
[all …]
DAudioHardwareStub.cpp102 char buffer[SIZE]; in dumpInternals() local
105 snprintf(buffer, SIZE, "\tmMicMute: %s\n", mMicMute? "true": "false"); in dumpInternals()
106 result.append(buffer); in dumpInternals()
128 ssize_t AudioStreamOutStub::write(const void* buffer, size_t bytes) in write() argument
143 char buffer[SIZE]; in dump() local
145 snprintf(buffer, SIZE, "AudioStreamOutStub::dump\n"); in dump()
146 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
147 snprintf(buffer, SIZE, "\tbuffer size: %d\n", bufferSize()); in dump()
148 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); in dump()
149 snprintf(buffer, SIZE, "\tformat: %d\n", format()); in dump()
[all …]
DAudioPolicyManagerBase.cpp1370 char buffer[SIZE]; in dump() local
1373 snprintf(buffer, SIZE, "\nAudioPolicyManager Dump: %p\n", this); in dump()
1374 result.append(buffer); in dump()
1376 snprintf(buffer, SIZE, " Primary Output: %d\n", mPrimaryOutput); in dump()
1377 result.append(buffer); in dump()
1378 snprintf(buffer, SIZE, " A2DP device address: %s\n", mA2dpDeviceAddress.string()); in dump()
1379 result.append(buffer); in dump()
1380 snprintf(buffer, SIZE, " SCO device address: %s\n", mScoDeviceAddress.string()); in dump()
1381 result.append(buffer); in dump()
1382 snprintf(buffer, SIZE, " USB audio ALSA %s\n", mUsbCardAndDevice.string()); in dump()
[all …]
DAudioHardwareInterface.cpp140 char buffer[SIZE]; in dumpState() local
142 snprintf(buffer, SIZE, "AudioHardwareBase::dumpState\n"); in dumpState()
143 result.append(buffer); in dumpState()
144 snprintf(buffer, SIZE, "\tmMode: %d\n", mMode); in dumpState()
145 result.append(buffer); in dumpState()
/hardware/samsung_slsi/exynos5/mobicore/common/LogWrapper/
Dlog.h141 char buffer[CPL * 4 + OVERHEAD]; in LOG_I_Buf() local
152 index += sprintf(&buffer[index], "%s", szDescriptor); in LOG_I_Buf()
159 index += sprintf(&buffer[index], "memory dump"); in LOG_I_Buf()
161 index += sprintf(&buffer[index], " (0x%08x, %d bytes)", (uint32_t)blob,sizeOfBlob); in LOG_I_Buf()
162 LOG_I("%s", buffer); in LOG_I_Buf()
167 index += sprintf(&buffer[index], "Data at 0x%08x: ", (uint32_t)blob); in LOG_I_Buf()
171 LOG_I("%s", buffer); in LOG_I_Buf()
185 index += sprintf(&buffer[index], "0x%08X | ",addr); in LOG_I_Buf()
191 index += sprintf(&buffer[index], "%02x ", ((const char *)blob)[i] ); in LOG_I_Buf()
198 index += sprintf(&buffer[index], " "); in LOG_I_Buf()
[all …]
/hardware/ril/librilutils/
Drecord_stream.c37 unsigned char *buffer; member
55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE); in record_stream_new()
57 ret->unconsumed = ret->buffer; in record_stream_new()
58 ret->read_end = ret->buffer; in record_stream_new()
59 ret->buffer_end = ret->buffer + maxRecordLen + HEADER_SIZE; in record_stream_new()
67 free(rs->buffer); in record_stream_free()
143 if (p_rs->unconsumed == p_rs->buffer in record_stream_get_next()
153 if (p_rs->unconsumed != p_rs->buffer) { in record_stream_get_next()
159 memmove(p_rs->buffer, p_rs->unconsumed, toMove); in record_stream_get_next()
162 p_rs->read_end = p_rs->buffer + toMove; in record_stream_get_next()
[all …]
/hardware/akm/AK8975_FS/libsensors/
DAdxlSensor.cpp88 char buffer[2]; in setEnable() local
96 buffer[0] = '\0'; in setEnable()
97 buffer[1] = '\0'; in setEnable()
100 if(enabled) buffer[0] = '0'; in setEnable()
102 if(!enabled) buffer[0] = '1'; in setEnable()
104 if (buffer[0] != '\0') { in setEnable()
106 err = write_sys_attribute(input_sysfs_path, buffer, 1); in setEnable()
110 ALOGD("AdxlSensor: Control set %s", buffer); in setEnable()
131 char buffer[16]; in setDelay() local
156 bytes = sprintf(buffer, "%d", rate_val); in setDelay()
[all …]
DAkmSensor.cpp80 char buffer[2]; in setEnable() local
97 buffer[0] = '\0'; in setEnable()
98 buffer[1] = '\0'; in setEnable()
101 if(enabled) buffer[0] = '1'; in setEnable()
103 if(!enabled) buffer[0] = '0'; in setEnable()
106 if (buffer[0] != '\0') { in setEnable()
107 err = write_sys_attribute(input_sysfs_path, buffer, 1); in setEnable()
112 &input_sysfs_path[input_sysfs_path_len], buffer); in setEnable()
115 if (buffer[0] == '1') { in setEnable()
138 char buffer[32]; in setDelay() local
[all …]
/hardware/invensense/60xx/mlsdk/mllite/
Dmldl.c154 unsigned char *buffer) in inv_get_mpu_memory_original() argument
167 memcpy(buffer, &localDmpMemory[offset], length); in inv_get_mpu_memory_original()
733 unsigned short length, unsigned char *buffer) in inv_get_mpu_memory_one_bank() argument
739 ((memAddr + length) > MPU_MEM_BANK_SIZE) || (NULL == buffer)) { in inv_get_mpu_memory_one_bank()
744 memcpy(buffer, &mldlCfg.ram[bank][memAddr], length); in inv_get_mpu_memory_one_bank()
748 ((bank << 8) | memAddr), length, buffer); in inv_get_mpu_memory_one_bank()
779 const unsigned char *buffer) in inv_set_mpu_memory_one_bank() argument
785 ((memAddr + length) > MPU_MEM_BANK_SIZE) || (NULL == buffer)) { in inv_set_mpu_memory_one_bank()
789 different = memcmp(&mldlCfg.ram[bank][memAddr], buffer, length); in inv_set_mpu_memory_one_bank()
790 memcpy(&mldlCfg.ram[bank][memAddr], buffer, length); in inv_set_mpu_memory_one_bank()
[all …]
Dmldl.h138 unsigned char *buffer);
141 const unsigned char *buffer);
142 inv_error_t inv_load_dmp(const unsigned char *buffer,
153 unsigned char *buffer);
168 const unsigned char *buffer);
172 unsigned char *buffer);
DmlFIFOHW.c111 uint_fast16_t inv_get_fifo(uint_fast16_t length, unsigned char *buffer) in inv_get_fifo() argument
121 if (length > MAX_FIFO_LENGTH || toRead > length || NULL == buffer) { in inv_get_fifo()
140 0 ? buffer : buffer + FIFO_FOOTER_SIZE, toRead); in inv_get_fifo()
163 if (buffer[kk] != gFifoFooter[kk]) { in inv_get_fifo()
165 buffer[0], buffer[1]); in inv_get_fifo()
170 sprintf(out, "%s%02X", out, buffer[kk]);} in inv_get_fifo()
/hardware/libhardware/include/hardware/
Dcamera2.h78 buffer_handle_t** buffer);
94 buffer_handle_t* buffer);
99 buffer_handle_t* buffer);
164 buffer_handle_t** buffer);
169 buffer_handle_t* buffer);
234 camera_metadata_t **buffer);
268 camera_metadata_t **buffer);
275 camera_metadata_t *buffer);
281 camera_metadata_t *buffer);
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/src/
Dhevc_utils.cpp134 OMX_IN OMX_U8 *buffer = p_buf_hdr->pBuffer; in isNewFrame() local
147 coef2 = buffer[pos++]; in isNewFrame()
148 coef3 = buffer[pos++]; in isNewFrame()
158 coef3 = buffer[pos++]; in isNewFrame()
167 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
186 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
208 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/samsung_slsi/exynos5/mobicore/daemon/Common/
DConnection.cpp101 size_t Connection::readData(void *buffer, uint32_t len) in readData() argument
103 return readData(buffer, len, -1); in readData()
108 size_t Connection::readData(void *buffer, uint32_t len, int32_t timeout) in readData() argument
115 assert(NULL != buffer); in readData()
149 ret = recv(socketDescriptor, buffer, len, MSG_DONTWAIT); in readData()
159 size_t Connection::writeData(void *buffer, uint32_t len) in writeData() argument
163 assert(NULL != buffer); in writeData()
166 ret = send(socketDescriptor, buffer, len, 0); in writeData()
DNetlinkConnection.cpp169 void *buffer, in readData() argument
173 return readData(buffer, len, -1); in readData()
179 void *buffer, in readData() argument
185 assert(NULL != buffer); in readData()
205 memcpy(buffer, dataStart, dataLen); in readData()
209 memcpy(buffer, dataStart, len); in readData()
230 void *buffer, in writeData() argument
240 assert(NULL != buffer); in writeData()
259 memcpy(NLMSG_DATA(nlh), buffer, len); in writeData()
/hardware/qcom/media/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp1957 OMX_IN OMX_U8* buffer) in use_input_buffer() argument
1964 …IGH("use_input_buffer: port = %lu appData = %p bytes = %lu buffer = %p",port,appData,bytes,buffer); in use_input_buffer()
2016 (*bufferHdr)->pBuffer = (OMX_U8 *)buffer; in use_input_buffer()
2052 … m_pInput_pmem[i].buffer = (unsigned char *)mmap(NULL,m_pInput_pmem[i].size,PROT_READ|PROT_WRITE, in use_input_buffer()
2055 if (m_pInput_pmem[i].buffer == MAP_FAILED) { in use_input_buffer()
2071 m_pInput_pmem[i].buffer = (unsigned char *)buffer; in use_input_buffer()
2081 (*bufferHdr), (*bufferHdr)->pBuffer, m_pInput_pmem[i].buffer); in use_input_buffer()
2117 OMX_IN OMX_U8* buffer) in use_output_buffer() argument
2201 (*bufferHdr)->pBuffer = (OMX_U8 *)buffer; in use_output_buffer()
2238 … m_pOutput_pmem[i].buffer = (unsigned char *)mmap(NULL,align_size,PROT_READ|PROT_WRITE, in use_output_buffer()
[all …]
/hardware/qcom/media/mm-video-legacy/vidc/venc/src/
Domx_video_base.cpp2056 OMX_IN OMX_U8* buffer) in use_input_buffer() argument
2063 …_HIGH("use_input_buffer: port = %d appData = %p bytes = %d buffer = %p",port,appData,bytes,buffer); in use_input_buffer()
2124 (*bufferHdr)->pBuffer = (OMX_U8 *)buffer; in use_input_buffer()
2157 … m_pInput_pmem[i].buffer = (unsigned char *)mmap(NULL,m_pInput_pmem[i].size,PROT_READ|PROT_WRITE, in use_input_buffer()
2160 if(m_pInput_pmem[i].buffer == MAP_FAILED) in use_input_buffer()
2180 m_pInput_pmem[i].buffer = (unsigned char *)buffer; in use_input_buffer()
2192 (*bufferHdr), (*bufferHdr)->pBuffer, m_pInput_pmem[i].buffer); in use_input_buffer()
2231 OMX_IN OMX_U8* buffer) in use_output_buffer() argument
2325 (*bufferHdr)->pBuffer = (OMX_U8 *)buffer; in use_output_buffer()
2357 … m_pOutput_pmem[i].buffer = (unsigned char *)mmap(NULL,m_pOutput_pmem[i].size,PROT_READ|PROT_WRITE, in use_output_buffer()
[all …]
/hardware/broadcom/libbt/src/
Dupio.c256 char buffer = '0'; in upio_set_bluetooth_power() local
261 buffer = '0'; in upio_set_bluetooth_power()
265 buffer = '1'; in upio_set_bluetooth_power()
300 sz = write(fd, &buffer, 1); in upio_set_bluetooth_power()
330 char buffer; in upio_set() local
356 buffer = '1'; in upio_set()
360 buffer = '0'; in upio_set()
370 if (write(fd, &buffer, 1) < 0) in upio_set()
449 buffer = '1'; in upio_set()
451 if (write(fd, &buffer, 1) < 0) in upio_set()
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/
DOMXCapabilities.cpp211 void remove_last_sep(char* buffer) { in remove_last_sep() argument
213 last_sep = strrchr(buffer, PARAM_SEP_CHAR); in remove_last_sep()
229 char * buffer, in encodePixelformatCap() argument
235 if ( ( NULL == buffer ) || ( NULL == cap ) ) { in encodePixelformatCap()
242 strncat(buffer, cap[i].param, bufferSize - 1); in encodePixelformatCap()
243 strncat(buffer, PARAM_SEP, bufferSize - 1); in encodePixelformatCap()
256 char * buffer, in encodeFramerateCap() argument
265 if ( ( NULL == buffer ) || ( NULL == cap ) ) { in encodeFramerateCap()
272 strncat(buffer, cap[i].param, bufferSize - 1); in encodeFramerateCap()
273 strncat(buffer, PARAM_SEP, bufferSize - 1); in encodeFramerateCap()
[all …]
/hardware/samsung_slsi/exynos5/libion_exynos/
Dlibion.cpp106 void ion_free(ion_buffer buffer) in ion_free() argument
108 close(buffer); in ion_free()
111 void *ion_map(ion_buffer buffer, size_t len, off_t offset) in ion_map() argument
114 buffer, offset); in ion_map()
122 int ion_sync(ion_client client, ion_buffer buffer) in ion_sync() argument
126 data.fd = buffer; in ion_sync()
/hardware/qcom/media/mm-video-v4l2/vidc/venc/inc/
Domx_video_base.h223 virtual bool dev_fill_buf(void *buffer, void *,unsigned,unsigned) = 0;
237 void omx_release_meta_buffer(OMX_BUFFERHEADERTYPE *buffer);
239 virtual bool dev_color_align(OMX_BUFFERHEADERTYPE *buffer, OMX_U32 width,
257 OMX_BUFFERHEADERTYPE *buffer
264 OMX_BUFFERHEADERTYPE *buffer
271 OMX_BUFFERHEADERTYPE *buffer
326 OMX_U8 *buffer);
469 OMX_U8 *buffer);
476 OMX_U8 *buffer);
485 OMX_BUFFERHEADERTYPE * buffer);
[all …]
/hardware/qcom/media/mm-video-legacy/vidc/venc/inc/
Domx_video_base.h215 virtual bool dev_fill_buf(void *buffer, void *,unsigned,unsigned) = 0;
224 void omx_release_meta_buffer(OMX_BUFFERHEADERTYPE *buffer);
242 OMX_BUFFERHEADERTYPE *buffer
249 OMX_BUFFERHEADERTYPE *buffer
256 OMX_BUFFERHEADERTYPE *buffer
311 OMX_U8 *buffer);
455 OMX_U8 *buffer);
462 OMX_U8 *buffer);
468 OMX_BUFFERHEADERTYPE * buffer);
471 OMX_BUFFERHEADERTYPE * buffer);
[all …]
/hardware/qcom/media/mm-video-legacy/vidc/vdec/src/
Domx_vdec_copper.cpp128 OMX_BUFFERHEADERTYPE *buffer; in async_message_thread() local
2791 OMX_U8 *buffer = NULL; in use_android_native_buffer() local
2793 buffer = (OMX_U8*)mmap(0, handle->size, in use_android_native_buffer()
2795 if(buffer == MAP_FAILED) { in use_android_native_buffer()
2800 eRet = use_buffer(hComp,params->bufferHeader,params->nPortIndex,data,handle->size,buffer); in use_android_native_buffer()
3784 OMX_IN OMX_U8* buffer) in use_output_buffer() argument
3793 OMX_U8 *buff = buffer; in use_output_buffer()
3902 if(!secure_mode && !buffer) { in use_output_buffer()
3935 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[i], in use_output_buffer()
3978 OMX_IN OMX_U8* buffer) in use_input_heap_buffers() argument
[all …]
Domx_vdec.cpp2960 OMX_U8 *buffer = NULL; in use_android_native_buffer() local
2962 buffer = (OMX_U8*)mmap(0, handle->size, in use_android_native_buffer()
2964 if(buffer == MAP_FAILED) { in use_android_native_buffer()
2969 eRet = use_buffer(hComp,params->bufferHeader,params->nPortIndex,data,handle->size,buffer); in use_android_native_buffer()
4064 OMX_IN OMX_U8* buffer) in use_output_buffer() argument
4075 OMX_U8 *buff = buffer; in use_output_buffer()
4214 if(!secure_mode && !buffer) in use_output_buffer()
4248 memcpy (&setbuffers.buffer,&drv_ctx.ptr_outputbuffer[i], in use_output_buffer()
4296 OMX_IN OMX_U8* buffer) in use_input_heap_buffers() argument
4298 DEBUG_PRINT_LOW("Inside %s, %p\n", __FUNCTION__, buffer); in use_input_heap_buffers()
[all …]
/hardware/libhardware/tests/camera2/
Dcamera2.cpp483 CpuConsumer::LockedBuffer buffer; in TEST_F() local
484 res = rawConsumer->lockNextBuffer(&buffer); in TEST_F()
494 for (unsigned int y = 0; y < buffer.height; y++) { in TEST_F()
496 (const char *)(buffer.data + y * buffer.stride * bpp), in TEST_F()
497 buffer.width * bpp); in TEST_F()
502 res = rawConsumer->unlockBuffer(buffer); in TEST_F()
636 CpuConsumer::LockedBuffer buffer; in TEST_F() local
637 res = rawConsumer->lockNextBuffer(&buffer); in TEST_F()
649 for (unsigned int y = 0; y < buffer.height; y++) { in TEST_F()
651 (const char *)(buffer.data + y * buffer.stride * 2), in TEST_F()
[all …]

12345678910