/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.h | 101 virtual void bindNativeBufferAsFrameBuffer(ANativeWindowBuffer* buffer, 137 BindNativeBufferAsFramebuffer(RenderEngine& engine, ANativeWindowBuffer* buffer) argument 139 mEngine.bindNativeBufferAsFrameBuffer(buffer, this); 241 void bindNativeBufferAsFrameBuffer(ANativeWindowBuffer* buffer,
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/ |
H A D | MockNativeWindow.cpp | 28 struct ANativeWindowBuffer** buffer) { 29 return static_cast<NativeWindow*>(window)->dequeueBuffer_DEPRECATED(buffer); 33 struct ANativeWindowBuffer* buffer) { 34 return static_cast<NativeWindow*>(window)->lockBuffer_DEPRECATED(buffer); 38 struct ANativeWindowBuffer* buffer) { 39 return static_cast<NativeWindow*>(window)->queueBuffer_DEPRECATED(buffer); 52 struct ANativeWindowBuffer* buffer) { 53 return static_cast<NativeWindow*>(window)->cancelBuffer_DEPRECATED(buffer); 56 int dispatch_dequeueBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer** buffer, argument 58 return static_cast<NativeWindow*>(window)->dequeueBuffer(buffer, fenceF 27 dispatch_dequeueBuffer_DEPRECATED(struct ANativeWindow* window, struct ANativeWindowBuffer** buffer) argument 32 dispatch_lockBuffer_DEPRECATED(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer) argument 37 dispatch_queueBuffer_DEPRECATED(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer) argument 51 dispatch_cancelBuffer_DEPRECATED(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer) argument 61 dispatch_queueBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer, int fenceFd) argument 66 dispatch_cancelBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer, int fenceFd) argument [all...] |
/frameworks/native/vulkan/include/vulkan/ |
H A D | vulkan_android.h | 91 struct AHardwareBuffer* buffer; member in struct:VkImportAndroidHardwareBufferInfoANDROID 107 typedef VkResult (VKAPI_PTR *PFN_vkGetAndroidHardwareBufferPropertiesANDROID)(VkDevice device, const struct AHardwareBuffer* buffer, VkAndroidHardwareBufferPropertiesANDROID* pProperties); 113 const struct AHardwareBuffer* buffer,
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
H A D | ImsRttTextHandlerTest.java | 45 char[] buffer = new char[READ_BUFFER_SIZE]; field in class:ImsRttTextHandlerTest 160 + ", network buffer=" + mRttTextHandler.getNetworkBufferText() 237 int len = inputStreamReader.read(buffer, 0, READ_BUFFER_SIZE); 238 return new String(buffer, 0, len);
|
/frameworks/rs/driver/ |
H A D | rsdCore.cpp | 371 void* buffer = calloc(size, sizeof(char)); local 372 return buffer;
|
/frameworks/rs/rsov/driver/ |
H A D | rsovCore.cpp | 55 void* buffer = calloc(size, sizeof(char)); local 56 return buffer;
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | configbq.c | 17 // Test various buffer queue configurations 145 // generate a sine wave buffer, ascending in half-steps for each format 147 static unsigned char buffer[N]; local 156 buffer[i++] = (sampleLeft + 32768) >> 8; 157 buffer[i++] = (sampleRight + 32768) >> 8; 160 buffer[i++] = sampleLeft & 0xFF; 161 buffer[i++] = sampleLeft >> 8; 162 buffer[i++] = sampleRight & 0xFF; 163 buffer[i++] = sampleRight >> 8; 170 buffer[ [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 332 sp<ABuffer> buffer; local 333 while (format->findBuffer(AStringPrintf("csd-%d", j).c_str(), &buffer)) { 334 state->mCSD.push_back(buffer); 429 ALOGV("dequeued input buffer on track %zu", 449 ALOGV("dequeued output buffer on track %zu", 531 ALOGI("track %zu buffer late by %lld us, dropping.", 561 ALOGV("track %zu buffer early by %lld us.", 603 CodecState *state, BufferInfo *info, const sp<MediaCodecBuffer> &buffer) { 632 buffer->base() + info->mOffset, copy); 602 renderAudio( CodecState *state, BufferInfo *info, const sp<MediaCodecBuffer> &buffer) argument
|
H A D | codec.cpp | 175 ALOGV("filling input buffer %zu", index); 177 const sp<MediaCodecBuffer> &buffer = state->mInBuffers.itemAt(index); local 178 sp<ABuffer> abuffer = new ABuffer(buffer->base(), buffer->capacity()); 182 buffer->setRange(abuffer->offset(), abuffer->size()); 193 buffer->size(), 263 ALOGV("draining output buffer %zu, time = %lld us",
|
H A D | recordvideo.cpp | 93 MediaBufferBase **buffer, const MediaSource::ReadOptions *options __unused) { 102 status_t err = mGroup.acquire_buffer(buffer); 113 memset((*buffer)->data(), x, mSize); 116 (*buffer)->set_range(0, mSize); 117 (*buffer)->meta_data().clear(); 118 (*buffer)->meta_data().setInt64( 92 read( MediaBufferBase **buffer, const MediaSource::ReadOptions *options __unused) argument
|
/frameworks/av/drm/common/ |
H A D | DrmEngineBase.cpp | 168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { 169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset); 167 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 162 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { 163 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset); 161 pread( sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
H A D | DrmPassthruPlugIn.cpp | 99 const DrmBuffer* buffer = new DrmBuffer(data, bufferSize); local 101 DrmInfoRequest::TYPE_RIGHTS_ACQUISITION_INFO, buffer, drmInfo->getMimeType()); 282 * encrypted buffer as it is to decrypted buffer. Note, decBuffer 305 void* /*buffer*/, ssize_t /*numBytes*/, off64_t /*offset*/) {
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ecm.h | 27 // ecm_container.descriptor(1).ecm().buffer(), asset_key); 158 const sp<ABuffer> buffer() const { return buffer_; } function in class:android::clearkeycas::Ecm 159 inline void set_buffer(const sp<ABuffer>& buffer) { argument 160 buffer_ = ABuffer::CreateAsCopy(buffer->data(), buffer->size()); 204 // Client-side ctor. Populate from a buffer with Parse().
|
/frameworks/av/include/media/ |
H A D | IOMX.h | 129 // Allocate an opaque buffer as a native handle. If component supports returning native 130 // handles, those are returned in *native_handle. Otherwise, the allocated buffer is 135 OMX_U32 port_index, size_t size, buffer_id *buffer, 138 // Instructs the component to use the buffer passed in via |omxBuf| on the 139 // specified port. Returns in |*buffer| the buffer id that the component 140 // assigns to this buffer. |omxBuf| must be one of: 142 // 2) type kBufferTypeANWBuffer for non-meta-graphic buffer mode, 145 OMX_U32 port_index, const OMXBuffer &omxBuf, buffer_id *buffer) = 0; 147 // Frees the buffer o 198 IOMX::buffer_id buffer; member in struct:android::omx_message::__anon70::__anon72 203 IOMX::buffer_id buffer; member in struct:android::omx_message::__anon70::__anon73 [all...] |
/frameworks/av/media/extractors/amr/ |
H A D | AMRExtractor.cpp | 49 MediaBufferBase **buffer, const ReadOptions *options = NULL); 330 MediaBufferBase *buffer; local 331 status_t err = mGroup->acquire_buffer(&buffer); 336 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); 339 buffer->release(); 340 buffer = NULL; 351 buffer->set_range(0, frameSize); 352 buffer->meta_data().setInt64(kKeyTime, mCurrentTimeUs); 353 buffer->meta_data().setInt32(kKeyIsSyncFrame, 1); 358 *out = buffer; [all...] |
/frameworks/av/media/extractors/midi/ |
H A D | MidiExtractor.cpp | 48 MediaBufferBase **buffer, const ReadOptions *options = NULL); 121 MediaBufferBase *buffer; local 131 buffer = mEngine.readBuffer(); 132 *outBuffer = buffer; 134 return buffer != NULL ? (status_t) OK : (status_t) ERROR_END_OF_STREAM; 210 ALOGV("using %d byte buffer", bufsize); 233 MediaBufferBase *buffer; local 234 status_t err = mGroup->acquire_buffer(&buffer); 236 ALOGE("readBuffer: no buffer"); 242 buffer [all...] |
/frameworks/av/media/libaaudio/src/client/ |
H A D | AudioStreamInternalPlay.cpp | 100 aaudio_result_t AudioStreamInternalPlay::write(const void *buffer, int32_t numFrames, argument 102 return processData((void *)buffer, numFrames, timeoutNanoseconds); 106 aaudio_result_t AudioStreamInternalPlay::processDataNow(void *buffer, int32_t numFrames, argument 119 // current buffer position. 152 // Write some data to the buffer. 154 int32_t framesWritten = writeNowWithConversion(buffer, numFrames); 172 // Don't wait to write more data. Just prime the buffer. 200 aaudio_result_t AudioStreamInternalPlay::writeNowWithConversion(const void *buffer, argument 203 uint8_t *byteBuffer = (uint8_t *) buffer;
|
/frameworks/av/media/libaudiohal/2.0/ |
H A D | EffectHalHidl.cpp | 71 // TODO(mnaganov): These buffer conversion functions should be shared with Effect wrapper 87 halConfig->buffer.frameCount = 0; 88 halConfig->buffer.raw = NULL; 124 status_t EffectHalHidl::setInBuffer(const sp<EffectBufferHalInterface>& buffer) { argument 126 if (buffer.get() == nullptr || mInBuffer.get() == nullptr) { 127 mBuffersChanged = buffer.get() != mInBuffer.get(); 129 mBuffersChanged = buffer->audioBuffer() != mInBuffer->audioBuffer(); 132 mInBuffer = buffer; 136 status_t EffectHalHidl::setOutBuffer(const sp<EffectBufferHalInterface>& buffer) { argument 138 if (buffer [all...] |
/frameworks/av/media/libaudiohal/4.0/ |
H A D | EffectHalHidl.cpp | 74 // TODO(mnaganov): These buffer conversion functions should be shared with Effect wrapper 90 halConfig->buffer.frameCount = 0; 91 halConfig->buffer.raw = NULL; 127 status_t EffectHalHidl::setInBuffer(const sp<EffectBufferHalInterface>& buffer) { argument 129 if (buffer.get() == nullptr || mInBuffer.get() == nullptr) { 130 mBuffersChanged = buffer.get() != mInBuffer.get(); 132 mBuffersChanged = buffer->audioBuffer() != mInBuffer->audioBuffer(); 135 mInBuffer = buffer; 139 status_t EffectHalHidl::setOutBuffer(const sp<EffectBufferHalInterface>& buffer) { argument 141 if (buffer [all...] |
/frameworks/av/media/libaudioprocessing/tests/ |
H A D | test-mixer.cpp | 40 " [-s sample-rate] [-o <output-file>] [-a <aux-buffer-file>] [-P csv]" 47 fprintf(stderr, " -a <aux-buffer-file>\n"); 54 static int writeFile(const char *filename, const void *buffer, argument 73 (void) sf_writef_float(sf, (float*)buffer, frames); 75 (void) sf_writef_short(sf, (short*)buffer, frames); 214 // create the output buffer. 224 // create the aux buffer, if needed. 315 // Aux buffer is always in q4_27 format for O and earlier. 317 // Aux buffer is always in float format for P.
|
H A D | test_utils.h | 94 /* Creates a type-independent audio buffer provider from 95 * a buffer base address, size, framesize, and input increment array. 97 * No allocation or deallocation of the provided buffer is done. 121 virtual android::status_t getNextBuffer(Buffer* buffer) argument 123 size_t requestedFrames = buffer->frameCount; 125 buffer->frameCount = mNumFrames - mNextFrame; 130 mNextIdx-1, provided, buffer->frameCount); 131 if (provided < buffer->frameCount) { 132 buffer->frameCount = provided; 140 requestedFrames, mNumFrames - mNextFrame, buffer 151 releaseBuffer(Buffer* buffer) argument 197 T* buffer = reinterpret_cast<T*>(vbuffer); local 221 T *buffer = reinterpret_cast<T*>(vbuffer); local [all...] |
/frameworks/av/media/libmedia/ |
H A D | CharacterEncodingDetector.cpp | 237 char* buffer = new char[targetLength]; local 239 if (!buffer) 241 char* target = buffer; 254 while (--target > buffer && *target == ' ') { 258 char *start = buffer; 265 delete[] buffer;
|
/frameworks/av/media/libmedia/include/media/ |
H A D | IOMX.h | 129 // Allocate an opaque buffer as a native handle. If component supports returning native 130 // handles, those are returned in *native_handle. Otherwise, the allocated buffer is 135 OMX_U32 port_index, size_t size, buffer_id *buffer, 138 // Instructs the component to use the buffer passed in via |omxBuf| on the 139 // specified port. Returns in |*buffer| the buffer id that the component 140 // assigns to this buffer. |omxBuf| must be one of: 142 // 2) type kBufferTypeANWBuffer for non-meta-graphic buffer mode, 145 OMX_U32 port_index, const OMXBuffer &omxBuf, buffer_id *buffer) = 0; 147 // Frees the buffer o 198 IOMX::buffer_id buffer; member in struct:android::omx_message::__anon407::__anon409 203 IOMX::buffer_id buffer; member in struct:android::omx_message::__anon407::__anon410 [all...] |
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
H A D | HTTPLiveSource2.cpp | 35 // default buffer prepare/ready/underflow marks 261 sp<ABuffer> buffer; local 262 while (mLiveSession->dequeueAccessUnit(fetchType, &buffer) == OK) { 266 notify->setBuffer("buffer", buffer); 269 CHECK(buffer->meta()->findInt64("baseUs", &baseUs)); 270 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); 431 // notification without buffer triggers MEDIA2_INFO_METADATA_UPDATE
|