HomeSort by relevance Sort by last modified time
    Searched full:bytebuffer (Results 301 - 325 of 935) sorted by null

<<11121314151617181920>>

  /external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/
SocketConnector.java 43 import java.nio.ByteBuffer;
115 public ByteBuffer read()
128 // Wrap it in a ByteBuffer for the caller
129 return ByteBuffer.wrap( buffer, 0, count );
139 public void write( ByteBuffer data )
  /external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/udp/
UdpConnector.java 39 import java.nio.ByteBuffer;
114 public ByteBuffer read()
122 // Wrap it in a ByteBuffer for the caller
123 return ByteBuffer.wrap( buffer, 0, packet.getLength() );
133 public void write( ByteBuffer data )
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
Amf0Track.java 24 import java.nio.ByteBuffer;
52 public List<ByteBuffer> getSamples() {
53 LinkedList<ByteBuffer> samples = new LinkedList<ByteBuffer>();
55 samples.add(ByteBuffer.wrap(bytes));
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...]
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/
EC3SpecificBox.java 7 import java.nio.ByteBuffer;
37 public void _parseDetails(ByteBuffer content) {
64 public void getContent(ByteBuffer byteBuffer) {
65 BitWriterBuffer bwb = new BitWriterBuffer(byteBuffer);
  /frameworks/base/core/java/android/hardware/
SerialPort.java 29 import java.nio.ByteBuffer;
92 public int read(ByteBuffer buffer) throws IOException {
110 public void write(ByteBuffer buffer, int length) throws IOException {
130 private native int native_read_direct(ByteBuffer buffer, int length) throws IOException;
132 private native void native_write_direct(ByteBuffer buffer, int length) throws IOException;
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
ToGrayValuesFilter.java 31 import java.nio.ByteBuffer;
87 ByteBuffer grayBuffer;
108 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ);
119 private static native boolean toGrayValues(ByteBuffer imageBuffer, ByteBuffer grayBuffer);
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
TrackDecoder.java 26 import java.nio.ByteBuffer;
50 private ByteBuffer[] mCodecInputBuffers;
51 private ByteBuffer[] mCodecOutputBuffers;
67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info);
115 ByteBuffer destinationBuffer = mCodecInputBuffers[inputBufferIndex];
CpuVideoTrackDecoder.java 32 import java.nio.ByteBuffer;
54 private ByteBuffer mDecodedBuffer;
55 private ByteBuffer mUnrotatedBytes;
80 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) {
113 ByteBuffer outBytes = outputVideoFrame.lockBytes(Frame.MODE_WRITE);
120 mUnrotatedBytes = ByteBuffer.allocateDirect(mWidth * mHeight * 4);
136 private void copyRotate(ByteBuffer input, ByteBuffer output, int rotation) {
230 ByteBuffer input, ByteBuffer output, int colorFormat, int width, int height)
    [all...]
  /libcore/luni/src/main/java/java/nio/
DatagramChannelImpl.java 160 public SocketAddress receive(ByteBuffer target) throws IOException {
190 private SocketAddress receiveImpl(ByteBuffer target, boolean loop) throws IOException {
219 private SocketAddress receiveDirectImpl(ByteBuffer target, boolean loop) throws IOException {
239 public int send(ByteBuffer source, SocketAddress socketAddress) throws IOException {
271 public int read(ByteBuffer target) throws IOException {
288 ByteBuffer readBuffer = ByteBuffer.wrap(readArray);
298 public long read(ByteBuffer[] targets, int offset, int length) throws IOException {
310 ByteBuffer readBuffer = ByteBuffer.allocate(totalCount)
    [all...]
DirectByteBuffer.java 59 @Override public ByteBuffer asReadOnlyBuffer() {
63 @Override public ByteBuffer compact() {
74 @Override public ByteBuffer duplicate() {
78 @Override public ByteBuffer slice() {
106 @Override public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {
283 @Override public ByteBuffer put(byte value) {
294 @Override public ByteBuffer put(int index, byte value) {
303 @Override public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {
349 @Override public ByteBuffer putChar(char value) {
362 @Override public ByteBuffer putChar(int index, char value)
    [all...]
SocketChannelImpl.java 283 public int read(ByteBuffer dst) throws IOException {
293 public long read(ByteBuffer[] targets, int offset, int length) throws IOException {
301 ByteBuffer readBuffer = ByteBuffer.wrap(readArray);
320 private int readImpl(ByteBuffer dst) throws IOException {
341 public int write(ByteBuffer src) throws IOException {
353 public long write(ByteBuffer[] sources, int offset, int length) throws IOException {
360 ByteBuffer writeBuf = ByteBuffer.allocate(count);
362 ByteBuffer source = sources[val]
    [all...]
ByteBuffer.java 37 public abstract class ByteBuffer extends Buffer implements Comparable<ByteBuffer> {
52 public static ByteBuffer allocate(int capacity) {
68 public static ByteBuffer allocateDirect(int capacity) {
85 public static ByteBuffer wrap(byte[] array) {
107 public static ByteBuffer wrap(byte[] array, int start, int byteCount) {
109 ByteBuffer buf = new ByteArrayBuffer(array);
115 ByteBuffer(int capacity, MemoryBlock block) {
237 public abstract ByteBuffer asReadOnlyBuffer();
266 public abstract ByteBuffer compact()
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/crypto/internal/
NullCipherSpi.java 25 import java.nio.ByteBuffer;
116 public int engineUpdate(ByteBuffer input, ByteBuffer output)
151 public int engineDoFinal(ByteBuffer input, ByteBuffer output)
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MySSLContextSpi.java 20 import java.nio.ByteBuffer;
148 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts,
152 public SSLEngineResult wrap(ByteBuffer[] srcs, int offset,
153 int length, ByteBuffer dst) throws SSLException {
  /libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
MySSLContextSpi.java 20 import java.nio.ByteBuffer;
146 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts,
150 public SSLEngineResult wrap(ByteBuffer[] srcs, int offset,
151 int length, ByteBuffer dst) throws SSLException {
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
ClusterChainDirectory.java 23 import java.nio.ByteBuffer;
87 protected final void read(ByteBuffer data) throws IOException {
92 protected final void write(ByteBuffer data) throws IOException {
100 final ByteBuffer fill = ByteBuffer.allocate(rest);
  /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...]
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/
Channel.java 25 import java.nio.ByteBuffer;
84 * Construct message from a ByteBuffer.
88 * position() property of the ByteBuffer.
90 public SdkControllerMessage(int type, ByteBuffer message) {
213 * of the array wrapped by the ByteBuffer.
215 public abstract void onEmulatorMessage(int msg_type, ByteBuffer msg_data);
224 * the array wrapped by the ByteBuffer.
226 public abstract void onEmulatorQuery(int query_id, int query_type, ByteBuffer query_data);
404 ByteBuffer bb = ByteBuffer.allocate(ProtocolConstants.MESSAGE_HEADER_SIZE + len)
    [all...]
  /cts/tests/tests/opengl/src/android/opengl/cts/
WrapperTest.java 29 import java.nio.ByteBuffer;
63 ByteBuffer fullByteBuf = ByteBuffer.allocateDirect(4 * formatCount);
70 ByteBuffer oversizeByteBuf = ByteBuffer.allocateDirect(4 * (formatCount+OFFSET));
78 ByteBuffer partialByteBuf = ByteBuffer.allocateDirect(4 * (formatCount - 1));
119 ByteBuffer fullByteBuf = ByteBuffer.allocateDirect(4 * formatCount);
126 ByteBuffer oversizeByteBuf = ByteBuffer.allocateDirect(4 * (formatCount+OFFSET))
    [all...]
  /frameworks/base/core/java/android/net/dhcp/
DhcpPacket.java 8 import java.nio.ByteBuffer;
214 * Asks the packet object to create a ByteBuffer serialization of
217 public abstract ByteBuffer buildPacket(int encap, short destUdp,
224 abstract void finishPacket(ByteBuffer buffer);
251 InetAddress srcIp, short destUdp, short srcUdp, ByteBuffer buf,
373 * payload) on the specified portion of a ByteBuffer. The seed
376 private int checksum(ByteBuffer buf, int seed, int start, int end) {
380 // set position of original ByteBuffer, so that the ShortBuffer
385 // re-set ByteBuffer position
418 protected void addTlv(ByteBuffer buf, byte type, byte value)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/os/
RotationVectorDemo.java 19 import java.nio.ByteBuffer;
160 private ByteBuffer mIndexBuffer;
186 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4);
192 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4);
198 mIndexBuffer = ByteBuffer.allocateDirect(indices.length);
  /development/samples/USB/AdbTest/src/com/android/adb/
AdbMessage.java 21 import java.nio.ByteBuffer;
40 private final ByteBuffer mMessageBuffer;
41 private final ByteBuffer mDataBuffer;
44 mMessageBuffer = ByteBuffer.allocate(24);
45 mDataBuffer = ByteBuffer.allocate(MAX_PAYLOAD);
88 public ByteBuffer getData() {
140 private static String extractString(ByteBuffer buffer, int offset, int length) {
  /external/jmonkeyengine/engine/src/networking/com/jme3/network/base/
ConnectorAdapter.java 40 import java.nio.ByteBuffer;
70 private BlockingQueue<ByteBuffer> outbound;
95 outbound = new ArrayBlockingQueue<ByteBuffer>(OUTBOUND_BACKLOG);
136 public void write( ByteBuffer data )
159 ByteBuffer buffer = connector.read();
195 private void write( ByteBuffer data )
208 ByteBuffer data = outbound.take();
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
Frame.java 25 import java.nio.ByteBuffer;
87 } else if (object instanceof ByteBuffer) {
88 setData((ByteBuffer)object);
106 public abstract void setData(ByteBuffer buffer, int offset, int length);
108 public void setData(ByteBuffer buffer) {
113 setData(ByteBuffer.wrap(bytes, offset, length));
116 public abstract ByteBuffer getData();

Completed in 2192 milliseconds

<<11121314151617181920>>