/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/opengl/system/OpenglSystemCommon/ |
D | QemuPipeStream.cpp | 86 int QemuPipeStream::writeFully(const void *buf, size_t len) in writeFully() argument 91 size_t res = len; in writeFully() 95 ssize_t stat = ::write(m_sock, (const char *)(buf) + (len - res), res); in writeFully() 116 const unsigned char *QemuPipeStream::readFully(void *buf, size_t len) in readFully() argument 121 if (len>0) ERR("QemuPipeStream::readFully failed, buf=NULL, len %d", len); in readFully() 124 size_t res = len; in readFully() 126 ssize_t stat = ::read(m_sock, (char *)(buf) + len - res, len); in readFully() 166 int QemuPipeStream::recv(void *buf, size_t len) in recv() argument 171 while(len > 0) { in recv() 172 int res = ::read(m_sock, p, len); in recv() [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/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/generic/goldfish/qemud/ |
D | qemud.c | 160 hex2int( const uint8_t* data, int len ) in hex2int() argument 163 while (len > 0) { in hex2int() 190 len -= 1; in hex2int() 208 fd_read(int fd, void* to, int len) in fd_read() argument 213 ret = read(fd, to, len); in fd_read() 220 fd_write(int fd, const void* from, int len) in fd_write() argument 225 ret = write(fd, from, len); in fd_write() 563 quote( const void* data, int len ) in quote() argument 566 const char* end = p + len; in quote() 645 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/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/asus/grouper/power/ |
D | power.c | 35 int len; in sysfs_write() local 44 len = write(fd, s, strlen(s)); in sysfs_write() 45 if (len < 0) { in sysfs_write() 94 int len; in grouper_power_hint() local
|
/device/samsung/manta/power/ |
D | power_manta.c | 45 int len; in sysfs_write() local 54 len = write(fd, s, strlen(s)); in sysfs_write() 55 if (len < 0) { in sysfs_write() 171 int len; in manta_power_hint() local 176 len = write(manta->boostpulse_fd, "1", 1); in manta_power_hint() 178 if (len < 0) { in manta_power_hint()
|
/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 | 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);
|
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()
|
/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/lge/mako/camera/mm-camera-interface/ |
D | mm_camera_poll_thread.c | 76 int len; in mm_camera_poll_sig() local 83 len = write(poll_cb->data.pfds[1], &cmd_evt, sizeof(cmd_evt)); in mm_camera_poll_sig() 84 if(len < 1) { in mm_camera_poll_sig() 85 CDBG("%s: len = %d, errno = %d", __func__, len, errno); in mm_camera_poll_sig() 89 CDBG("%s: begin IN mutex write done, len = %d", __func__, len); in mm_camera_poll_sig() 105 CDBG("%s: end, len = %d, size = %d", __func__, len, sizeof(cmd_evt)); in mm_camera_poll_sig() 217 int len; in mm_camera_poll_dispatch_buffered_frames() local 222 len = write(poll_cb->data.pfds[1], &cmd, sizeof(cmd)); in mm_camera_poll_dispatch_buffered_frames() 242 int len; in mm_camera_poll_send_ch_event() local 250 len = write(poll_cb->data.pfds[1], &cmd, sizeof(cmd)); in mm_camera_poll_send_ch_event() [all …]
|
D | mm_camera_helper.c | 113 alloc->len = (alloc->len + 4095) & (~4095); in mm_camera_do_mmap_ion() 129 alloc->len, in mm_camera_do_mmap_ion() 283 alloc->len = (alloc->len + 4095) & (~4095); in mm_camera_do_mmap_ion() 299 alloc->len, in mm_camera_do_mmap_ion()
|
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_helper.c | 113 alloc->len = (alloc->len + 4095) & (~4095); in mm_camera_do_mmap_ion() 265 alloc->len = (alloc->len + 4095) & (~4095); in mm_camera_do_mmap_ion() 282 alloc->len, in mm_camera_do_mmap_ion()
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
D | DemoKitActivity.java | 272 int len = ret - i; in run() local 276 if (len >= 3) { in run() 285 if (len >= 3) { in run() 296 if (len >= 3) { in run() 306 if (len >= 3) { in run() 316 i = len; in run()
|
/device/asus/deb/ |
D | releasetools.py | 31 info.script.CacheFreeSpaceCheck(len(source_radio_img)) 35 len(source_radio_img), common.sha1(source_radio_img).hexdigest(), 36 len(target_radio_img), common.sha1(target_radio_img).hexdigest())) 75 if d is None or len(d) > tf.size * common.OPTIONS.patch_threshold:
|
/device/lge/hammerhead/ |
D | releasetools.py | 31 info.script.CacheFreeSpaceCheck(len(source_radio_img)) 35 len(source_radio_img), common.sha1(source_radio_img).hexdigest(), 36 len(target_radio_img), common.sha1(target_radio_img).hexdigest())) 75 if d is None or len(d) > tf.size * common.OPTIONS.patch_threshold:
|
/device/lge/mako/ |
D | releasetools.py | 31 info.script.CacheFreeSpaceCheck(len(source_radio_img)) 35 len(source_radio_img), common.sha1(source_radio_img).hexdigest(), 36 len(target_radio_img), common.sha1(target_radio_img).hexdigest())) 75 if d is None or len(d) > tf.size * common.OPTIONS.patch_threshold:
|