HomeSort by relevance Sort by last modified time
    Searched refs:ByteBuffer (Results 51 - 75 of 1144) sorted by null

1 23 4 5 6 7 8 91011>>

  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
PixelUtils.java 18 import java.nio.ByteBuffer;
44 public static void copyPixels(ByteBuffer input,
45 ByteBuffer output,
67 private static native void nativeCopyPixels(ByteBuffer input,
68 ByteBuffer output,
  /build/tools/signapk/src/com/android/signapk/
ZipUtils.java 19 import java.nio.ByteBuffer;
25 * <p>NOTE: Most helper methods operating on {@code ByteBuffer} instances expect that the byte
48 public static int findZipEndOfCentralDirectoryRecord(ByteBuffer zipContents) {
90 ByteBuffer zipContents, int zipEndOfCentralDirectoryPosition) {
109 public static long getZipEocdCentralDirectoryOffset(ByteBuffer zipEndOfCentralDirectory) {
122 ByteBuffer zipEndOfCentralDirectory, long offset) {
135 public static long getZipEocdCentralDirectorySizeBytes(ByteBuffer zipEndOfCentralDirectory) {
142 private static void assertByteOrderLittleEndian(ByteBuffer buffer) {
144 throw new IllegalArgumentException("ByteBuffer byte order must be little endian");
148 private static int getUnsignedInt16(ByteBuffer buffer, int offset)
    [all...]
  /external/webrtc/webrtc/base/
bytebuffer.h 22 class ByteBuffer {
31 ByteBuffer();
32 explicit ByteBuffer(ByteOrder byte_order);
33 ByteBuffer(const char* bytes, size_t len);
34 ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order);
37 explicit ByteBuffer(const char* bytes);
39 explicit ByteBuffer(const Buffer& buf);
41 ~ByteBuffer();
73 // ByteBuffer.
91 friend class ByteBuffer;
    [all...]
  /libcore/luni/src/test/java/libcore/java/nio/charset/
OldCharsetEncoderDecoderBufferTest.java 19 import java.nio.ByteBuffer;
43 decoder.decode(ByteBuffer.wrap(new byte[]{(byte)'a', (byte)'b', (byte)'c', (byte)'d'}),
51 out = ByteBuffer.wrap(bBuf).asCharBuffer();
53 decoder.decode(ByteBuffer.wrap(new byte[]{(byte)'x'}), out, true);
74 ByteBuffer inWithArray = ByteBuffer.wrap(inArray);
80 // A read-only ByteBuffer must not expose its array.
81 ByteBuffer inWithoutArray = ByteBuffer.wrap(new byte[] { (byte) 'x' }).asReadOnlyBuffer();
99 ByteBuffer out = ByteBuffer.wrap(buffer)
    [all...]
  /libcore/ojluni/src/main/java/java/nio/
ByteBuffer.java 194 public abstract class ByteBuffer
196 implements Comparable<ByteBuffer> {
209 ByteBuffer(int mark, int pos, int lim, int cap, // package-private
218 ByteBuffer(int mark, int pos, int lim, int cap) { // package-private
235 public static ByteBuffer allocateDirect(int capacity) {
258 public static ByteBuffer allocate(int capacity) {
288 public static ByteBuffer wrap(byte[] array,
311 public static ByteBuffer wrap(byte[] array) {
333 public abstract ByteBuffer slice();
350 public abstract ByteBuffer duplicate()
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/
Internal.java 35 import java.nio.ByteBuffer;
126 * This is like {@link #bytesDefaultValue}, but returns a ByteBuffer.
128 public static ByteBuffer byteBufferDefaultValue(String bytes) {
129 return ByteBuffer.wrap(byteArrayDefaultValue(bytes));
133 * Create a new ByteBuffer and copy all the content of {@code source}
134 * ByteBuffer to the new ByteBuffer. The new ByteBuffer's limit and
136 * Note that the state of {@code source} ByteBuffer won't be changed.
138 public static ByteBuffer copyByteBuffer(ByteBuffer source)
    [all...]
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
ReplaceSampleTrack.java 23 import java.nio.ByteBuffer;
29 * Generates a Track where a single sample has been replaced by a given <code>ByteBuffer</code>.
35 private ByteBuffer sampleContent;
36 private List<ByteBuffer> samples;
38 public ReplaceSampleTrack(Track origTrack, long sampleNumber, ByteBuffer content) {
46 public List<ByteBuffer> getSamples() {
88 private class ReplaceASingleEntryList extends AbstractList<ByteBuffer> {
90 public ByteBuffer get(int index) {
  /libcore/benchmarks/src/benchmarks/regression/
ByteBufferScalarVersusVectorBenchmark.java 20 import java.nio.ByteBuffer;
28 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType);
29 ByteBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType);
40 ByteBuffer src = ByteBuffer.allocate(aligned ? 8192 : 8192 + 1);
49 ByteBuffer src = ByteBuffer.allocateDirect(aligned ? 8192 : 8192 + 1);
  /libcore/ojluni/src/main/java/java/nio/channels/
DatagramChannel.java 33 import java.nio.ByteBuffer;
48 * order to use the {@link #read(java.nio.ByteBuffer) read} and {@link
49 * #write(java.nio.ByteBuffer) write} methods, since those methods do not
345 * ReadableByteChannel#read(java.nio.ByteBuffer) read} operation. If there
395 public abstract SocketAddress receive(ByteBuffer dst) throws IOException;
407 * {@link WritableByteChannel#write(java.nio.ByteBuffer) write} operation.
460 public abstract int send(ByteBuffer src, SocketAddress target)
479 public abstract int read(ByteBuffer dst) throws IOException;
494 public abstract long read(ByteBuffer[] dsts, int offset, int length)
510 public final long read(ByteBuffer[] dsts) throws IOException
    [all...]
FileChannel.java 29 import java.nio.ByteBuffer;
56 * <li><p> Bytes may be {@link #read(ByteBuffer, long) read} or
57 * {@link #write(ByteBuffer, long) <i>written</i>} at an absolute
170 public abstract int read(ByteBuffer dst) throws IOException;
181 public abstract long read(ByteBuffer[] dsts, int offset, int length)
192 public final long read(ByteBuffer[] dsts) throws IOException {
207 public abstract int write(ByteBuffer src) throws IOException;
221 public abstract long write(ByteBuffer[] srcs, int offset, int length)
235 public final long write(ByteBuffer[] srcs) throws IOException {
517 * #read(ByteBuffer)} method, except that bytes are read starting at th
    [all...]
  /external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
UConverterAliasDataReader.java 11 import java.nio.ByteBuffer;
133 protected UConverterAliasDataReader(ByteBuffer bytes)
137 byteBuffer = bytes;
138 /*unicodeVersion = */ICUBinary.readHeader(byteBuffer, DATA_FORMAT_ID, this);
140 //if(debug) System.out.println("Bytes left in byteBuffer " + byteBuffer.remaining());
148 return ICUBinary.getInts(byteBuffer, n, 0);
168 private ByteBuffer byteBuffer;
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DataReferenceBox.java 23 import java.nio.ByteBuffer;
51 public void _parseDetails(ByteBuffer content) {
59 protected void getContent(ByteBuffer byteBuffer) {
60 writeVersionAndFlags(byteBuffer);
61 IsoTypeWriter.writeUInt32(byteBuffer, getBoxes().size());
62 writeChildBoxes(byteBuffer);
FreeSpaceBox.java 21 import java.nio.ByteBuffer;
50 public void _parseDetails(ByteBuffer content) {
56 protected void getContent(ByteBuffer byteBuffer) {
57 byteBuffer.put(data);
RecordingYearBox.java 23 import java.nio.ByteBuffer;
52 public void _parseDetails(ByteBuffer content) {
58 protected void getContent(ByteBuffer byteBuffer) {
59 writeVersionAndFlags(byteBuffer);
60 IsoTypeWriter.writeUInt16(byteBuffer, recordingYear);
SoundMediaHeaderBox.java 22 import java.nio.ByteBuffer;
42 public void _parseDetails(ByteBuffer content) {
49 protected void getContent(ByteBuffer byteBuffer) {
50 writeVersionAndFlags(byteBuffer);
51 IsoTypeWriter.writeFixedPont88(byteBuffer, balance);
52 IsoTypeWriter.writeUInt16(byteBuffer, 0);
UserBox.java 21 import java.nio.ByteBuffer;
55 public void _parseDetails(ByteBuffer content) {
61 protected void getContent(ByteBuffer byteBuffer) {
62 byteBuffer.put(data);
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/
AppleDataRateBox.java 23 import java.nio.ByteBuffer;
38 public void _parseDetails(ByteBuffer content) {
44 protected void getContent(ByteBuffer byteBuffer) {
45 writeVersionAndFlags(byteBuffer);
46 IsoTypeWriter.writeUInt32(byteBuffer, dataRate);
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/fragment/
MovieFragmentRandomAccessOffsetBox.java 23 import java.nio.ByteBuffer;
44 public void _parseDetails(ByteBuffer content) {
50 protected void getContent(ByteBuffer byteBuffer) {
51 writeVersionAndFlags(byteBuffer);
52 IsoTypeWriter.writeUInt32(byteBuffer, mfraSize);
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/adobe/
ActionMessageFormat0SampleEntryBox.java 6 import java.nio.ByteBuffer;
28 public void _parseDetails(ByteBuffer content) {
34 protected void getContent(ByteBuffer byteBuffer) {
35 _writeReservedAndDataReferenceIndex(byteBuffer);
36 _writeChildBoxes(byteBuffer);
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/apple/
TimeCodeBox.java 21 import java.nio.ByteBuffer;
41 public void _parseDetails(ByteBuffer content) {
49 protected void getContent(ByteBuffer byteBuffer) {
50 _writeReservedAndDataReferenceIndex(byteBuffer);
51 byteBuffer.put(data);
52 _writeChildBoxes(byteBuffer);
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/
UUIDConverter.java 18 import java.nio.ByteBuffer;
44 ByteBuffer b = ByteBuffer.wrap(uuidBytes);
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
ByteBufferInputStream.java 20 import java.nio.ByteBuffer;
24 private ByteBuffer mBuf;
26 public ByteBufferInputStream(ByteBuffer buf) {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
HeapByteBufferTest.java 19 import java.nio.ByteBuffer;
26 buf = ByteBuffer.allocate(BUFFER_LENGTH);
37 * @tests java.nio.ByteBuffer#allocate(int)
42 ByteBuffer.allocate(-1);
  /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();

Completed in 4397 milliseconds

1 23 4 5 6 7 8 91011>>