/libcore/luni/src/main/java/java/nio/charset/ |
CharsetEncoder.java | 21 import java.nio.ByteBuffer; 29 * output byte sequence is a {@link java.nio.ByteBuffer ByteBuffer}. 32 * new {@code ByteBuffer}, or {@link #encode(CharBuffer, ByteBuffer, boolean)} for more 36 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} with the {@code endOfInput} 39 * <p>The {@link #encode(CharBuffer, ByteBuffer, boolean) encode} method will 46 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} for the last time with 48 * <li>Invoke {@link #flush(ByteBuffer)} to flush remaining output.</li> 69 * {@link #encodeLoop(CharBuffer, ByteBuffer) encodeLoop} method for basi [all...] |
/external/guava/guava/src/com/google/common/hash/ |
AbstractStreamingHashFunction.java | 21 import java.nio.ByteBuffer; 71 private final ByteBuffer buffer; 83 * @param chunkSize the number of bytes available per {@link #process(ByteBuffer)} invocation; 95 * @param chunkSize the number of bytes available per {@link #process(ByteBuffer)} invocation; 104 this.buffer = ByteBuffer 114 protected abstract void process(ByteBuffer bb); 118 * fill a whole chunk. The passed {@code ByteBuffer} is guaranteed to be 122 * {@link #process(ByteBuffer)}. 124 protected void processRemaining(ByteBuffer bb) { 142 return putBytes(ByteBuffer.wrap(bytes, off, len).order(ByteOrder.LITTLE_ENDIAN)) [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
ByteBuffer.java | 24 public class ByteBuffer 37 public ByteBuffer(int initialCapacity) 45 * @param buffer a byte array that will be wrapped with <code>ByteBuffer</code>. 47 public ByteBuffer(byte[] buffer) 55 * @param buffer a byte array that will be wrapped with <code>ByteBuffer</code>. 58 public ByteBuffer(byte[] buffer, int length) 75 public ByteBuffer(InputStream in) throws IOException 99 * @param buffer a byte array that will be wrapped with <code>ByteBuffer</code>. 103 public ByteBuffer(byte[] buffer, int offset, int length) 216 * @param anotherBuffer another <code>ByteBuffer</code [all...] |
/external/chromium_org/components/devtools_bridge/test/android/javatests/src/org/chromium/components/devtools_bridge/ |
DataPipe.java | 7 import java.nio.ByteBuffer; 67 protected void sendOnSignalingThread(ByteBuffer message) {
|
/external/chromium_org/third_party/webrtc/base/ |
bytebuffer_unittest.cc | 11 #include "webrtc/base/bytebuffer.h" 56 ByteBuffer buffer; 89 ByteBuffer buffer("ABCDEF", 6); 91 ByteBuffer::ReadPosition pos(buffer.GetReadPosition()); 115 ByteBuffer::ByteOrder orders[2] = { ByteBuffer::ORDER_HOST, 116 ByteBuffer::ORDER_NETWORK }; 118 ByteBuffer buffer(orders[i]);
|
/external/guava/guava-tests/test/com/google/common/hash/ |
FunnelsTest.java | 11 import java.nio.ByteBuffer; 55 @Override protected void process(ByteBuffer bb) {
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
IsoTypeReaderVariable.java | 18 import java.nio.ByteBuffer; 22 public static long read(ByteBuffer bb, int bytes) {
|
IsoTypeWriterVariable.java | 19 import java.nio.ByteBuffer; 23 public static void write(long v, ByteBuffer bb, int bytes) {
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
Box.java | 23 import java.nio.ByteBuffer; 50 void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException;
|
TimeToSampleBox.java | 24 import java.nio.ByteBuffer; 59 public void _parseDetails(ByteBuffer content) { 71 protected void getContent(ByteBuffer byteBuffer) { 72 writeVersionAndFlags(byteBuffer); 73 IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); 75 IsoTypeWriter.writeUInt32(byteBuffer, entry.getCount()); 76 IsoTypeWriter.writeUInt32(byteBuffer, entry.getDelta());
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/ |
AbstractAppleMetaDataBox.java | 13 import java.nio.ByteBuffer; 54 public void _parseDetails(ByteBuffer content) { 72 protected void getContent(ByteBuffer byteBuffer) { 74 appleDataBox.getBox(new ByteBufferByteChannel(byteBuffer)); 76 throw new RuntimeException("The Channel is based on a ByteBuffer and therefore it shouldn't throw any exception"); 109 ByteBuffer bb = ByteBuffer.allocate(content.length);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/ |
AbstractContainerBox.java | 25 import java.nio.ByteBuffer; 104 public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException { 110 public void _parseDetails(ByteBuffer content) { 140 protected void getContent(ByteBuffer byteBuffer) { 141 writeChildBoxes(byteBuffer); 144 protected final void parseChildBoxes(ByteBuffer content) { 159 protected final void writeChildBoxes(ByteBuffer bb) {
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/ |
Track.java | 20 import java.nio.ByteBuffer; 54 List<ByteBuffer> getSamples();
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
ExtensionProfileLevelDescriptor.java | 22 import java.nio.ByteBuffer;
36 public void parseDetail(ByteBuffer bb) throws IOException {
|
ProfileLevelIndicationDescriptor.java | 22 import java.nio.ByteBuffer;
35 public void parseDetail( ByteBuffer bb) throws IOException {
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
DisplaySinkService.java | 34 import java.nio.ByteBuffer; 37 private final ByteBuffer mBuffer = ByteBuffer.allocate(12); 52 private ByteBuffer[] mCodecInputBuffers; 91 public void onMessageReceived(int service, int what, ByteBuffer content) { 174 private void decode(ByteBuffer content) { 194 private boolean provideCodecInputLocked(ByteBuffer content) { 202 final ByteBuffer buffer = mCodecInputBuffers[index];
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
DirectCharBufferTest.java | 18 import java.nio.ByteBuffer; 24 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*2).asCharBuffer();
|
DirectDoubleBufferTest.java | 18 import java.nio.ByteBuffer; 23 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*8).asDoubleBuffer();
|
DirectFloatBufferTest.java | 18 import java.nio.ByteBuffer; 23 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*4).asFloatBuffer();
|
DirectIntBufferTest.java | 18 import java.nio.ByteBuffer; 23 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*4).asIntBuffer();
|
DirectLongBufferTest.java | 18 import java.nio.ByteBuffer; 24 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*8).asLongBuffer();
|
DirectShortBufferTest.java | 18 import java.nio.ByteBuffer; 23 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*2).asShortBuffer();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
CharsetDecoderTest.java | 19 import java.nio.ByteBuffer; 199 * Class under test for CharBuffer decode(ByteBuffer) 214 CharBuffer out = decoder.decode(ByteBuffer.allocate(0)); 218 ByteBuffer in = getByteBuffer(); 237 ByteBuffer in; 298 * Class under test for CoderResult decode(ByteBuffer, CharBuffer, boolean) 308 void implTestDecodeByteBufferCharBuffer(ByteBuffer in) { 403 void implTestDecodeCharBufferByteBufferUnmappedException(ByteBuffer in, 457 void implTestDecodeCharBufferByteBufferMalformedException(ByteBuffer in, 509 void implTestDecodeCharBufferByteBufferException(ByteBuffer in [all...] |
CharsetEncoder2Test.java | 21 import java.nio.ByteBuffer; 84 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 96 protected CoderResult encodeLoop(CharBuffer arg0, ByteBuffer arg1) { 149 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 155 * Test reserve bytes encode(CharBuffer,ByteBuffer,boolean) 162 ByteBuffer bytes = ByteBuffer.allocate(4); 204 // ByteBuffer buf = <result>
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
OldCharset_SingleByteAbstractTest.java | 18 import java.nio.ByteBuffer; 49 ByteBuffer inputBB = ByteBuffer.wrap(allBytes); 65 ByteBuffer inputBB = ByteBuffer.wrap(input); 90 // ByteBuffer inputBB = ByteBuffer.wrap(allBytes); 106 ByteBuffer outputBB;
|