/device/generic/goldfish/opengl/system/OpenglSystemCommon/ |
D | QemuPipeStream.cpp | 86 int QemuPipeStream::writeFully(const void *buf, size_t len) in writeFully() argument 91 if (len>0) ERR("QemuPipeStream::writeFully failed, buf=NULL, len %d", len); in writeFully() 95 size_t res = len; in writeFully() 99 ssize_t stat = ::write(m_sock, (const char *)(buf) + (len - res), res); in writeFully() 120 const unsigned char *QemuPipeStream::readFully(void *buf, size_t len) in readFully() argument 125 if (len > 0) { in readFully() 126 ERR("QemuPipeStream::readFully failed, buf=NULL, len %zu", len); in readFully() 130 size_t res = len; in readFully() 132 ssize_t stat = ::read(m_sock, (char *)(buf) + len - res, res); in readFully() 141 ", res %zu): %s\n", buf, len, res, strerror(errno)); in readFully() [all …]
|
D | QemuPipeStream.h | 36 virtual const unsigned char *readFully( void *buf, size_t len); 40 int recv(void *buf, size_t len); 42 virtual int writeFully(const void *buf, size_t len);
|
/device/generic/goldfish/opengl/host/include/libOpenglRender/ |
D | IOStream.h | 35 virtual const unsigned char *readFully( void *buf, size_t len) = 0; 37 virtual int writeFully(const void* buf, size_t len) = 0; 44 unsigned char *alloc(size_t len) { in alloc() argument 46 if (m_buf && len > m_free) { in alloc() 53 if (!m_buf || len > m_bufsize) { in alloc() 54 int allocLen = m_bufsize < len ? len : m_bufsize; in alloc() 66 m_free -= len; in alloc() 81 const unsigned char *readback(void *buf, size_t len) { in readback() argument 83 return readFully(buf, len); in readback()
|
/device/generic/goldfish/opengl/system/renderControl_enc/ |
D | renderControl.attrib | 7 len major sizeof(EGLint) 9 len minor sizeof(EGLint) 13 len buffer bufferSize 17 len buffer bufferSize 21 len numAttribs sizeof(uint32_t) 25 len buffer bufSize 29 len attribs attribs_size 32 len configs configs_size*sizeof(uint32_t) 36 len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height) 40 len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height)
|
/device/generic/goldfish/libqemu/ |
D | test_guest_1.c | 68 int len = snprintf(buff, sizeof(buff), "Hello World %d\n", count); in main() local 69 printf("%4d: Sending %d bytes\n", count, len); in main() 70 int ret = pipe_send(pipe, buff, len); in main() 72 fprintf(stderr,"Sending %d bytes failed: %s\n", len, strerror(errno)); in main() 76 total += len; in main() 79 ret = pipe_recv(pipe, buff2, len); in main() 86 if (ret != len) { in main() 87 fprintf(stderr, "Message size mismatch sent=%d received=%d\n", len, ret); in main() 90 if (memcmp(buff, buff2, len) != 0) { in main()
|
D | test_guest_2.c | 164 int pos, len; in main() local 174 len = bufferSize; in main() 175 while (len > 0) { in main() 176 ret = pipe_recv(pipe, buffer2 + pos, len); in main() 186 len -= ret; in main()
|
/device/htc/flounder/power/ |
D | power_flounder.c | 64 int len; in sysfs_write() local 73 len = write(fd, s, strlen(s)); in sysfs_write() 74 if (len < 0) { in sysfs_write() 87 int len = property_get(SVELTE_MAX_FREQ_PROP, prop_buffer, LOW_POWER_MAX_FREQ); in calculate_max_cpu_freq() local 88 max_cpu_freq = strndup(prop_buffer, len); in calculate_max_cpu_freq() 89 len = property_get(SVELTE_LOW_POWER_MAX_FREQ_PROP, prop_buffer, LOW_POWER_MAX_FREQ); in calculate_max_cpu_freq() 90 low_power_max_cpu_freq = strndup(prop_buffer, len); in calculate_max_cpu_freq() 135 int len; in boostpulse_open() local 159 len = write(gpu_boost_fd, GPU_FREQ_CONSTRAINT, in boostpulse_open() 161 if (len < 0) { in boostpulse_open() [all …]
|
/device/generic/goldfish/qemud/ |
D | qemud.c | 161 hex2int( const uint8_t* data, int len ) in hex2int() argument 164 while (len > 0) { in hex2int() 191 len -= 1; in hex2int() 209 fd_read(int fd, void* to, int len) in fd_read() argument 214 ret = read(fd, to, len); in fd_read() 221 fd_write(int fd, const void* from, int len) in fd_write() argument 226 ret = write(fd, from, len); in fd_write() 564 quote( const void* data, int len ) in quote() argument 567 const char* end = p + len; in quote() 646 int len; member [all …]
|
/device/generic/goldfish/qemu-props/ |
D | qemu-props.c | 86 int len = qemud_channel_recv(qemud_fd, temp, sizeof temp - 1); in main() local 89 if (len < 0 || len > BUFF_SIZE-1 || temp[0] == '\0') in main() 92 temp[len] = '\0'; /* zero-terminate string */ in main() 94 DD("received: %.*s", len, temp); in main()
|
/device/google/accessory/arduino/AndroidAccessory/ |
D | AndroidAccessory.cpp | 117 int len; in findEndpoints() local 128 len = descBuff[2] | ((int)descBuff[3] << 8); in findEndpoints() 129 if (len > sizeof(descBuff)) { in findEndpoints() 135 err = usb.getConfDescr(addr, 0, len, 0, (char *)descBuff); in findEndpoints() 144 while (p < (descBuff + len)){ in findEndpoints() 263 int AndroidAccessory::read(void *buff, int len, unsigned int nakLimit) in read() argument 265 return usb.newInTransfer(1, in, len, (char *)buff, nakLimit); in read() 268 int AndroidAccessory::write(void *buff, int len) in write() argument 270 usb.outTransfer(1, out, len, (char *)buff); in write() 271 return len; in write()
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_stream.c | 1701 buf_planes->plane_info.mp[0].len = stride * scanline; in mm_stream_calc_offset_preview() 1712 buf_planes->plane_info.mp[1].len = in mm_stream_calc_offset_preview() 1722 PAD_TO_SIZE(buf_planes->plane_info.mp[0].len + in mm_stream_calc_offset_preview() 1723 buf_planes->plane_info.mp[1].len, in mm_stream_calc_offset_preview() 1733 buf_planes->plane_info.mp[0].len = in mm_stream_calc_offset_preview() 1746 buf_planes->plane_info.mp[1].len = in mm_stream_calc_offset_preview() 1757 PAD_TO_SIZE(buf_planes->plane_info.mp[0].len + in mm_stream_calc_offset_preview() 1758 buf_planes->plane_info.mp[1].len, in mm_stream_calc_offset_preview() 1768 buf_planes->plane_info.mp[0].len = stride * scanline; in mm_stream_calc_offset_preview() 1779 buf_planes->plane_info.mp[1].len = in mm_stream_calc_offset_preview() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_ionbuf.c | 53 p_buffer->alloc.len = p_buffer->size; in buffer_allocate() 65 p_buffer->alloc.len = (p_buffer->alloc.len + 4095) & (~4095); in buffer_allocate() 69 p_buffer->alloc.len); in buffer_allocate() 83 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_ionbuf.c | 53 p_buffer->alloc.len = p_buffer->size; in buffer_allocate() 65 p_buffer->alloc.len = (p_buffer->alloc.len + 4095) & (~4095); in buffer_allocate() 69 p_buffer->alloc.len); in buffer_allocate() 83 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
|
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
D | SocketStream.cpp | 113 const unsigned char *SocketStream::readFully(void *buf, size_t len) in readFully() argument 120 size_t res = len; in readFully() 122 ssize_t stat = ::recv(m_sock, (char *)(buf) + len - res, res, 0); in readFully() 154 int SocketStream::recv(void *buf, size_t len) in recv() argument 159 res = ::recv(m_sock, (char *)buf, len, 0); in recv()
|
D | Win32PipeStream.cpp | 197 const unsigned char *Win32PipeStream::readFully(void *buf, size_t len) in readFully() argument 208 size_t res = len; in readFully() 211 … if (! ::ReadFile(m_pipe, (char *)buf + (len - res), res, &readcount, NULL) || readcount == 0) { in readFully() 222 size_t len = *inout_len; in read() local 232 if (!::ReadFile(m_pipe, (char *)buf, len, &readcount, NULL)) { in read()
|
D | GLDecoderContextData.h | 54 void storePointerData(unsigned int loc, void *data, size_t len) { in storePointerData() argument 57 m_pointerData[loc].alloc(len); in storePointerData() 58 memcpy(m_pointerData[loc].ptr(), data, len); in storePointerData()
|
D | SocketStream.h | 35 virtual const unsigned char *readFully(void *buf, size_t len); 39 virtual int recv(void *buf, size_t len); 40 virtual int writeFully(const void *buf, size_t len);
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_stream.c | 1665 buf_planes->plane_info.mp[0].len = stride * scanline; in mm_stream_calc_offset_preview() 1674 buf_planes->plane_info.mp[1].len = in mm_stream_calc_offset_preview() 1682 PAD_TO_SIZE(buf_planes->plane_info.mp[0].len + in mm_stream_calc_offset_preview() 1683 buf_planes->plane_info.mp[1].len, in mm_stream_calc_offset_preview() 1693 buf_planes->plane_info.mp[0].len = in mm_stream_calc_offset_preview() 1704 buf_planes->plane_info.mp[1].len = in mm_stream_calc_offset_preview() 1713 PAD_TO_SIZE(buf_planes->plane_info.mp[0].len + in mm_stream_calc_offset_preview() 1714 buf_planes->plane_info.mp[1].len, in mm_stream_calc_offset_preview() 1724 buf_planes->plane_info.mp[0].len = stride * scanline; in mm_stream_calc_offset_preview() 1733 buf_planes->plane_info.mp[1].len = in mm_stream_calc_offset_preview() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_stream.c | 1672 buf_planes->plane_info.mp[0].len = stride * scanline; in mm_stream_calc_offset_preview() 1681 buf_planes->plane_info.mp[1].len = in mm_stream_calc_offset_preview() 1689 PAD_TO_SIZE(buf_planes->plane_info.mp[0].len + in mm_stream_calc_offset_preview() 1690 buf_planes->plane_info.mp[1].len, in mm_stream_calc_offset_preview() 1700 buf_planes->plane_info.mp[0].len = in mm_stream_calc_offset_preview() 1711 buf_planes->plane_info.mp[1].len = in mm_stream_calc_offset_preview() 1720 PAD_TO_SIZE(buf_planes->plane_info.mp[0].len + in mm_stream_calc_offset_preview() 1721 buf_planes->plane_info.mp[1].len, in mm_stream_calc_offset_preview() 1731 buf_planes->plane_info.mp[0].len = stride * scanline; in mm_stream_calc_offset_preview() 1740 buf_planes->plane_info.mp[1].len = in mm_stream_calc_offset_preview() [all …]
|
D | mm_camera_thread.c | 85 int len; in mm_camera_poll_sig_async() local 95 len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); in mm_camera_poll_sig_async() 96 if(len < 1) { in mm_camera_poll_sig_async() 97 CDBG_ERROR("%s: len = %d, errno = %d", __func__, len, errno); in mm_camera_poll_sig_async() 102 CDBG("%s: begin IN mutex write done, len = %d", __func__, len); in mm_camera_poll_sig_async() 130 int len; in mm_camera_poll_sig() local 140 len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); in mm_camera_poll_sig() 141 if(len < 1) { in mm_camera_poll_sig() 142 CDBG_ERROR("%s: len = %d, errno = %d", __func__, len, errno); in mm_camera_poll_sig() 147 CDBG("%s: begin IN mutex write done, len = %d", __func__, len); in mm_camera_poll_sig()
|
/device/asus/fugu/libaudio/ |
D | AudioHotplugThread.cpp | 178 static int s_get_alsa_card_name(char *name, size_t len, int card_id) in s_get_alsa_card_name() argument 182 snprintf(name, len, "/proc/asound/card%d/id", card_id); in s_get_alsa_card_name() 185 amt = read(fd, name, len - 1); in s_get_alsa_card_name() 201 int len; in getDeviceInfo() local 234 len = s_get_alsa_card_name(cardName, sizeof(cardName), pcmCard); in getDeviceInfo() 235 ALOGD("AudioHotplugThread get_alsa_card_name returned %d, %s", len, cardName); in getDeviceInfo() 236 if (len > 0) { in getDeviceInfo() 346 if ((ret - i) < (int)(sizeof(struct inotify_event) + event->len)) { in threadLoop() 379 i += sizeof(struct inotify_event) + event->len; in threadLoop()
|
D | AudioOutput.cpp | 384 void AudioOutput::processOneChunk(const uint8_t* data, size_t len, in processOneChunk() argument 403 doPCMWrite(data, len, format); in processOneChunk() 406 mFramesQueuedToDriver += len / frameSize; in processOneChunk() 415 void AudioOutput::doPCMWrite(const uint8_t* data, size_t len, audio_format_t format) { in doPCMWrite() argument 416 if (len == 0 || hasFatalError()) in doPCMWrite() 436 const size_t outputSize = len * 2; in doPCMWrite() 446 memcpy_to_q8_23_from_i16((int32_t*)mStagingBuf, (const int16_t*)data, len >> 1); in doPCMWrite() 450 err = pcm_write(mDevice, data, len); in doPCMWrite() 459 int err = pcm_write(mDevice, data, len); in doPCMWrite()
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_ionbuf.c | 52 p_buffer->alloc.len = p_buffer->size; in buffer_allocate() 64 p_buffer->alloc.len = (p_buffer->alloc.len + 4095) & (~4095); in buffer_allocate() 68 p_buffer->alloc.len); in buffer_allocate() 82 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
|
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/ |
D | QCameraUsbParm.cpp | 149 static String8 create_sizes_str(const camera_size_type *sizes, int len); 150 static String8 create_values_str(const str_map *values, int len); 151 static String8 create_fps_str(const android:: FPSRange* fps, int len); 375 static String8 create_sizes_str(const camera_size_type *sizes, int len) { in create_sizes_str() argument 379 if (len > 0) { in create_sizes_str() 383 for (int i = 1; i < len; i++) { in create_sizes_str() 403 static String8 create_values_str(const str_map *values, int len) { in create_values_str() argument 406 if (len > 0) { in create_values_str() 409 for (int i = 1; i < len; i++) { in create_values_str() 429 static String8 create_fps_str(const android:: FPSRange* fps, int len) { in create_fps_str() argument [all …]
|
/device/asus/fugu/dumpstate/ |
D | dumpstate.c | 27 static void base64_output3(const unsigned char *src, int len) in base64_output3() argument 31 if (len == 1) { in base64_output3() 36 if (len == 2) { in base64_output3()
|