/frameworks/native/cmds/servicemanager/ |
H A D | binder.c | 54 hexdump((void *)(uintptr_t)txn->data.ptr.buffer, txn->data_size); 56 obj = (struct flat_binder_object *) (((char*)(uintptr_t)txn->data.ptr.buffer) + *offs++); 85 #define BIO_F_SHARED 0x01 /* needs to be buffer freed */ 176 binder_uintptr_t buffer; member in struct:__anon1370 179 data.buffer = buffer_to_free; 190 binder_uintptr_t buffer; member in struct:__anon1371 196 data.buffer = buffer_to_free; 205 data.txn.data.ptr.buffer = (uintptr_t)&status; 211 data.txn.data.ptr.buffer = (uintptr_t)reply->data0; 260 binder_free_buffer(bs, txn->data.ptr.buffer); 474 uintptr_t buffer; member in struct:__anon1374 [all...] |
/frameworks/native/include/binder/ |
H A D | Parcel.h | 70 status_t setData(const uint8_t* buffer, size_t len); 509 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0; 510 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0; 535 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { argument 536 return val.flatten(buffer, size, fds, count); 538 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { argument 539 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count); 589 void* buffer = writeInplace(size); local 590 if (buffer == NULL) 592 return val.flatten(buffer, siz 617 void const* buffer = readInplace(size); local [all...] |
/frameworks/native/libs/binder/ |
H A D | MemoryDealer.cpp | 452 char buffer[SIZE]; local 453 snprintf(buffer, SIZE, " %s (%p, size=%u)\n", 456 result.append(buffer); 464 snprintf(buffer, SIZE, " %3u: %p | 0x%08X | 0x%08X | %s %s\n", 470 result.append(buffer); 478 snprintf(buffer, SIZE, 480 result.append(buffer);
|
/frameworks/native/libs/binder/include/binder/ |
H A D | Parcel.h | 70 status_t setData(const uint8_t* buffer, size_t len); 509 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0; 510 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0; 535 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { argument 536 return val.flatten(buffer, size, fds, count); 538 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { argument 539 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count); 589 void* buffer = writeInplace(size); local 590 if (buffer == NULL) 592 return val.flatten(buffer, siz 617 void const* buffer = readInplace(size); local [all...] |
/frameworks/native/libs/gui/ |
H A D | BufferQueueConsumer.cpp | 63 // buffers acquired. We allow the max buffer count to be exceeded by one 64 // buffer so that the consumer can successfully set up the newly acquired 65 // buffer before releasing the old one. 73 BQ_LOGE("acquireBuffer: max acquired buffer count reached: %d (max %d)", 82 // In asynchronous mode the list is guaranteed to be one buffer deep, 83 // while in synchronous mode we use the oldest buffer. 90 // If expectedPresent is specified, we may not want to return a buffer yet. 91 // If it's specified and there's more than one buffer queued, we may want 92 // to drop a buffer. 93 // Skip this if we're in shared buffer mod 320 attachBuffer(int* outSlot, const sp<android::GraphicBuffer>& buffer) argument [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | IGraphicBufferProducer_test.cpp | 143 // -- uses the default buffer format, width, etc. 229 sp<GraphicBuffer> *buffer) 233 ASSERT_TRUE(buffer != NULL); 247 // Request the buffer (pre-requisite for queueing) 248 ASSERT_OK(mProducer->requestBuffer(*slot, buffer)); 376 // TODO: queue under more complicated situations not involving just a single buffer 392 // Request the buffer (pre-requisite for queueing) 400 // Queue the buffer back into the BQ 454 // Slot was enqueued without requesting a buffer 462 // Request the buffer s 228 setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, sp<GraphicBuffer> *buffer) argument 558 sp<GraphicBuffer> buffer; local 696 sp<GraphicBuffer> buffer; local 722 sp<GraphicBuffer> buffer; local 732 sp<GraphicBuffer> buffer; local 748 sp<GraphicBuffer> buffer; local 765 sp<GraphicBuffer> buffer; local 778 sp<GraphicBuffer> buffer; local [all...] |
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 238 ALOGE("locking pixels (%d,%d,%d,%d) outside of buffer (w=%d, h=%d)", 259 ALOGE("locking pixels (%d,%d,%d,%d) outside of buffer (w=%d, h=%d)", 292 ALOGE("locking pixels (%d,%d,%d,%d) outside of buffer (w=%d, h=%d)", 315 ALOGE("locking pixels (%d,%d,%d,%d) outside of buffer (w=%d, h=%d)", 338 status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { argument 345 int32_t* buf = static_cast<int32_t*>(buffer); 368 buffer = static_cast<void*>(static_cast<uint8_t*>(buffer) + sizeNeeded); 379 void const*& buffer, size_t& size, int const*& fds, size_t& count) { 381 int const* buf = static_cast<int const*>(buffer); 378 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument [all...] |
/frameworks/native/libs/vr/libbufferhubqueue/ |
H A D | buffer_hub_queue_client.cpp | 159 // If there is already a buffer then just check for hangup without waiting. 180 // one for each buffer in the queue, and one extra event for the queue 217 ALOGW("BufferHubQueue::HandleBufferEvent: Invalid buffer slot: %zu", slot); 230 "buffer|queue_id=%d;buffer_id=%d;slot=%zu;event_fd=%d;poll_events=%x;" 263 // Note that after buffer imports, if |count()| still returns 0, epoll 264 // wait will be tried again to acquire the newly imported buffer. 267 ALOGE("BufferHubQueue::HandleQueueEvent: Failed to import buffer: %s", 281 const std::shared_ptr<BufferHubBuffer>& buffer, size_t slot) { 283 buffer->id(), slot); 292 // Replace the buffer i 280 AddBuffer( const std::shared_ptr<BufferHubBuffer>& buffer, size_t slot) argument 375 std::shared_ptr<BufferHubBuffer> buffer = std::move(entry.buffer); local 514 AddBuffer( const std::shared_ptr<BufferProducer>& buffer, size_t slot) argument 661 AddBuffer( const std::shared_ptr<BufferConsumer>& buffer, size_t slot) argument [all...] |
/frameworks/native/libs/vr/libdvr/ |
H A D | dvr_buffer_queue.cpp | 57 DvrWriteBuffer* buffer = nullptr; local 59 if (const int ret = GainBuffer(timeout, &buffer, &meta, &fence_fd)) 61 if (!buffer) 64 write_buffers_[buffer->slot].reset(buffer); 65 write_buffer->write_buffer = std::move(buffer->write_buffer); 79 // the {N+1}th dequeue, we are guaranteed to get a buffer with new dimension. 88 "DvrWriteBufferQueue::GainBuffer: Failed to dequeue buffer: %s", 113 // Producer queue returns a buffer matches the current request. 119 // still have the old buffer dimensio [all...] |
/frameworks/native/libs/vr/libpdx/ |
H A D | encoder_performance_test.cpp | 116 // serializes it into the output buffer represented by |writer|. 132 // temporarily serializes it into the output buffer, then repeatedly 133 // deserializes the data back from that buffer. 155 // the output buffer. Useful to determine the baseline to calculate time used 173 // deserialization but invokes Rewind on the input buffer repeatedly. 254 << " bytes in the serialization buffer but only " 419 // Baseline tests to figure out the overhead of buffer resizing and data 480 // it requires external buffer to be filled in, which is not available. 493 Payload buffer; local 494 buffers.emplace_back("Non-TLS Buffer", &buffer, [all...] |
/frameworks/native/libs/vr/libpdx/private/pdx/ |
H A D | service.h | 47 // Request the service to dump state and return it in a text buffer. 99 * Read/write payload, in either single buffer or iovec form. 102 Status<size_t> Read(void* buffer, size_t length); 104 Status<size_t> Write(const void* buffer, size_t length); 121 inline Status<void> ReadAll(void* buffer, size_t length) { argument 122 Status<size_t> status = Read(buffer, length); 129 inline Status<void> WriteAll(const void* buffer, size_t length) { argument 130 Status<size_t> status = Write(buffer, length);
|
/frameworks/native/libs/vr/libvrsensor/ |
H A D | pose_client.cpp | 45 // Allocate the helper class to access the sensor pose buffer. 145 // Get buffer. 193 // First time mapping the buffer? 199 out_info->buffer = vsync_buffer->vsync_poses; 224 auto buffer = BufferConsumer::Import(status.take()); local 225 if (!buffer) { 226 ALOGE("Pose failed to import ring buffer"); 231 int ret = buffer->GetBlobReadOnlyPointer(size, &addr); 233 ALOGE("Pose failed to map ring buffer: ret:%d, addr:%p", ret, addr); 236 client_state.pose_buffer.swap(buffer); [all...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | common.cpp | 77 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument 84 position = _env->GetIntField(buffer, positionID); 85 limit = _env->GetIntField(buffer, limitID); 86 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 89 getBasePointerID, buffer); 96 getBaseArrayID, buffer); 98 getBaseArrayOffsetID, buffer); 221 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument 222 char* buf = (char*) _env->GetDirectBufferAddress(buffer); 224 jint position = _env->GetIntField(buffer, positionI [all...] |
/frameworks/native/opengl/tools/glgen/stubs/jsr239/ |
H A D | GLCHeader.cpp | 119 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument 126 position = _env->GetIntField(buffer, positionID); 127 limit = _env->GetIntField(buffer, limitID); 128 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 131 getBasePointerID, buffer); 139 getBaseArrayID, buffer); 145 getBaseArrayOffsetID, buffer); 172 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument 173 if (!buffer) { 176 void* buf = _env->GetDirectBufferAddress(buffer); [all...] |
/frameworks/native/services/sensorservice/ |
H A D | SensorDevice.cpp | 173 ssize_t SensorDevice::poll(sensors_event_t* buffer, size_t count) { argument 187 convertToSensorEvents(events, dynamicSensorsAdded, buffer);
|
/frameworks/native/services/surfaceflinger/ |
H A D | MonitoredProducer.cpp | 75 const sp<GraphicBuffer>& buffer) { 76 return mProducer->attachBuffer(outSlot, buffer); 74 attachBuffer(int* outSlot, const sp<GraphicBuffer>& buffer) argument
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
H A D | Hwc2TestProperties.cpp | 50 void Hwc2TestBufferArea::setDependent(Hwc2TestBuffer* buffer) argument 52 mBuffer = buffer; 53 if (buffer) { 54 buffer->updateBufferArea(get()); 338 void Hwc2TestDisplayDimension::setDependent(Hwc2TestVirtualBuffer* buffer) argument 340 mBuffers.insert(buffer); 348 for (Hwc2TestVirtualBuffer* buffer : mBuffers) 349 buffer->updateBufferArea({static_cast<int32_t>(curr.width),
|
/frameworks/native/services/vr/hardware_composer/impl/ |
H A D | vr_hwc.h | 60 sp<GraphicBuffer> buffer; member in struct:android::dvr::ComposerView::ComposerLayer 171 // The client target buffer and the associated fence. 252 Error setOutputBuffer(Display display, buffer_handle_t buffer, 268 buffer_handle_t buffer, int32_t acquireFence) override;
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
H A D | SimpleSessionDescription.java | 138 StringBuilder buffer = new StringBuilder(); 139 mFields.write(buffer); 141 media.write(buffer); 143 return buffer.toString(); 368 private void write(StringBuilder buffer) { argument 369 buffer.append("m=").append(mType).append(' ').append(mPort); 371 buffer.append('/').append(mPortCount); 373 buffer.append(' ').append(mProtocol); 375 buffer.append(' ').append(format); 377 buffer 513 write(StringBuilder buffer) argument [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestFeedback.cpp | 46 // Storage area for the buffer queues 75 // Called after audio recorder fills a buffer with data 82 // We should only be called when a recording buffer is done 86 char *buffer = rxBuffers[rxFront]; local 88 // Remove buffer from record queue 94 ssize_t actual = fifoWriter->write(buffer, (size_t) bufSizeInFrames); 103 actual = fifo2Writer->write(buffer, (size_t) bufSizeInFrames); 109 // Enqueue this same buffer for the recorder to fill again. 110 result = (*recorderBufferQueue)->Enqueue(recorderBufferQueue, buffer, bufSizeInBytes); 119 rxBuffers[rxRear] = buffer; 176 char *buffer = txBuffers[txFront]; local 463 char *buffer = freeBuffers[freeFront]; local 527 char *buffer = freeBuffers[freeFront]; local 560 short buffer[bufSizeInFrames * channels]; local [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | playbq.cpp | 17 // Play an audio file using buffer queue 42 unsigned which; // which buffer to use next 55 static SLuint32 squeeze(void *buffer, SLuint32 nbytes) argument 59 swab(buffer, buffer, nbytes); 62 memcpy_to_u8_from_i16((uint8_t *) buffer, (const int16_t *) buffer, 66 memcpy_to_p24_from_i32((uint8_t *) buffer, (const int32_t *) buffer, 73 // This callback is called each time a buffer finishe 79 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local 482 void *buffer = (char *)buffers + framesPerBuffer * sfframesize * which; local [all...] |
/frameworks/av/camera/ |
H A D | CameraMetadata.cpp | 50 CameraMetadata::CameraMetadata(camera_metadata_t *buffer) : argument 52 acquire(buffer); 59 CameraMetadata &CameraMetadata::operator=(const camera_metadata_t *buffer) { argument 65 if (CC_LIKELY(buffer != mBuffer)) { 66 camera_metadata_t *newBuffer = clone_camera_metadata(buffer); 83 status_t CameraMetadata::unlock(const camera_metadata_t *buffer) const { 88 if (buffer != mBuffer) { 118 void CameraMetadata::acquire(camera_metadata_t *buffer) { argument 124 mBuffer = buffer; 128 __FUNCTION__, buffer); local 656 camera_metadata *buffer = NULL; local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | mediafilter.cpp | 178 // only consume a buffer if we are not going to flush, since we expect 226 // check that queueing a buffer that was dequeued before flush 294 // releasing the buffer dequeued before flush should cause an error 533 ALOGV("filling input buffer %zu", index); 535 const sp<MediaCodecBuffer> &buffer = state->mInBuffers.itemAt(index); local 536 sp<ABuffer> abuffer = new ABuffer(buffer->base(), buffer->capacity()); 540 buffer->setRange(abuffer->offset(), abuffer->size()); 549 index, 0 /* offset */, buffer->size(), 601 ALOGV("draining decoded buffer [all...] |
/frameworks/av/drm/common/ |
H A D | IDrmManagerService.cpp | 773 int uniqueId, DecryptHandle* decryptHandle, void* buffer, 790 reply.read(buffer, result); 947 char* buffer = NULL; local 949 buffer = (char *)data.readInplace(bufferSize); 951 const DrmBuffer drmBuffer(buffer, bufferSize); 1004 char buffer[16]; local 1006 sprintf(buffer, "%lu", (unsigned long)fd); 1007 drmInfoRequest->put(key, String8(buffer)); 1460 char* buffer = NULL; local 1461 buffer 772 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument 1523 char* buffer = new char[numBytes]; local [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 536 void* buffer, ssize_t numBytes, off64_t offset) { 542 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset); 535 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|