/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/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/ |
TextureBlenderAWT.java | 3 import java.nio.ByteBuffer;
45 ByteBuffer data = texture.getImage().getData(0);
54 ByteBuffer newData = BufferUtils.createByteBuffer(width * height * depth * 4);
69 ArrayList<ByteBuffer> dataArray = new ArrayList<ByteBuffer>(1);
94 protected float setupMaterialColor(ByteBuffer data, Format imageFormat, boolean neg, float[] materialColor) {
|
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/ |
GImpactCollisionShape.java | 44 import java.nio.ByteBuffer;
57 protected ByteBuffer triangleIndexBase, vertexBase;
75 // triangleIndexBase = ByteBuffer.allocate(mesh.getTriangleCount() * 3 * 4);
76 // vertexBase = ByteBuffer.allocate(mesh.getVertexCount() * 3 * 4);
130 triangleIndexBase = ByteBuffer.wrap(capsule.readByteArray("triangleIndexBase", new byte[0]));
131 vertexBase = ByteBuffer.wrap(capsule.readByteArray("vertexBase", new byte[0]));
|
/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);
|
DdmHandleViewDebug.java | 37 import java.nio.ByteBuffer; 121 ByteBuffer in = wrapChunk(request); 164 ByteBuffer in = wrapChunk(request); 179 ByteBuffer out = ByteBuffer.allocate(responseLength); 191 private View getRootView(ByteBuffer in) { 201 private View getTargetView(View root, ByteBuffer in) { 224 private Chunk dumpHierarchy(View rootView, ByteBuffer in) { 301 private Chunk invokeViewMethod(final View rootView, final View targetView, ByteBuffer in) { 382 private Chunk setLayoutParameter(final View rootView, final View targetView, ByteBuffer in) [all...] |
/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);
|
/frameworks/base/media/java/android/media/videoeditor/ |
TransitionAlpha.java | 25 import java.nio.ByteBuffer; 126 ByteBuffer byteBuffer = ByteBuffer.allocate(framingBuffer.length * 4); 129 byte[] array = byteBuffer.array(); 133 intBuffer = byteBuffer.asIntBuffer();
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
SerializedFrame.java | 35 import java.nio.ByteBuffer; 230 public void setData(ByteBuffer buffer, int offset, int length) { 232 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length)); 236 public ByteBuffer getData() { 238 return (result instanceof ByteBuffer) ? (ByteBuffer)result : null;
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
MacSpiTest.java | 25 import java.nio.ByteBuffer; 110 protected void engineUpdate(ByteBuffer input) { 149 protected void engineUpdate(ByteBuffer input) { 198 ByteBuffer byteBuf = ByteBuffer.allocate(10); 217 byteBuf = ByteBuffer.allocate(5);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
MessageDigestSpiTest.java | 25 import java.nio.ByteBuffer; 143 * java.security.MessageDigestSpi#engineUpdate(ByteBuffer) 149 ByteBuffer buf = ByteBuffer.wrap(b, 0, b.length); 156 buf = ByteBuffer.wrap(b, 0, b.length); 211 protected void engineUpdate(ByteBuffer input) {
|
/packages/apps/Email/src/com/beetstra/jutf7/ |
UTF7StyleCharsetDecoder.java | 27 import java.nio.ByteBuffer;
61 * @see java.nio.charset.CharsetDecoder#decodeLoop(java.nio.ByteBuffer,
64 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) {
103 private CoderResult overflow(ByteBuffer in) {
120 private CoderResult handleBase64(ByteBuffer in, CharBuffer out, byte lastRead) {
172 private CoderResult malformed(ByteBuffer in) {
|
/pdk/apps/CameraITS/service/src/com/android/camera2/its/ |
ItsUtils.java | 34 import java.nio.ByteBuffer; 41 public static ByteBuffer jsonToByteBuffer(JSONObject jsonObj) { 42 return ByteBuffer.wrap(jsonObj.toString().getBytes(Charset.defaultCharset())); 117 ByteBuffer buffer = planes[0].getBuffer(); 126 ByteBuffer buffer = planes[i].getBuffer(); 146 // bytes in the bytebuffer.
|
/external/chromium/third_party/libjingle/source/talk/p2p/base/ |
stun.cc | 35 using talk_base::ByteBuffer; 144 bool StunMessage::Read(ByteBuffer* buf) { 193 void StunMessage::Write(ByteBuffer* buf) const { 326 bool StunAddressAttribute::Read(ByteBuffer* buf) { 339 void StunAddressAttribute::Write(ByteBuffer* buf) const { 361 bool StunUInt32Attribute::Read(ByteBuffer* buf) { 367 void StunUInt32Attribute::Write(ByteBuffer* buf) const { 407 bool StunByteStringAttribute::Read(ByteBuffer* buf) { 414 void StunByteStringAttribute::Write(ByteBuffer* buf) const { 435 bool StunErrorCodeAttribute::Read(ByteBuffer* buf) [all...] |
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
LiteralByteStringTest.java | 40 import java.nio.ByteBuffer; 203 ByteBuffer myBuffer = ByteBuffer.allocate(referenceBytes.length); 205 assertTrue(classUnderTest + ".copyTo(ByteBuffer) must give back the same bytes", 210 ByteBuffer byteBuffer = stringUnderTest.asReadOnlyByteBuffer(); 212 assertTrue(byteBuffer.remaining() == referenceBytes.length); 213 assertTrue(byteBuffer.isReadOnly()); 214 byteBuffer.get(roundTripBytes); 220 List<ByteBuffer> byteBuffers = stringUnderTest.asReadOnlyByteBufferList() [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
SSLEngine.java | 20 import java.nio.ByteBuffer; 325 public abstract SSLEngineResult unwrap(ByteBuffer src, 326 ByteBuffer[] dsts, 359 public abstract SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) 382 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException { 383 return unwrap(src, new ByteBuffer[] { dst }, 0, 1); 407 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts) throws SSLException [all...] |
/prebuilts/devtools/tools/lib/ |
jobb.jar | |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
FragmentedMp4Builder.java | 28 import java.nio.ByteBuffer; 97 List<ByteBuffer> samples1 = o1.getSamples().subList(l2i(startSample1) - 1, l2i(endSample1) - 1); 98 List<ByteBuffer> samples2 = o2.getSamples().subList(l2i(startSample2) - 1, l2i(endSample2) - 1); 100 for (ByteBuffer byteBuffer : samples1) { 101 size1 += byteBuffer.limit(); 104 for (ByteBuffer byteBuffer : samples2) { 105 size2 += byteBuffer.limit(); 187 for (ByteBuffer sample : getSamples(startSample, endSample, track, i)) [all...] |
/developers/build/prebuilts/gradle/BasicMediaDecoder/BasicMediaDecoderSample/src/main/java/com/example/android/common/media/ |
MediaCodecWrapper.java | 24 import java.nio.ByteBuffer; 50 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 private ByteBuffer[] mInputBuffers; 62 private ByteBuffer[] mOutputBuffers; 173 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 185 public boolean writeSample(final ByteBuffer input, 195 ByteBuffer buffer = mInputBuffers[index]; 250 ByteBuffer buffer = mInputBuffers[index]; 302 * java.nio.ByteBuffer)} 314 ByteBuffer buffer = mOutputBuffers[index] [all...] |
/developers/build/prebuilts/gradle/BasicRenderScript/BasicRenderScriptSample/src/main/java/com/example/android/common/media/ |
MediaCodecWrapper.java | 24 import java.nio.ByteBuffer; 50 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 private ByteBuffer[] mInputBuffers; 62 private ByteBuffer[] mOutputBuffers; 173 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 185 public boolean writeSample(final ByteBuffer input, 195 ByteBuffer buffer = mInputBuffers[index]; 250 ByteBuffer buffer = mInputBuffers[index]; 302 * java.nio.ByteBuffer)} 314 ByteBuffer buffer = mOutputBuffers[index] [all...] |
/developers/build/prebuilts/gradle/MediaRecorder/MediaRecorderSample/src/main/java/com/example/android/common/media/ |
MediaCodecWrapper.java | 24 import java.nio.ByteBuffer; 50 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 private ByteBuffer[] mInputBuffers; 62 private ByteBuffer[] mOutputBuffers; 173 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 185 public boolean writeSample(final ByteBuffer input, 195 ByteBuffer buffer = mInputBuffers[index]; 250 ByteBuffer buffer = mInputBuffers[index]; 302 * java.nio.ByteBuffer)} 314 ByteBuffer buffer = mOutputBuffers[index] [all...] |
/developers/samples/android/common/src/java/com/example/android/common/media/ |
MediaCodecWrapper.java | 24 import java.nio.ByteBuffer; 50 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 private ByteBuffer[] mInputBuffers; 62 private ByteBuffer[] mOutputBuffers; 173 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 185 public boolean writeSample(final ByteBuffer input, 195 ByteBuffer buffer = mInputBuffers[index]; 250 ByteBuffer buffer = mInputBuffers[index]; 302 * java.nio.ByteBuffer)} 314 ByteBuffer buffer = mOutputBuffers[index] [all...] |
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
MediaCodecWrapper.java | 24 import java.nio.ByteBuffer; 50 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); 61 private ByteBuffer[] mInputBuffers; 62 private ByteBuffer[] mOutputBuffers; 173 * @param input A ByteBuffer containing the input data for one sample. The buffer must be set 185 public boolean writeSample(final ByteBuffer input, 195 ByteBuffer buffer = mInputBuffers[index]; 250 ByteBuffer buffer = mInputBuffers[index]; 302 * java.nio.ByteBuffer)} 314 ByteBuffer buffer = mOutputBuffers[index] [all...] |
/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...] |
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/ |
MultiTouchActivity.java | 20 import java.nio.ByteBuffer; 167 ByteBuffer bb = null; 178 bb = ByteBuffer.allocate( 189 bb = ByteBuffer.allocate(ProtocolConstants.MT_EVENT_ENTRY_SIZE); 197 bb = ByteBuffer.allocate(ProtocolConstants.MT_EVENT_ENTRY_SIZE); 205 bb = ByteBuffer.allocate(ProtocolConstants.MT_EVENT_ENTRY_SIZE); 213 bb = ByteBuffer.allocate(ProtocolConstants.MT_EVENT_ENTRY_SIZE); 248 onFrameBuffer(((ByteBuffer) msg.obj).array()); 272 final ByteBuffer bb = ByteBuffer.wrap(array) [all...] |