/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
RatingBox.java | 25 import java.nio.ByteBuffer; 95 public void _parseDetails(ByteBuffer content) { 105 protected void getContent(ByteBuffer byteBuffer) { 106 writeVersionAndFlags(byteBuffer); 107 byteBuffer.put(IsoFile.fourCCtoBytes(ratingEntity)); 108 byteBuffer.put(IsoFile.fourCCtoBytes(ratingCriteria)); 109 IsoTypeWriter.writeIso639(byteBuffer, language); 110 byteBuffer.put(Utf8.convert(ratingInfo)); 111 byteBuffer.put((byte) 0) [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/ |
AppleDataBox.java | 5 import java.nio.ByteBuffer; 69 public void _parseDetails(ByteBuffer content) { 79 protected void getContent(ByteBuffer byteBuffer) { 80 writeVersionAndFlags(byteBuffer); 81 byteBuffer.put(fourBytes, 0, 4); 82 byteBuffer.put(data);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/piff/ |
PlayReadyHeader.java | 12 import java.nio.ByteBuffer; 48 public void parse(ByteBuffer byteBuffer) { 58 length = IsoTypeReader.readUInt32BE(byteBuffer); 59 int recordCount = IsoTypeReader.readUInt16BE(byteBuffer); 61 records = PlayReadyRecord.createFor(byteBuffer, recordCount); 65 public ByteBuffer getData() { 72 ByteBuffer byteBuffer = ByteBuffer.allocate(size) [all...] |
/frameworks/base/core/java/android/net/netlink/ |
NetlinkSocket.java | 33 import java.nio.ByteBuffer; 84 public ByteBuffer recvMessage() 93 public ByteBuffer recvMessage(long timeoutMs) throws ErrnoException, InterruptedIOException { 109 public ByteBuffer recvMessage(int bufsize, long timeoutMs) 122 ByteBuffer byteBuffer = ByteBuffer.allocate(bufsize); 123 int length = Os.read(mDescriptor, byteBuffer); 127 byteBuffer.position(0); 128 byteBuffer.limit(length) [all...] |
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
ShaderUtils.java | 38 import java.nio.ByteBuffer;
255 public static final ByteBuffer getImageDataFromImage(BufferedImage bufferedImage) {
269 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(data.length * 4);
270 byteBuffer.order(ByteOrder.LITTLE_ENDIAN);
271 byteBuffer.asIntBuffer().put(data);
272 byteBuffer.flip();
274 return byteBuffer;
|
/cts/tests/tests/graphics/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/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
VisualSampleEntry.java | 25 import java.nio.ByteBuffer; 135 public void _parseDetails(ByteBuffer content) { 182 protected void getContent(ByteBuffer byteBuffer) { 183 _writeReservedAndDataReferenceIndex(byteBuffer); 184 IsoTypeWriter.writeUInt16(byteBuffer, 0); 185 IsoTypeWriter.writeUInt16(byteBuffer, 0); 186 IsoTypeWriter.writeUInt32(byteBuffer, predefined[0]); 187 IsoTypeWriter.writeUInt32(byteBuffer, predefined[1]); 188 IsoTypeWriter.writeUInt32(byteBuffer, predefined[2]) [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/threegpp26244/ |
LocationInformationBox.java | 8 import java.nio.ByteBuffer; 98 public void _parseDetails(ByteBuffer content) { 112 protected void getContent(ByteBuffer byteBuffer) { 113 writeVersionAndFlags(byteBuffer); 114 IsoTypeWriter.writeIso639(byteBuffer, language); 115 byteBuffer.put(Utf8.convert(name)); 116 byteBuffer.put((byte) 0); 117 IsoTypeWriter.writeUInt8(byteBuffer, role); 118 IsoTypeWriter.writeFixedPont1616(byteBuffer, longitude) [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/ |
LiteralByteString.java | 38 import java.nio.ByteBuffer; 121 public void copyTo(ByteBuffer target) { 126 public ByteBuffer asReadOnlyByteBuffer() { 127 ByteBuffer byteBuffer = 128 ByteBuffer.wrap(bytes, getOffsetIntoBytes(), size()); 129 return byteBuffer.asReadOnlyBuffer(); 133 public List<ByteBuffer> asReadOnlyByteBufferList() { 134 // Return the ByteBuffer generated by asReadOnlyByteBuffer() as a singleton 135 List<ByteBuffer> result = new ArrayList<ByteBuffer>(1) [all...] |
CodedOutputStream.java | 36 import java.nio.ByteBuffer; 134 * Create a new {@code CodedOutputStream} that writes to the given ByteBuffer. 136 public static CodedOutputStream newInstance(ByteBuffer byteBuffer) { 137 return newInstance(byteBuffer, DEFAULT_BUFFER_SIZE); 141 * Create a new {@code CodedOutputStream} that writes to the given ByteBuffer. 143 public static CodedOutputStream newInstance(ByteBuffer byteBuffer, 145 return newInstance(new ByteBufferOutputStream(byteBuffer), bufferSize); 149 private final ByteBuffer byteBuffer [all...] |
RopeByteString.java | 38 import java.nio.ByteBuffer; 374 public void copyTo(ByteBuffer target) { 380 public ByteBuffer asReadOnlyByteBuffer() { 381 ByteBuffer byteBuffer = ByteBuffer.wrap(toByteArray()); 382 return byteBuffer.asReadOnlyBuffer(); 386 public List<ByteBuffer> asReadOnlyByteBufferList() { 388 // rope, and add each one as a read-only ByteBuffer. 389 List<ByteBuffer> result = new ArrayList<ByteBuffer>() [all...] |
/system/core/libutils/ |
BlobCache.cpp | 197 uint8_t* byteBuffer = reinterpret_cast<uint8_t*>(buffer); 214 &byteBuffer[byteOffset]); 258 const uint8_t* byteBuffer = reinterpret_cast<const uint8_t*>(buffer); 269 &byteBuffer[byteOffset]);
|
/external/icu/icu4c/source/tools/genrb/ |
wrtjava.c | 444 char byteBuffer[100] = { 0 }; 468 sprintf(byteBuffer, byteDecl, byteArray[byteIterator]); 472 sprintf(byteBuffer, byteDecl, (byteArray[byteIterator]-256)); 475 T_FileStream_write(out, byteBuffer, (int32_t)uprv_strlen(byteBuffer));
|
/external/lzma/CPP/7zip/UI/Common/ |
OpenArchive.cpp | 147 CByteBuffer byteBuffer;
149 byteBuffer.SetCapacity(kBufferSize);
152 RINOK(ReadStream(stream, byteBuffer, &processedSize));
156 const Byte *buf = byteBuffer;
215 CByteBuffer byteBuffer;
217 byteBuffer.SetCapacity(kBufferSize);
218 Byte *buffer = byteBuffer;
|
/frameworks/base/core/jni/ |
android_net_LocalSocketImpl.cpp | 668 jbyte* byteBuffer; 692 byteBuffer = env->GetByteArrayElements(buffer, NULL); 694 if (NULL == byteBuffer) { 700 fd, byteBuffer + off, len); 704 env->ReleaseByteArrayElements(buffer, byteBuffer, 0); 736 jbyte* byteBuffer; 754 byteBuffer = env->GetByteArrayElements(buffer,NULL); 756 if (NULL == byteBuffer) { 762 byteBuffer + off, len); 766 env->ReleaseByteArrayElements(buffer, byteBuffer, JNI_ABORT) [all...] |
/frameworks/base/core/java/android/net/ |
IpReachabilityMonitor.java | 46 import java.nio.ByteBuffer; 111 final ByteBuffer bytes = nlSocket.recvMessage(IO_TIMEOUT); 320 ByteBuffer byteBuffer; 323 byteBuffer = recvKernelReply(); 329 if (byteBuffer == null) { 332 parseNetlinkMessageBuffer(byteBuffer, whenMs); 365 private ByteBuffer recvKernelReply() throws ErrnoException { 378 private void parseNetlinkMessageBuffer(ByteBuffer byteBuffer, long whenMs) [all...] |
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
ProxyServer.java | 228 int byteBuffer = inputStream.read(); 229 if (byteBuffer < 0) return ""; 231 if (byteBuffer != '\r') { 232 buffer.append((char)byteBuffer); 234 byteBuffer = inputStream.read(); 235 } while ((byteBuffer != '\n') && (byteBuffer >= 0));
|
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardUtils.java | 29 import java.nio.ByteBuffer; [all...] |
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
TestCharset.java | 11 import java.nio.ByteBuffer; 52 ByteBuffer bs1 = ByteBuffer.allocate(0xFF*8); 53 ByteBuffer bs2 = ByteBuffer.allocate(0xFF*8); 111 ByteBuffer newBS = ByteBuffer.allocate(bs1.capacity()); 143 ByteBuffer bs1 = ByteBuffer.allocate(0xFF*8); 144 ByteBuffer bs2 = ByteBuffer.allocate(0xFF*8) [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
TextureHelper.java | 37 import java.nio.ByteBuffer;
260 ByteBuffer data = BufferUtils.createByteBuffer(pixelsAmount * 3);
267 ByteBuffer sourceData = image.getData(0);
286 ArrayList<ByteBuffer> arrayData = new ArrayList<ByteBuffer>(1);
334 ByteBuffer byteBuffer = BufferUtils.createByteBuffer(image.getWidth() * image.getHeight() * 3);
335 ImageToAwt.convert(bumpMap, Format.RGB8, byteBuffer);
336 return new Texture2D(new Image(Format.RGB8, image.getWidth(), image.getHeight(), byteBuffer));
|
/external/protobuf/java/src/main/java/com/google/protobuf/nano/ |
CodedOutputByteBufferNano.java | 35 import java.nio.ByteBuffer; 55 private final ByteBuffer buffer; 59 this(ByteBuffer.wrap(buffer, offset, length)); 62 private CodedOutputByteBufferNano(final ByteBuffer buffer) { 390 * Encodes {@code sequence} into UTF-8, in {@code byteBuffer}. For a string, this method is 402 * {@code byteBuffer}'s remaining space. 403 * @throws ReadOnlyBufferException if {@code byteBuffer} is a read-only buffer. 405 private static void encode(CharSequence sequence, ByteBuffer byteBuffer) { 406 if (byteBuffer.isReadOnly()) [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
ByteStringTest.java | 43 import java.nio.ByteBuffer; 113 ByteBuffer byteBuffer = ByteBuffer.allocate(bytes.length); 114 byteBuffer.put(bytes); 115 byteBuffer.position(500); 116 ByteString byteString = ByteString.copyFrom(byteBuffer, 200); 117 assertTrue("copyFrom byteBuffer sub-range must contain the expected bytes", 123 ByteBuffer byteBuffer = ByteBuffer.allocate(bytes.length) [all...] |
/frameworks/base/media/jni/ |
android_media_ImageReader.cpp | [all...] |
android_media_ImageWriter.cpp | 229 "(Landroid/media/ImageWriter$WriterSurfaceImage;IILjava/nio/ByteBuffer;)V"); [all...] |
/libcore/luni/src/test/java/libcore/io/ |
OsTest.java | 37 import java.nio.ByteBuffer; 169 ByteBuffer byteBuffer = ByteBuffer.wrap(contents); 171 byteBuffer.position(0); 172 int written = Libcore.os.write(fd, byteBuffer); 174 assertEquals(written, byteBuffer.position()); 176 byteBuffer.position(4); 177 written = Libcore.os.write(fd, byteBuffer); 179 assertEquals(written + 4, byteBuffer.position()) [all...] |