Searched defs:buffer (Results 251 - 275 of 475) sorted by relevance

<<111213141516171819

/frameworks/base/libs/hwui/
H A DVertexBuffer.h63 // already have allocated the buffer, re-allocate space within
106 * vertex buffer can't determine bounds more simply/efficiently
154 static void cleanup(void* buffer) { argument
155 delete[] (TYPE*)buffer;
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp156 void EglManager::setTextureAtlas(const sp<GraphicBuffer>& buffer, argument
166 mAtlasBuffer = buffer;
/frameworks/base/media/jni/
H A Dandroid_media_MediaMuxer.cpp119 sp<ABuffer> buffer = new ABuffer((char *)dst + offset, size); local
121 status_t err = muxer->writeSampleData(buffer, trackIndex, timeUs, flags);
H A Dandroid_media_Utils.cpp219 sp<ABuffer> buffer; local
220 CHECK(msg->findBuffer(key, &buffer));
223 env, buffer->data(), buffer->size());
381 sp<ABuffer> buffer = new ABuffer(limit - position); local
386 memcpy(buffer->data(),
388 buffer->size());
401 buffer->size(),
402 (jbyte *)buffer->data());
407 msg->setBuffer(key.c_str(), buffer);
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java62 * If the frame's base-type is not TYPE_OBJECT, this returns a data buffer containing the native
145 public void setData(ByteBuffer buffer, int offset, int length) { argument
147 byte[] bytes = buffer.array();
148 if ((length + offset) > buffer.limit()) {
149 throw new RuntimeException("Offset and length exceed buffer size in native setData: " +
150 (length + offset) + " bytes given, but only " + buffer.limit() +
246 private native boolean getNativeBuffer(NativeBuffer buffer); argument
H A DSerializedFrame.java116 * are responsible for synchronization and ensuring that the byte buffer is valid.
124 public DirectByteInputStream(byte[] buffer, int size) { argument
125 mBuffer = buffer;
226 public void setData(ByteBuffer buffer, int offset, int length) { argument
228 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_frame.cpp89 jobject buffer) {
93 return ToJBool(AttachDataToJBuffer(env, buffer, data, frame->Size()));
87 Java_android_filterfw_core_NativeFrame_getNativeBuffer(JNIEnv* env, jobject thiz, jobject buffer) argument
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_frame.cpp166 bool GLFrame::CopyDataTo(uint8_t* buffer, int size) { argument
168 ? CopyPixelsTo(buffer)
172 bool GLFrame::CopyPixelsTo(uint8_t* buffer) { argument
176 return ReadFboPixels(buffer);
178 return ReadTexturePixels(buffer);
371 "inefficient. Please consider using your original pixel buffer "
404 // Bind the frame buffer, and check if we it is already bound
407 // Bind the texture to the frame buffer
H A Dvalue.cpp169 Value MakeBufferValue(const char* buffer, int size) { argument
170 return MakePtrValue<char, BUFFER_VALUE_TYPE>(buffer, size);
173 Value MakeBufferValueNoCopy(const char* buffer, int size) { argument
176 result.value = (void*)buffer;
181 Value MakeMutableBufferValue(const char* buffer, int size) { argument
182 return MakePtrValue<const char, MUTABLE_BUFFER_VALUE_TYPE>(buffer, size);
185 Value MakeMutableBufferValueNoCopy(char* buffer, int size) { argument
188 result.value = (void*)buffer;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaInserterTest.java73 public void appendTo(StringBuffer buffer) { argument
74 buffer.append("expected a TableUri '").append(mUri).append("'");
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifOutputStream.java105 private int requestByteToBuffer(int requestByteCount, byte[] buffer
109 mBuffer.put(buffer, offset, byteToRead);
118 public void write(byte[] buffer, int offset, int length) throws IOException { argument
129 out.write(buffer, offset, byteToProcess);
139 int byteRead = requestByteToBuffer(2, buffer, offset, length);
157 byteRead = requestByteToBuffer(4, buffer, offset, length);
187 out.write(buffer, offset, length);
202 * Equivalent to calling write(buffer, 0, buffer.length).
205 public void write(byte[] buffer) throw argument
[all...]
/frameworks/base/test-runner/src/android/test/mock/
H A DMockCursor.java142 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DTransport.java46 // The output buffer. Set to null when the transport is closed.
49 // The input buffer pool.
231 protected abstract int ioRead(byte[] buffer, int offset, int count) argument
233 protected abstract void ioWrite(byte[] buffer, int offset, int count) argument
253 final ByteBuffer buffer = (ByteBuffer)msg.obj;
255 final int limit = buffer.limit();
256 while (buffer.position() < limit) {
257 final int service = buffer.getShort() & 0xffff;
258 final int what = buffer.getShort() & 0xffff;
259 final int contentSize = buffer
[all...]
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dbitcode_wrapperer.cpp117 // front of the buffer. This allows us to assume
129 // Assume the buffer contents have been used,
134 // If we don't have an input, we can't refill the buffer at all.
167 uint8_t buffer[kWordSize]; local
168 buffer[3] = (value >> 24) & 0xFF;
169 buffer[2] = (value >> 16) & 0xFF;
170 buffer[1] = (value >> 8) & 0xFF;
171 buffer[0] = (value >> 0) & 0xFF;
172 return outfile_->Write(buffer, kWordSize);
176 // This buffer ma
178 uint8_t buffer[kMaxVariableFieldSize]; local
[all...]
/frameworks/compile/libbcc/lib/Support/
H A Dsha1.c106 static void SHA1Transform(uint32_t state[5], const uint8_t buffer[64]);
134 const uint8_t buffer[64])
145 memcpy(block, buffer, 64);
147 block = (CHAR64LONG16*)buffer;
224 memcpy(&context->buffer[j], data, (i = 64-j));
225 SHA1Transform(context->state, context->buffer);
233 memcpy(&context->buffer[j], &data[i], len - i);
262 memset(context->buffer, 0, 64);
268 SHA1Transform(context->state, context->buffer);
284 uint8_t buffer[1638 local
133 SHA1Transform(uint32_t state[5], const uint8_t buffer[64]) argument
[all...]
/frameworks/compile/mclinker/lib/Target/
H A DELFAttribute.cpp144 char* buffer = reinterpret_cast<char*>(pRegion.begin()); local
145 buffer[0] = FormatVersion;
152 total_size += (*subsec_it)->emit(buffer + total_size);
310 char *buffer = pBuf; local
318 subsection_length_hole = buffer;
319 buffer += 4;
323 ::memcpy(buffer, vendor_name.c_str(), vendor_name.length());
324 buffer += vendor_name.length();
327 *buffer++ = '\0';
330 *buffer
[all...]
/frameworks/ex/variablespeed/jni/
H A Dsola_time_scaler.cc148 // The input buffer has one writer and reader.
149 // The output buffer has one reader/updater, and one reader/consumer.
179 // Returns the number of frames that the input buffer can accept.
212 int SolaTimeScaler::InjectSamples(float* buffer, int num_frames) { argument
215 // Do not write more frames than the buffer can accept.
221 // Copy samples to the input buffer and then process whatever can be consumed.
222 input_buffer_->Write(buffer, num_frames);
228 int SolaTimeScaler::RetrieveSamples(float* buffer, int num_frames) { argument
237 output_buffer_->Copy(kOutputConsumer, buffer, num_frames);
330 // Copy the merged buffer bac
[all...]
/frameworks/native/include/binder/
H A DParcel.h58 status_t setData(const uint8_t* buffer, size_t len);
295 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0;
296 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0;
312 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { argument
313 return val.flatten(buffer, size, fds, count);
315 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { argument
316 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count);
354 void* buffer = writeInplace(size); local
355 if (buffer == NULL)
357 return val.flatten(buffer, siz
382 void const* buffer = readInplace(size); local
[all...]
H A DTextOutput.h110 inline const void* buffer() const;
185 inline const void* HexDump::buffer() const { return mBuffer; } function in class:android::HexDump
/frameworks/native/libs/binder/
H A DBufferedTextOutput.cpp39 , buffer(NULL)
47 free(buffer);
52 void* b = realloc(buffer, ((len+bufferPos)*3)/2);
54 buffer = (char*)b;
56 memcpy(buffer+bufferPos, txt, len);
65 void* b = realloc(buffer, 256);
67 buffer = (char*)b;
74 char* buffer; member in struct:android::BufferedTextOutput::BufferState
185 // them out without going through the buffer.
202 // Append the new text to the buffer
[all...]
H A DDebug.cpp151 char buffer[32]; local
152 char* end = typetostring(typeCode, buffer);
154 func ? (*func)(cookie, buffer) : defaultPrintFunc(cookie, buffer);
193 char buffer[256]; local
194 static const size_t maxBytesPerLine = (sizeof(buffer)-1-11-4)/(3+1);
212 char* c = buffer;
290 func(cookie, buffer);
/frameworks/native/libs/gui/
H A DBufferQueueConsumer.cpp44 // buffers acquired. We allow the max buffer count to be exceeded by one
45 // buffer so that the consumer can successfully set up the newly acquired
46 // buffer before releasing the old one.
54 BQ_LOGE("acquireBuffer: max acquired buffer count reached: %d (max %d)",
60 // In asynchronous mode the list is guaranteed to be one buffer deep,
61 // while in synchronous mode we use the oldest buffer.
68 // If expectedPresent is specified, we may not want to return a buffer yet.
69 // If it's specified and there's more than one buffer queued, we may want
70 // to drop a buffer.
74 // The 'expectedPresent' argument indicates when the buffer i
206 attachBuffer(int* outSlot, const sp<android::GraphicBuffer>& buffer) argument
[all...]
/frameworks/native/libs/ui/
H A DFramebufferNativeWindow.cpp71 * back buffer).
95 // initialize the buffer FIFO
129 ALOGE_IF(err, "fb buffer %d allocation failed w=%d, h=%d, err=%s",
205 char buffer[SIZE]; local
207 fbDev->dump(fbDev, buffer, SIZE);
208 result.append(buffer);
221 ANativeWindowBuffer** buffer)
224 int result = dequeueBuffer(window, buffer, &fenceFd);
236 ANativeWindowBuffer** buffer, int* fenceFd)
246 // wait for a free non-front buffer
220 dequeueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer** buffer) argument
235 dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) argument
268 queueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer* buffer) argument
274 queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) argument
[all...]
H A DGraphicBuffer.cpp85 GraphicBuffer::GraphicBuffer(ANativeWindowBuffer* buffer, bool keepOwnership) argument
88 mInitCheck(NO_ERROR), mWrappedBuffer(buffer), mId(getUniqueId())
90 width = buffer->width;
91 height = buffer->height;
92 stride = buffer->stride;
93 format = buffer->format;
94 usage = buffer->usage;
95 handle = buffer->handle;
176 ALOGE("locking pixels (%d,%d,%d,%d) outside of buffer (w=%d, h=%d)",
197 ALOGE("locking pixels (%d,%d,%d,%d) outside of buffer (
266 flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const argument
303 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
[all...]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A Dcommon.cpp77 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);
111 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
112 char* buf = (char*) _env->GetDirectBufferAddress(buffer);
114 jint position = _env->GetIntField(buffer, positionI
[all...]

Completed in 397 milliseconds

<<111213141516171819