/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/d1new/ |
D | RefocusFilterd1new.java | 38 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/ |
D | RefocusFilterF32.java | 37 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/ |
D | GLES20IdImpl.java | 19 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()
|
D | GLId.java | 26 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/codec2/sfplugin/ |
D | CCodecBufferChannel.cpp | 230 input->buffers.reset(new DummyInputBuffers("")); in CCodecBufferChannel() 299 work->input.buffers.clear(); in queueInputBufferInternal() 308 if (!input->buffers->releaseBuffer(buffer, &c2buffer, false)) { in queueInputBufferInternal() 313 copy = input->buffers->cloneAndReleaseBuffer(buffer); in queueInputBufferInternal() 319 bool released = input->buffers->releaseBuffer(buffer, nullptr, true); in queueInputBufferInternal() 328 work->input.buffers.push_back(c2buffer); in queueInputBufferInternal() 357 work->input.buffers.clear(); in queueInputBufferInternal() 380 released = input->buffers->releaseBuffer(buffer, nullptr, true); in queueInputBufferInternal() 533 if (output->buffers->numClientBuffers() >= output->numSlots) { in feedInputBufferIfAvailableInternal() 543 if (input->buffers->numClientBuffers() >= input->numSlots) { in feedInputBufferIfAvailableInternal() [all …]
|
D | PipelineWatcher.cpp | 50 std::vector<std::shared_ptr<C2Buffer>> &&buffers, in onWorkQueued() argument 54 buffers.size(), in onWorkQueued() 62 (void)mFramesInPipeline.try_emplace(frameIndex, std::move(buffers), queuedAt); in onWorkQueued() 75 if (it->second.buffers.size() <= arrayIndex) { in onInputBufferReleased() 77 (unsigned long long)frameIndex, it->second.buffers.size(), arrayIndex); in onInputBufferReleased() 80 std::shared_ptr<C2Buffer> buffer(std::move(it->second.buffers[arrayIndex])); in onInputBufferReleased() 111 for (const std::shared_ptr<C2Buffer> &buffer : value.second.buffers) { in pipelineFull()
|
D | PipelineWatcher.h | 76 std::vector<std::shared_ptr<C2Buffer>> &&buffers, 129 : buffers(b), in Frame() 131 std::vector<std::shared_ptr<C2Buffer>> buffers; member
|
/frameworks/av/media/libstagefright/foundation/ |
D | MediaBufferGroup.cpp | 51 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/ |
D | MediaBufferGroup.h | 38 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/ml/nn/runtime/test/fuzzing/ |
D | RandomGraphGenerator.cpp | 251 std::vector<OperandBuffer>* buffers) { in createRequest() argument 253 if (buffers != nullptr) buffers->clear(); in createRequest() 260 if (buffers == nullptr) { in createRequest() 266 buffers->emplace_back(operand->buffer.size()); in createRequest() 267 EXPECT_EQ(execution->setOutput(operand->ioIndex, buffers->back().data(), in createRequest() 345 void RandomGraph::checkResults(const std::vector<OperandBuffer>& buffers, in checkResults() argument 358 expectNear<float>(*op, buffers[i], criteria.float32); in checkResults() 361 expectNear<_Float16>(*op, buffers[i], criteria.float16); in checkResults() 364 expectNear<int32_t>(*op, buffers[i], criteria.int32); in checkResults() 367 expectNear<uint8_t>(*op, buffers[i], criteria.quant8Asymm); in checkResults() [all …]
|
/frameworks/av/include/private/media/ |
D | AudioTrackShared.h | 207 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut, 240 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 360 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 362 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, in ClientProxy() argument 417 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 473 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in AudioRecordClientProxy() argument 475 : ClientProxy(cblk, buffers, frameCount, frameSize, in AudioRecordClientProxy() 495 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 577 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 579 : ServerProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, clientInServer), in ServerProxy() argument [all …]
|
/frameworks/av/media/libmedia/ |
D | IStreamSource.cpp | 54 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()
|
D | IMediaSource.cpp | 119 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/native/libs/gui/tests/ |
D | SurfaceTextureGLToGL_test.cpp | 160 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/base/media/java/android/media/ |
D | MediaCodec.java | 3040 @Nullable ByteBuffer[] buffers, int index) { in invalidateByteBuffer() 3041 if (buffers != null && index >= 0 && index < buffers.length) { in invalidateByteBuffer() 3042 ByteBuffer buffer = buffers[index]; in invalidateByteBuffer() 3050 @Nullable ByteBuffer[] buffers, int index) { in validateInputByteBuffer() 3051 if (buffers != null && index >= 0 && index < buffers.length) { in validateInputByteBuffer() 3052 ByteBuffer buffer = buffers[index]; in validateInputByteBuffer() 3061 @Nullable ByteBuffer[] buffers, int index) { in revalidateByteBuffer() 3063 if (buffers != null && index >= 0 && index < buffers.length) { in revalidateByteBuffer() 3064 ByteBuffer buffer = buffers[index]; in revalidateByteBuffer() 3073 @Nullable ByteBuffer[] buffers, int index, @NonNull BufferInfo info) { in validateOutputByteBuffer() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | GraphicsStatsService.java | 314 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName, versionCode); in fetchActiveBuffersLocked() local 315 mActive.add(buffers); in fetchActiveBuffersLocked() 316 return buffers; in fetchActiveBuffersLocked() 322 private HashSet<File> dumpActiveLocked(long dump, ArrayList<HistoricalBuffer> buffers) { in dumpActiveLocked() argument 323 HashSet<File> skipFiles = new HashSet<>(buffers.size()); in dumpActiveLocked() 324 for (int i = 0; i < buffers.size(); i++) { in dumpActiveLocked() 325 HistoricalBuffer buffer = buffers.get(i); in dumpActiveLocked() 359 ArrayList<HistoricalBuffer> buffers; in dump() local 361 buffers = new ArrayList<>(mActive.size()); in dump() 364 buffers.add(new HistoricalBuffer(mActive.get(i))); in dump() [all …]
|
/frameworks/base/tools/aapt2/ |
D | StringPool_test.cpp | 261 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() 345 BigBuffer buffers[2] = {BigBuffer(1024), BigBuffer(1024)}; in TEST() local 348 EXPECT_THAT(StringPool::FlattenUtf8(&buffers[0], pool, &diag), Eq(true)); in TEST() 349 std::unique_ptr<uint8_t[]> data = util::Copy(buffers[0]); in TEST() 350 test.setTo(data.get(), buffers[0].size()); in TEST() 354 EXPECT_THAT(StringPool::FlattenUtf16(&buffers[1], pool, &diag), Eq(true)); in TEST() 355 data = util::Copy(buffers[1]); in TEST() [all …]
|
/frameworks/base/libs/hwui/debug/ |
D | NullGlesDriver.cpp | 32 static void nullglGenCommon(GLsizei n, GLuint* buffers) { in nullglGenCommon() argument 36 buffers[i] = ++nextId; in nullglGenCommon() 40 void NullGlesDriver::glGenBuffers_(GLsizei n, GLuint* buffers) { in glGenBuffers_() argument 41 nullglGenCommon(n, buffers); in glGenBuffers_()
|
/frameworks/base/libs/usb/tests/accessorytest/ |
D | audio.c | 42 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/ |
D | DisplaySourceService.java | 229 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()
|
/frameworks/av/cmds/stagefright/ |
D | stream.cpp | 54 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 91 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { in setBuffers() argument 92 mBuffers = buffers; in setBuffers() 134 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 208 const Vector<sp<IMemory> > &buffers) { in setBuffers() 209 mBuffers = buffers; in setBuffers()
|
/frameworks/native/libs/vr/libpdx/ |
D | encoder_performance_test.cpp | 280 const std::vector<BufferInfo>& buffers) { in RunTests() argument 302 buffers.size() * (buffer_column_width + buffer_column_separator.size()); in RunTests() 318 for (const auto& buffer_info : buffers) { in RunTests() 328 for (size_t i = 0; i < buffers.size(); i++) { in RunTests() 346 for (const auto& buffer_info : buffers) { in RunTests() 368 for (const auto& buffer_info : buffers) { in RunTests() 491 std::vector<TestRunner::BufferInfo> buffers; in main() local 494 buffers.emplace_back("Non-TLS Buffer", &buffer, &buffer, in main() 500 buffers.emplace_back( in main() 506 buffers.emplace_back( in main() [all …]
|
/frameworks/av/media/codec2/components/raw/ |
D | C2SoftRawDec.cpp | 154 work->worklets.front()->output.buffers.clear(); in process() 156 if (!work->input.buffers.empty()) { in process() 157 work->worklets.front()->output.buffers.push_back(work->input.buffers[0]); in process()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiDiagnostics.java | 349 byte[][] buffers = e.getValue(); in toString() 353 for (int i = 0; i < buffers.length; i++) { in toString() 354 size += buffers[i].length; in toString() 359 for (int i = 0; i < buffers.length; i++) { in toString() 360 System.arraycopy(buffers[i], 0, buffer, index, buffers[i].length); in toString() 361 index += buffers[i].length; in toString() 574 byte[][] buffers = new byte[data.getNumBuffers()][]; in captureBugreport() 576 buffers[i] = data.getBuffer(i).clone(); in captureBugreport() 578 report.ringBuffers.put(buffer.name, buffers); in captureBugreport()
|
/frameworks/av/media/codec2/components/g711/ |
D | C2SoftG711Dec.cpp | 150 if (!work->input.buffers.empty()) { in process() 151 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process() 167 work->worklets.front()->output.buffers.clear(); in process() 201 work->worklets.front()->output.buffers.clear(); in process() 202 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block)); in process()
|