Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 57) sorted by relevance

123

/sdk/emulator/opengl/host/libs/GLESv1_dec/
Dgl.attrib8 len equation (4 * sizeof(float))
12 len params (glUtilsParamSize(pname) * sizeof(GLfloat))
17 len params (glUtilsParamSize(pname) * sizeof(GLfloat))
22 len params (glUtilsParamSize(pname) * sizeof(GLfloat))
27 len params (glUtilsParamSize(pname) * sizeof(GLfloat))
32 len params (glUtilsParamSize(pname) * sizeof(GLfloat))
37 len params (glUtilsParamSize(pname) * sizeof(GLfloat))
41 len params (glUtilsParamSize(pname) * sizeof(GLfloat))
45 len params (glUtilsParamSize(pname) * sizeof(GLfloat))
49 len m (16 * sizeof(GLfloat))
[all …]
/sdk/emulator/opengl/host/include/libOpenglRender/
DIOStream.h35 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()
/sdk/emulator/opengl/host/libs/renderControl_dec/
DrenderControl.attrib7 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)
/sdk/emulator/opengl/host/libs/GLESv2_dec/
Dgl2.attrib7 len name (strlen(name) + 1)
11 len data size
16 len data size
21 len data imageSize
26 len data imageSize
31 len buffers (n * sizeof(GLuint))
36 len framebuffers (n * sizeof(GLuint))
41 len renderbuffers (n * sizeof(GLuint))
46 len textures (n * sizeof(GLuint))
55 len buffers (n * sizeof(GLuint))
[all …]
/sdk/emulator/opengl/host/libs/libOpenglRender/
DReadBuffer.cpp42 size_t len = m_size - m_validData; in getData() local
43 if (len==0) { in getData()
58 len = m_size - m_validData; in getData()
61 if (NULL != m_stream->read(m_buf + m_validData, &len)) { in getData()
62 m_validData += len; in getData()
63 return len; in getData()
DRenderServer.cpp67 size_t len = strlen(addrstr) + 1; in create() local
68 if (len > addrLen) { in create()
70 len, addrLen); in create()
74 memcpy(addr, addrstr, len); in create()
DRenderControl.cpp55 int len = strlen(str) + 1; in rcQueryEGLString() local
56 if (!buffer || len > bufferSize) { in rcQueryEGLString()
57 return -len; in rcQueryEGLString()
61 return len; in rcQueryEGLString()
87 int len = strlen(str) + 1; in rcGetGLString() local
88 if (!buffer || len > bufferSize) { in rcGetGLString()
89 return -len; in rcGetGLString()
93 return len; in rcGetGLString()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
DTraceFileReader.java43 int len; in getMessageAtOffset() local
50 len = file.readInt(); in getMessageAtOffset()
51 if (len > MAX_PROTOBUF_SIZE) { in getMessageAtOffset()
54 len); in getMessageAtOffset()
58 b = new byte[len]; in getMessageAtOffset()
DTraceFileWriter.java102 int len; in readTraceData() local
104 len = dis.readInt(); in readTraceData()
108 len = Integer.reverseBytes(len); // readInt is big endian, we want little endian in readTraceData()
110 byte[] buffer = new byte[len]; in readTraceData()
112 while (readLen < len) { in readTraceData()
114 int read = dis.read(buffer, readLen, len - readLen); in readTraceData()
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/
DSocket.java115 public void send(byte[] data, int offset, int len) throws IOException { in send() argument
121 socket.getOutputStream().write(data, offset, len); in send()
132 public static void receive(LocalSocket socket, byte[] data, int len) throws IOException { in receive() argument
135 while (received != len) { in receive()
136 final int chunk = is.read(data, received, len - received); in receive()
152 public void receive(byte[] data, int len) throws IOException { in receive() argument
158 receive(socket, data, len); in receive()
DChannel.java398 private void sendMessage(Socket socket, int msg_type, byte[] msg, int len) in sendMessage() argument
404 ByteBuffer bb = ByteBuffer.allocate(ProtocolConstants.MESSAGE_HEADER_SIZE + len); in sendMessage()
409 bb.putInt(ProtocolConstants.MESSAGE_HEADER_SIZE + len); in sendMessage()
414 if (len != 0) { in sendMessage()
415 bb.put(msg, 0, len); in sendMessage()
539 public boolean sendQueryResponse(int query_id, byte[] qresp, int len) { in sendQueryResponse() argument
542 ByteBuffer bb = ByteBuffer.allocate(ProtocolConstants.QUERY_RESP_HEADER_SIZE + len); in sendQueryResponse()
547 bb.putInt(ProtocolConstants.QUERY_RESP_HEADER_SIZE + len); in sendQueryResponse()
552 if (qresp != null && len != 0) { in sendQueryResponse()
553 bb.put(qresp, 0, len); in sendQueryResponse()
/sdk/emulator/opengl/shared/emugl/common/
Dsockets.cpp53 socklen_t len; member
66 this->len = static_cast<socklen_t>(sizeof(*this)); in initEmpty()
77 this->len = sizeof(this->inet); in initFromInet()
99 this->len = pathLen + offsetof(sockaddr_un, sun_path); in initFromUnixPath()
111 if (::bind(s, &addr->generic, addr->len) < 0 || in socketBindInternal()
129 ret = ::connect(s, &addr->generic, addr->len); in socketConnectInternal()
159 if (getsockname(s, &addr.generic, &addr.len) < 0) { in socketGetPort()
/sdk/emulator/opengl/shared/OpenglCodecCommon/
DSocketStream.cpp113 const unsigned char *SocketStream::readFully(void *buf, size_t len) in readFully() argument
119 size_t res = len; in readFully()
121 ssize_t stat = ::recv(m_sock, (char *)(buf) + len - res, res, 0); in readFully()
153 int SocketStream::recv(void *buf, size_t len) in recv() argument
158 res = ::recv(m_sock, (char *)buf, len, 0); in recv()
DGLDecoderContextData.h54 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()
DSocketStream.h36 virtual const unsigned char *readFully(void *buf, size_t len);
40 virtual int recv(void *buf, size_t len);
41 virtual int writeFully(const void *buf, size_t len);
DWin32PipeStream.cpp194 const unsigned char *Win32PipeStream::readFully(void *buf, size_t len) in readFully() argument
203 size_t res = len; in readFully()
206 … if (! ::ReadFile(m_pipe, (char *)buf + (len - res), res, &readcount, NULL) || readcount == 0) { in readFully()
217 size_t len = *inout_len; in read() local
227 if (!::ReadFile(m_pipe, (char *)buf, len, &readcount, NULL)) { in read()
DUnixStream.cpp109 socklen_t len = sizeof(addr); in accept() local
110 clientSock = ::accept(m_sock, (sockaddr *)&addr, &len); in accept()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/utils/
DFingerprintUtils.java50 int len = value.length; in toHexadecimalString() local
51 for (int i = 0; i < len; i++) { in toHexadecimalString()
57 if (i < len - 1) { in toHexadecimalString()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImage.java192 int len = array.length; in initArray() local
193 for (int i = 0; i < len; i++) { in initArray()
377 int len = 0; in findPatches() local
381 len = pixels.length - 1; in findPatches()
382 for (int i = 1; i < len; i++) { in findPatches()
403 patch.end = len; in findPatches()
494 int len = 0; in findContentArea() local
498 len = pixels.length - 1; in findContentArea()
499 for (int x = 1; x < len; x++) { in findContentArea()
514 contents.end = len; in findContentArea()
[all …]
/sdk/emulator/mksdcard/src/source/
Dmksdcard.c194 int len = sizeof(empty); in write_empty() local
195 if (len > count) in write_empty()
196 len = count; in write_empty()
197 if ( fwrite( empty, 1, len, file ) != (size_t)len ) { in write_empty()
198 fprintf(stderr, "Failed to write %d bytes: %s\n", len, strerror(errno)); in write_empty()
202 count -= len; in write_empty()
/sdk/find_lock/
Dfind_lock.cpp298 int len = sizeof(kFileW); in isFileHandleType() local
301 for (; type != 0 && len > 0; c+=2, d++, len--) { in isFileHandleType()
336 DWORD len = ((DWORD *)buf)[0]; in FileNameThreadFunc() local
337 if (len <= MAX_PATH * 2) { in FileNameThreadFunc()
345 for (DWORD i = 0; i < len; dest++, src += 2, i += 2) { in FileNameThreadFunc()
353 info->outStr->set(buf + 4, len); in FileNameThreadFunc()
411 WORD len = uniStr->Length; in getProcessName() local
414 if (len <= MAX_PATH * 2) { in getProcessName()
422 for (WORD i = 0; i < len; dest++, src += 2, i += 2) { in getProcessName()
430 outStr->set(buf, len); in getProcessName()
/sdk/find_java/src/source/
Dutils.h106 int len = strlen(str) + 1024; in setv() local
107 mStr = (char *)malloc(len); in setv()
110 int ret = vsnprintf(mStr, len, str, ap); in setv()
114 len *= 2; in setv()
115 } else if (ret >= len) { in setv()
116 len = ret + 1; in setv()
121 mStr = (char *)realloc((void *)mStr, len); in setv()
/sdk/emulator/opengl/tests/translator_tests/GLES_V2/
DtriangleV2.cpp157 int len = 0; in readShader() local
160 len += n; in readShader()
163 n = fread(&buf[len], 1, bSize, fp); in readShader()
165 len += n; in readShader()
167 buf[len] = '\0'; in readShader()
177 GLsizei len; in dumpUniforms() local
182 512, &len, &size, &type, name); in dumpUniforms()
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/
DSensorChannel.java598 final int len = values.length; in onSensorChanged() local
604 if (len > 1) { in onSensorChanged()
606 if (len > 2) { in onSensorChanged()
634 if (len > 1) { in onSensorChanged()
636 if (len > 2) { in onSensorChanged()
/sdk/emulator/opengl/tests/event_injector/
Dsockets.c295 int len = strlen(str); in format_str() local
298 if (len > avail) in format_str()
299 len = avail; in format_str()
301 memcpy( buf, str, len ); in format_str()
302 buf += len; in format_str()
988 socket_recv(int fd, void* buf, int len) in socket_recv() argument
990 SOCKET_CALL(recv(fd, buf, len, 0)); in socket_recv()
994 socket_recvfrom(int fd, void* buf, int len, SockAddress* from) in socket_recvfrom() argument
1000 QSOCKET_CALL(ret,recvfrom(fd,buf,len,0,sa.sa,&salen)); in socket_recvfrom()
1445 socklen_t len; in socket_pair()
[all …]

123