/frameworks/base/core/java/android/net/dhcp/ |
DhcpOfferPacket.java | 21 import java.nio.ByteBuffer; 60 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { 61 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); 74 void finishPacket(ByteBuffer buffer) {
|
DhcpRequestPacket.java | 23 import java.nio.ByteBuffer; 48 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { 49 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); 60 void finishPacket(ByteBuffer buffer) {
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
ColorfulnessFilter.java | 31 import java.nio.ByteBuffer; 58 ByteBuffer byteBuffer = histogramFrame.lockBytes(Frame.MODE_READ); 59 byteBuffer.order(ByteOrder.nativeOrder()); 60 FloatBuffer histogramBuffer = byteBuffer.asFloatBuffer();
|
FrameBuffer1D.java | 22 import java.nio.ByteBuffer; 30 * Access frame's data using a {@link ByteBuffer}. 33 * When writing to the {@link ByteBuffer}, the byte order should be always set to 38 public ByteBuffer lockBytes(int mode) { 40 return (ByteBuffer)mBackingStore.lockData(mode, BackingStore.ACCESS_BYTES);
|
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,
|
/external/chromium_org/third_party/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/ |
ViESurfaceRenderer.java | 19 import java.nio.ByteBuffer; 35 private ByteBuffer byteBuffer = null; 104 byteBuffer = null; 125 public ByteBuffer CreateByteBuffer(int width, int height) { 129 byteBuffer = ByteBuffer.allocateDirect(width * height * 2); 131 return byteBuffer; 163 if(byteBuffer == null) 165 byteBuffer.rewind() [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/fragment/ |
TrackFragmentHeaderBox.java | 23 import java.nio.ByteBuffer; 74 protected void getContent(ByteBuffer byteBuffer) { 75 writeVersionAndFlags(byteBuffer); 76 IsoTypeWriter.writeUInt32(byteBuffer, trackId); 79 IsoTypeWriter.writeUInt64(byteBuffer, getBaseDataOffset()); 82 IsoTypeWriter.writeUInt32(byteBuffer, getSampleDescriptionIndex()); 85 IsoTypeWriter.writeUInt32(byteBuffer, getDefaultSampleDuration()); 88 IsoTypeWriter.writeUInt32(byteBuffer, getDefaultSampleSize()); 91 defaultSampleFlags.getContent(byteBuffer); [all...] |
SegmentTypeBox.java | 25 import java.nio.ByteBuffer; 59 public void _parseDetails(ByteBuffer content) { 70 protected void getContent(ByteBuffer byteBuffer) { 71 byteBuffer.put(IsoFile.fourCCtoBytes(majorBrand)); 72 IsoTypeWriter.writeUInt32(byteBuffer, minorVersion); 74 byteBuffer.put(IsoFile.fourCCtoBytes(compatibleBrand));
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
MarshalQueryablePrimitive.java | 28 import java.nio.ByteBuffer; 31 * Marshal/unmarshal built-in primitive types to and from a {@link ByteBuffer}. 66 public T unmarshal(ByteBuffer buffer) { 76 public void marshal(T value, ByteBuffer buffer) { 106 private void marshalPrimitive(int value, ByteBuffer buffer) { 110 private void marshalPrimitive(float value, ByteBuffer buffer) { 114 private void marshalPrimitive(double value, ByteBuffer buffer) { 118 private void marshalPrimitive(long value, ByteBuffer buffer) { 122 private void marshalPrimitive(Rational value, ByteBuffer buffer) { 127 private void marshalPrimitive(byte value, ByteBuffer buffer) [all...] |
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/ |
RamDisk.java | 25 import java.nio.ByteBuffer; 42 private final ByteBuffer data; 72 final ByteBuffer bb = ByteBuffer.wrap(bos.toByteArray(), 0, total); 76 private RamDisk(ByteBuffer buffer, int sectorSize) { 106 this.data = ByteBuffer.allocate(size); 116 public void read(long devOffset, ByteBuffer dest) throws IOException { 134 public void write(long devOffset, ByteBuffer src) throws IOException { 151 * Returns a slice of the {@code ByteBuffer} that is used by this 154 * {@link #write(long, java.nio.ByteBuffer) method}, but read-only [all...] |
/external/chromium_org/net/android/java/src/org/chromium/net/ |
NetStringUtil.java | 10 import java.nio.ByteBuffer; 25 * @param text ByteBuffer containing the character array to convert. 31 ByteBuffer text, 46 * @param text ByteBuffer containing the character array to convert. 52 ByteBuffer text, 63 * @param text ByteBuffer containing the character array to convert. 69 ByteBuffer text,
|
/external/chromium_org/third_party/icu/source/samples/layout/ |
UnicodeReader.cpp | 32 char *byteBuffer; 83 byteBuffer = new char[fileSize]; 85 if(byteBuffer == 0) { 92 fread(byteBuffer, sizeof(char), fileSize, f); 97 delete[] byteBuffer; 102 UnicodeString myText(byteBuffer, fileSize, cp); 104 delete[] byteBuffer;
|
/external/icu/icu4c/source/samples/layout/ |
UnicodeReader.cpp | 32 char *byteBuffer; 83 byteBuffer = new char[fileSize]; 85 if(byteBuffer == 0) { 92 fread(byteBuffer, sizeof(char), fileSize, f); 97 delete[] byteBuffer; 102 UnicodeString myText(byteBuffer, fileSize, cp); 104 delete[] byteBuffer;
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
FileTypeBox.java | 25 import java.nio.ByteBuffer; 60 public void _parseDetails(ByteBuffer content) { 71 protected void getContent(ByteBuffer byteBuffer) { 72 byteBuffer.put(IsoFile.fourCCtoBytes(majorBrand)); 73 IsoTypeWriter.writeUInt32(byteBuffer, minorVersion); 75 byteBuffer.put(IsoFile.fourCCtoBytes(compatibleBrand));
|
SampleDescriptionBox.java | 23 import java.nio.ByteBuffer; 60 public void _parseDetails(ByteBuffer content) { 67 protected void getContent(ByteBuffer byteBuffer) { 68 writeVersionAndFlags(byteBuffer); 69 IsoTypeWriter.writeUInt32(byteBuffer, boxes.size()); 70 writeChildBoxes(byteBuffer);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/ |
VisualRandomAccessEntry.java | 21 import java.nio.ByteBuffer; 51 public void parse(ByteBuffer byteBuffer) { 52 final byte b = byteBuffer.get(); 58 public ByteBuffer get() { 59 ByteBuffer content = ByteBuffer.allocate(1);
|
SampleToGroupBox.java | 23 import java.nio.ByteBuffer; 62 protected void getContent(ByteBuffer byteBuffer) { 63 writeVersionAndFlags(byteBuffer); 64 byteBuffer.put(groupingType.getBytes()); 66 byteBuffer.put(groupingTypeParameter.getBytes()); 68 IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); 70 IsoTypeWriter.writeUInt32(byteBuffer, entry.getSampleCount()); 71 IsoTypeWriter.writeUInt32(byteBuffer, entry.getGroupDescriptionIndex()); 77 protected void _parseDetails(ByteBuffer content) [all...] |
/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);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/ |
AbstractSampleEncryptionBox.java | 15 import java.nio.ByteBuffer; 41 public void _parseDetails(ByteBuffer content) { 144 protected void getContent(ByteBuffer byteBuffer) { 145 writeVersionAndFlags(byteBuffer); 147 IsoTypeWriter.writeUInt24(byteBuffer, algorithmId); 148 IsoTypeWriter.writeUInt8(byteBuffer, ivSize); 149 byteBuffer.put(kid); 151 IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); 156 byteBuffer.put(ivFull) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherSpiTest.java | 37 import java.nio.ByteBuffer; 207 * Test for <code>engineUpdate(ByteBuffer, ByteBuffer)</code> method 218 ByteBuffer bbNull = null; 219 ByteBuffer bb1 = ByteBuffer.allocate(len); 232 ByteBuffer bb2 = ByteBuffer.allocate(bb.length); 259 * Test for <code>engineDoFinal(ByteBuffer, ByteBuffer)</code> metho [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest1Test.java | 20 import java.nio.ByteBuffer; 106 * @tests java.security.MessageDigest#update(ByteBuffer) 111 ByteBuffer byteBuffer = ByteBuffer.wrap(b); 113 int limit = byteBuffer.limit(); 114 md.update(byteBuffer); 116 assertEquals(byteBuffer.limit(), byteBuffer.position()); 117 assertEquals(limit, byteBuffer.limit()) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
CharsetEncoderTest.java | 18 import java.nio.ByteBuffer; 275 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), false); 277 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), true); 283 ByteBuffer out = ByteBuffer.allocate(5); 313 ByteBuffer out = ByteBuffer.allocate(5); 350 ByteBuffer.allocate(30), true); 357 ByteBuffer.allocate(30), false); 364 ByteBuffer.allocate(30), true) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
Utils.java | 36 import java.nio.ByteBuffer; 86 ByteBuffer converter = ByteBuffer.wrap(valueBuf); 92 ByteBuffer converter = ByteBuffer.wrap(valueBuf); 98 ByteBuffer converter = ByteBuffer.allocate(4); 106 ByteBuffer converter = ByteBuffer.allocate(length); 119 ByteBuffer converter = ByteBuffer.allocate(length) [all...] |
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
OldSocketChannelTest.java | 26 import java.nio.ByteBuffer; 109 java.nio.ByteBuffer[] buf = new java.nio.ByteBuffer[1]; 110 buf[0] = java.nio.ByteBuffer.allocateDirect(CAPACITY_NORMAL); 240 ByteBuffer writeContent = ByteBuffer.allocate(CAPACITY_HUGE); 254 // use SocketChannel.write(ByteBuffer) to try to write CAPACITY_HUGE bytes 288 ByteBuffer buf = ByteBuffer.allocate(10); 303 ByteBuffer buf = ByteBuffer.allocate(data.length) [all...] |
/cts/tools/dex-tools/src/dex/reader/ |
DexBuffer.java | 23 import java.nio.ByteBuffer; 28 private ByteBuffer b; 45 initialize(ByteBuffer.wrap(bytes)); 54 initialize(ByteBuffer.wrap(bytes)); 57 private DexBuffer(ByteBuffer slice) { 61 private void initialize(ByteBuffer buffer) {
|