HomeSort by relevance Sort by last modified time
    Searched refs:ByteBuffer (Results 276 - 300 of 818) sorted by null

<<11121314151617181920>>

  /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/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...]
  /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();
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
SobelFilter.java 28 import java.nio.ByteBuffer;
145 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ);
146 ByteBuffer magBuffer = (magImage != null) ?
148 ByteBuffer dirBuffer = (dirImage != null) ?
169 ByteBuffer imageBuffer, ByteBuffer magBuffer, ByteBuffer dirBudder);
  /frameworks/base/tests/SerialChat/src/com/android/serialchat/
SerialChat.java 34 import java.nio.ByteBuffer;
43 private ByteBuffer mInputBuffer;
44 private ByteBuffer mOutputBuffer;
62 mInputBuffer = ByteBuffer.allocateDirect(1024);
63 mOutputBuffer = ByteBuffer.allocateDirect(1024);
65 mInputBuffer = ByteBuffer.allocate(1024);
66 mOutputBuffer = ByteBuffer.allocate(1024);
  /libcore/luni/src/main/java/java/nio/channels/
Channels.java 27 import java.nio.ByteBuffer;
220 ByteBuffer buffer = ByteBuffer.wrap(target, byteOffset, byteCount);
263 ByteBuffer buffer = ByteBuffer.wrap(source, offset, length);
297 public synchronized int read(ByteBuffer target) throws IOException {
336 public synchronized int write(ByteBuffer source) throws IOException {
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
SSLEngineImplTest.java 20 import java.nio.ByteBuffer;
372 engine.wrap(ByteBuffer.allocate(0), ByteBuffer.allocate(
446 SSLEngineResult result = engine.wrap(ByteBuffer.allocate(0),
447 ByteBuffer.allocate(20000));
467 SSLEngineResult result = engine.wrap(ByteBuffer.allocate(0),
468 ByteBuffer.allocate(20000));
495 ByteBuffer buffer = ByteBuffer.allocate(packetBufferSize);
496 ByteBuffer app_data_buffer = ByteBuffer.allocate(applicationBufferSize)
    [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...]
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
DefaultMp4Builder.java 48 import java.nio.ByteBuffer;
75 HashMap<Track, List<ByteBuffer>> track2Sample = new HashMap<Track, List<ByteBuffer>>();
90 List<ByteBuffer> samples = track.getSamples();
135 protected List<ByteBuffer> putSamples(Track track, List<ByteBuffer> samples) {
377 List<ByteBuffer> samples = new ArrayList<ByteBuffer>();
390 public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {
412 ByteBuffer s = DefaultMp4Builder.this.track2Sample.get(track).get(j)
    [all...]
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
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...]
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()));
  /frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
Transport.java 25 import java.nio.ByteBuffer;
47 private ByteBuffer mOutputBuffer;
61 mOutputBuffer = ByteBuffer.allocate(maxPacketSize);
108 public boolean sendMessage(int service, int what, ByteBuffer content) {
203 private void dispatchMessageReceived(int service, int what, ByteBuffer content) {
247 public void onMessageReceived(int service, int what, ByteBuffer content);
253 final ByteBuffer buffer = (ByteBuffer)msg.obj;
291 ByteBuffer buffer = null;
366 final ByteBuffer oldBuffer = buffer
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
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...]
  /external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/
DDSLoader.java 45 import java.nio.ByteBuffer;
134 ArrayList<ByteBuffer> data = readData(((TextureKey) info.getKey()).isFlipY());
146 ArrayList<ByteBuffer> data = readData(false);
434 * @return A ByteBuffer containing the grayscale image data with mips.
437 public ByteBuffer readGrayscale2D(boolean flip, int totalSize) throws IOException {
438 ByteBuffer buffer = BufferUtils.createByteBuffer(totalSize);
469 * @return ByteBuffer containing image data with mipmaps in the format specified by pixelFormat_
472 public ByteBuffer readRGB2D(boolean flip, int totalSize) throws IOException {
489 ByteBuffer dataBuffer = BufferUtils.createByteBuffer(totalSize);
535 * @return ByteBuffer containing compressed DXT image in the format specified by pixelFormat
    [all...]
  /cts/tests/src/android/opengl/cts/
CompressedTextureLoader.java 19 import java.nio.ByteBuffer;
50 public Texture(int width, int height, int internalformat, ByteBuffer data,
75 public ByteBuffer getData() { return mData; }
92 private ByteBuffer mData;
148 ByteBuffer headerBuffer = ByteBuffer.allocateDirect(PVR_HEADER_SIZE)
185 ByteBuffer compressedImage = ByteBuffer.allocateDirect(encodedImageSize).
194 ByteBuffer dataBuffer;
195 dataBuffer = ByteBuffer.allocateDirect(dataSize).order(ByteOrder.nativeOrder())
    [all...]
  /external/chromium_org/media/base/android/java/src/org/chromium/media/
WebAudioMediaCodecBridge.java 19 import java.nio.ByteBuffer;
98 ByteBuffer[] codecInputBuffers = codec.getInputBuffers();
99 ByteBuffer[] codecOutputBuffers = codec.getOutputBuffers();
115 ByteBuffer dstBuf = codecInputBuffers[inputBufIndex];
143 ByteBuffer buf = codecOutputBuffers[outputBufIndex];
193 long nativeWebAudioMediaCodecBridge, ByteBuffer buf, int size,
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/
SampleEntry.java 29 import java.nio.ByteBuffer;
109 public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {
116 public void _parseReservedAndDataReferenceIndex(ByteBuffer content) {
121 public void _parseChildBoxes(ByteBuffer content) {
133 public void _writeReservedAndDataReferenceIndex(ByteBuffer bb) {
138 public void _writeChildBoxes(ByteBuffer bb) {
  /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) {
FullContainerBox.java 25 import java.nio.ByteBuffer;
94 public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {
101 public void _parseDetails(ByteBuffer content) {
106 protected final void parseChildBoxes(ByteBuffer content) {
135 protected void getContent(ByteBuffer byteBuffer) {
136 writeVersionAndFlags(byteBuffer);
137 writeChildBoxes(byteBuffer);
140 protected final void writeChildBoxes(ByteBuffer bb) {
  /external/protobuf/java/src/main/java/com/google/protobuf/
ByteString.java 38 import java.nio.ByteBuffer;
103 * Copies {@code size} bytes from a {@code java.nio.ByteBuffer} into
106 public static ByteString copyFrom(final ByteBuffer bytes, final int size) {
113 * Copies the remaining bytes from a {@code java.nio.ByteBuffer} into
116 public static ByteString copyFrom(final ByteBuffer bytes) {
207 * Constructs a new read-only {@code java.nio.ByteBuffer} with the
210 public ByteBuffer asReadOnlyByteBuffer() {
211 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes)
    [all...]
  /frameworks/base/core/java/android/ddm/
DdmHandleHello.java 26 import java.nio.ByteBuffer;
111 ByteBuffer in = wrapChunk(request);
129 ByteBuffer out = ByteBuffer.allocate(20
169 ByteBuffer out = ByteBuffer.allocate(size);
DdmHandleThread.java 24 import java.nio.ByteBuffer;
88 ByteBuffer in = wrapChunk(request);
101 ByteBuffer in = wrapChunk(request);
124 ByteBuffer in = wrapChunk(request);
160 ByteBuffer out = ByteBuffer.allocate(bufferSize);
  /frameworks/base/core/java/android/speech/tts/
FileSynthesisCallback.java 26 import java.nio.ByteBuffer;
119 mFileChannel.write(ByteBuffer.allocate(WAV_HEADER_LENGTH));
145 mFileChannel.write(ByteBuffer.wrap(buffer, offset, length));
198 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount,
207 ByteBuffer header = ByteBuffer.wrap(headerBuf);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
CharsetEncoderTest.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>

Completed in 534 milliseconds

<<11121314151617181920>>