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

1 23 4 5 6 7

  /frameworks/base/core/java/android/speech/tts/
FileSynthesisCallback.java 24 import java.nio.ByteBuffer;
140 fileChannel.write(ByteBuffer.allocate(WAV_HEADER_LENGTH));
185 fileChannel.write(ByteBuffer.wrap(buffer, offset, length));
284 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount,
292 ByteBuffer header = ByteBuffer.wrap(headerBuf);
  /art/test/712-varhandle-invocations/src/
VarHandleUnitTestHelpers.java 21 import java.nio.ByteBuffer;
57 return getBytesAs_boolean(ByteBuffer.wrap(array), index, order);
61 return getBytesAs_byte(ByteBuffer.wrap(array), index, order);
65 return getBytesAs_char(ByteBuffer.wrap(array), index, order);
69 return getBytesAs_short(ByteBuffer.wrap(array), index, order);
73 return getBytesAs_int(ByteBuffer.wrap(array), index, order);
77 return getBytesAs_long(ByteBuffer.wrap(array), index, order);
81 return getBytesAs_float(ByteBuffer.wrap(array), index, order);
85 return getBytesAs_double(ByteBuffer.wrap(array), index, order);
88 public static boolean getBytesAs_boolean(ByteBuffer buffer, int index, ByteOrder order)
    [all...]
  /device/linaro/bootloader/edk2/Nt32Pkg/WinNtSerialIoDxe/
WinNtSerialIo.c     [all...]
  /external/flatbuffers/php/
