/frameworks/base/libs/hwui/tests/unit/ |
H A D | OffscreenBufferPoolTests.cpp | 140 // Create many buffers, with several at each size 141 std::vector<OffscreenBuffer*> buffers; local 144 buffers.push_back(pool.get(renderThread.renderState(), size, size)); 148 for (auto& buffer : buffers) pool.putOrDelete(buffer);
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGLToGL_test.cpp | 31 // This test requires 3 buffers to avoid deadlock because we're 86 // This test requires 3 buffers to complete run on a single thread. 160 sp<GraphicBuffer> buffers[2]; local 183 buffers[i] = mST->getCurrentBuffer(); 186 // Destroy the GL texture object to release its ref on buffers[2]. 196 EXPECT_EQ(1, buffers[0]->getStrongCount()); 201 EXPECT_EQ(3, buffers[1]->getStrongCount()); 206 sp<GraphicBuffer> buffers[3]; local 230 buffers[i] = mST->getCurrentBuffer(); 234 // on buffers[ [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLId.java | 26 public void glGenBuffers(int n, int[] buffers, int offset); argument 30 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset); argument 32 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset); argument
|
H A D | GLES20IdImpl.java | 19 public void glGenBuffers(int n, int[] buffers, int offset) { argument 20 GLES20.glGenBuffers(n, buffers, offset); 32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { argument 33 GLES20.glDeleteBuffers(n, buffers, offset); 38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { argument 39 GLES20.glDeleteFramebuffers(n, buffers, offset);
|
/frameworks/native/opengl/libagl/ |
H A D | BufferObjectManager.cpp | 85 void EGLBufferObjectManager::deleteBuffers(GLsizei n, const GLuint* buffers) argument 89 const GLuint t = *buffers++;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | AudioTrackDecoder.java | 77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { 78 ByteBuffer buffer = buffers[bufferIndex]; 76 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
|
H A D | CpuVideoTrackDecoder.java | 81 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { 84 mDecodedBuffer = buffers[bufferIndex]; 80 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
|
H A D | GpuVideoTrackDecoder.java | 107 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { 106 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
|
H A D | TrackDecoder.java | 39 private static final long TIMEOUT_US = 50; // Timeout for en-queueing and de-queueing buffers. 67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info); 66 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
|
/frameworks/av/media/libmedia/ |
H A D | IStreamSource.cpp | 65 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { argument 68 data.writeInt64(static_cast<int64_t>(buffers.size())); 69 for (size_t i = 0; i < buffers.size(); ++i) { 70 data.writeStrongBinder(IInterface::asBinder(buffers.itemAt(i))); 109 Vector<sp<IMemory> > buffers; local 115 buffers.push(mem); 120 setBuffers(buffers);
|
H A D | IMediaSource.cpp | 193 virtual status_t readMultiple(Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers) { argument 195 if (buffers == NULL || !buffers->isEmpty()) { 216 buffers->push_back(buf); 231 virtual status_t setBuffers(const Vector<MediaBuffer *> & buffers __unused) {
|
H A D | AudioTrackShared.cpp | 59 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, argument 61 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), 69 ClientProxy::ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument 71 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer) 523 StaticAudioTrackClientProxy::StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, argument 525 : AudioTrackClientProxy(cblk, buffers, frameCount, frameSize), 615 ServerProxy::ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, argument 617 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer), 861 StaticAudioTrackServerProxy::StaticAudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, argument 863 : AudioTrackServerProxy(cblk, buffers, frameCoun [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegCompressor.cpp | 39 status_t JpegCompressor::start(Vector<CpuConsumer::LockedBuffer*> buffers, argument 51 mBuffers = buffers;
|
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | audio.c | 42 static char* buffers[BUFFER_COUNT]; variable 150 if (pcm_read(pcm, buffers[index], BUFFER_SIZE)) { 175 err = pcm_write(pcm, buffers[index], BUFFER_SIZE); 200 buffers[i] = malloc(BUFFER_SIZE);
|
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/d1new/ |
H A D | RefocusFilterd1new.java | 38 ImageBuffersForRenderScriptd1new buffers; field in class:RefocusFilterd1new 49 // Allocates, binds, and initializes buffers that interface between Java 54 buffers = new ImageBuffersForRenderScriptd1new(inputImage, margin, 56 buffers.initializeRenderScript(focalLayer, scriptC); 62 // Extracts the result from .rs file to {@code buffers.outputImage} in Java. 66 scriptC.forEach_PackOutputImage(buffers.outAllocation); 70 buffers.outAllocation.copyTo(buffers.outputImage); 71 return buffers.outputImage; 79 Bitmap mBitmap = Bitmap.createBitmap(buffers [all...] |
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/f32/ |
H A D | RefocusFilterF32.java | 37 ImageBuffersForRenderScriptF32 buffers; field in class:RefocusFilterF32 48 // Allocates, binds, and initializes buffers that interface between Java 53 buffers = new ImageBuffersForRenderScriptF32(inputImage, margin, 55 buffers.initializeRenderScript(focalLayer, scriptC); 60 // Extracts the result from .rs file to {@code buffers.outputImage} in Java. 64 scriptC.forEach_PackOutputImage(buffers.outAllocation); 68 buffers.outAllocation.copyTo(buffers.outputImage); 69 return buffers.outputImage; 77 Bitmap mBitmap = Bitmap.createBitmap(buffers [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3BufferManager.cpp | 70 // need check this, as the buffers are not really shared between streams, the buffers are 145 // De-list all the buffers associated with this stream first. 207 // We've already attached more buffers to this stream than we currently have 241 // for cases where one stream is active, the other stream may request some buffers randomly. 250 // Proactively free buffers for other streams if the current number of allocated buffers 254 // buffers for them. 499 bool Camera3BufferManager::hasBufferForStreamLocked(BufferList& buffers, int streamId) { argument 500 BufferList::iterator i = buffers 512 getFirstBufferFromBufferListLocked( BufferList& buffers, int streamId) argument [all...] |
H A D | Camera3Stream.cpp | 125 ALOGE("%s: Cannot configure stream; has outstanding buffers", 221 ALOGE("%s: Unable to register stream buffers with HAL: %s (%d)", 286 // buffers 294 ALOGE("%s: Stream %d: Can't prepare stream that has outstanding buffers", 344 // Get next buffer - this may allocate, and take a while for large buffers 354 // Check if we still have buffers left to allocate 359 // Done with prepare - mark stream as such, and return all buffers 384 // Return all valid buffers to stream, in ERROR state to indicate 412 // If any buffers have been handed to the HAL, the stream cannot be torn down. 414 ALOGE("%s: Stream %d: Can't tear down a stream that has outstanding buffers", 700 Vector<buffer_handle_t*> buffers; local [all...] |
/frameworks/wilhelm/src/android/ |
H A D | android_StreamPlayer.cpp | 68 void StreamSourceAppProxy::setBuffers(const Vector<sp<IMemory> > &buffers) { argument 71 mBuffers = buffers; 81 // no buffers available to push data to from the buffer queue, bail 90 //SL_LOGD("onBufferAvailable() now %d buffers available in queue", 261 //SL_LOGD("%d buffers available after reading from queue", mAvailableBuffers.size());
|
/frameworks/av/cmds/stagefright/ |
H A D | stream.cpp | 51 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 88 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { argument 89 mBuffers = buffers; 131 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 199 const Vector<sp<IMemory> > &buffers) { 200 mBuffers = buffers; 198 setBuffers( const Vector<sp<IMemory> > &buffers) argument
|
/frameworks/av/cmds/screenrecord/ |
H A D | screenrecord.cpp | 330 Vector<sp<ABuffer> > buffers; local 331 err = encoder->getOutputBuffers(&buffers); 333 fprintf(stderr, "Unable to get output buffers (err=%d)\n", err); 400 fwrite(buffers[bufIndex]->data(), 1, size, rawFp); 416 err = muxer->writeSampleData(buffers[bufIndex], trackIdx, 460 ALOGV("Encoder buffers changed"); 461 err = encoder->getOutputBuffers(&buffers); 464 "Unable to get new output buffers (err=%d)\n", err);
|
/frameworks/av/media/libstagefright/omx/tests/ |
H A D | OMXHarness.cpp | 184 Vector<Buffer> *buffers) { 185 buffers->clear(); 201 buffers->push(buffer); 285 // allocating all input and output buffers. 288 "all input and output buffers are allocated."); 290 // Now allocate buffers. 309 "after all input and output buffers were allocated."); 345 "Not all output buffers have been returned to us by the time " 372 "Not all input buffers have been returned to us by the " 379 "Not all output buffers hav 181 allocatePortBuffers( const sp<MemoryDealer> &dealer, IOMX::node_id node, OMX_U32 portIndex, Vector<Buffer> *buffers) argument [all...] |
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 110 // of currently dequeued buffers 141 BQ_LOGE("setMaxDequeuedBufferCount: %d dequeued buffers would " 264 // mMaxDequeuedBufferCount buffers. 276 // our slots are empty but we have many buffers in the queue. This can 278 // it looks like we have too many buffers queued up. 293 // If we're calling this from dequeue, prefer free buffers 312 // If no buffer is found, or if the queue has too many buffers 408 // If we are not allowed to allocate new buffers, 934 // Waiting here allows for two full buffers to be queued but not a 1254 Vector<sp<GraphicBuffer>> buffers; local [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | playbq.c | 44 void *buffers; variable 45 SLuint32 byteOrder; // desired to use for PCM buffers 94 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; 250 fprintf(stderr, " -n# number of buffers (default 2)\n"); 350 buffers = malloc(framesPerBuffer * sfframesize * numBuffers); 495 // loop until EOF or no more buffers 497 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
|
H A D | playbq.cpp | 44 void *buffers; variable 45 SLuint32 byteOrder; // desired to use for PCM buffers 94 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; 250 fprintf(stderr, " -n# number of buffers (default 2)\n"); 350 buffers = malloc(framesPerBuffer * sfframesize * numBuffers); 495 // loop until EOF or no more buffers 497 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which;
|