Searched defs:buffer (Results 1 - 20 of 20) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
H A DTraceFileWriter.java85 byte[] buffer = readTraceData(mInputStream);
86 if (buffer == null) {
91 writeTraceData(buffer, mOutputStream);
96 updateTraceStats(buffer);
110 byte[] buffer = new byte[len];
114 int read = dis.read(buffer, readLen, len - readLen);
125 return buffer;
129 private void writeTraceData(byte[] buffer, DataOutputStream stream) throws IOException { argument
130 stream.writeInt(buffer.length);
131 stream.write(buffer);
134 updateTraceStats(byte[] buffer) argument
[all...]
/sdk/emulator/opengl/shared/OpenglCodecCommon/
H A DSocketStream.cpp91 int SocketStream::writeFully(const void* buffer, size_t size) argument
99 ssize_t stat = ::send(m_sock, (const char *)buffer + (size - res), res, 0);
H A DGLSharedGroup.cpp24 void * buffer = NULL; local
25 if (size>0) buffer = m_fixedBuffer.alloc(size);
26 if (data) memcpy(buffer, data, size);
H A DGLClientState.h425 int buffer = getBuffer(GL_ARRAY_BUFFER); local
426 *ptr = buffer;
431 int buffer = getBuffer(GL_ELEMENT_ARRAY_BUFFER); local
432 *ptr = buffer;
/sdk/emulator/opengl/host/libs/libOpenglRender/
H A DFBConfig.cpp138 void FBConfig::packConfigsInfo(GLuint *buffer) argument
140 memcpy(buffer, s_configAttribs, s_numConfigAttribs * sizeof(GLuint));
142 memcpy(buffer+(i+1)*s_numConfigAttribs,
H A DRenderControl.cpp43 static EGLint rcQueryEGLString(EGLenum name, void* buffer, EGLint bufferSize) argument
56 if (!buffer || len > bufferSize) {
60 strcpy((char *)buffer, str);
64 static EGLint rcGetGLString(EGLenum name, void* buffer, EGLint bufferSize) argument
88 if (!buffer || len > bufferSize) {
92 strcpy((char *)buffer, str);
104 static EGLint rcGetConfigs(uint32_t bufSize, GLuint* buffer) argument
109 if (!buffer || bufSize < neededSize) {
112 FBConfig::packConfigsInfo(buffer);
/sdk/emulator/qtools/
H A Dread_elf.cpp168 int ReadSection(Elf32_Shdr *shdr, void *buffer, FILE *f) argument
172 if (fread(buffer, shdr->sh_size, 1, f) != 1)
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/
H A DDeviceMonitor.java306 byte[] buffer = new byte[length];
307 String result = read(mMainAdbConnection, buffer);
722 byte[] buffer = new byte[length];
723 String result = read(monitorSocket, buffer);
904 private int readLength(SocketChannel socket, byte[] buffer) throws IOException { argument
905 String msg = read(socket, buffer);
920 * Fills a buffer from a socket.
922 * @param buffer
923 * @return the content of the buffer as a string, or null if it failed to convert the buffer
926 read(SocketChannel socket, byte[] buffer) argument
[all...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/builders/
H A DPostCompilerBuilder.java737 private final byte[] buffer = new byte[1024]; field in class:PostCompilerBuilder.JarBuilder
800 while ((count = content.read(buffer)) != -1) {
801 mOutputStream.write(buffer, 0, count);
/sdk/sdkmanager/app/src/com/android/sdkmanager/
H A DMain.java1422 * @param buffer
1425 private String readLine(byte[] buffer) throws IOException { argument
1426 int count = System.in.read(buffer);
1428 // is the input longer than the buffer?
1429 if (count == buffer.length && buffer[count-1] != 10) {
1430 // create a new temp buffer
1437 return new String(buffer, 0, count) + secondHalf;
1441 while (count > 0 && (buffer[count-1] == '\r' || buffer[coun
[all...]
/sdk/emulator/sensors/
H A Dsensors_qemu.c551 char buffer[12]; local
566 ret = qemud_channel_recv(fd, buffer, sizeof buffer-1);
573 buffer[ret] = 0;
577 mask = atoi(buffer);
/sdk/find_java/
H A Dfind_java_lib.cpp165 char* buffer = (char*) malloc(size); local
173 (LPBYTE) buffer, // lpData
178 buffer = (char*) realloc(buffer, size);
180 buffer[size] = 0;
184 if (ret != ERROR_MORE_DATA) outValue->set(buffer);
186 free(buffer);
441 0)) { // nSize (0=default buffer size)
488 char buffer[SIZE]; local
492 // Keep reading in the same buffer locatio
[all...]
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/
H A DSdkUpdaterNoWindow.java453 * Reads current console input in the given buffer.
455 * @param buffer Buffer to hold the user input. Must be larger than the largest
458 * @throws IOException in case the buffer isn't long enough.
460 private String readLine(byte[] buffer) throws IOException { argument
461 int count = System.in.read(buffer);
463 // is the input longer than the buffer?
464 if (count == buffer.length && buffer[count-1] != 10) {
466 "Input is longer than the buffer size, (%1$s) bytes", buffer
[all...]
/sdk/traceview/src/com/android/traceview/
H A DDmTraceReader.java104 MappedByteBuffer buffer = null;
109 buffer = fc.map(FileChannel.MapMode.READ_ONLY, offset, file.length() - offset);
110 buffer.order(ByteOrder.LITTLE_ENDIAN);
112 return buffer;
118 private void readDataFileHeader(MappedByteBuffer buffer) { argument
119 int magic = buffer.getInt();
128 int version = buffer.getShort();
143 int offsetToData = buffer.getShort() - 16;
146 buffer.getLong();
154 mRecordSize = buffer
[all...]
/sdk/emulator/opengl/tests/EGL_host_wrapper/
H A Degl.cpp149 EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list) argument
151 return getDispatch()->eglCreatePbufferFromClientBuffer(dpy, buftype, buffer, config, attrib_list);
159 EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) argument
161 return getDispatch()->eglBindTexImage(dpy, surface, buffer);
164 EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) argument
166 return getDispatch()->eglReleaseTexImage(dpy, surface, buffer);
239 EGLImageKHR eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list) argument
241 return getDispatch()->eglCreateImageKHR(dpy, ctx, target, buffer, attrib_list);
/sdk/emulator/opengl/host/libs/Translator/GLcommon/
H A DGLEScontext.cpp339 directToBytesRanges(first,count,p,ranges); //converting indices range to buffer bytes ranges by offset
340 p->getBufferConversions(ranges,conversions); // getting from the buffer the relevant ranges that still needs to be converted
396 indirectToBytesRanges(indices,indices_type,count,p,ranges); //converting indices range to buffer bytes ranges by offset
397 p->getBufferConversions(ranges,conversions); // getting from the buffer the relevant ranges that still needs to be converted
410 void GLEScontext::bindBuffer(GLenum target,GLuint buffer) { argument
412 m_arrayBuffer = buffer;
414 m_elementBuffer = buffer;
418 void GLEScontext::unbindBuffer(GLuint buffer) { argument
419 if(m_arrayBuffer == buffer)
423 if(m_elementBuffer == buffer)
[all...]
H A DDummyGLfuncs.cpp20 void GLAPIENTRY dummy_glBindBuffer (GLenum target, GLuint buffer){} argument
/sdk/emulator/opengl/host/libs/Translator/EGL/
H A DEglImp.cpp75 EGLImageKHR eglCreateImageKHR(EGLDisplay display, EGLContext context, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
958 EGLDisplay display, EGLenum buftype, EGLClientBuffer buffer,
984 EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) { argument
989 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) { argument
1023 EGLImageKHR eglCreateImageKHR(EGLDisplay display, EGLContext context, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list) argument
1036 unsigned int globalTexName = sg->getGlobalName(TEXTURE, (uintptr_t)buffer);
1042 ObjectDataPtr objData = sg->getObjectData(TEXTURE, (uintptr_t)buffer);
957 eglCreatePbufferFromClientBuffer( EGLDisplay display, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list) argument
/sdk/emulator/opengl/host/libs/Translator/GLES_V2/
H A DGLESv2Imp.cpp186 GL_APICALL void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer){ argument
189 //if buffer wasn't generated before,generate one
190 if(buffer && ctx->shareGroup().Ptr() && !ctx->shareGroup()->isObject(VERTEXBUFFER,buffer)){
191 ctx->shareGroup()->genName(VERTEXBUFFER,buffer);
192 ctx->shareGroup()->setObjectData(VERTEXBUFFER,buffer,ObjectDataPtr(new GLESbuffer()));
194 ctx->bindBuffer(target,buffer);
195 if (buffer) {
196 GLESbuffer* vbo = (GLESbuffer*)ctx->shareGroup()->getObjectData(VERTEXBUFFER,buffer).Ptr();
736 //generating vbo object related to this buffer nam
1499 glIsBuffer(GLuint buffer) argument
[all...]
/sdk/emulator/opengl/host/libs/Translator/GLES_CM/
H A DGLEScmImp.cpp203 GL_API GLboolean GL_APIENTRY glIsBuffer(GLuint buffer) { argument
206 if(buffer && ctx->shareGroup().Ptr()) {
207 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(VERTEXBUFFER,buffer);
286 GL_API void GL_APIENTRY glBindBuffer( GLenum target, GLuint buffer) { argument
290 //if buffer wasn't generated before,generate one
291 if(buffer && ctx->shareGroup().Ptr() && !ctx->shareGroup()->isObject(VERTEXBUFFER,buffer)){
292 ctx->shareGroup()->genName(VERTEXBUFFER,buffer);
293 ctx->shareGroup()->setObjectData(VERTEXBUFFER,buffer,ObjectDataPtr(new GLESbuffer()));
295 ctx->bindBuffer(target,buffer);
[all...]

Completed in 2929 milliseconds