/frameworks/base/libs/hwui/ |
H A D | VertexBuffer.h | 63 // 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 D | EglManager.cpp | 156 void EglManager::setTextureAtlas(const sp<GraphicBuffer>& buffer, argument 166 mAtlasBuffer = buffer;
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaMuxer.cpp | 119 sp<ABuffer> buffer = new ABuffer((char *)dst + offset, size); local 121 status_t err = muxer->writeSampleData(buffer, trackIndex, timeUs, flags);
|
H A D | android_media_Utils.cpp | 219 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 D | NativeFrame.java | 62 * 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 D | SerializedFrame.java | 116 * 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 D | jni_native_frame.cpp | 89 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 D | gl_frame.cpp | 166 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 D | value.cpp | 169 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 D | MediaInserterTest.java | 73 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 D | ExifOutputStream.java | 105 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 D | MockCursor.java | 142 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | Transport.java | 46 // 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 D | bitcode_wrapperer.cpp | 117 // 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 D | sha1.c | 106 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 D | ELFAttribute.cpp | 144 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 D | sola_time_scaler.cc | 148 // 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 D | Parcel.h | 58 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 D | TextOutput.h | 110 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 D | BufferedTextOutput.cpp | 39 , 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 D | Debug.cpp | 151 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 D | BufferQueueConsumer.cpp | 44 // 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 D | FramebufferNativeWindow.cpp | 71 * 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 D | GraphicBuffer.cpp | 85 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 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); 111 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument 112 char* buf = (char*) _env->GetDirectBufferAddress(buffer); 114 jint position = _env->GetIntField(buffer, positionI [all...] |