/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/ |
AbstractTrackEncryptionBox.java | 7 import java.nio.ByteBuffer; 41 ByteBuffer b = ByteBuffer.wrap(default_KID); 51 public void _parseDetails(ByteBuffer content) { 60 protected void getContent(ByteBuffer byteBuffer) { 61 writeVersionAndFlags(byteBuffer); 62 IsoTypeWriter.writeUInt24(byteBuffer, defaultAlgorithmId); 63 IsoTypeWriter.writeUInt8(byteBuffer, defaultIvSize); 64 byteBuffer.put(default_KID) [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/ |
CencSampleEncryptionInformationGroupEntry.java | 23 import java.nio.ByteBuffer; 42 public void parse(ByteBuffer byteBuffer) { 43 isEncrypted = IsoTypeReader.readUInt24(byteBuffer); 44 ivSize = (byte) IsoTypeReader.readUInt8(byteBuffer); 46 byteBuffer.get(kid); 51 public ByteBuffer get() { 52 ByteBuffer byteBuffer = ByteBuffer.allocate(20) [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/threegpp26245/ |
FontTableBox.java | 9 import java.nio.ByteBuffer; 34 public void _parseDetails(ByteBuffer content) { 44 protected void getContent(ByteBuffer byteBuffer) { 45 IsoTypeWriter.writeUInt16(byteBuffer, entries.size()); 47 record.getContent(byteBuffer); 71 public void parse(ByteBuffer bb) { 77 public void getContent(ByteBuffer bb) {
|
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/ |
VideoRenderer.java | 30 import java.nio.ByteBuffer; 47 public ByteBuffer[] yuvPlanes; 65 I420Frame(int width, int height, int rotationDegree, int[] yuvStrides, ByteBuffer[] yuvPlanes, 77 // The convention in WebRTC is that the first element in a ByteBuffer corresponds to the 123 public static native void nativeCopyPlane(ByteBuffer src, int width, 124 int height, int srcStride, ByteBuffer dst, int dstStride);
|
/frameworks/base/graphics/java/android/graphics/ |
FontFamily.java | 24 import java.nio.ByteBuffer; 75 ByteBuffer fontBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize); 83 public boolean addFontWeightStyle(ByteBuffer font, int ttcIndex, List<FontListParser.Axis> axes, 94 private static native boolean nAddFont(long nativeFamily, ByteBuffer font, int ttcIndex); 95 private static native boolean nAddFontWeightStyle(long nativeFamily, ByteBuffer font,
|
/frameworks/base/services/net/java/android/net/dhcp/ |
DhcpAckPacket.java | 20 import java.nio.ByteBuffer; 56 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { 57 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); 70 void finishPacket(ByteBuffer buffer) {
|
DhcpOfferPacket.java | 20 import java.nio.ByteBuffer; 58 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { 59 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); 72 void finishPacket(ByteBuffer buffer) {
|
/hardware/bsp/intel/peripheral/libmraa/examples/java/ |
SpiMAX7219.java | 28 import java.nio.ByteBuffer; 62 ByteBuffer buf = ByteBuffer.allocate(dataAA55.length * 2); 70 buf = ByteBuffer.allocate(data55AA.length * 2); 78 buf = ByteBuffer.allocate(data.length * 2);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
DirectByteBufferTest.java | 18 import java.nio.ByteBuffer; 28 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH); 39 * @tests java.nio.ByteBuffer#allocateDirect(int) 43 ByteBuffer.allocateDirect(-1); 68 ByteBuffer buf = ByteBuffer.allocateDirect(23);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
MockSocketChannel.java | 24 import java.nio.ByteBuffer; 62 public int read(ByteBuffer arg0) throws IOException { 67 public long read(ByteBuffer[] arg0, int arg1, int arg2) throws IOException { 72 public int write(ByteBuffer arg0) throws IOException { 77 public long write(ByteBuffer[] arg0, int arg1, int arg2) throws IOException {
|
FileChannelTest.java | 29 import java.nio.ByteBuffer; 181 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); 234 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); 281 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); 293 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); 297 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES) [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
ChannelInputStream.java | 53 // read(ReadableByteChannel,ByteBuffer, boolean block) 54 public static int read(ReadableByteChannel ch, ByteBuffer bb) 78 private ByteBuffer bb = null; 104 ByteBuffer bb = ((this.bs == bs) 106 : ByteBuffer.wrap(bs)); 114 protected int read(ByteBuffer bb)
|
/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);
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
CipherSpiTest.java | 31 import java.nio.ByteBuffer; 120 * Test for <code>engineUpdate(ByteBuffer, ByteBuffer)</code> method 131 ByteBuffer bbNull = null; 132 ByteBuffer bb1 = ByteBuffer.allocate(len); 145 ByteBuffer bb2 = ByteBuffer.allocate(bb.length); 172 * Test for <code>engineDoFinal(ByteBuffer, ByteBuffer)</code> metho [all...] |
/frameworks/base/opengl/java/android/opengl/ |
ETC1Util.java | 23 import java.nio.ByteBuffer; 85 ByteBuffer decodedData = ByteBuffer.allocateDirect(stride*height) 117 public ETC1Texture(int width, int height, ByteBuffer data) { 139 public ByteBuffer getData() { return mData; } 143 private ByteBuffer mData; 160 ByteBuffer headerBuffer = ByteBuffer.allocateDirect(ETC1.ETC_PKM_HEADER_SIZE) 170 ByteBuffer dataBuffer = ByteBuffer.allocateDirect(encodedSize).order(ByteOrder.nativeOrder()) [all...] |
/frameworks/base/services/net/java/android/net/util/ |
IpUtils.java | 23 import java.nio.ByteBuffer; 43 * payload) on the specified portion of a ByteBuffer. The seed 46 private static int checksum(ByteBuffer buf, int seed, int start, int end) { 50 // set position of original ByteBuffer, so that the ShortBuffer 55 // re-set ByteBuffer position 83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { 93 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { 101 private static byte ipversion(ByteBuffer buf, int headerOffset) { 105 public static short ipChecksum(ByteBuffer buf, int headerOffset) { 110 private static short transportChecksum(ByteBuffer buf, int protocol [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
GLToolbox.java | 24 import java.nio.ByteBuffer; 70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { 76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { 104 setTexturePixels(texId, target, (ByteBuffer)null, width, height); 114 public static void setTexturePixels(int texId, int target, ByteBuffer pixels, 120 pixels = ByteBuffer.allocateDirect(width * height * 4); 151 public static void setVboData(int vboId, ByteBuffer data) { 159 ByteBuffer buffer = ByteBuffer.allocateDirect(len).order(ByteOrder.nativeOrder());
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
EngineArgs.java | 42 ByteBuffer netData; 43 ByteBuffer [] appData; 70 EngineArgs(ByteBuffer [] appData, int offset, int len, 71 ByteBuffer netData) { 79 EngineArgs(ByteBuffer netData, ByteBuffer [] appData, int offset, 96 private void init(ByteBuffer netData, ByteBuffer [] appData, 170 void scatter(ByteBuffer readyData) { 227 * We are doing lots of ByteBuffer manipulations, in which cas [all...] |
EngineInputRecord.java | 50 * A dummy ByteBuffer we'll pass back even when the data 53 static private ByteBuffer tmpBB = ByteBuffer.allocate(0); 76 * Check if there is enough inbound data in the ByteBuffer 81 int bytesInCompletePacket(ByteBuffer buf) throws SSLException { 185 * If external data(app), return a new ByteBuffer with data to 188 ByteBuffer decrypt(MAC signer, 189 CipherBox box, ByteBuffer bb) throws BadPaddingException { 259 // an effective way to work on ByteBuffer when its capacity is 294 * Please DON'T change the content of the ByteBuffer parameter [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/ |
AbstractBox.java | 30 import java.nio.ByteBuffer; 41 * <li>{@link #_parseDetails(java.nio.ByteBuffer)}</li> 42 * <li>{@link #getContent(java.nio.ByteBuffer)}</li> 56 private ByteBuffer content; 57 private ByteBuffer deadBytes = null; 71 * that <code>getContent(ByteBuffer)</code> writes. 74 * @see #getContent(java.nio.ByteBuffer) 79 * Write the box's content into the given <code>ByteBuffer</code>. This must include flags 80 * and version in case of a full box. <code>byteBuffer</code> has been initialized with 83 * @param byteBuffer the sink for the box's conten [all...] |
/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/nio/charset/ |
CharsetDecoderTest.java | 19 import java.nio.ByteBuffer; 35 ByteBuffer in = ByteBuffer.wrap(new byte[] { 109, 97, 109 }); 43 ByteBuffer inBuffer = ByteBuffer.wrap(arr, 0, arr.length).slice(); 59 ByteBuffer inBuffer = ByteBuffer.wrap(arr, offset, arr.length - offset).slice(); 75 CharBuffer outBuffer = decoder.decode(ByteBuffer.wrap(arr, offset, arr.length - offset)); 88 ByteBuffer buf = encoder.encode(CharBuffer.wrap(s)); 99 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0xe2 }), cb, false) [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) {
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
SimpleFrame.java | 26 import java.nio.ByteBuffer; 110 public void setData(ByteBuffer buffer, int offset, int length) { 112 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length)); 116 public ByteBuffer getData() { 117 return (mObject instanceof ByteBuffer) ? (ByteBuffer)mObject : null;
|
/frameworks/base/services/net/java/android/net/netlink/ |
NetlinkSocket.java | 33 import java.nio.ByteBuffer; 84 public ByteBuffer recvMessage() 93 public ByteBuffer recvMessage(long timeoutMs) throws ErrnoException, InterruptedIOException { 109 public ByteBuffer recvMessage(int bufsize, long timeoutMs) 122 ByteBuffer byteBuffer = ByteBuffer.allocate(bufsize); 123 int length = Os.read(mDescriptor, byteBuffer); 127 byteBuffer.position(0); 128 byteBuffer.limit(length) [all...] |