HomeSort by relevance Sort by last modified time
    Searched refs:allocateDirect (Results 1 - 25 of 75) sorted by null

1 2 3

  /external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/
DirectByteBufferTest.java 24 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH);
35 * @tests java.nio.ByteBuffer#allocateDirect(int)
40 ByteBuffer.allocateDirect(-1);
DirectCharBufferTest.java 24 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*2).asCharBuffer();
DirectDoubleBufferTest.java 23 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*8).asDoubleBuffer();
DirectFloatBufferTest.java 23 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*4).asFloatBuffer();
DirectIntBufferTest.java 23 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*4).asIntBuffer();
DirectLongBufferTest.java 24 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*8).asLongBuffer();
DirectShortBufferTest.java 23 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*2).asShortBuffer();
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Cube.java 72 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4);
78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4);
84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length);
StaticTriangleRenderer.java 218 ByteBuffer vbb = ByteBuffer.allocateDirect(VERTS * 3 * 4);
222 ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4);
226 ByteBuffer ibb = ByteBuffer.allocateDirect(VERTS * 2);
TriangleRenderer.java 186 ByteBuffer vbb = ByteBuffer.allocateDirect(VERTS * 3 * 4);
190 ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4);
194 ByteBuffer ibb = ByteBuffer.allocateDirect(VERTS * 2);
  /development/samples/BrowserPlugin/src/com/android/sampleplugin/graphics/
Cube.java 72 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4);
78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4);
84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length);
  /libcore/luni/src/test/java/libcore/java/nio/
NoArrayTest.java 28 assertNoArray(ByteBuffer.allocateDirect(32).asReadOnlyBuffer());
OldDirectIntBufferTest.java 29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40);
OldDirectShortBufferTest.java 29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40);
BufferTest.java 38 testByteSwappedBulkGet(ByteBuffer.allocateDirect(10));
131 testByteSwappedBulkPut(ByteBuffer.allocateDirect(10));
184 testByteBufferByteOrder(ByteBuffer.allocateDirect(10), false);
196 testByteBufferByteOrder(ByteBuffer.allocateDirect(10), true);
211 // allocate/allocateDirect/map always returns a big-endian buffer.
440 testRelativePositions(ByteBuffer.allocateDirect(10));
528 ByteBuffer b = ByteBuffer.allocateDirect(10);
553 ByteBuffer directBuffer = ByteBuffer.allocateDirect(10);
594 assertPutByteBuffer(ByteBuffer.allocate(10), ByteBuffer.allocateDirect(8), false);
597 assertPutByteBuffer(ByteBuffer.allocate(10), ByteBuffer.allocateDirect(8), true)
    [all...]
  /dalvik/tests/070-nio-buffer/src/
Main.java 34 ByteBuffer directBuf = ByteBuffer.allocateDirect(64);
35 //ByteBuffer directBuf = ByteBuffer.allocateDirect(65);
83 ByteBuffer direct = ByteBuffer.allocateDirect(100);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
GLWorld.java 36 ByteBuffer bb = ByteBuffer.allocateDirect(mVertexList.size()*4*4);
40 bb = ByteBuffer.allocateDirect(mVertexList.size()*4*3);
44 bb = ByteBuffer.allocateDirect(mIndexCount*2);
  /frameworks/base/opengl/tests/gldual/src/com/android/gldual/
TriangleRenderer.java 121 ByteBuffer vbb = ByteBuffer.allocateDirect(VERTS * 3 * 4);
125 ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4);
128 ByteBuffer ibb = ByteBuffer.allocateDirect(VERTS * 2);
  /development/samples/GlobalTime/src/com/android/globaltime/
Shape.java 161 ByteBuffer.allocateDirect(indices.length * SHORT_BYTES);
185 ByteBuffer.allocateDirect(indices.length * INT_BYTES);
199 ByteBuffer.allocateDirect(vertices.length * INT_BYTES);
207 ByteBuffer.allocateDirect(texcoords.length * INT_BYTES);
216 ByteBuffer.allocateDirect(normals.length * INT_BYTES);
225 ByteBuffer.allocateDirect(colors.length * INT_BYTES);
  /frameworks/base/opengl/java/android/opengl/
ETC1Util.java 85 ByteBuffer decodedData = ByteBuffer.allocateDirect(stride*height)
160 ByteBuffer headerBuffer = ByteBuffer.allocateDirect(ETC1.ETC_PKM_HEADER_SIZE)
170 ByteBuffer dataBuffer = ByteBuffer.allocateDirect(encodedSize).order(ByteOrder.nativeOrder());
194 ByteBuffer compressedImage = ByteBuffer.allocateDirect(encodedImageSize).
212 ByteBuffer header = ByteBuffer.allocateDirect(ETC1.ETC_PKM_HEADER_SIZE).order(ByteOrder.nativeOrder());
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
Grid.java 48 mVertexBuffer = ByteBuffer.allocateDirect(FLOAT_SIZE * size * 3)
50 mTexCoordBuffer = ByteBuffer.allocateDirect(FLOAT_SIZE * size * 2)
58 mIndexBuffer = ByteBuffer.allocateDirect(CHAR_SIZE * indexCount)
  /development/samples/ApiDemos/src/com/example/android/apis/os/
RotationVectorDemo.java 186 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4);
192 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4);
198 mIndexBuffer = ByteBuffer.allocateDirect(indices.length);
  /external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
DatagramChannelTest.java 765 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL)
784 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL);
795 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_ZERO);
806 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL);
820 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_ONE);
834 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL);
870 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL)
    [all...]
  /libcore/luni/src/test/java/libcore/java/nio/channels/
FileChannelTest.java 72 ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) };
89 ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) };
  /cts/tests/src/android/opengl/cts/
EglConfigGLSurfaceView.java 89 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleVertices.length * 4);
92 mFloatBuffer = ByteBuffer.allocateDirect(triangleVertices.length * 4)
155 mFloatBuffer = ByteBuffer.allocateDirect(triangleVertices.length * 4)

Completed in 1257 milliseconds

1 2 3