/hardware/libhardware/tests/nusensors/ |
H A D | nusensors.cpp | 101 sensors_event_t buffer[numEvents]; local 123 int n = device->poll(device, buffer, numEvents); 131 const sensors_event_t& data = buffer[i];
|
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/src/ |
H A D | hevc_utils.cpp | 114 buffer : buffer containing start code or nal length + NAL units 115 buffer_length : the length of the NAL buffer 134 OMX_IN OMX_U8 *buffer = p_buf_hdr->pBuffer; local 147 coef2 = buffer[pos++]; 148 coef3 = buffer[pos++]; 158 coef3 = buffer[pos++]; 167 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); 186 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type 208 bFirstSliceInPic = ((buffer[po [all...] |
/hardware/samsung_slsi/exynos5/mobicore/daemon/Common/ |
H A D | Connection.cpp | 101 size_t Connection::readData(void *buffer, uint32_t len) argument 103 return readData(buffer, len, -1); 108 size_t Connection::readData(void *buffer, uint32_t len, int32_t timeout) argument 115 assert(NULL != buffer); 149 ret = recv(socketDescriptor, buffer, len, MSG_DONTWAIT); 159 size_t Connection::writeData(void *buffer, uint32_t len) argument 163 assert(NULL != buffer); 166 ret = send(socketDescriptor, buffer, len, 0);
|
H A D | NetlinkConnection.cpp | 159 /* Takeover the buffer */ 169 void *buffer, 173 return readData(buffer, len, -1); 179 void *buffer, 185 assert(NULL != buffer); 205 memcpy(buffer, dataStart, dataLen); 209 memcpy(buffer, dataStart, len); 230 void *buffer, 240 assert(NULL != buffer); 259 memcpy(NLMSG_DATA(nlh), buffer, le local 168 readData( void *buffer, uint32_t len ) argument 178 readData( void *buffer, uint32_t len, int32_t timeout ) argument 229 writeData( void *buffer, uint32_t len ) argument [all...] |
/hardware/akm/AK8975_FS/libsensors/ |
H A D | AkmSensor.cpp | 80 char buffer[2]; local 97 buffer[0] = '\0'; 98 buffer[1] = '\0'; 101 if(enabled) buffer[0] = '1'; 103 if(!enabled) buffer[0] = '0'; 106 if (buffer[0] != '\0') { 107 err = write_sys_attribute(input_sysfs_path, buffer, 1); 112 &input_sysfs_path[input_sysfs_path_len], buffer); 115 if (buffer[0] == '1') { 138 char buffer[3 local [all...] |
H A D | AdxlSensor.cpp | 88 char buffer[2]; local 96 buffer[0] = '\0'; 97 buffer[1] = '\0'; 100 if(enabled) buffer[0] = '0'; 102 if(!enabled) buffer[0] = '1'; 104 if (buffer[0] != '\0') { 106 err = write_sys_attribute(input_sysfs_path, buffer, 1); 110 ALOGD("AdxlSensor: Control set %s", buffer); 131 char buffer[16]; local 156 bytes = sprintf(buffer, " [all...] |
/hardware/invensense/60xx/mlsdk/mllite/ |
H A D | mlFIFOHW.c | 103 * @param buffer 105 * Note that this buffer <b>must</b> be large enough 111 uint_fast16_t inv_get_fifo(uint_fast16_t length, unsigned char *buffer) argument 121 if (length > MAX_FIFO_LENGTH || toRead > length || NULL == buffer) { 131 // fifo_objHW.fifoCount is the footer size left in the buffer, or 140 0 ? buffer : buffer + FIFO_FOOTER_SIZE, toRead); 163 if (buffer[kk] != gFifoFooter[kk]) { 165 buffer[0], buffer[ [all...] |
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
H A D | inv_sysfs_utils.h | 11 * @buffer: Ring buffer attached to FIFO. 12 * @enable: Turns on HW-to-ring buffer flow. 26 const char *buffer; member in struct:inv_sysfs_names_s
|
/hardware/libhardware_legacy/uevent/ |
H A D | uevent.c | 73 int uevent_next_event(char* buffer, int buffer_length) argument 85 int count = recv(fd, buffer, buffer_length, 0); 90 h->handler(h->handler_data, buffer, buffer_length);
|
/hardware/qcom/media/mm-video-legacy/vidc/venc/inc/ |
H A D | omx_video_common.h | 68 void *buffer; member in struct:pmem
|
/hardware/qcom/media/mm-video-v4l2/vidc/venc/inc/ |
H A D | omx_video_common.h | 66 void *buffer; member in struct:pmem
|
/hardware/ril/librilutils/ |
H A D | record_stream.c | 37 unsigned char *buffer; member in struct:RecordStream 55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE); 57 ret->unconsumed = ret->buffer; 58 ret->read_end = ret->buffer; 59 ret->buffer_end = ret->buffer + maxRecordLen + HEADER_SIZE; 67 free(rs->buffer); 72 /* returns NULL; if there isn't a full record in the buffer */ 102 /* one full line in the buffer */ 134 /* is there one record already in the buffer? */ 142 // if the buffer i [all...] |
/hardware/samsung_slsi/exynos5/mobicore/common/LogWrapper/ |
H A D | log.h | 141 char buffer[CPL * 4 + OVERHEAD]; local 152 index += sprintf(&buffer[index], "%s", szDescriptor); 159 index += sprintf(&buffer[index], "memory dump"); 161 index += sprintf(&buffer[index], " (0x%08x, %d bytes)", (uint32_t)blob,sizeOfBlob); 162 LOG_I("%s", buffer); 167 index += sprintf(&buffer[index], "Data at 0x%08x: ", (uint32_t)blob); 171 LOG_I("%s", buffer); 185 index += sprintf(&buffer[index], "0x%08X | ",addr); 191 index += sprintf(&buffer[index], "%02x ", ((const char *)blob)[i] ); 198 index += sprintf(&buffer[inde [all...] |
/hardware/libhardware_legacy/audio/ |
H A D | AudioHardwareInterface.cpp | 140 char buffer[SIZE]; local 142 snprintf(buffer, SIZE, "AudioHardwareBase::dumpState\n"); 143 result.append(buffer); 144 snprintf(buffer, SIZE, "\tmMode: %d\n", mMode); 145 result.append(buffer);
|
H A D | AudioHardwareGeneric.cpp | 169 char buffer[SIZE]; local 172 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false"); 173 result.append(buffer); 233 ssize_t AudioStreamOutGeneric::write(const void* buffer, size_t bytes) argument 236 return ssize_t(::write(mFd, buffer, bytes)); 248 char buffer[SIZE]; local 250 snprintf(buffer, SIZE, "AudioStreamOutGeneric::dump\n"); 251 result.append(buffer); 252 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); 253 result.append(buffer); 343 read(void* buffer, ssize_t bytes) argument 356 char buffer[SIZE]; local [all...] |
H A D | AudioHardwareStub.cpp | 102 char buffer[SIZE]; local 105 snprintf(buffer, SIZE, "\tmMicMute: %s\n", mMicMute? "true": "false"); 106 result.append(buffer); 128 ssize_t AudioStreamOutStub::write(const void* buffer, size_t bytes) argument 143 char buffer[SIZE]; local 145 snprintf(buffer, SIZE, "AudioStreamOutStub::dump\n"); 146 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); 147 snprintf(buffer, SIZE, "\tbuffer size: %d\n", bufferSize()); 148 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); 149 snprintf(buffer, SIZ 174 read(void* buffer, ssize_t bytes) argument 185 char buffer[SIZE]; local [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
H A D | AudioStreamOutALSA.cpp | 110 ssize_t AudioStreamOutALSA::write(const void *buffer, size_t bytes) argument 115 ALOGV("write:: buffer %p, bytes %d", buffer, bytes); 244 (char *)buffer + sent, 248 (char *)buffer + sent,
|
/hardware/ril/rild/ |
H A D | rild.c | 146 char buffer[1024], *p, *q; local 156 len = read(fd,buffer,sizeof(buffer)); } 166 if (strstr(buffer, "android.qemud=") != NULL) 214 p = strstr( buffer, KERNEL_OPTION );
|
/hardware/broadcom/libbt/src/ |
H A D | upio.c | 256 char buffer = '0'; local 261 buffer = '0'; 265 buffer = '1'; 300 sz = write(fd, &buffer, 1); 330 char buffer; local 356 buffer = '1'; 360 buffer = '0'; 370 if (write(fd, &buffer, 1) < 0) 449 buffer = '1'; 451 if (write(fd, &buffer, [all...] |
/hardware/libhardware/modules/gralloc/ |
H A D | framebuffer.cpp | 85 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 87 if (private_handle_t::validate(buffer) < 0) 92 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); 102 m->base.unlock(&m->base, buffer); 105 m->currentBuffer = buffer; 108 // If we can't do the page_flip, just copy the buffer to the front 119 m->base.lock(&m->base, buffer, 126 m->base.unlock(&m->base, buffer);
|
/hardware/libhardware_legacy/qemu/ |
H A D | qemu.c | 251 qemu_command_vformat( char* buffer, argument 262 len = vsnprintf(buffer+4, buffer_size-4, format, args); 267 memcpy(buffer, header, 4); 272 qemu_command_format( char* buffer, argument 281 ret = qemu_command_format(buffer, buffer_size, format, args);
|
/hardware/qcom/display/msm8960/libgralloc/ |
H A D | framebuffer.cpp | 85 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 90 (const_cast<native_handle_t*>(buffer));
|
/hardware/qcom/display/msm8960/liblight/ |
H A D | lights.c | 89 char buffer[20]; local 90 int bytes = sprintf(buffer, "%d\n", value); 91 int amt = write(fd, buffer, bytes);
|
/hardware/qcom/display/msm8974/libgralloc/ |
H A D | framebuffer.cpp | 85 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 90 (const_cast<native_handle_t*>(buffer));
|
/hardware/qcom/display/msm8974/liblight/ |
H A D | lights.c | 89 char buffer[20]; local 90 int bytes = sprintf(buffer, "%d\n", value); 91 int amt = write(fd, buffer, bytes);
|