Searched refs:buffer (Results 226 - 250 of 1380) sorted by relevance

1234567891011>>

/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/
H A Dwrapper_input.h34 // Tries to read the requested number of bytes into the buffer. Returns the
36 virtual size_t Read(uint8_t* buffer, size_t wanted) = 0;
H A Dwrapper_output.h38 // Writes the specified number of bytes in the buffer to
40 virtual bool Write(const uint8_t* buffer, size_t buffer_size);
/frameworks/native/cmds/bugreport/
H A Dbugreport.cpp66 char buffer[65536]; local
67 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer)));
83 buffer + bytes_read - bytes_to_send,
/frameworks/native/cmds/bugreportz/
H A Dbugreportz.cpp48 char buffer[65536]; local
49 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer)));
63 char c = buffer[i];
/frameworks/native/cmds/lshal/
H A DPipeRelay.cpp45 char buffer[1024]; local
46 ssize_t n = read(mFd, buffer, sizeof(buffer));
52 mOutStream.write(buffer, n);
/frameworks/native/libs/ui/
H A DFrameStats.cpp34 status_t FrameStats::flatten(void* buffer, size_t size) const { argument
39 nsecs_t* timestamps = reinterpret_cast<nsecs_t*>(buffer);
57 status_t FrameStats::unflatten(void const* buffer, size_t size) { argument
64 nsecs_t const* timestamps = reinterpret_cast<nsecs_t const*>(buffer);
H A DHdrCapabilities.cpp38 status_t HdrCapabilities::flatten(void* buffer, size_t size) const { argument
44 int32_t* const buf = static_cast<int32_t*>(buffer);
55 status_t HdrCapabilities::unflatten(void const* buffer, size_t size) { argument
66 int32_t const * const buf = static_cast<int32_t const *>(buffer);
69 // check the buffer is large enough
/frameworks/native/libs/vr/libpdx/private/pdx/
H A Dtrace.h25 std::array<char, 1024> buffer; variable
26 snprintf(buffer.data(), buffer.size(), format,
28 atrace_begin(tag_, buffer.data());
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposerBufferCache.h31 // With HIDLized hwcomposer HAL, the HAL can maintain a buffer cache for each
32 // HWC display and layer. When updating a display target or a layer buffer,
33 // we have the option to send the buffer handle over or to request the HAL to
38 // To be able to find out whether a buffer is already in the HAL's cache, we
44 // Given a buffer queue slot and buffer, return the HWC cache slot and
45 // buffer to be sent to HWC.
47 // outBuffer is set to buffer when buffer is not in the HWC cache;
49 void getHwcBuffer(int slot, const sp<GraphicBuffer>& buffer,
[all...]
/frameworks/native/services/vr/bufferhubd/
H A Ddetached_buffer_channel.h18 auto buffer = std::unique_ptr<DetachedBufferChannel>( local
20 return buffer->IsValid() ? std::move(buffer) : nullptr;
23 // Returns whether the object holds a valid graphic buffer.
30 // Captures buffer info for use by BufferHubService::DumpState().
37 // Creates a detached buffer from existing IonBuffers.
39 int channel_id, IonBuffer buffer,
42 // Allocates a new detached buffer.
52 // Gralloc buffer handles.
/frameworks/av/media/libstagefright/
H A DUtils.cpp50 static status_t copyNALUToABuffer(sp<ABuffer> *buffer, const uint8_t *ptr, size_t length) { argument
51 if (((*buffer)->size() + 4 + length) > ((*buffer)->capacity() - (*buffer)->offset())) {
52 sp<ABuffer> tmpBuffer = new (std::nothrow) ABuffer((*buffer)->size() + 4 + length + 1024);
56 memcpy(tmpBuffer->data(), (*buffer)->data(), (*buffer)->size());
57 tmpBuffer->setRange(0, (*buffer)->size());
58 (*buffer) = tmpBuffer;
61 memcpy((*buffer)
593 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local
808 sp<ABuffer> buffer = new (std::nothrow) ABuffer(1024); local
897 sp<ABuffer> buffer = new (std::nothrow) ABuffer(1024); local
965 sp<ABuffer> buffer = new (std::nothrow) ABuffer(codec_specific_data_size); local
1005 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local
1029 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local
1067 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local
1077 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local
1092 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local
1839 char buffer[SIZE]; local
[all...]
H A DCameraSourceTimeLapse.cpp171 void CameraSourceTimeLapse::signalBufferReturned(MediaBufferBase* buffer) { argument
174 if (mQuickStop && (buffer == mLastReadBufferCopy)) {
175 buffer->setObserver(NULL);
176 buffer->release();
178 return CameraSource::signalBufferReturned(buffer);
207 MediaBufferBase **buffer, const ReadOptions *options) {
210 mLastReadStatus = CameraSource::read(buffer, options);
213 // Make a copy of the buffer in that case.
215 if (mQuickStop && *buffer) {
216 fillLastReadBufferCopy(**buffer);
206 read( MediaBufferBase **buffer, const ReadOptions *options) argument
329 processBufferQueueFrame(BufferItem& buffer) argument
[all...]
/frameworks/av/cmds/stagefright/
H A DSineSource.cpp66 MediaBufferBase *buffer; local
67 status_t err = mGroup->acquire_buffer(&buffer);
74 size_t numFramesPerBuffer = buffer->size() / frameSize;
76 int16_t *ptr = (int16_t *)buffer->data();
92 buffer->meta_data().setInt64(
97 buffer->set_range(0, numFramesPerBuffer * frameSize);
99 *out = buffer;
/frameworks/av/services/audioflinger/
H A DRecordTracks.h32 void *buffer,
48 // clear the buffer overflow flag
50 // set the buffer overflow flag and return previous value
78 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer);
81 bool mOverflow; // overflow on most recent attempt to fill client buffer
83 AudioBufferProvider::Buffer mSink; // references client's buffer sink in shared memory
113 void *buffer,
119 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer);
120 virtual void releaseBuffer(AudioBufferProvider::Buffer* buffer);
123 virtual status_t obtainBuffer(Proxy::Buffer *buffer,
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DIOProfile.cpp114 char buffer[SIZE]; local
119 snprintf(buffer, SIZE, " - flags: 0x%04x", getFlags());
120 result.append(buffer);
135 snprintf(buffer, SIZE, "\n - maxOpenCount: %u - curOpenCount: %u\n",
137 result.append(buffer);
138 snprintf(buffer, SIZE, " - maxActiveCount: %u - curActiveCount: %u\n",
140 result.append(buffer);
H A DHwModule.cpp224 char buffer[SIZE]; local
227 snprintf(buffer, SIZE, " - name: %s\n", getName());
228 result.append(buffer);
229 snprintf(buffer, SIZE, " - handle: %d\n", mHandle);
230 result.append(buffer);
231 snprintf(buffer, SIZE, " - version: %u.%u\n", getHalVersionMajor(), getHalVersionMinor());
232 result.append(buffer);
237 snprintf(buffer, SIZE, " output %zu:\n", i);
238 write(fd, buffer, strlen(buffer));
312 char buffer[SIZE]; local
[all...]
H A DAudioProfile.cpp188 char buffer[SIZE]; local
191 snprintf(buffer, SIZE, "%s%s%s\n", mIsDynamicFormat ? "[dynamic format]" : "",
194 result.append(buffer);
196 snprintf(buffer, SIZE, "%*s- name: %s\n", spaces, "", mName.string());
197 result.append(buffer);
201 snprintf(buffer, SIZE, "%*s- format: %s\n", spaces, "", formatLiteral.c_str());
202 result.append(buffer);
205 snprintf(buffer, SIZE, "%*s- sampling rates:", spaces, "");
206 result.append(buffer);
208 snprintf(buffer, SIZ
[all...]
H A DStreamDescriptor.cpp85 char buffer[SIZE]; local
88 snprintf(buffer, SIZE, "%s %02d %02d ",
90 result.append(buffer);
92 snprintf(buffer, SIZE, "%04x : %02d, ",
95 result.append(buffer);
210 char buffer[SIZE]; local
212 snprintf(buffer, SIZE, "\nStreams dump:\n");
213 write(fd, buffer, strlen(buffer));
214 snprintf(buffer, SIZ
[all...]
/frameworks/base/core/java/android/content/res/
H A DStringBlock.java170 SpannableString buffer = new SpannableString(str);
179 buffer.setSpan(new StyleSpan(Typeface.BOLD),
183 buffer.setSpan(new StyleSpan(Typeface.ITALIC),
187 buffer.setSpan(new UnderlineSpan(),
191 buffer.setSpan(new TypefaceSpan("monospace"),
195 buffer.setSpan(new RelativeSizeSpan(1.25f),
199 buffer.setSpan(new RelativeSizeSpan(0.8f),
203 buffer.setSpan(new SubscriptSpan(),
207 buffer.setSpan(new SuperscriptSpan(),
211 buffer
359 addParagraphSpan(Spannable buffer, Object what, int start, int end) argument
[all...]
/frameworks/base/media/java/android/media/midi/
H A DMidiOutputPort.java55 byte[] buffer = new byte[MidiPortImpl.MAX_PACKET_SIZE];
60 int count = mInputStream.read(buffer);
66 int packetType = MidiPortImpl.getPacketType(buffer, count);
69 int offset = MidiPortImpl.getDataOffset(buffer, count);
70 int size = MidiPortImpl.getDataSize(buffer, count);
71 long timestamp = MidiPortImpl.getPacketTimestamp(buffer, count);
74 mDispatcher.send(buffer, offset, size, timestamp);
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
H A DSoftOMXComponent.h74 OMX_BUFFERHEADERTYPE **buffer,
81 OMX_BUFFERHEADERTYPE **buffer,
88 OMX_BUFFERHEADERTYPE *buffer);
91 OMX_BUFFERHEADERTYPE *buffer);
94 OMX_BUFFERHEADERTYPE *buffer);
138 OMX_BUFFERHEADERTYPE **buffer,
146 OMX_BUFFERHEADERTYPE **buffer,
154 OMX_BUFFERHEADERTYPE *buffer);
158 OMX_BUFFERHEADERTYPE *buffer);
162 OMX_BUFFERHEADERTYPE *buffer);
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableParcelable.java72 public void marshal(T value, ByteBuffer buffer) { argument
98 buffer.put(parcelContents);
102 public T unmarshal(ByteBuffer buffer) { argument
104 Log.v(TAG, "unmarshal, buffer remaining " + buffer.remaining());
110 * Read out the entire byte buffer as an array, then copy it into the parcel.
112 * Once we unparcel the entire object, advance the byte buffer by only how many
122 buffer.mark();
126 int maxLength = buffer.remaining();
129 buffer
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG2TSAssembler.cpp76 sp<ABuffer> buffer = *queue->begin(); local
80 mNextExpectedSeqNo = (uint32_t)buffer->int32Data();
81 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) {
87 // hexdump(buffer->data(), buffer->size());
89 if ((buffer->size() % 188) > 0) {
99 msg->setBuffer("access-unit", buffer);
/frameworks/native/libs/vr/libvrflinger/
H A Dacquired_buffer.cpp11 AcquiredBuffer::AcquiredBuffer(const std::shared_ptr<BufferConsumer>& buffer, argument
13 : buffer_(buffer), acquire_fence_(std::move(acquire_fence)), slot_(slot) {}
15 AcquiredBuffer::AcquiredBuffer(const std::shared_ptr<BufferConsumer>& buffer, argument
18 const int ret = buffer->Acquire(&fence);
24 ALOGW("AcquiredBuffer::AcquiredBuffer: Failed to acquire buffer: %s",
29 buffer_ = buffer;
88 ALOGE("AcquiredBuffer::Release: Failed to release buffer %d: %s",
/frameworks/native/services/surfaceflinger/
H A DLayerProtoHelper.cpp61 void LayerProtoHelper::writeToProto(const sp<GraphicBuffer>& buffer, argument
63 activeBufferProto->set_width(buffer->getWidth());
64 activeBufferProto->set_height(buffer->getHeight());
65 activeBufferProto->set_stride(buffer->getStride());
66 activeBufferProto->set_format(buffer->format);

Completed in 208 milliseconds

1234567891011>>