Searched refs:buffer (Results 276 - 300 of 1231) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/util/
H A DSparseBooleanArray.java286 StringBuilder buffer = new StringBuilder(mSize * 28);
287 buffer.append('{');
290 buffer.append(", ");
293 buffer.append(key);
294 buffer.append('=');
296 buffer.append(value);
298 buffer.append('}');
299 return buffer.toString();
H A DSparseIntArray.java266 StringBuilder buffer = new StringBuilder(mSize * 28);
267 buffer.append('{');
270 buffer.append(", ");
273 buffer.append(key);
274 buffer.append('=');
276 buffer.append(value);
278 buffer.append('}');
279 return buffer.toString();
/frameworks/base/core/java/com/android/internal/util/
H A DSizedInputStream.java49 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
56 final int n = mWrapped.read(buffer, byteOffset, byteCount);
/frameworks/base/core/jni/
H A Dandroid_net_TrafficStats.cpp83 char buffer[384]; local
88 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
89 int matched = sscanf(buffer, "%31s %" SCNu64 " %" SCNu64 " %" SCNu64
127 char buffer[384]; local
132 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
133 if (sscanf(buffer,
/frameworks/base/libs/hwui/
H A DImage.cpp25 Image::Image(sp<GraphicBuffer> buffer) { argument
28 EGLClientBuffer clientBuffer = (EGLClientBuffer) buffer->getNativeBuffer();
/frameworks/base/libs/hwui/tests/unit/
H A DMeshStateTests.cpp34 GLuint buffer = 0; local
35 renderThread.renderState().meshState().genOrUpdateMeshBuffer(&buffer, 10, nullptr, GL_DYNAMIC_DRAW);
/frameworks/base/services/core/jni/
H A Dcom_android_server_GraphicsStatsService.cpp47 ScopedByteArrayRO buffer(env, jdata);
48 LOG_ALWAYS_FATAL_IF(buffer.size() != sizeof(ProfileData),
49 "Buffer size %zu doesn't match expected %zu!", buffer.size(), sizeof(ProfileData));
50 data = reinterpret_cast<const ProfileData*>(buffer.get());
81 ScopedByteArrayRO buffer(env, jdata);
82 LOG_ALWAYS_FATAL_IF(buffer.size() != sizeof(ProfileData),
83 "Buffer size %zu doesn't match expected %zu!", buffer.size(), sizeof(ProfileData));
91 const ProfileData* data = reinterpret_cast<const ProfileData*>(buffer.get());
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DParserFactory.java117 // create the initial buffer and read it.
118 byte[] buffer = new byte[avail];
119 int read = stream.read(buffer);
123 return new ByteArrayInputStream(buffer);
129 if (read + avail > buffer.length) {
133 System.arraycopy(buffer, 0, moreBuffer, 0, read);
134 buffer = moreBuffer;
137 read += stream.read(buffer, read, avail);
140 // return a new stream encapsulating this buffer.
141 return new ByteArrayInputStream(buffer);
[all...]
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dfile_wrapper_input.cpp35 size_t FileWrapperInput::Read(uint8_t* buffer, size_t wanted) { argument
36 size_t found = fread((char*) buffer, 1, wanted, _file);
/frameworks/native/include/ui/
H A DHdrCapabilities.h60 status_t flatten(void* buffer, size_t size) const;
61 status_t unflatten(void const* buffer, size_t size);
/frameworks/native/libs/gui/
H A DFrameTimestamps.cpp260 // If there isn't an acquire fence, assume that buffer was
543 status_t FrameEventsDelta::flatten(void*& buffer, size_t& size, int*& fds,
554 FlattenableUtils::write(buffer, size, mFrameNumber);
557 FlattenableUtils::write(buffer, size, static_cast<uint16_t>(mIndex));
559 buffer, size, static_cast<uint8_t>(mAddPostCompositeCalled));
561 buffer, size, static_cast<uint8_t>(mAddReleaseCalled));
563 FlattenableUtils::write(buffer, size, mPostedTime);
564 FlattenableUtils::write(buffer, size, mRequestedPresentTime);
565 FlattenableUtils::write(buffer, size, mLatchTime);
566 FlattenableUtils::write(buffer, siz
[all...]
/frameworks/native/libs/gui/tests/
H A DBufferItemConsumer_test.cpp103 BufferItem buffer; local
104 status_t ret = mBIC->acquireBuffer(&buffer, 0, false);
107 ALOGV("acquireBuffer: slot=%d", buffer.mSlot);
108 *outSlot = buffer.mSlot;
113 BufferItem buffer; local
114 buffer.mSlot = slot;
115 buffer.mGraphicBuffer = mBuffers[slot];
116 status_t ret = mBIC->releaseBuffer(buffer, Fence::NO_FENCE);
131 // Test that detaching buffer from consumer side triggers onBufferFreed.
134 // Producer: generate a dummy buffer
[all...]
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp59 char buffer[SIZE]; local
60 snprintf(buffer, SIZE, "Allocated buffers:\n");
61 result.append(buffer);
66 snprintf(buffer, SIZE, "%10p: %7.2f KiB | %4u (%4u) x %4u | %4u | %8X | 0x%" PRIx64
72 snprintf(buffer, SIZE, "%10p: unknown | %4u (%4u) x %4u | %4u | %8X | 0x%" PRIx64
78 result.append(buffer);
81 snprintf(buffer, SIZE, "Total allocated (estimate): %.2f KB\n", total/1024.0);
82 result.append(buffer);
102 // make sure to not allocate a N x 0 or 0 x N buffer, since this is
103 // allowed from an API stand-point allocate a 1x1 buffer instea
[all...]
/frameworks/av/media/libstagefright/
H A DWAVExtractor.cpp71 MediaBuffer **buffer, const ReadOptions *options = NULL);
387 // As a temporary buffer for 8->16 bit conversion.
444 MediaBuffer *buffer; local
445 status_t err = mGroup->acquire_buffer(&buffer);
477 mCurrentPos, buffer->data(),
481 buffer->release();
482 buffer = NULL;
487 buffer->set_range(0, n);
494 // Create new buffer with 2 byte wide samples
499 memcpy_to_i16_from_u8((int16_t *)tmp->data(), (const uint8_t *)buffer
[all...]
/frameworks/av/drm/libdrmframework/include/
H A DReadWriteUtils.h50 * Reads the data into the given buffer from the file path provided
53 * @param[out] buffer Data read from the file
56 static int readBytes(const String8& filePath, char** buffer);
/frameworks/av/include/media/nbaio/
H A DLibsndfileSource.h46 virtual ssize_t read(void *buffer, size_t count);
H A DMonoPipeReader.h50 virtual ssize_t read(void *buffer, size_t count);
/frameworks/av/include/media/stagefright/
H A DAudioSource.h55 MediaBuffer **buffer, const ReadOptions *options = NULL);
57 status_t dataCallback(const AudioRecord::Buffer& buffer);
58 virtual void signalBufferReturned(MediaBuffer *buffer);
106 void queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs);
H A DOMXNodeInstance.h76 OMX_U32 portIndex, size_t size, IOMX::buffer_id *buffer,
80 OMX_U32 portIndex, const OMXBuffer &omxBuf, buffer_id *buffer);
83 OMX_U32 portIndex, buffer_id buffer);
86 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd = -1);
89 buffer_id buffer, const OMXBuffer &omxBuf,
138 // for buffer ptr to buffer id translation
146 // metadata and secure buffer type tracking
181 // For buffer id management
183 OMX_BUFFERHEADERTYPE *findBufferHeader(IOMX::buffer_id buffer, OMX_U3
[all...]
/frameworks/av/media/libmedia/omx/1.0/
H A DWOmxBufferSource.cpp89 Return<void> TWOmxBufferSource::onInputBufferAdded(uint32_t buffer) { argument
90 mBase->onInputBufferAdded(int32_t(buffer));
95 uint32_t buffer, hidl_handle const& fence) {
100 mBase->onInputBufferEmptied(int32_t(buffer), fenceParcelable);
94 onInputBufferEmptied( uint32_t buffer, hidl_handle const& fence) argument
/frameworks/av/media/libnbaio/include/
H A DLibsndfileSource.h46 virtual ssize_t read(void *buffer, size_t count);
H A DMonoPipeReader.h50 virtual ssize_t read(void *buffer, size_t count);
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.h36 bool getFrame(void *buffer, uint32_t *size);
/frameworks/av/media/libstagefright/foundation/include/
H A DAudioSource.h55 MediaBuffer **buffer, const ReadOptions *options = NULL);
57 status_t dataCallback(const AudioRecord::Buffer& buffer);
58 virtual void signalBufferReturned(MediaBuffer *buffer);
106 void queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs);
H A DOMXNodeInstance.h76 OMX_U32 portIndex, size_t size, IOMX::buffer_id *buffer,
80 OMX_U32 portIndex, const OMXBuffer &omxBuf, buffer_id *buffer);
83 OMX_U32 portIndex, buffer_id buffer);
86 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd = -1);
89 buffer_id buffer, const OMXBuffer &omxBuf,
138 // for buffer ptr to buffer id translation
146 // metadata and secure buffer type tracking
181 // For buffer id management
183 OMX_BUFFERHEADERTYPE *findBufferHeader(IOMX::buffer_id buffer, OMX_U3
[all...]

Completed in 470 milliseconds

<<11121314151617181920>>