ByteBuffer.php 20 class ByteBuffer
39 $bb = new ByteBuffer(0);
106 if (ByteBuffer::$_is_little_endian === null) {
107 ByteBuffer::$_is_little_endian = unpack('S', "\x01\x00")[1] === 1;
110 return ByteBuffer::$_is_little_endian;
122 if (ByteBuffer::isLittleEndian()) {
145 if (ByteBuffer::isLittleEndian() && $force_bigendian == false) {
375 $sign = $index + (ByteBuffer::isLittleEndian() ? 1 : 0);
399 $sign = $index + (ByteBuffer::isLittleEndian() ? 3 : 0);
  /external/flatbuffers/tests/MyGame/Example/
TypeAliases.cs 14 public ByteBuffer ByteBuffer { get { return __p.bb; } }
15 public static TypeAliases GetRootAsTypeAliases(ByteBuffer _bb) { return GetRootAsTypeAliases(_bb, new TypeAliases()); }
16 public static TypeAliases GetRootAsTypeAliases(ByteBuffer _bb, TypeAliases obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
17 public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
18 public TypeAliases __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
AC3TrackImpl.java 12 import java.nio.ByteBuffer;
36 private List<ByteBuffer> samples;
83 samples = new LinkedList<ByteBuffer>();
90 public List<ByteBuffer> getSamples() {
138 ByteBuffer bb = ByteBuffer.wrap(data);
269 samples.add(ByteBuffer.wrap(data));
QuicktimeTextTrackImpl.java 31 import java.nio.ByteBuffer;
64 public List<ByteBuffer> getSamples() {
65 List<ByteBuffer> samples = new LinkedList<ByteBuffer>();
70 samples.add(ByteBuffer.wrap(new byte[]{0, 0}));
83 samples.add(ByteBuffer.wrap(baos.toByteArray()));
TextTrackImpl.java 27 import java.nio.ByteBuffer;
67 public List<ByteBuffer> getSamples() {
68 List<ByteBuffer> samples = new LinkedList<ByteBuffer>();
73 samples.add(ByteBuffer.wrap(new byte[]{0, 0}));
86 samples.add(ByteBuffer.wrap(baos.toByteArray()));
AACTrackImpl.java 29 import java.nio.ByteBuffer;
77 private List<ByteBuffer> samples;
100 samples = new LinkedList<ByteBuffer>();
164 ByteBuffer data = descriptor.serialize();
203 public List<ByteBuffer> getSamples() {
222 ByteBuffer bb = ByteBuffer.wrap(data);
253 ByteBuffer bb = ByteBuffer.wrap(header);
275 samples.add(ByteBuffer.wrap(data))
    [all...]
EC3TrackImpl.java 13 import java.nio.ByteBuffer;
36 private List<ByteBuffer> samples;
121 samples = new LinkedList<ByteBuffer>();
128 public List<ByteBuffer> getSamples() {
176 ByteBuffer bb = ByteBuffer.wrap(data);
400 samples.add(ByteBuffer.wrap(data));
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
Frame.java 24 import java.nio.ByteBuffer;
86 } else if (object instanceof ByteBuffer) {
87 setData((ByteBuffer)object);
105 public abstract void setData(ByteBuffer buffer, int offset, int length);
107 public void setData(ByteBuffer buffer) {
112 setData(ByteBuffer.wrap(bytes, offset, length));
115 public abstract ByteBuffer getData();
SerializedFrame.java 31 import java.nio.ByteBuffer;
226 public void setData(ByteBuffer buffer, int offset, int length) {
228 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
232 public ByteBuffer getData() {
234 return (result instanceof ByteBuffer) ? (ByteBuffer)result : null;
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/
EAPMethodTest.java 28 import java.nio.ByteBuffer;
140 EAPMethod.parse(ByteBuffer.wrap(new byte[0]));
151 ByteBuffer buffer = ByteBuffer.wrap(TEST_DATA1_BYTES, 0, TEST_DATA1_BYTES.length - 1);
163 assertEquals(TEST_DATA1_EAP_METHOD, EAPMethod.parse(ByteBuffer.wrap(TEST_DATA1_BYTES)));
174 assertEquals(TEST_DATA2_EAP_METHOD, EAPMethod.parse(ByteBuffer.wrap(TEST_DATA2_BYTES)));
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
CharsetDecoder2Test.java 21 import java.nio.ByteBuffer;
61 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) {
67 * @tests java.nio.charset.CharsetDecoder#decode(java.nio.ByteBuffer)
71 // ByteBuffer bb = ByteBuffer.allocate(1);
80 // ByteBuffer buf = ByteBuffer.wrap(b);
94 ByteBuffer in = ByteBuffer.wrap(new byte[] { 109, 97, 109 });
104 * Test malfunction decode(ByteBuffer)
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
InterruptedStreamTest.java 29 import java.nio.ByteBuffer;
145 channel.read(ByteBuffer.allocate(BUFFER_SIZE));
184 channel.write(ByteBuffer.allocate(BUFFER_SIZE));
  /libcore/luni/src/test/java/libcore/java/nio/channels/
FileChannelTest.java 30 import java.nio.ByteBuffer;
51 ByteBuffer readOnly = ByteBuffer.allocate(1).asReadOnlyBuffer();
62 fc.read(new ByteBuffer[] { readOnly });
67 fc.read(new ByteBuffer[] { readOnly }, 0, 1);
82 fc.write(new ByteBuffer[] { readOnly });
83 fc.write(new ByteBuffer[] { readOnly }, 0, 1);
91 fc.write(ByteBuffer.wrap("abcdABCD".getBytes("US-ASCII")));
95 ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }
    [all...]
AsynchronousFileChannelTest.java 26 import java.nio.ByteBuffer;
195 ByteBuffer buf = ByteBuffer.wrap(readBuf);
284 ByteBuffer buf = ByteBuffer.wrap(readBuf);
365 ByteBuffer buf = ByteBuffer.wrap(readBuf);
380 assertEquals(2, (int) afc.write(ByteBuffer.wrap(new byte[] { 'x', 'y'}), 0).get());
392 assertEquals(3, (int) afc.write(ByteBuffer.wrap(new byte[] { 'x', 'y', 'z'}), 6).get());
404 assertEquals(2, (int) afc.write(ByteBuffer.wrap(new byte[] { 'x', 'y' }), 9).get())
    [all...]
  /tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
ExtraFieldTest.java 29 import java.nio.ByteBuffer;
134 segments.get(0).write(ByteBuffer.wrap(segData));
182 segments.get(0).write(ByteBuffer.wrap(segData));
187 segments.get(1).write(ByteBuffer.wrap(segData));
192 segments.get(2).write(ByteBuffer.wrap(segData));
234 s.write(ByteBuffer.wrap(sData));
330 s.write(ByteBuffer.wrap(sData));
  /packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
TaskCompressImageToJpeg.java 43 import java.nio.ByteBuffer;
63 private final LruResourcePool<Integer, ByteBuffer> mByteBufferDirectPool;
76 LruResourcePool<Integer, ByteBuffer> byteBufferResourcePool) {
85 public int compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality,
119 ByteBuffer compressedData;
121 Resource<ByteBuffer> byteBufferResource = null;
132 ByteBuffer origBuffer = img.proxy.getPlanes().get(0).getBuffer();
133 compressedData = ByteBuffer.allocate(origBuffer.limit());
218 compressedData = ByteBuffer.allocate(croppedResult.length);
219 compressedData.put(ByteBuffer.wrap(croppedResult))
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowParcel.java 30 private static final Map<Long, ByteBuffer> NATIVE_PTR_TO_PARCEL = new LinkedHashMap<>();
265 NATIVE_PTR_TO_PARCEL.put(nativePtr, new ByteBuffer());
310 NATIVE_PTR_TO_PARCEL.put(nativePtr, ByteBuffer.fromByteArray(data, offset, length));
321 ByteBuffer thisByteBuffer = NATIVE_PTR_TO_PARCEL.get(thisNativePtr);
322 ByteBuffer otherByteBuffer = NATIVE_PTR_TO_PARCEL.get(otherNativePtr);
355 private static class ByteBuffer {
484 * @param other ByteBuffer to append to this one
488 public void appendFrom(ByteBuffer other, int offset, int length) {
505 public static ByteBuffer fromByteArray(byte[] array, int offset, int length) {
506 ByteBuffer byteBuffer = new ByteBuffer()
    [all...]
  /libcore/ojluni/src/main/java/java/nio/
ByteBuffer.java 205 public abstract class ByteBuffer
207 implements Comparable<ByteBuffer>
221 ByteBuffer(int mark, int pos, int lim, int cap, // package-private
231 ByteBuffer(int mark, int pos, int lim, int cap) { // package-private
252 public static ByteBuffer allocateDirect(int capacity) {
278 public static ByteBuffer allocate(int capacity) {
315 public static ByteBuffer wrap(byte[] array,
341 public static ByteBuffer wrap(byte[] array) {
363 public abstract ByteBuffer slice();
380 public abstract ByteBuffer duplicate()
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
ByteBufferTest.java 23 import java.nio.ByteBuffer;
39 * Tests java.nio.ByteBuffer
46 protected ByteBuffer buf;
49 buf = ByteBuffer.allocate(10);
140 ByteBuffer readonly = buf.asReadOnlyBuffer();
173 ByteBuffer ret = buf.compact();
227 ByteBuffer other = ByteBuffer.allocate(buf.capacity());
244 assertTrue(ByteBuffer.wrap(new byte[21]).compareTo(ByteBuffer.allocateDirect(21)) == 0)
    [all...]
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFfsFile/
GenFfsFile.c 392 CHAR8 ByteBuffer;
393 ByteBuffer = 0;
399 while (ByteBuffer != '\n') {
400 fscanf (In, "%c", &ByteBuffer);
1126 UINT8 ByteBuffer;
1379 fread (&ByteBuffer, sizeof (UINT8), 1, InFile);
1381 FileBuffer[Size++] = ByteBuffer;
1382 fread (&ByteBuffer, sizeof (UINT8), 1, InFile);
    [all...]
  /device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/
LegacyBootSupport.c 505 UINT8 ByteBuffer;
524 ByteBuffer = 0x1f;
526 PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x04, 1, &ByteBuffer);
    [all...]
  /external/conscrypt/common/src/main/java/org/conscrypt/
ConscryptEngineSocket.java 34 import java.nio.ByteBuffer;
46 private static final ByteBuffer EMPTY_BUFFER = ByteBuffer.allocate(0);
492 private final ByteBuffer target;
497 target = ByteBuffer.allocate(engine.getSession().getPacketBufferSize());
518 writeInternal(ByteBuffer.wrap(b));
526 writeInternal(ByteBuffer.wrap(b, off, len));
530 private void writeInternal(ByteBuffer buffer) throws IOException {
594 private final ByteBuffer fromEngine;
595 private final ByteBuffer fromSocket
    [all...]

Completed in 919 milliseconds

1 23 4 5 6 7