Searched refs:buffer (Results 76 - 100 of 848) sorted by relevance

1234567891011>>

/frameworks/av/include/media/nbaio/
H A DPipe.h33 // buffer is an optional parameter specifying the virtual address of the pipe buffer,
35 Pipe(size_t maxFrames, const NBAIO_Format& format, void *buffer = NULL);
37 // If a buffer was specified in the constructor, it is not automatically freed by destructor.
56 virtual ssize_t write(const void *buffer, size_t count);
/frameworks/av/media/libstagefright/
H A DDataURISource.cpp37 sp<ABuffer> buffer; local
51 buffer = decodeBase64(encoded);
53 if (buffer == NULL) {
60 buffer = new ABuffer(dataLen);
61 memcpy(buffer->data(), commaPos + 1, dataLen);
73 return new DataURISource(buffer);
76 DataURISource::DataURISource(const sp<ABuffer> &buffer) argument
77 : mBuffer(buffer) {
/frameworks/av/media/libstagefright/rtsp/
H A DAAVCAssembler.cpp69 sp<ABuffer> buffer = *queue->begin(); local
73 mNextExpectedSeqNo = (uint32_t)buffer->int32Data();
74 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) {
80 const uint8_t *data = buffer->data();
81 size_t size = buffer->size();
86 ALOGV("Ignoring corrupt buffer.");
95 addSingleNALUnit(buffer);
104 bool success = addSingleTimeAggregationPacket(buffer);
117 ALOGV("Ignoring unsupported buffer (nalType=%d)", nalType);
126 void AAVCAssembler::addSingleNALUnit(const sp<ABuffer> &buffer) { argument
143 addSingleTimeAggregationPacket(const sp<ABuffer> &buffer) argument
184 sp<ABuffer> buffer = *queue->begin(); local
230 const sp<ABuffer> &buffer = *it; local
295 const sp<ABuffer> &buffer = *it; local
[all...]
H A DARTPSource.cpp88 void ARTPSource::processRTPPacket(const sp<ABuffer> &buffer) { argument
89 if (queuePacket(buffer) && mAssembler != NULL) {
105 bool ARTPSource::queuePacket(const sp<ABuffer> &buffer) { argument
106 uint32_t seqNum = (uint32_t)buffer->int32Data();
110 mQueue.push_back(buffer);
145 buffer->setInt32Data(seqNum);
153 ALOGW("Discarding duplicate buffer");
157 mQueue.insert(it, buffer);
166 void ARTPSource::addFIR(const sp<ABuffer> &buffer) { argument
179 if (buffer
216 addReceiverReport(const sp<ABuffer> &buffer) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableReprocessFormatsMap.java44 public void marshal(ReprocessFormatsMap value, ByteBuffer buffer) { argument
57 buffer.putInt(input);
62 buffer.putInt(outputs.length);
66 buffer.putInt(output);
72 public ReprocessFormatsMap unmarshal(ByteBuffer buffer) { argument
73 int len = buffer.remaining() / SIZEOF_INT32;
74 if (buffer.remaining() % SIZEOF_INT32 != 0) {
80 IntBuffer intBuffer = buffer.asIntBuffer();
H A DMarshalQueryableSize.java40 public void marshal(Size value, ByteBuffer buffer) { argument
41 buffer.putInt(value.getWidth());
42 buffer.putInt(value.getHeight());
46 public Size unmarshal(ByteBuffer buffer) { argument
47 int width = buffer.getInt();
48 int height = buffer.getInt();
H A DMarshalQueryableSizeF.java42 public void marshal(SizeF value, ByteBuffer buffer) { argument
43 buffer.putFloat(value.getWidth());
44 buffer.putFloat(value.getHeight());
48 public SizeF unmarshal(ByteBuffer buffer) { argument
49 float width = buffer.getFloat();
50 float height = buffer.getFloat();
/frameworks/base/core/java/android/util/
H A DLogPrinter.java48 * Same as above, but buffer is one of the LOG_ID_ constants from android.util.Log.
50 public LogPrinter(int priority, String tag, int buffer) { argument
53 mBuffer = buffer;
H A DBase64OutputStream.java31 private byte[] buffer = null; field in class:Base64OutputStream
72 // bytes, we buffer up calls to write(int) in an internal
76 if (buffer == null) {
77 buffer = new byte[1024];
79 if (bpos >= buffer.length) {
80 // internal buffer full; write it out.
81 internalWrite(buffer, 0, bpos, false);
84 buffer[bpos++] = (byte) b;
93 internalWrite(buffer, 0, bpos, false);
/frameworks/base/obex/javax/obex/
H A DPrivateOutputStream.java92 public void write(byte[] buffer) throws IOException { argument
93 write(buffer, 0, buffer.length);
97 public synchronized void write(byte[] buffer, int offset, int count) throws IOException { argument
101 if (buffer == null) {
102 throw new IOException("buffer is null");
104 if ((offset | count) < 0 || count > buffer.length - offset) {
112 mArray.write(buffer, offset1, bufferLeft);
118 mArray.write(buffer, offset1, remainLength);
/frameworks/base/tools/aapt2/
H A DBigBuffer.h42 std::unique_ptr<uint8_t[]> buffer; member in struct:aapt::BigBuffer::Block
85 * returns, buffer is empty.
87 void appendBuffer(BigBuffer&& buffer);
104 * Returns a pointer to a buffer of the requested size.
105 * The buffer is zero-initialized.
131 inline void BigBuffer::appendBuffer(BigBuffer&& buffer) { argument
132 std::move(buffer.mBlocks.begin(), buffer.mBlocks.end(), std::back_inserter(mBlocks));
133 mSize += buffer.mSize;
134 buffer
[all...]
/frameworks/compile/libbcc/include/bcinfo/Wrap/
H A Din_memory_wrapper_input.h30 InMemoryWrapperInput(const char* buffer, size_t size);
32 // Tries to read the requested number of bytes into the buffer. Returns the
34 virtual size_t Read(uint8_t* buffer, size_t wanted);
35 // Returns true if at end of buffer. Note: May return false
38 // Returns the size of the buffer (in bytes).
40 // Moves to the given offset within the buffer. Returns
44 // The actual in-memory buffer
46 // The position in the buffer
50 // The size of the buffer.
/frameworks/ex/framesequence/jni/
H A DStream.h29 size_t peek(void* buffer, size_t size);
30 size_t read(void* buffer, size_t size);
36 virtual size_t doRead(void* buffer, size_t size) = 0;
46 MemoryStream(void* buffer, size_t size, jobject buf) : argument
47 mBuffer((uint8_t*)buffer),
55 virtual size_t doRead(void* buffer, size_t size);
68 virtual size_t doRead(void* buffer, size_t size);
83 virtual size_t doRead(void* buffer, size_t size);
/frameworks/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { argument
73 final int arrayLength = buffer.length;
84 final int numRead = super.read(buffer, offset, byteCount);
91 public int read(byte[] buffer) throws IOException { argument
92 return read(buffer, 0, buffer.length);
/frameworks/base/core/java/android/text/method/
H A DTouch.java88 public static boolean onTouchEvent(TextView widget, Spannable buffer, argument
94 ds = buffer.getSpans(0, buffer.length(), DragState.class);
97 buffer.removeSpan(ds[i]);
100 buffer.setSpan(new DragState(event.getX(), event.getY(),
106 ds = buffer.getSpans(0, buffer.length(), DragState.class);
109 buffer.removeSpan(ds[i]);
119 ds = buffer.getSpans(0, buffer
196 getInitialScrollX(TextView widget, Spannable buffer) argument
205 getInitialScrollY(TextView widget, Spannable buffer) argument
218 isActivelySelecting(Spannable buffer) argument
234 isSelectionStarted(Spannable buffer) argument
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_buffer.cpp20 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size) { argument
28 char* data = reinterpret_cast<char*>(env->GetLongField(buffer, ptr_field));
30 *size = env->GetIntField(buffer, size_field);
39 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size) { argument
47 env->SetLongField(buffer, ptr_field, reinterpret_cast<jlong>(data));
48 env->SetIntField(buffer, size_field, size);
71 // Get source buffer
79 // Attach it to new buffer
/frameworks/native/services/surfaceflinger/tests/vsync/
H A Dvsync.cpp28 DisplayEventReceiver::Event buffer[1]; local
32 while ((n = q->getEvents(buffer, 1)) > 0) {
34 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) {
35 printf("event vsync: count=%d\t", buffer[i].vsync.count);
38 float t = float(buffer[i].header.timestamp - oldTimeStamp) / s2ns(1);
41 oldTimeStamp = buffer[i].header.timestamp;
/frameworks/av/media/libstagefright/httplive/
H A DLiveDataSource.cpp69 sp<ABuffer> buffer = *it; local
71 totalAvailable += buffer->size();
112 sp<ABuffer> buffer = *mBufferQueue.begin(); local
116 if (copy > buffer->size()) {
117 copy = buffer->size();
120 memcpy((uint8_t *)data + sizeDone, buffer->data(), copy);
124 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
126 if (buffer
136 queueBuffer(const sp<ABuffer> &buffer) argument
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DStreamDescriptor.cpp80 char buffer[SIZE]; local
83 snprintf(buffer, SIZE, "%s %02d %02d ",
85 result.append(buffer);
87 snprintf(buffer, SIZE, "%04x : %02d, ",
90 result.append(buffer);
146 char buffer[SIZE]; local
148 snprintf(buffer, SIZE, "\nStreams dump:\n");
149 write(fd, buffer, strlen(buffer));
150 snprintf(buffer, SIZ
[all...]
H A DAudioPatch.cpp41 char buffer[SIZE]; local
44 snprintf(buffer, SIZE, "%*sAudio patch %d:\n", spaces, "", index+1);
45 result.append(buffer);
46 snprintf(buffer, SIZE, "%*s- handle: %2d\n", spaces, "", mHandle);
47 result.append(buffer);
48 snprintf(buffer, SIZE, "%*s- audio flinger handle: %2d\n", spaces, "", mAfPatchHandle);
49 result.append(buffer);
50 snprintf(buffer, SIZE, "%*s- owner uid: %2d\n", spaces, "", mUid);
51 result.append(buffer);
52 snprintf(buffer, SIZ
145 char buffer[SIZE]; local
[all...]
H A DAudioInputDescriptor.cpp99 char buffer[SIZE]; local
102 snprintf(buffer, SIZE, " ID: %d\n", getId());
103 result.append(buffer);
104 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate);
105 result.append(buffer);
106 snprintf(buffer, SIZE, " Format: %d\n", mFormat);
107 result.append(buffer);
108 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask);
109 result.append(buffer);
110 snprintf(buffer, SIZ
182 char buffer[SIZE]; local
[all...]
/frameworks/av/services/audioflinger/tests/
H A Dtest_utils.h88 /* Creates a type-independent audio buffer provider from
89 * a buffer base address, size, framesize, and input increment array.
91 * No allocation or deallocation of the provided buffer is done.
115 virtual android::status_t getNextBuffer(Buffer* buffer, int64_t pts __unused = kInvalidPTS) argument
117 size_t requestedFrames = buffer->frameCount;
119 buffer->frameCount = mNumFrames - mNextFrame;
124 mNextIdx-1, provided, buffer->frameCount);
125 if (provided < buffer->frameCount) {
126 buffer->frameCount = provided;
134 requestedFrames, mNumFrames - mNextFrame, buffer
145 releaseBuffer(Buffer* buffer) argument
191 T* buffer = reinterpret_cast<T*>(vbuffer); local
215 T *buffer = reinterpret_cast<T*>(vbuffer); local
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DAudioState.java105 StringBuffer buffer = new StringBuffer();
107 listAppend(buffer, "EARPIECE");
110 listAppend(buffer, "BLUETOOTH");
113 listAppend(buffer, "WIRED_HEADSET");
116 listAppend(buffer, "SPEAKER");
119 return buffer.toString();
122 private static void listAppend(StringBuffer buffer, String str) { argument
123 if (buffer.length() > 0) {
124 buffer.append(", ");
126 buffer
[all...]
H A DCallAudioState.java148 StringBuffer buffer = new StringBuffer();
150 listAppend(buffer, "EARPIECE");
153 listAppend(buffer, "BLUETOOTH");
156 listAppend(buffer, "WIRED_HEADSET");
159 listAppend(buffer, "SPEAKER");
162 return buffer.toString();
203 private static void listAppend(StringBuffer buffer, String str) { argument
204 if (buffer.length() > 0) {
205 buffer.append(", ");
207 buffer
[all...]
/frameworks/av/cmds/stagefright/
H A DSineSource.cpp64 MediaBuffer *buffer; local
65 status_t err = mGroup->acquire_buffer(&buffer);
72 size_t numFramesPerBuffer = buffer->size() / frameSize;
74 int16_t *ptr = (int16_t *)buffer->data();
90 buffer->meta_data()->setInt64(
95 buffer->set_range(0, numFramesPerBuffer * frameSize);
97 *out = buffer;

Completed in 576 milliseconds

1234567891011>>