/frameworks/rs/java/tests/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() 70 buffers.outAllocation.copyTo(buffers.outputImage); in extractResultImage() 71 return buffers.outputImage; in extractResultImage() 79 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractSharpImage() 80 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractSharpImage() 92 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractFuzzyImage() 93 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractFuzzyImage() [all …]
|
/frameworks/rs/java/tests/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() 68 buffers.outAllocation.copyTo(buffers.outputImage); in extractResultImage() 69 return buffers.outputImage; in extractResultImage() 77 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractSharpImage() 78 buffers.inputImage.getHeight(), Bitmap.Config.ARGB_8888); in extractSharpImage() 90 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractFuzzyImage() 91 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/include/private/media/ |
D | AudioTrackShared.h | 205 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut, 238 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 356 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 358 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, in ClientProxy() argument 407 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 457 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in AudioRecordClientProxy() argument 459 : ClientProxy(cblk, buffers, frameCount, frameSize, in AudioRecordClientProxy() 479 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 550 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 552 : ServerProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, clientInServer), in ServerProxy() argument [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | MediaBufferGroup.cpp | 39 MediaBufferGroup::MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit) in MediaBufferGroup() argument 42 if (mGrowthLimit > 0 && buffers > mGrowthLimit) { in MediaBufferGroup() 44 buffers, mGrowthLimit); in MediaBufferGroup() 45 mGrowthLimit = buffers; in MediaBufferGroup() 55 size_t total = (augmented_size + alignment - 1) / alignment * alignment * buffers; in MediaBufferGroup() 58 for (size_t i = 0; i < buffers; ++i) { in MediaBufferGroup() 72 for (size_t i = 0; i < buffers; ++i) { in MediaBufferGroup()
|
/frameworks/base/media/java/android/media/ |
D | MediaCodec.java | 2820 @Nullable ByteBuffer[] buffers, int index) { in invalidateByteBuffer() 2821 if (buffers != null && index >= 0 && index < buffers.length) { in invalidateByteBuffer() 2822 ByteBuffer buffer = buffers[index]; in invalidateByteBuffer() 2830 @Nullable ByteBuffer[] buffers, int index) { in validateInputByteBuffer() 2831 if (buffers != null && index >= 0 && index < buffers.length) { in validateInputByteBuffer() 2832 ByteBuffer buffer = buffers[index]; in validateInputByteBuffer() 2841 @Nullable ByteBuffer[] buffers, int index) { in revalidateByteBuffer() 2843 if (buffers != null && index >= 0 && index < buffers.length) { in revalidateByteBuffer() 2844 ByteBuffer buffer = buffers[index]; in revalidateByteBuffer() 2853 @Nullable ByteBuffer[] buffers, int index, @NonNull BufferInfo info) { in validateOutputByteBuffer() [all …]
|
/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/av/media/libmedia/ |
D | IStreamSource.cpp | 65 virtual void setBuffers(const Vector<sp<IMemory> > &buffers) { in setBuffers() 68 data.writeInt64(static_cast<int64_t>(buffers.size())); in setBuffers() 69 for (size_t i = 0; i < buffers.size(); ++i) { in setBuffers() 70 data.writeStrongBinder(IInterface::asBinder(buffers.itemAt(i))); in setBuffers() 109 Vector<sp<IMemory> > buffers; in onTransact() local 115 buffers.push(mem); in onTransact() 120 setBuffers(buffers); in onTransact()
|
D | IMediaSource.cpp | 117 Vector<MediaBuffer *> buffers; in read() local 118 status_t ret = readMultiple(&buffers, 1 /* maxNumBuffers */, options); in read() 119 *buffer = buffers.size() == 0 ? nullptr : buffers[0]; in read() 126 Vector<MediaBuffer *> *buffers, uint32_t maxNumBuffers, const ReadOptions *options) { in readMultiple() argument 128 if (buffers == NULL || !buffers->isEmpty()) { in readMultiple() 180 buffers->push_back(buf); in readMultiple() 213 virtual status_t setBuffers(const Vector<MediaBuffer *> & buffers __unused) { in setBuffers()
|
/frameworks/base/services/core/java/com/android/server/ |
D | GraphicsStatsService.java | 134 ActiveBuffer buffers = mActive.get(i); in fetchActiveBuffersLocked() local 135 if (buffers.mPid == pid in fetchActiveBuffersLocked() 136 && buffers.mUid == uid) { in fetchActiveBuffersLocked() 137 return buffers; in fetchActiveBuffersLocked() 142 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName); in fetchActiveBuffersLocked() local 143 mActive.add(buffers); in fetchActiveBuffersLocked() 144 return buffers; in fetchActiveBuffersLocked()
|
/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() 175 err = pcm_write(pcm, buffers[index], BUFFER_SIZE); in play_thread() 200 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 | 51 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 88 void MyStreamSource::setBuffers(const Vector<sp<IMemory> > &buffers) { in setBuffers() argument 89 mBuffers = buffers; in setBuffers() 131 virtual void setBuffers(const Vector<sp<IMemory> > &buffers); 199 const Vector<sp<IMemory> > &buffers) { in setBuffers() 200 mBuffers = buffers; in setBuffers()
|
/frameworks/av/include/media/stagefright/ |
D | MediaBufferGroup.h | 35 MediaBufferGroup(size_t buffers, size_t buffer_size, size_t growthLimit = 0); 54 size_t buffers() const { return mBuffers.size(); } in buffers() function
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLogger.java | 296 byte[][] buffers = e.getValue(); in toString() 300 for (int i = 0; i < buffers.length; i++) { in toString() 301 size += buffers[i].length; in toString() 306 for (int i = 0; i < buffers.length; i++) { in toString() 307 System.arraycopy(buffers[i], 0, buffer, index, buffers[i].length); in toString() 308 index += buffers[i].length; in toString() 522 byte[][] buffers = new byte[data.getNumBuffers()][]; in captureBugreport() 524 buffers[i] = data.getBuffer(i).clone(); in captureBugreport() 526 report.ringBuffers.put(buffer.name, buffers); in captureBugreport()
|
/frameworks/native/libs/ui/ |
D | Gralloc1.cpp | 157 std::vector<buffer_handle_t> buffers(descriptors.size()); in allocate() local 160 buffers.data()); in allocate() 163 *outBuffers = std::move(buffers); in allocate() 186 std::vector<buffer_handle_t> buffers; in allocate() local 187 error = allocate(descriptors, &buffers); in allocate() 189 *outBuffer = buffers[0]; in allocate()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3BufferManager.cpp | 499 bool Camera3BufferManager::hasBufferForStreamLocked(BufferList& buffers, int streamId) { in hasBufferForStreamLocked() argument 500 BufferList::iterator i = buffers.begin(); in hasBufferForStreamLocked() 501 while (i != buffers.end()) { in hasBufferForStreamLocked() 513 BufferList& buffers, int streamId) { in getFirstBufferFromBufferListLocked() argument 516 BufferList::iterator i = buffers.begin(); in getFirstBufferFromBufferListLocked() 517 while (i != buffers.end()) { in getFirstBufferFromBufferListLocked() 521 i = buffers.erase(i); in getFirstBufferFromBufferListLocked()
|
D | Camera3BufferManager.h | 325 GraphicBufferEntry getFirstBufferFromBufferListLocked(BufferList& buffers, int streamId); 333 bool inline hasBufferForStreamLocked(BufferList& buffers, int streamId);
|
/frameworks/native/opengl/libagl/ |
D | BufferObjectManager.cpp | 85 void EGLBufferObjectManager::deleteBuffers(GLsizei n, const GLuint* buffers) in deleteBuffers() argument 89 const GLuint t = *buffers++; in deleteBuffers()
|
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
D | GL11.java | 204 int[] buffers, in glDeleteBuffers() argument 210 java.nio.IntBuffer buffers in glDeleteBuffers() argument 222 int[] buffers, in glGenBuffers() argument 228 java.nio.IntBuffer buffers in glGenBuffers() argument
|
/frameworks/base/libs/hwui/tests/unit/ |
D | OffscreenBufferPoolTests.cpp | 141 std::vector<OffscreenBuffer*> buffers; in RENDERTHREAD_TEST() local 144 buffers.push_back(pool.get(renderThread.renderState(), size, size)); in RENDERTHREAD_TEST() 148 for (auto& buffer : buffers) pool.putOrDelete(buffer); in RENDERTHREAD_TEST()
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLES11.java | 231 int[] buffers, in glDeleteBuffers() argument 239 java.nio.IntBuffer buffers in glDeleteBuffers() argument 255 int[] buffers, in glGenBuffers() argument 263 java.nio.IntBuffer buffers in glGenBuffers() argument
|
/frameworks/base/core/jni/ |
D | android_hardware_Camera.cpp | 90 void clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers); 92 jbyteArray getCallbackBuffer(JNIEnv *env, Vector<jbyteArray> *buffers, size_t bufferSize); 220 JNIEnv* env, Vector<jbyteArray>* buffers, size_t bufferSize) in getCallbackBuffer() argument 225 if (!buffers->isEmpty()) { in getCallbackBuffer() 226 ALOGV("Using callback buffer from queue of length %zu", buffers->size()); in getCallbackBuffer() 227 jbyteArray globalBuffer = buffers->itemAt(0); in getCallbackBuffer() 228 buffers->removeAt(0); in getCallbackBuffer() 496 void JNICameraContext::clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers) { in clearCallbackBuffers_l() argument 497 ALOGV("Clearing callback buffers, %zu remained", buffers->size()); in clearCallbackBuffers_l() 498 while (!buffers->isEmpty()) { in clearCallbackBuffers_l() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
D | AudioTrackDecoder.java | 77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument 78 ByteBuffer buffer = buffers[bufferIndex]; in onDataAvailable()
|