/frameworks/av/media/libstagefright/ |
H A D | AACWriter.cpp | 235 * 11 bits of buffer fullness. 0x7FF for VBR. 297 MediaBuffer *buffer; local 298 err = mSource->read(&buffer); 305 buffer->release(); 306 buffer = NULL; 310 mEstimatedSizeBytes += kAdtsHeaderLength + buffer->range_length(); 312 buffer->release(); 313 buffer = NULL; 319 if (buffer->meta_data()->findInt32(kKeyIsCodecConfig, &isCodecSpecific) && isCodecSpecific) { 320 ALOGV("Drop codec specific info buffer"); [all...] |
H A D | AMRWriter.cpp | 196 MediaBuffer *buffer; local 197 err = mSource->read(&buffer); 204 buffer->release(); 205 buffer = NULL; 209 mEstimatedSizeBytes += buffer->range_length(); 211 buffer->release(); 212 buffer = NULL; 218 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 234 buffer->release(); 235 buffer [all...] |
H A D | OggExtractor.cpp | 57 MediaBuffer **buffer, const ReadOptions *options = NULL); 85 virtual status_t readNextPacket(MediaBuffer **buffer) = 0; 144 virtual status_t verifyHeader(MediaBuffer *buffer, uint8_t type) = 0; 150 // *buffer is NULL'ed out immediately upon entry, and if successful a new buffer is allocated; 151 // clients are responsible for releasing the original buffer. 152 status_t _readNextPacket(MediaBuffer **buffer, bool calcVorbisTimestamp); 154 int32_t getPacketBlockSize(MediaBuffer *buffer); 176 virtual status_t readNextPacket(MediaBuffer **buffer) { argument 177 return _readNextPacket(buffer, /* calcVorbisTimestam 671 MediaBuffer *buffer = NULL; local 895 getPacketBlockSize(MediaBuffer *buffer) argument 935 verifyHeader(MediaBuffer *buffer, uint8_t type) argument 948 verifyOpusHeader(MediaBuffer *buffer) argument 974 verifyOpusComments(MediaBuffer *buffer) argument 1065 verifyHeader( MediaBuffer *buffer, uint8_t type) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | RecordTracks.h | 31 void *buffer, 45 // clear the buffer overflow flag 47 // set the buffer overflow flag and return previous value 52 void dump(char* buffer, size_t size, bool active); 71 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer); 74 bool mOverflow; // overflow on most recent attempt to fill client buffer 76 AudioBufferProvider::Buffer mSink; // references client's buffer sink in shared memory 104 void *buffer, 109 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer); 110 virtual void releaseBuffer(AudioBufferProvider::Buffer* buffer); [all...] |
H A D | SpdifStreamOut.h | 53 * Write audio buffer to driver. Returns number of bytes written, or a 60 * bytes that currently fit in the driver/hardware buffer and then return 63 * driver/hardware buffer. 65 virtual ssize_t write(const void* buffer, size_t bytes); 103 virtual ssize_t writeOutput(const void* buffer, size_t bytes) argument 105 return mSpdifStreamOut->writeDataBurst(buffer, bytes); 117 ssize_t writeInternal(const void* buffer, size_t bytes);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioInputDescriptor.cpp | 181 char buffer[SIZE]; local 184 snprintf(buffer, SIZE, " ID: %d\n", getId()); 185 result.append(buffer); 186 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); 187 result.append(buffer); 188 snprintf(buffer, SIZE, " Format: %d\n", mFormat); 189 result.append(buffer); 190 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask); 191 result.append(buffer); 192 snprintf(buffer, SIZ 262 char buffer[SIZE]; local [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | Touch.java | 88 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 184 getInitialScrollX(TextView widget, Spannable buffer) argument 193 getInitialScrollY(TextView widget, Spannable buffer) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | LongSparseLongArray.java | 246 StringBuilder buffer = new StringBuilder(mSize * 28); 247 buffer.append('{'); 250 buffer.append(", "); 253 buffer.append(key); 254 buffer.append('='); 256 buffer.append(value); 258 buffer.append('}'); 259 return buffer.toString();
|
H A D | SparseLongArray.java | 244 StringBuilder buffer = new StringBuilder(mSize * 28); 245 buffer.append('{'); 248 buffer.append(", "); 251 buffer.append(key); 252 buffer.append('='); 254 buffer.append(value); 256 buffer.append('}'); 257 return buffer.toString();
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_buffer.h | 27 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size); 30 * Attach a given C data buffer and its size to a given allocated Java NativeBuffer instance. After 31 * this call, the java instance will have the given C buffer as its backing. Note, that the Java 32 * instance contains the flag on whether or not it owns the buffer or not, so make sure it is what 35 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size);
|
/frameworks/native/include/ui/ |
H A D | FrameStats.h | 58 status_t flatten(void* buffer, size_t size) const; 59 status_t unflatten(void const* buffer, size_t size);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPWriter.cpp | 176 static void StripStartcode(MediaBuffer *buffer) { argument 177 if (buffer->range_length() < 4) { 182 (const uint8_t *)buffer->data() + buffer->range_offset(); 185 buffer->set_range( 186 buffer->range_offset() + 4, buffer->range_length() - 4); 198 MediaBuffer *buffer; 199 CHECK_EQ(mSource->read(&buffer), (status_t)OK); 201 StripStartcode(buffer); 299 sp<ABuffer> buffer = new ABuffer(65536); local 311 send(const sp<ABuffer> &buffer, bool isRTCP) argument 330 addSR(const sp<ABuffer> &buffer) argument 369 addSDES(const sp<ABuffer> &buffer) argument 526 makeH264SPropParamSets(MediaBuffer *buffer) argument 555 sp<ABuffer> buffer = new ABuffer(8); local 582 sp<ABuffer> buffer = new ABuffer(kMaxPacketSize); local 686 sp<ABuffer> buffer = new ABuffer(kMaxPacketSize); local 773 sp<ABuffer> buffer = new ABuffer(kMaxPacketSize); local [all...] |
H A D | UDPPusher.cpp | 82 sp<ABuffer> buffer = new ABuffer(length); local 83 if (fread(buffer->data(), 1, length, mFile) < length) { 89 mSocket, buffer->data(), buffer->size(), 0, 92 CHECK_EQ(n, (ssize_t)buffer->size()); 118 sp<ABuffer> buffer = new ABuffer(8); local 119 uint8_t *data = buffer->data(); 128 buffer->setRange(0, 8); 134 mSocket, buffer->data(), buffer [all...] |
H A D | ARTPSource.h | 40 void processRTPPacket(const sp<ABuffer> &buffer); 46 void addReceiverReport(const sp<ABuffer> &buffer); 47 void addFIR(const sp<ABuffer> &buffer); 66 bool queuePacket(const sp<ABuffer> &buffer);
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3Stream.h | 66 * buffer allocation upfront, to minmize disruption due to lengthy allocation 93 * When startPrepare is called before the stream has a buffer 99 * When the buffer queue of the stream is abandoned. 103 * depending on the handed out buffer count. The state must be STATE_CONFIGURED 192 * a valid filled buffer), which determines if a stream can still have 212 * buffer pre-allocation, and transitions to the PREPARING state. 215 * valid buffer has already been returned to this stream. 225 * Continue stream buffer preparation by allocating the next 226 * buffer for this stream. May only be called in the PREPARED state. 231 * This call allocates one buffer, whic [all...] |
H A D | Camera3DummyStream.h | 57 virtual status_t detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd); 80 const camera3_stream_buffer &buffer, 102 virtual status_t getBufferLocked(camera3_stream_buffer *buffer); 104 const camera3_stream_buffer &buffer,
|
H A D | Camera3StreamInterface.h | 118 * a valid filled buffer), which determines if a stream can still have 136 * buffer pre-allocation, and transitions to the PREPARING state. 139 * valid buffer has already been returned to this stream. 149 * Continue stream buffer preparation by allocating the next 150 * buffer for this stream. May only be called in the PREPARED state. 159 * buffer pre-allocation. 162 * valid buffer has already been returned to this stream. 195 * Fill in the camera3_stream_buffer with the next valid buffer for this 203 virtual status_t getBuffer(camera3_stream_buffer *buffer) = 0; 206 * Return a buffer t [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableArray.java | 61 public void marshal(T value, ByteBuffer buffer) { argument 64 marshalArrayElement(mComponentMarshaler, buffer, value, i); 69 public T unmarshal(ByteBuffer buffer) { argument 75 int remaining = buffer.remaining(); 93 Object elem = mComponentMarshaler.unmarshal(buffer); 101 while (buffer.hasRemaining()) { 102 Object elem = mComponentMarshaler.unmarshal(buffer); 110 if (buffer.remaining() != 0) { 111 Log.e(TAG, "Trailing bytes (" + buffer.remaining() + ") left over after unpacking " 148 ByteBuffer buffer, Objec 147 marshalArrayElement(Marshaler<TElem> marshaler, ByteBuffer buffer, Object array, int index) argument [all...] |
/frameworks/rs/ |
H A D | rsList.h | 71 if ((void*)p >= (void*)&buffer->next) { 72 buffer = buffer->next; 73 if (buffer != nullptr) { 74 p = &buffer->data.typed; 83 return p == other.p && buffer == other.buffer && list == other.list; 87 return p != other.p || buffer != other.buffer || list != other.list; 97 p(p_), buffer(buffer 101 LinkedBuffer* buffer; member in class:android::renderscript::List::iterator [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | GraphicsStatsService.java | 37 * does this by allowing rendering processes to request an ashmem buffer 38 * to place their stats into. This buffer will be pre-initialized with historical 39 * data for that process if it exists (if the userId & packageName match a buffer 42 * This service does not itself attempt to understand the data in the buffer, 44 * it is assumed that this buffer is for ThreadedRenderer and delegates 106 ActiveBuffer buffer = fetchActiveBuffersLocked(token, uid, pid, packageName); 107 return getPfd(buffer.mProcessBuffer); 110 private void processDied(ActiveBuffer buffer) { argument 112 mActive.remove(buffer); 115 HistoricalData data = buffer [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | record.cpp | 55 // that the buffer size mSize it set correctly above. 80 MediaBuffer **buffer, const MediaSource::ReadOptions *options) { 87 status_t err = mGroup.acquire_buffer(buffer); 93 memset((*buffer)->data(), x, mSize); 94 (*buffer)->set_range(0, mSize); 95 (*buffer)->meta_data()->clear(); 96 (*buffer)->meta_data()->setInt64( 100 // printf("DummySource::read - returning buffer\n"); 101 // ALOGI("DummySource::read - returning buffer"); 240 MediaBuffer *buffer; 332 MediaBuffer *buffer; local [all...] |
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | Converter.cpp | 500 sp<ABuffer> buffer = *mInputBufferQueue.begin(); local 503 int16_t *ptr = (int16_t *)buffer->data(); 504 int16_t *stop = (int16_t *)(buffer->data() + buffer->size()); 519 size_t copy = buffer->size(); 525 buffer->data(), 530 buffer->setRange(buffer->offset() + copy, buffer->size() - copy); 533 CHECK(buffer 611 sp<ABuffer> buffer = *mInputBufferQueue.begin(); local 722 sp<ABuffer> buffer; local [all...] |
/frameworks/av/include/media/nbaio/ |
H A D | LibsndfileSink.h | 45 virtual ssize_t write(const void *buffer, size_t count);
|
/frameworks/av/include/private/media/ |
H A D | AudioEffectShared.h | 29 // Size of buffer used to exchange parameters between application and mediaserver processes. 40 uint8_t* buffer; // start of parameter buffer member in struct:android::effect_param_cblk_t
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 219 byte[] buffer = new byte[1]; 220 int result = read(buffer, 0, 1); 221 return result == -1 ? -1 : buffer[0] & 0xff; 225 public int read(byte[] buffer, int offset, int count) throws IOException { argument 229 int res = super.read(buffer, offset, count); 234 return super.read(buffer, offset, count); 238 public int read(byte[] buffer) throws IOException { argument 239 return read(buffer, 0, buffer.length); 300 public void write(byte[] buffer, in argument 313 write(byte[] buffer) argument [all...] |