/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | TSPacketizer.cpp | 515 // the first fragment of "buffer" follows 642 sp<ABuffer> buffer = new ABuffer(numTSPackets * 188); local 643 uint8_t *packetDataStart = buffer->data(); 957 // for subsequent fragments of "buffer": 966 // the fragment of "buffer" follows. 1007 CHECK(packetDataStart == buffer->data() + buffer->capacity()); 1009 *packets = buffer;
|
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVImage.cpp | 32 uint8_t *buffer = new uint8_t[numberOfBytes]; local 33 mBuffer = buffer; 39 YUVImage::YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height, uint8_t *buffer) { argument 43 mBuffer = buffer;
|
/frameworks/av/media/mtp/ |
H A D | MtpDevice.cpp | 109 char buffer[256]; 110 memset(buffer, 0, sizeof(buffer)); 114 0, buffer, sizeof(buffer), 0); 117 printf("got MTP string %s\n", buffer); 120 0, 4, buffer, sizeof(buffer), 0); 476 char buffer[65536]; local 478 int count = read(srcFD, buffer, sizeo [all...] |
/frameworks/av/services/audioflinger/ |
H A D | Effects.h | 40 // When controlling an auxiliary effect, the EffectModule also provides an input buffer used by 87 void setInBuffer(int16_t *buffer) { mConfig.inputCfg.buffer.s16 = buffer; } argument 88 int16_t *inBuffer() { return mConfig.inputCfg.buffer.s16; } 89 void setOutBuffer(int16_t *buffer) { mConfig.outputCfg.buffer.s16 = buffer; } argument 90 int16_t *outBuffer() { return mConfig.outputCfg.buffer.s16; } 214 void dumpToBuffer(char* buffer, size_ 281 setInBuffer(int16_t *buffer, bool ownsBuffer = false) argument 288 setOutBuffer(int16_t *buffer) argument [all...] |
H A D | FastMixer.cpp | 189 if (sinkFrameSize > mixerFrameSize) { // need a sink buffer 278 // but may have a different buffer provider or volume provider 384 // allow mixing partial buffer 415 void *buffer = mSinkBuffer != NULL ? mSinkBuffer : mMixerBuffer; local 417 memcpy_by_audio_format(buffer, format.mFormat, mMixerBuffer, mMixerBufferFormat, 423 (void) teeSink->write(buffer, frameCount); 429 ssize_t framesWritten = outputSink->write(buffer, frameCount);
|
H A D | PlaybackTracks.h | 32 void *buffer, 42 void dump(char* buffer, size_t size, bool active); 62 void setAuxBuffer(int EffectId, int32_t *buffer); 64 void setMainBuffer(int16_t *buffer) { mMainBuffer = buffer; } argument 86 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer, 182 TimedBuffer(const sp<IMemory>& buffer, int64_t pts); 183 const sp<IMemory>& buffer() const { return mBuffer; } function in class:TimedTrack::TimedBuffer 197 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer, 199 virtual void releaseBuffer(AudioBufferProvider::Buffer* buffer); [all...] |
/frameworks/av/services/audiopolicy/ |
H A D | AudioPolicyService.cpp | 285 char buffer[SIZE]; local 289 snprintf(buffer, SIZE, "PolicyManager Interface: %p\n", mpAudioPolicy); 291 snprintf(buffer, SIZE, "AudioPolicyManager: %p\n", mAudioPolicyManager); 293 result.append(buffer); 294 snprintf(buffer, SIZE, "Command Thread: %p\n", mAudioCommandThread.get()); 295 result.append(buffer); 296 snprintf(buffer, SIZE, "Tones Thread: %p\n", mTonePlaybackThread.get()); 297 result.append(buffer); 340 char buffer[SIZE]; local 342 snprintf(buffer, SIZ 553 char buffer[SIZE]; local 934 dump(char* buffer, size_t size) argument [all...] |
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | CameraClient.cpp | 117 char buffer[SIZE]; local 119 size_t len = snprintf(buffer, SIZE, "Client[%d] (%p) PID: %d\n", 124 write(fd, buffer, len); 126 len = snprintf(buffer, SIZE, "Latest set parameters:\n"); 128 write(fd, buffer, len); 322 // set the buffer consumer that the preview will use 332 // Using controlledByApp flag to ensure that the buffer queue remains in 816 // preview callback - frame buffer update 936 // hold the preview lock while we grab a reference to the preview buffer 946 ALOGE("failed to allocate space for preview buffer"); [all...] |
/frameworks/base/core/java/android/database/ |
H A D | AbstractCursor.java | 166 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument 170 char[] data = buffer.data; 172 buffer.data = result.toCharArray(); 176 buffer.sizeCopied = result.length(); 178 buffer.sizeCopied = 0;
|
H A D | CursorWindow.java | 33 * A buffer containing multiple cursor rows. 77 CharArrayBuffer buffer); 448 * The buffer is populated as follows: 450 * <li>If the buffer is too small for the value to be copied, then it is 452 * <li>If the field is of type {@link Cursor#FIELD_TYPE_NULL}, then the buffer 454 * <li>If the field is of type {@link Cursor#FIELD_TYPE_STRING}, then the buffer 456 * <li>If the field is of type {@link Cursor#FIELD_TYPE_INTEGER}, then the buffer 460 * <li>If the field is of type {@link Cursor#FIELD_TYPE_FLOAT}, then the buffer is 471 * @param buffer The {@link CharArrayBuffer} to hold the string. It is automatically 472 * resized if the requested string is larger than the buffer' 76 nativeCopyStringToBuffer(long windowPtr, int row, int column, CharArrayBuffer buffer) argument 474 copyStringToBuffer(int row, int column, CharArrayBuffer buffer) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | Caches.cpp | 381 bool Caches::bindMeshBuffer(const GLuint buffer) { argument 382 if (mCurrentBuffer != buffer) { 383 glBindBuffer(GL_ARRAY_BUFFER, buffer); 384 mCurrentBuffer = buffer; 399 bool Caches::bindIndicesBufferInternal(const GLuint buffer) { argument 400 if (mCurrentIndicesBuffer != buffer) { 401 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, buffer); 402 mCurrentIndicesBuffer = buffer; 463 bool Caches::bindPixelBuffer(const GLuint buffer) { argument 464 if (mCurrentPixelBuffer != buffer) { [all...] |
H A D | DeferredDisplayList.cpp | 284 DisplayListLogBuffer& buffer = DisplayListLogBuffer::getInstance(); local 285 buffer.writeCommand(0, "multiDraw"); 286 buffer.writeCommand(1, op->name());
|
H A D | TessellationCache.cpp | 120 VertexBuffer* buffer = t->tessellator(t->description); local 121 t->setResult(buffer); 369 Buffer*& buffer) { 370 delete buffer; 415 Buffer* buffer = mCache.get(entry); local 416 if (!buffer) { 417 // not cached, enqueue a task to fill the buffer 419 buffer = new Buffer(task); 425 mCache.put(entry, buffer); 427 return buffer; 368 operator ()(Description& description, Buffer*& buffer) argument 435 VertexBuffer* buffer = new VertexBuffer(); local [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLFrame.java | 207 public void setData(ByteBuffer buffer, int offset, int length) { argument 210 byte[] bytes = buffer.array();
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifParser.java | 800 protected int read(byte[] buffer, int offset, int length) throws IOException { argument 801 return mTiffStream.read(buffer, offset, length); 805 * Equivalent to read(buffer, 0, buffer.length). 807 protected int read(byte[] buffer) throws IOException { argument 808 return mTiffStream.read(buffer);
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 151 ALOGE("error %d while wating for buffer state to change.", err); 203 ALOGE("error %d while wating for buffer state to change.", err); 210 ALOGE("error %d while queueing buffer to surface", err); 217 ANativeWindowBuffer_t* buffer = NULL; local 218 err = native_window_dequeue_buffer_and_wait(anw.get(), &buffer); 220 ALOGE("error %d while dequeueing buffer to surface", err); 223 mBuffer = buffer; 226 buffer->handle, ++mSeq);
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 176 char buffer[255]; local 180 memset(buffer, 0, sizeof(buffer)); 188 if (read(fd, buffer, sizeof(buffer)) < 0) { 196 printf("%-7d %-32s %s\n", tid, name_buffer, buffer); 221 /* Get size of kernel buffer */ 267 char buffer[32768]; local 284 int ret = read(fd, buffer, sizeof(buffer)); [all...] |
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 95 // There must be no dequeued buffers when changing the buffer count. 98 BQ_LOGE("setBufferCount: buffer owned by producer"); 111 BQ_LOGE("setBufferCount: requested buffer count %d is less than " 117 // buffers and will release all of its buffer references. We don't 145 // FIXME: Some drivers are manually setting the buffer count 149 BQ_LOGE("%s: async mode is invalid with buffer count override", 155 // Free up any buffers that are in slots beyond the max buffer count 164 // Look for a free buffer to give to the client 190 // Producers are not allowed to dequeue more than one buffer if they 191 // did not set a buffer coun 466 attachBuffer(int* outSlot, const sp<android::GraphicBuffer>& buffer) argument [all...] |
/frameworks/native/libs/ui/ |
H A D | Region.cpp | 89 * final, correctly ordered region buffer. Each rectangle will be compared with the span directly 739 status_t Region::flatten(void* buffer, size_t size) const { argument 746 Rect* rects = reinterpret_cast<Rect*>(buffer); 751 status_t Region::unflatten(void const* buffer, size_t size) { argument 754 Rect const* rects = reinterpret_cast<Rect const*>(buffer); 816 char buffer[SIZE]; local 818 snprintf(buffer, SIZE, " Region %s (this=%p, count=%" PRIdPTR ")\n", 820 out.append(buffer); 822 snprintf(buffer, SIZE, " [%3d, %3d, %3d, %3d]\n", 824 out.append(buffer); [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuCore.cpp | 208 read_file(const char* pathname, char* buffer, size_t buffsize) argument 217 len = read(fd, buffer, buffsize);
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | playbq.c | 17 // Play an audio file using buffer queue 46 unsigned which; // which buffer to use next 97 // This callback is called each time a buffer finishes playing 103 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local 104 ssize_t count = pipeReader->read(buffer, framesPerBuffer, (int64_t) -1); 107 memset(buffer, 0, framesPerBuffer * sfframesize); 114 swab(buffer, buffer, nbytes); 117 squeeze((short *) buffer, (unsigned char *) buffer, nbyte 503 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local [all...] |
H A D | playbq.cpp | 17 // Play an audio file using buffer queue 46 unsigned which; // which buffer to use next 97 // This callback is called each time a buffer finishes playing 103 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local 104 ssize_t count = pipeReader->read(buffer, framesPerBuffer, (int64_t) -1); 107 memset(buffer, 0, framesPerBuffer * sfframesize); 114 swab(buffer, buffer, nbytes); 117 squeeze((short *) buffer, (unsigned char *) buffer, nbyte 503 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | stagefright.cpp | 225 MediaBuffer *buffer; local 229 err = rawSource->read(&buffer, &options); 234 CHECK(buffer == NULL); 244 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 265 printf("buffer has timestamp %" PRId64 " us (%.2f secs)\n", 268 buffer->release(); 269 buffer = NULL; 312 MediaBuffer *buffer; local 316 status_t err = rawSource->read(&buffer, &options); 322 CHECK(buffer 454 isIDRFrame(MediaBuffer *buffer) argument 470 read( MediaBuffer **buffer, const ReadOptions *options) argument 546 MediaBuffer *buffer; local [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 385 // is sniffed to be widevine. We don't want to buffer for file source 987 sp<ABuffer> buffer; local 988 status_t dequeueStatus = packets->dequeueAccessUnit(&buffer); 992 notify->setBuffer("buffer", buffer); 1047 // try to read a buffer as we may not have been able to the last time 1409 // data is already provided in the buffer 1577 sp<ABuffer> buffer = mediaBufferToABuffer( local 1579 track->mPackets->queueAccessUnit(buffer);
|
H A D | NuPlayerRenderer.cpp | 106 const sp<ABuffer> &buffer, 110 msg->setBuffer("buffer", buffer); 566 void *buffer, 575 return me->fillAudioBuffer(buffer, size); 595 size_t NuPlayer::Renderer::fillAudioBuffer(void *buffer, size_t size) { argument 630 memcpy((char *)buffer + sizeCopied, 843 // discontinuity. If we have not drained an audio buffer that was 844 // received after this buffer, repost in 10 msec. Otherwise repost 983 sp<ABuffer> buffer; local 104 queueBuffer( bool audio, const sp<ABuffer> &buffer, const sp<AMessage> ¬ifyConsumed) argument 564 AudioSinkCallback( MediaPlayerBase::AudioSink * , void *buffer, size_t size, void *cookie, MediaPlayerBase::AudioSink::cb_event_t event) argument [all...] |