/libcore/luni/src/main/java/java/nio/ |
CharToByteBufferAdapter.java | 36 private final ByteBuffer byteBuffer; 38 static CharBuffer asCharBuffer(ByteBuffer byteBuffer) { 39 ByteBuffer slice = byteBuffer.slice(); 40 slice.order(byteBuffer.order()); 44 private CharToByteBufferAdapter(ByteBuffer byteBuffer) { 45 super(byteBuffer.capacity() / SizeOf.CHAR) [all...] |
DoubleToByteBufferAdapter.java | 36 private final ByteBuffer byteBuffer; 38 static DoubleBuffer asDoubleBuffer(ByteBuffer byteBuffer) { 39 ByteBuffer slice = byteBuffer.slice(); 40 slice.order(byteBuffer.order()); 44 private DoubleToByteBufferAdapter(ByteBuffer byteBuffer) { 45 super(byteBuffer.capacity() / SizeOf.DOUBLE) [all...] |
FloatToByteBufferAdapter.java | 35 private final ByteBuffer byteBuffer; 37 static FloatBuffer asFloatBuffer(ByteBuffer byteBuffer) { 38 ByteBuffer slice = byteBuffer.slice(); 39 slice.order(byteBuffer.order()); 43 FloatToByteBufferAdapter(ByteBuffer byteBuffer) { 44 super(byteBuffer.capacity() / SizeOf.FLOAT) [all...] |
IntToByteBufferAdapter.java | 36 private final ByteBuffer byteBuffer; 38 static IntBuffer asIntBuffer(ByteBuffer byteBuffer) { 39 ByteBuffer slice = byteBuffer.slice(); 40 slice.order(byteBuffer.order()); 44 private IntToByteBufferAdapter(ByteBuffer byteBuffer) { 45 super(byteBuffer.capacity() / SizeOf.INT) [all...] |
LongToByteBufferAdapter.java | 36 private final ByteBuffer byteBuffer; 38 static LongBuffer asLongBuffer(ByteBuffer byteBuffer) { 39 ByteBuffer slice = byteBuffer.slice(); 40 slice.order(byteBuffer.order()); 44 private LongToByteBufferAdapter(ByteBuffer byteBuffer) { 45 super(byteBuffer.capacity() / SizeOf.LONG) [all...] |
ShortToByteBufferAdapter.java | 35 private final ByteBuffer byteBuffer; 37 static ShortBuffer asShortBuffer(ByteBuffer byteBuffer) { 38 ByteBuffer slice = byteBuffer.slice(); 39 slice.order(byteBuffer.order()); 43 private ShortToByteBufferAdapter(ByteBuffer byteBuffer) { 44 super(byteBuffer.capacity() / SizeOf.SHORT) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
NinePatchChunk.java | 21 import java.nio.ByteBuffer; 37 private static void readIntArray(int[] data, ByteBuffer buffer) { 50 ByteBuffer byteBuffer = 51 ByteBuffer.wrap(data).order(ByteOrder.nativeOrder()); 53 byte wasSerialized = byteBuffer.get(); 57 chunk.mDivX = new int[byteBuffer.get()]; 58 chunk.mDivY = new int[byteBuffer.get()]; 59 chunk.mColor = new int[byteBuffer.get()]; 65 byteBuffer.getInt() [all...] |
/libcore/luni/src/test/java/libcore/java/nio/ |
OldDirectIntBufferTest.java | 18 import java.nio.ByteBuffer; 29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40); 30 byteBuffer.order(ByteOrder.nativeOrder()); 31 IntBuffer intBuffer = byteBuffer.asIntBuffer();
|
OldDirectShortBufferTest.java | 18 import java.nio.ByteBuffer; 29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40); 30 byteBuffer.order(ByteOrder.nativeOrder()); 31 ShortBuffer shortBuffer = byteBuffer.asShortBuffer();
|
/external/icu4c/samples/layout/ |
UnicodeReader.cpp | 32 char *byteBuffer; 83 byteBuffer = new char[fileSize]; 85 if(byteBuffer == 0) { 92 fread(byteBuffer, sizeof(char), fileSize, f); 97 delete[] byteBuffer; 102 UnicodeString myText(byteBuffer, fileSize, cp); 104 delete[] byteBuffer;
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest1Test.java | 20 import java.nio.ByteBuffer; 106 * @tests java.security.MessageDigest#update(ByteBuffer) 111 ByteBuffer byteBuffer = ByteBuffer.wrap(b); 113 int limit = byteBuffer.limit(); 114 md.update(byteBuffer); 116 assertEquals(byteBuffer.limit(), byteBuffer.position()); 117 assertEquals(limit, byteBuffer.limit()) [all...] |
/system/media/mca/filterfw/java/android/filterfw/basefilters/ |
InputStreamSource.java | 33 import java.nio.ByteBuffer; 65 ByteBuffer byteBuffer = null; 76 byteBuffer = ByteBuffer.wrap(byteStream.toByteArray()); 85 output.setData(byteBuffer);
|
/frameworks/base/media/java/android/media/videoeditor/ |
TransitionAlpha.java | 25 import java.nio.ByteBuffer; 126 ByteBuffer byteBuffer = ByteBuffer.allocate(framingBuffer.length * 4); 129 byte[] array = byteBuffer.array(); 133 intBuffer = byteBuffer.asIntBuffer();
|
OverlayFrame.java | 25 import java.nio.ByteBuffer; 444 ByteBuffer byteBuffer = ByteBuffer.allocate(framingBuffer.length * 4); 447 byte[] array = byteBuffer.array(); 451 intBuffer = byteBuffer.asIntBuffer();
|
MediaItem.java | 28 import java.nio.ByteBuffer; 768 ByteBuffer byteBuffer = ByteBuffer.allocate(framingBuffer.length * 4); 771 byte[] array = byteBuffer.array(); 774 intBuffer = byteBuffer.asIntBuffer();
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest1Test.java | 20 import java.nio.ByteBuffer; 109 * java.security.MessageDigest#update(ByteBuffer) 114 ByteBuffer byteBuffer = ByteBuffer.wrap(b); 116 int limit = byteBuffer.limit(); 117 md.update(byteBuffer); 119 assertEquals(byteBuffer.limit(), byteBuffer.position()); 120 assertEquals(limit, byteBuffer.limit()) [all...] |
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ |
MappedByteBufferTest.java | 26 import java.nio.ByteBuffer; 196 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(26 + 20); 198 byteBuffer.put((byte) ('A' + i)); 201 byteBuffer.putInt(i + 1); 203 byteBuffer.rewind(); 204 fileChannel.write(byteBuffer);
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
PointerInfo.java | 20 import java.nio.ByteBuffer; 49 public ByteBuffer mTempByteBuffer; 87 private static ByteBuffer toByteBuffer(int byteCount, Buffer input) { 88 ByteBuffer result = null; 90 if (input instanceof ByteBuffer) { 91 ByteBuffer input2 = (ByteBuffer) input; 96 result = ByteBuffer.allocate(byteCount).order(input2.order()); 107 result = ByteBuffer.allocate(byteCount).order(input2.order()); 119 result = ByteBuffer.allocate(byteCount).order(input2.order()) [all...] |
/libcore/luni/src/main/java/java/util/ |
BitSet.java | 23 import java.nio.ByteBuffer; 695 * Equivalent to {@code BitSet.valueOf(ByteBuffer.wrap(bytes))}. 699 return BitSet.valueOf(ByteBuffer.wrap(bytes)); 703 * Returns a {@code BitSet} corresponding to {@code byteBuffer}, interpreted as a little-endian 704 * sequence of bits. This method does not alter the {@code ByteBuffer}. 707 public static BitSet valueOf(ByteBuffer byteBuffer) { 708 byteBuffer = byteBuffer.slice().order(ByteOrder.LITTLE_ENDIAN); 709 long[] longs = arrayForBits(byteBuffer.remaining() * 8) [all...] |
/frameworks/base/core/jni/ |
android_net_LocalSocketImpl.cpp | 692 jbyte* byteBuffer; 716 byteBuffer = env->GetByteArrayElements(buffer, NULL); 718 if (NULL == byteBuffer) { 724 fd, byteBuffer + off, len); 728 env->ReleaseByteArrayElements(buffer, byteBuffer, 0); 760 jbyte* byteBuffer; 778 byteBuffer = env->GetByteArrayElements(buffer,NULL); 780 if (NULL == byteBuffer) { 786 byteBuffer + off, len); 790 env->ReleaseByteArrayElements(buffer, byteBuffer, JNI_ABORT) [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/ |
ByteString.java | 38 import java.nio.ByteBuffer; 103 * Copies {@code size} bytes from a {@code java.nio.ByteBuffer} into 106 public static ByteString copyFrom(final ByteBuffer bytes, final int size) { 113 * Copies the remaining bytes from a {@code java.nio.ByteBuffer} into 116 public static ByteString copyFrom(final ByteBuffer bytes) { 207 * Constructs a new read-only {@code java.nio.ByteBuffer} with the 210 public ByteBuffer asReadOnlyByteBuffer() { 211 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes) [all...] |
/frameworks/base/libs/utils/ |
BlobCache.cpp | 202 uint8_t* byteBuffer = reinterpret_cast<uint8_t*>(buffer); 218 &byteBuffer[byteOffset]); 258 const uint8_t* byteBuffer = reinterpret_cast<const uint8_t*>(buffer); 269 &byteBuffer[byteOffset]);
|
/external/icu4c/tools/genrb/ |
wrtjava.c | 449 char byteBuffer[100] = { 0 }; 473 sprintf(byteBuffer, byteDecl, byteArray[byteIterator]); 477 sprintf(byteBuffer, byteDecl, (byteArray[byteIterator]-256)); 480 T_FileStream_write(out, byteBuffer, (int32_t)uprv_strlen(byteBuffer));
|
/cts/tests/src/android/opengl/cts/ |
EglConfigGLSurfaceView.java | 24 import java.nio.ByteBuffer; 89 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleVertices.length * 4); 90 byteBuffer.order(ByteOrder.nativeOrder()); 92 mFloatBuffer = ByteBuffer.allocateDirect(triangleVertices.length * 4) 155 mFloatBuffer = ByteBuffer.allocateDirect(triangleVertices.length * 4)
|
/external/webkit/Source/JavaScriptCore/runtime/ |
JSGlobalObjectFunctions.cpp | 320 Vector<char, 32> byteBuffer; 323 byteBuffer.append(isASCII(character) ? character : 0); 325 byteBuffer.append(0); 327 double number = WTF::strtod(byteBuffer.data(), &endOfNumber); 330 ptrdiff_t consumed = endOfNumber - byteBuffer.data();
|