Home
last modified time | relevance | path

Searched refs:buffers (Results 1 – 25 of 223) sorted by relevance

123456789

/frameworks/native/libs/input/tests/
DTfLiteMotionPredictor_test.cpp36 TfLiteMotionPredictorBuffers buffers(/*inputLength=*/5); in TEST() local
37 ASSERT_FALSE(buffers.isReady()); in TEST()
39 buffers.pushSample(/*timestamp=*/0, {.position = {.x = 100, .y = 100}}); in TEST()
40 ASSERT_FALSE(buffers.isReady()); in TEST()
42 buffers.pushSample(/*timestamp=*/1, {.position = {.x = 100, .y = 100}}); in TEST()
43 ASSERT_FALSE(buffers.isReady()); in TEST()
46 buffers.pushSample(/*timestamp=*/2, {.position = {.x = 100, .y = 110}}); in TEST()
47 ASSERT_TRUE(buffers.isReady()); in TEST()
49 buffers.reset(); in TEST()
50 ASSERT_FALSE(buffers.isReady()); in TEST()
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/d1new/
DRefocusFilterd1new.java38 ImageBuffersForRenderScriptd1new buffers; field in RefocusFilterd1new
54 buffers = new ImageBuffersForRenderScriptd1new(inputImage, margin, in initializeScriptAndBuffers()
56 buffers.initializeRenderScript(focalLayer, scriptC); in initializeScriptAndBuffers()
66 scriptC.forEach_PackOutputImage(buffers.outAllocation); in extractResultImage()
71 buffers.outAllocation.copyTo(buffers.outputImage); in extractResultImage()
75 return buffers.outputImage; in extractResultImage()
83 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractSharpImage()
84 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractSharpImage()
96 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractFuzzyImage()
97 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractFuzzyImage()
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/f32/
DRefocusFilterF32.java37 ImageBuffersForRenderScriptF32 buffers; field in RefocusFilterF32
53 buffers = new ImageBuffersForRenderScriptF32(inputImage, margin, in initializeScriptAndBuffers()
55 buffers.initializeRenderScript(focalLayer, scriptC); in initializeScriptAndBuffers()
64 scriptC.forEach_PackOutputImage(buffers.outAllocation); in extractResultImage()
69 buffers.outAllocation.copyTo(buffers.outputImage); in extractResultImage()
73 return buffers.outputImage; in extractResultImage()
81 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractSharpImage()
82 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractSharpImage()
94 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractFuzzyImage()
95 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractFuzzyImage()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLES20IdImpl.java19 public void glGenBuffers(int n, int[] buffers, int offset) { in glGenBuffers() argument
20 GLES20.glGenBuffers(n, buffers, offset); in glGenBuffers()
32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { in glDeleteBuffers() argument
33 GLES20.glDeleteBuffers(n, buffers, offset); in glDeleteBuffers()
38 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { in glDeleteFramebuffers() argument
39 GLES20.glDeleteFramebuffers(n, buffers, offset); in glDeleteFramebuffers()
DGLId.java26 public void glGenBuffers(int n, int[] buffers, int offset); in glGenBuffers() argument
30 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset); in glDeleteBuffers() argument
32 public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset); in glDeleteFramebuffers() argument
/frameworks/av/media/libstagefright/tests/fuzzers/
DIMediaSourceFuzzImpl.h59 Vector<MediaBufferBase*> buffers; in read() local
60 status_t ret = readMultiple(&buffers, 1, nullptr); in read()
61 *buffer = buffers.empty() ? nullptr : buffers[0]; in read()
66 status_t IMediaSourceFuzzImpl::readMultiple(Vector<MediaBufferBase*>* buffers, uint32_t, in readMultiple() argument
77 buffers->push_back(mbb); in readMultiple()
90 buffers->push_back(mbb); in readMultiple()
/frameworks/av/media/codec2/sfplugin/
DCCodecBufferChannel.cpp192 input->buffers.reset(new DummyInputBuffers("")); in CCodecBufferChannel()
282 work->input.buffers.clear(); in queueInputBufferInternal()
290 if (!input->buffers->releaseBuffer(buffer, &c2buffer, false)) { in queueInputBufferInternal()
295 copy = input->buffers->cloneAndReleaseBuffer(buffer); in queueInputBufferInternal()
301 bool released = input->buffers->releaseBuffer(buffer, nullptr, true); in queueInputBufferInternal()
352 work->input.buffers.push_back(c2buffer); in queueInputBufferInternal()
408 work->input.buffers.clear(); in queueInputBufferInternal()
423 std::vector(work->input.buffers), in queueInputBufferInternal()
440 released = input->buffers->releaseBuffer(buffer, nullptr, true); in queueInputBufferInternal()
1066 if (!output->buffers || in feedInputBufferIfAvailableInternal()
[all …]
DPipelineWatcher.cpp55 std::vector<std::shared_ptr<C2Buffer>> &&buffers, in onWorkQueued() argument
59 buffers.size(), in onWorkQueued()
67 (void)mFramesInPipeline.try_emplace(frameIndex, std::move(buffers), queuedAt); in onWorkQueued()
80 if (it->second.buffers.size() <= arrayIndex) { in onInputBufferReleased()
82 (unsigned long long)frameIndex, it->second.buffers.size(), arrayIndex); in onInputBufferReleased()
85 std::shared_ptr<C2Buffer> buffer(std::move(it->second.buffers[arrayIndex])); in onInputBufferReleased()
122 for (const std::shared_ptr<C2Buffer> &buffer : value.second.buffers) { in pipelineFull()
DC2NodeImpl.cpp356 work->input.buffers.clear(); in submitBuffer()
361 work->input.buffers.push_back(c2Buffer); in submitBuffer()
378 Mutexed<BuffersTracker>::Locked buffers(mBuffersTracker); in submitBuffer() local
379 buffers->mIdsInUse.emplace(work->input.ordinal.frameIndex.peeku(), buffer); in submitBuffer()
413 Mutexed<BuffersTracker>::Locked buffers(mBuffersTracker); in onInputBufferDone() local
414 auto it = buffers->mIdsInUse.find(index.peeku()); in onInputBufferDone()
415 if (it == buffers->mIdsInUse.end()) { in onInputBufferDone()
420 (void)buffers->mIdsInUse.erase(it); in onInputBufferDone()
421 buffers->mAvailableIds.push_back(bufferId); in onInputBufferDone()
428 Mutexed<BuffersTracker>::Locked buffers(mBuffersTracker); in onInputBufferDone() local
[all …]
DPipelineWatcher.h83 std::vector<std::shared_ptr<C2Buffer>> &&buffers,
137 : buffers(b), in Frame()
139 std::vector<std::shared_ptr<C2Buffer>> buffers; member
/frameworks/av/media/module/foundation/
DMediaBufferGroup.cpp51 MediaBufferGroup::MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit) in MediaBufferGroup() argument
53 init(buffers, buffer_size, growthLimit); in MediaBufferGroup()
56 void MediaBufferGroup::init(size_t buffers, size_t buffer_size, size_t growthLimit) { in init() argument
59 if (mInternal->mGrowthLimit > 0 && buffers > mInternal->mGrowthLimit) { in init()
61 buffers, mInternal->mGrowthLimit); in init()
62 mInternal->mGrowthLimit = buffers; in init()
73 size_t total = (augmented_size + alignment - 1) / alignment * alignment * buffers; in init()
76 for (size_t i = 0; i < buffers; ++i) { in init()
93 for (size_t i = 0; i < buffers; ++i) { in init()
230 size_t MediaBufferGroup::buffers() const { in buffers() function in android::MediaBufferGroup
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBufferGroup.h38 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0);
57 size_t buffers() const;
76 size_t buffers, size_t buffer_size, size_t growthLimit) -> bool { in wrap()
77 ((MediaBufferGroup*)handle)->init(buffers, buffer_size, growthLimit); in wrap()
109 void init(size_t buffers, size_t buffer_size, size_t growthLimit);
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/
DDumpManager.kt43 private val buffers: MutableMap<String, LogBufferEntry> = TreeMap() constant in com.android.systemui.dump.DumpManager
129 buffers[name] = LogBufferEntry(buffer, name) in registerBuffer()
146 @Synchronized fun getLogBuffers(): Collection<LogBufferEntry> = buffers.values.toList() in getDumpables()
153 for (buffer in buffers.values) { in getDumpables()
160 for (buffer in buffers.values) { in unfreezeBuffers()
167 dumpables[name]?.dumpable ?: buffers[name]?.buffer ?: tableLogBuffers[name]?.table in canAssignToNameLocked()
/frameworks/base/graphics/java/android/graphics/
DGraphicsStatsService.java236 ArrayList<HistoricalBuffer> buffers; in pullGraphicsStatsImpl() local
238 buffers = new ArrayList<>(mActive.size()); in pullGraphicsStatsImpl()
243 buffers.add(new HistoricalBuffer(buffer)); in pullGraphicsStatsImpl()
256 HashSet<File> skipList = dumpActiveLocked(dump, buffers); in pullGraphicsStatsImpl()
257 buffers.clear(); in pullGraphicsStatsImpl()
394 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName, versionCode); in fetchActiveBuffersLocked() local
395 mActive.add(buffers); in fetchActiveBuffersLocked()
396 return buffers; in fetchActiveBuffersLocked()
402 private HashSet<File> dumpActiveLocked(long dump, ArrayList<HistoricalBuffer> buffers) { in dumpActiveLocked() argument
403 HashSet<File> skipFiles = new HashSet<>(buffers.size()); in dumpActiveLocked()
[all …]
/frameworks/av/media/libmedia/
DIStreamSource.cpp54 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { in setBuffers()
57 data.writeInt64(static_cast<int64_t>(buffers.size())); in setBuffers()
58 for (size_t i = 0; i < buffers.size(); ++i) { in setBuffers()
59 data.writeStrongBinder(IInterface::asBinder(buffers.itemAt(i))); in setBuffers()
98 Vector<sp<IMemory> > buffers; in onTransact() local
104 buffers.push(mem); in onTransact()
109 setBuffers(buffers); in onTransact()
DIMediaSource.cpp119 Vector<MediaBufferBase *> buffers; in read() local
120 status_t ret = readMultiple(&buffers, 1 /* maxNumBuffers */, options); in read()
121 *buffer = buffers.size() == 0 ? nullptr : buffers[0]; in read()
128 Vector<MediaBufferBase *> *buffers, uint32_t maxNumBuffers, in readMultiple() argument
131 if (buffers == NULL || !buffers->isEmpty()) { in readMultiple()
183 buffers->push_back(buf); in readMultiple()
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp32 std::shared_ptr<RawGraphicOutputBuffers> buffers = in GetRawGraphicOutputBuffers() local
37 buffers->setFormat(format); in GetRawGraphicOutputBuffers()
38 return buffers; in GetRawGraphicOutputBuffers()
45 std::shared_ptr<RawGraphicOutputBuffers> buffers = in TEST() local
53 auto registerBuffer = [&buffers, &clientBuffers, &pool] { in TEST()
62 ASSERT_EQ(OK, buffers->registerBuffer(c2Buffer, &index, &clientBuffer)); in TEST()
75 auto releaseBuffer = [&buffers, &clientBuffers, kWidth, kHeight](int index) { in TEST()
77 ASSERT_TRUE(buffers->releaseBuffer(clientBuffers[index], &c2Buffer)) in TEST()
113 std::shared_ptr<RawGraphicOutputBuffers> buffers = in TEST() local
116 sp<Codec2Buffer> buffer = buffers->wrap(nullptr); in TEST()
[all …]
/frameworks/native/libs/gui/tests/
DSurfaceTextureGLToGL_test.cpp160 sp<GraphicBuffer> buffers[2]; in TEST_F() local
183 buffers[i] = mST->getCurrentBuffer(); in TEST_F()
196 EXPECT_EQ(1, buffers[0]->getStrongCount()); in TEST_F()
201 EXPECT_EQ(3, buffers[1]->getStrongCount()); in TEST_F()
206 sp<GraphicBuffer> buffers[3]; in TEST_F() local
230 buffers[i] = mST->getCurrentBuffer(); in TEST_F()
246 EXPECT_EQ(1, buffers[1]->getStrongCount()); in TEST_F()
254 if (buffers[2] != buffers[0]) { in TEST_F()
255 EXPECT_EQ(1, buffers[0]->getStrongCount()); in TEST_F()
256 EXPECT_EQ(1, buffers[2]->getStrongCount()); in TEST_F()
[all …]
/frameworks/av/include/private/media/
DAudioTrackShared.h291 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
326 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
447 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
449 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/,
504 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
560 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
562 : ClientProxy(cblk, buffers, frameCount, frameSize,
582 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
664 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
666 : ServerProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, clientInServer),
[all …]
/frameworks/av/services/camera/libcameraservice/device3/aidl/
DAidlCamera3OfflineSession.cpp188 std::vector<::aidl::android::hardware::camera::device::StreamBufferRet>* buffers, in requestStreamBuffers() argument
195 return p->requestStreamBuffers(bufReqs, buffers, status); in requestStreamBuffers()
200 std::vector<::aidl::android::hardware::camera::device::StreamBufferRet>* buffers, in requestStreamBuffers() argument
215 camera3::requestStreamBuffers(states, bufReqs, buffers, status); in requestStreamBuffers()
220 const std::vector<camera::device::StreamBuffer>& buffers) { in returnStreamBuffers() argument
226 return p->returnStreamBuffers(buffers); in returnStreamBuffers()
236 const std::vector<camera::device::StreamBuffer>& buffers) { in returnStreamBuffers() argument
249 camera3::returnStreamBuffers(states, buffers); in returnStreamBuffers()
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp37 Buffers buffers; in draw() local
38 buffers.reserve(loopCount); in draw()
129 buffers.push_back(std::move(buffer)); in draw()
131 return buffers; in draw()
243 auto buffers = draw(refreshIntFps, renderIntFps, idle, color, transformHint, mFeatures); in getOrCreateBuffers() local
246 std::move(buffers)).first; in getOrCreateBuffers()
302 const auto& buffers = getOrCreateBuffers(*mRefreshRate, *mRenderFps, mIsVrrIdle); in animate() local
303 mFrame = (mFrame + 1) % buffers.size(); in animate()
304 const auto buffer = buffers[mFrame]; in animate()
/frameworks/base/media/java/android/media/
DMediaCodec.java4321 @Nullable ByteBuffer[] buffers, int index, boolean input) { in invalidateByteBufferLocked()
4322 if (buffers == null) { in invalidateByteBufferLocked()
4327 } else if (index >= 0 && index < buffers.length) { in invalidateByteBufferLocked()
4328 ByteBuffer buffer = buffers[index]; in invalidateByteBufferLocked()
4336 @Nullable ByteBuffer[] buffers, int index) { in validateInputByteBufferLocked()
4337 if (buffers == null) { in validateInputByteBufferLocked()
4341 } else if (index >= 0 && index < buffers.length) { in validateInputByteBufferLocked()
4342 ByteBuffer buffer = buffers[index]; in validateInputByteBufferLocked()
4351 @Nullable ByteBuffer[] buffers, int index, boolean input) { in revalidateByteBuffer()
4353 if (buffers == null) { in revalidateByteBuffer()
[all …]
/frameworks/base/libs/androidfw/tests/
DStringPool_test.cpp261 BigBuffer buffers[2] = {BigBuffer(1024), BigBuffer(1024)}; in TEST() local
262 StringPool::FlattenUtf8(&buffers[0], pool, &diag); in TEST()
263 StringPool::FlattenUtf16(&buffers[1], pool, &diag); in TEST()
266 for (const BigBuffer& buffer : buffers) { in TEST()
347 BigBuffer buffers[2] = {BigBuffer(1024), BigBuffer(1024)}; in TEST() local
350 EXPECT_THAT(StringPool::FlattenUtf8(&buffers[0], pool, &diag), Eq(true)); in TEST()
351 std::unique_ptr<uint8_t[]> data = android::util::Copy(buffers[0]); in TEST()
352 test.setTo(data.get(), buffers[0].size()); in TEST()
356 EXPECT_THAT(StringPool::FlattenUtf16(&buffers[1], pool, &diag), Eq(true)); in TEST()
357 data = android::util::Copy(buffers[1]); in TEST()
[all …]
/frameworks/base/libs/usb/tests/accessorytest/
Daudio.c42 static char* buffers[BUFFER_COUNT]; variable
150 if (pcm_read(pcm, buffers[index], BUFFER_SIZE)) { in capture_thread()
174 err = pcm_write(pcm, buffers[index], BUFFER_SIZE); in play_thread()
198 buffers[i] = malloc(BUFFER_SIZE); in init_audio()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DDisplaySourceService.java229 ByteBuffer[] buffers = null; in stream() local
233 if (buffers == null) { in stream()
234 buffers = codec.getOutputBuffers(); in stream()
237 ByteBuffer buffer = buffers[index]; in stream()
245 buffers = null; in stream()

123456789