/device/asus/grouper/power/ |
H A D | power.c | 34 char buf[80]; local 39 strerror_r(errno, buf, sizeof(buf)); 40 ALOGE("Error opening %s: %s\n", path, buf); 46 strerror_r(errno, buf, sizeof(buf)); 47 ALOGE("Error writing to %s: %s\n", path, buf); 93 char buf[80]; local
|
/device/samsung/crespo/libsensors/ |
H A D | ProximitySensor.cpp | 74 char buf[2]; local 75 buf[1] = 0; 77 buf[0] = '1'; 79 buf[0] = '0'; 81 write(fd, buf, sizeof(buf));
|
H A D | GyroSensor.cpp | 85 char buf[2]; local 87 buf[1] = 0; 89 buf[0] = '1'; 92 buf[0] = '0'; 94 err = write(fd, buf, sizeof(buf)); 115 char buf[80]; local 116 sprintf(buf, "%lld", delay_ns); 117 write(fd, buf, strlen(buf) [all...] |
H A D | LightSensor.cpp | 62 char buf[80]; local 63 sprintf(buf, "%lld", ns); 64 write(fd, buf, strlen(buf)+1); 79 char buf[2]; local 81 buf[1] = 0; 83 buf[0] = '1'; 85 buf[0] = '0'; 87 err = write(fd, buf, sizeof(buf)); [all...] |
/device/samsung/tuna/libsensors/ |
H A D | SamsungSensorBase.cpp | 126 char buf[21]; local 133 sprintf(buf, "%lld", ns); 134 write(fd, buf, strlen(buf)+1);
|
/device/samsung/tuna/power/ |
H A D | power_tuna.c | 39 char buf[80]; local 44 strerror_r(errno, buf, sizeof(buf)); 45 ALOGE("Error opening %s: %s\n", path, buf); 51 strerror_r(errno, buf, sizeof(buf)); 52 ALOGE("Error writing to %s: %s\n", path, buf); 79 char buf[80]; local 88 strerror_r(errno, buf, sizeof(buf)); 114 char buf[80]; local [all...] |
/device/asus/grouper/audio/ |
H A D | audio_route.c | 406 void *buf; local 447 buf = XML_GetBuffer(parser, BUF_SIZE); 448 if (buf == NULL) 451 bytes_read = fread(buf, 1, BUF_SIZE, file);
|
H A D | audio_hw.c | 459 struct resampler_buffer buf = { local 463 get_next_buffer(&in->buf_provider, &buf); 464 if (buf.raw != NULL) { 467 buf.raw, 468 buf.frame_count * audio_stream_frame_size(&in->stream.common)); 469 frames_rd = buf.frame_count; 471 release_buffer(&in->buf_provider, &buf);
|
/device/google/accessory/arduino/USB_Host_Shield/ |
H A D | Usb.cpp | 342 USB_DEVICE_DESCRIPTOR buf;
local 402 rcode = getDevDescr( 0, 0, 8, ( char* )&buf );
404 devtable[ 0 ].epinfo->MaxPktSize = buf.bMaxPacketSize0;
|
/device/moto/wingray/taudio/ |
H A D | resample.c | 129 int16_t buf[2048]; local 212 nr = read(ifd, buf + consumed, sizeof(buf) - consumed); 221 nr_out = downsample(buf, buf, nr / 2, &consumed, divs, divs_len, channels == 2); 226 memcpy(buf, buf + consumed, nr - consumed); 233 nw = write(ofd, buf, nr_out);
|
/device/samsung/crespo/sec_mm/sec_omx/sec_osal/ |
H A D | SEC_OSAL_Buffer.cpp | 114 android_native_buffer_t *buf; local 121 buf = (android_native_buffer_t *)pUnreadableBuffer; 122 SEC_OSAL_Log(SEC_LOG_TRACE, "pUnreadableBuffer:0x%x, buf:0x%x, buf->handle:0x%x", 123 pUnreadableBuffer, buf, buf->handle); 125 ret = mapper.lock(buf->handle, GRALLOC_USAGE_SW_WRITE_OFTEN, bounds, pVirAddrs); 136 android_native_buffer_t *buf; local 143 buf = (android_native_buffer_t *)pUnreadableBuffer; 147 return mapper.unlock(buf 314 android_native_buffer_t *buf = (android_native_buffer_t *)buffer; local 427 buffer_handle_t buf = *((buffer_handle_t *) (pInputDataBuffer + 4)); local [all...] |
/device/samsung/tuna/reflash-bootloader/ |
H A D | reflash-bootloader.c | 72 char buf[] = "3\n"; local 78 ret = write(fd, buf, sizeof(buf)); 83 static void read_file(const char *filename, char *buf, size_t size) argument 92 ret = read(fd, buf, size - 1); 95 buf[ret] = 0; 96 while (buf[ret - 1] == '\n') 97 buf[--ret] = 0; 129 char buf[4096]; local 133 memset(buf, 214 char buf[4096]; local [all...] |
/device/samsung/crespo/libhwcomposer/ |
H A D | SecHWCUtils.cpp | 334 struct v4l2_buffer buf; local 336 buf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT; 337 buf.memory = V4L2_MEMORY_USERPTR; 338 buf.m.userptr = (unsigned long)fimc_buf; 339 buf.length = 0; 340 buf.index = 0; 342 if (ioctl (fd, VIDIOC_QBUF, &buf) < 0) { 352 struct v4l2_buffer buf; local 354 buf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT; 355 buf [all...] |
/device/samsung/crespo/libs3cjpeg/ |
H A D | JpegEncoder.cpp | 742 char buf[4] = { 0,}; local 744 memcpy(buf, pValue, count); 751 memcpy(*pCur, buf, 4);
|
/device/samsung/tuna/recovery/ |
H A D | bootloader.c | 205 char buf[SECTOR_SIZE]; local 206 if (read(mmcfd, buf, SECTOR_SIZE) != SECTOR_SIZE) { 212 memset(buf, 0, 8); 221 curr = buf;
|
/device/moto/stingray/whisper/ |
H A D | Whisper_AccyMain.c | 142 char buf[SIZE]; local 161 count = read(switchFd, buf, SIZE); 170 if (buf[0] == DOCK_ATTACHED) { 215 else if (buf[0] == DOCK_NOT_ATTACHED) {
|
/device/moto/wingray/libaudio/ |
H A D | AudioHardware.cpp | 1360 char buf[bufSize]; local 1361 memset(buf, 0, bufSize); 1363 ::write(fd, buf, bufSize); 1632 ALOGE("read: buf size problem. %d>%d",(int)bytes,sizeof(mInScratch));
|
/device/samsung/crespo/libaudio/ |
H A D | AudioHardware.cpp | 1531 struct resampler_buffer buf = { local 1535 getNextBuffer(&buf); 1536 if (buf.raw != NULL) { 1538 buf.raw, 1539 buf.frame_count * frameSize()); 1540 framesRd = buf.frame_count; 1542 releaseBuffer(&buf); 1688 uint32_t buf[sizeof(effect_param_t) / sizeof(uint32_t) + 2]; local 1689 effect_param_t *param = (effect_param_t *)buf;
|
/device/samsung/crespo/libcamera/ |
H A D | SecCameraHWInterface.cpp | 957 void CameraHardwareSec::save_postview(const char *fname, uint8_t *buf, uint32_t size) argument 972 nw = ::write(fd, buf + written, size - written); 2341 struct preview_stream_ops *buf) 2344 return obj(dev)->setPreviewWindow(buf); 2340 HAL_camera_device_set_preview_window(struct camera_device *dev, struct preview_stream_ops *buf) argument
|
/device/ti/panda/audio/ |
H A D | audio_hw.c | 543 * NB. When remix_func is called, the memory at `buf` must be at least 547 void (*remix_func)(struct buffer_remix *data, void *buf, size_t frames); 664 static void remove_channels_from_buf(struct buffer_remix *data, void *buf, size_t frames) argument 670 LOGFUNC("%s(%p, %p, %d)", __FUNCTION__, data, buf, frames); 685 d = (char*)buf + out_frame; 686 s = (char*)buf + in_frame; 1671 void *buf; local 1703 buf = out->buffer; 1719 buf = (void *)buffer; 1747 ret = pcm_mmap_write(out->pcm, (void *)buf, out_frame 2131 uint32_t buf[sizeof(effect_param_t) / sizeof(uint32_t) + 2]; local 2150 audio_buffer_t buf; local 2268 struct resampler_buffer buf = { local [all...] |
/device/samsung/tuna/audio/ |
H A D | audio_hw.c | 2016 void *buf; local 2059 buf = (void *)out->buffer; 2062 buf = (void *)buffer; 2084 ret = pcm_mmap_write(out->pcm[PCM_NORMAL], buf, out_frames * frame_size); 2210 /* force read and proc buf reallocation case of frame size or channel count change */ 2469 uint32_t buf[sizeof(effect_param_t) / sizeof(uint32_t) + 2]; local 2470 effect_param_t *param = (effect_param_t *)buf; 2486 audio_buffer_t buf; local 2491 buf.frameCount = frames; 2492 buf 2590 struct resampler_buffer buf = { local [all...] |