/frameworks/av/media/libstagefright/include/ |
H A D | MediaAdapter.h | 43 MediaBuffer **buffer, const ReadOptions *options = NULL); 49 virtual void signalBufferReturned(MediaBuffer *buffer); 56 // deep copy, such that after pushBuffer return, the buffer can be re-used. 57 status_t pushBuffer(MediaBuffer *buffer); 61 // Make sure the read() wait for the incoming buffer. 63 // Make sure the pushBuffer() wait for the current buffer consumed.
|
H A D | MediaBufferGroup.h | 34 // create a media buffer group with preallocated buffers 39 void add_buffer(MediaBuffer *buffer); 43 // If nonBlocking is false, it blocks until a buffer is available and 44 // passes it to the caller in *buffer, while returning OK. 45 // The returned buffer will have a reference count of 1. 46 // If nonBlocking is true and a buffer is not immediately available, 47 // buffer is set to NULL and it returns WOULD_BLOCK. 49 // If requestedSize is > 0, the returned MediaBuffer should have buffer 52 MediaBuffer **buffer, bool nonBlocking = false, size_t requestedSize = 0); 56 // If buffer i [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AH263Assembler.cpp | 75 sp<ABuffer> buffer = *queue->begin(); local 79 mNextExpectedSeqNo = (uint32_t)buffer->int32Data(); 80 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) { 89 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); 96 // hexdump(buffer->data(), buffer->size()); 98 if (buffer->size() < 2) { 105 unsigned payloadHeader = U16_AT(buffer->data()); 137 buffer->setRange(buffer [all...] |
H A D | VideoSource.h | 58 MediaBuffer **buffer, const MediaSource::ReadOptions *options) { 65 status_t err = mGroup.acquire_buffer(buffer); 71 memset((*buffer)->data(), x, mSize); 72 (*buffer)->set_range(0, mSize); 73 (*buffer)->meta_data()->clear(); 74 (*buffer)->meta_data()->setInt64( 78 // printf("VideoSource::read - returning buffer\n"); 79 // LOG(INFO)("VideoSource::read - returning buffer"); 57 read( MediaBuffer **buffer, const MediaSource::ReadOptions *options) argument
|
/frameworks/base/core/java/android/content/pm/ |
H A D | MacAuthenticatedInputStream.java | 71 public int read(byte[] buffer, int offset, int count) throws IOException { argument 72 int numRead = super.read(buffer, offset, count); 74 mMac.update(buffer, offset, numRead);
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
H A D | SocketConnect.java | 24 final byte[] buffer = new byte[512]; 28 int r = from.read(buffer); 32 to.write(buffer, 0, r);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
H A D | VenueNameElementTest.java | 80 * Verify that BufferUnderflowException will be thrown when parsing an empty buffer. 90 * Verify that BufferUnderflowException will be thrown when parsing a truncated buffer 97 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {TEST_VENUE_NAME1})); 99 buffer.limit(buffer.remaining() - 1); 100 VenueNameElement.parse(buffer); 104 * Verify that a VenueNameElement with empty name list will be returned when parsing a buffer 111 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[0])); 112 assertTrue(VenueNameElement.parse(buffer).getNames().isEmpty()); 115 * Verify that an expected VenueNameElement will be returned when parsing a buffer containe [all...] |
H A D | DomainNameElementTest.java | 71 * empty buffer. 81 * Verify that BufferUnderflowException will be thrown when parsing a truncated buffer 88 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {TEST_DOMAIN_NAME1})); 89 buffer.limit(buffer.remaining() - 1); 90 DomainNameElement.parse(buffer); 95 * buffer contained valid domain name list. 102 ByteBuffer buffer = ByteBuffer.wrap(testData); 110 assertEquals(expectedElement, DomainNameElement.parse(buffer));
|
/frameworks/av/media/libmedia/ |
H A D | MidiIoWrapper.cpp | 27 static int readAt(void *handle, void *buffer, int pos, int size) { argument 28 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size); 69 int MidiIoWrapper::readAt(void *buffer, int offset, int size) { 70 ALOGV("readAt(%p, %d, %d)", buffer, offset, size); 73 return mDataSource->readAt(offset, buffer, size); 83 return read(mFd, buffer, size);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LocalLogTest.java | 88 StringWriter buffer = new StringWriter(); 89 PrintWriter writer = new PrintWriter(buffer); 91 return buffer.toString(); 95 StringWriter buffer = new StringWriter(); 96 PrintWriter writer = new PrintWriter(buffer); 98 return buffer.toString();
|
/frameworks/native/libs/nativewindow/include/android/ |
H A D | hardware_buffer.h | 80 * the buffer size in bytes. 86 /* The buffer will never be read by the CPU */ 88 /* The buffer will sometimes be read by the CPU */ 90 /* The buffer will often be read by the CPU */ 95 /* The buffer will never be written by the CPU */ 97 /* The buffer will sometimes be written to by the CPU */ 99 /* The buffer will often be written to by the CPU */ 104 /* The buffer will be read from by the GPU */ 106 /* The buffer will be written to by the GPU */ 108 /* The buffer mus [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_dpb.c | 289 if (index < 0 || !IS_EXISTING(dpb->buffer[index])) 296 dpb->list[refIdx++] = &dpb->buffer[index]; 299 if(dpb->list[j] != &dpb->buffer[index]) 319 HANTRO_NOK failure, picture does not exist in the buffer 340 SET_UNUSED(dpb->buffer[index]); 342 if (!dpb->buffer[index].toBeDisplayed) 359 HANTRO_NOK failure, picture does not exist in the buffer 376 SET_UNUSED(dpb->buffer[index]); 378 if (!dpb->buffer[index].toBeDisplayed) 397 buffer o [all...] |
/frameworks/av/include/media/nbaio/ |
H A D | Pipe.h | 34 // buffer is an optional parameter specifying the virtual address of the pipe buffer, 36 Pipe(size_t maxFrames, const NBAIO_Format& format, void *buffer = NULL); 38 // If a buffer was specified in the constructor, it is not automatically freed by destructor. 57 virtual ssize_t write(const void *buffer, size_t count);
|
H A D | SourceAudioBufferProvider.h | 34 virtual status_t getNextBuffer(Buffer *buffer); 35 virtual void releaseBuffer(Buffer *buffer); 49 size_t mGetCount; // buffer.frameCount of the most recent getNextBuffer
|
/frameworks/av/media/libaaudio/src/utility/ |
H A D | FixedBlockAdapter.h | 28 virtual int32_t onProcessFixedBlock(uint8_t *buffer, int32_t numBytes) = 0; 53 * @param buffer 57 virtual int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) = 0; 67 int32_t mSize = 0; // Size in bytes of the fixed size buffer.
|
/frameworks/av/media/libnbaio/ |
H A D | LibsndfileSink.cpp | 37 ssize_t LibsndfileSink::write(const void *buffer, size_t count) argument 45 sf_count_t actual = sf_writef_short(mSndfile, (short *) buffer, (sf_count_t) count);
|
/frameworks/av/media/libnbaio/include/ |
H A D | Pipe.h | 34 // buffer is an optional parameter specifying the virtual address of the pipe buffer, 36 Pipe(size_t maxFrames, const NBAIO_Format& format, void *buffer = NULL); 38 // If a buffer was specified in the constructor, it is not automatically freed by destructor. 57 virtual ssize_t write(const void *buffer, size_t count);
|
H A D | SourceAudioBufferProvider.h | 34 virtual status_t getNextBuffer(Buffer *buffer); 35 virtual void releaseBuffer(Buffer *buffer); 49 size_t mGetCount; // buffer.frameCount of the most recent getNextBuffer
|
/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 909 getPacketBlockSize(MediaBuffer *buffer) argument 949 verifyHeader(MediaBuffer *buffer, uint8_t type) argument 962 verifyOpusHeader(MediaBuffer *buffer) argument 988 verifyOpusComments(MediaBuffer *buffer) argument 1079 verifyHeader( MediaBuffer *buffer, uint8_t type) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | RecordTracks.h | 31 void *buffer, 46 // clear the buffer overflow flag 48 // set the buffer overflow flag and return previous value 53 void dump(char* buffer, size_t size, bool active); 72 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer); 75 bool mOverflow; // overflow on most recent attempt to fill client buffer 77 AudioBufferProvider::Buffer mSink; // references client's buffer sink in shared memory 105 void *buffer, 110 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer); 111 virtual void releaseBuffer(AudioBufferProvider::Buffer* buffer); [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioInputDescriptor.cpp | 198 char buffer[SIZE]; local 201 snprintf(buffer, SIZE, " ID: %d\n", getId()); 202 result.append(buffer); 203 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); 204 result.append(buffer); 205 snprintf(buffer, SIZE, " Format: %d\n", mFormat); 206 result.append(buffer); 207 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask); 208 result.append(buffer); 209 snprintf(buffer, SIZ 281 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();
|