Searched refs:size (Results 176 - 200 of 4916) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/
H A DBufferImpl.cpp33 : MediaCodecBuffer(format, new ABuffer(mem->pointer(), mem->size())),
42 SecureBuffer::SecureBuffer(const sp<AMessage> &format, const void *ptr, size_t size) argument
43 : MediaCodecBuffer(format, new ABuffer(nullptr, size)),
48 const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size)
49 : MediaCodecBuffer(format, new ABuffer(nullptr, size)),
47 SecureBuffer( const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size) argument
H A DDataConverter.cpp32 size_t size = targetSize(source->size()); local
34 if (size > target->capacity()) {
35 ALOGE("data size (%zu) is greater than buffer capacity (%zu)",
36 size, // this is the data received/to be converted
37 target->capacity()); // this is out buffer size
42 target->setRange(0, err == OK ? size : 0);
48 memcpy(target->base(), source->data(), source->size());
66 ALOGW("limiting source size due to overflow (%zu*%zu/%zu)",
77 ALOGW("limiting target size du
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dmemalign.c40 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument
49 MemInfo.Size = size + 1;
55 pMemop->Set(CodecID, mem_ptr, 0, size + 1);
64 MemInfo.Size = size + alignment;
71 pMemop->Set(CodecID, tmp, 0, size + alignment);
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dmem_align.c40 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument
49 MemInfo.Size = size + 1;
55 pMemop->Set(CodecID, mem_ptr, 0, size + 1);
64 MemInfo.Size = size + alignment;
71 pMemop->Set(CodecID, tmp, 0, size + alignment);
/frameworks/base/core/jni/
H A Dcom_android_internal_os_FuseAppLoop.cpp84 void OnRead(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size) override {
85 CHECK_LE(size, static_cast<uint32_t>(fuse::kFuseMaxRead));
90 CallOnCommand(FUSE_READ, unique, inode, offset, size, it->second->get());
93 void OnWrite(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size,
95 CHECK_LE(size, static_cast<uint32_t>(fuse::kFuseMaxWrite));
102 mEnv->SetByteArrayRegion(javaBuffer, 0, size, static_cast<const jbyte*>(buffer));
105 CallOnCommand(FUSE_WRITE, unique, inode, offset, size, javaBuffer);
109 // Helper function to make sure we invoke CallVoidMethod with correct size of integer arguments.
110 void CallOnCommand(jint command, jlong unique, jlong inode, jlong offset, jint size, argument
112 mEnv->CallVoidMethod(mSelf, gOnCommandMethod, command, unique, inode, offset, size, byte
144 com_android_internal_os_FuseAppLoop_replyLookup( JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) argument
151 com_android_internal_os_FuseAppLoop_replyGetAttr( JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) argument
159 com_android_internal_os_FuseAppLoop_replyWrite( JNIEnv* env, jobject self, jlong ptr, jlong unique, jint size) argument
166 com_android_internal_os_FuseAppLoop_replyRead( JNIEnv* env, jobject self, jlong ptr, jlong unique, jint size, jbyteArray data) argument
[all...]
/frameworks/base/core/tests/utiltests/src/android/util/
H A DRemoteMemoryIntArrayService.java38 public void create(int size) {
41 mArray = new MemoryIntArray(size);
85 public int size() {
88 return mArray.size();
116 array.get(array.size() - 1);
/frameworks/base/libs/androidfw/include/androidfw/
H A DByteBucketArray.h28 * Stores a sparsely populated array. Has a fixed size of 256
45 inline size_t size() const { return kNumBuckets * kBucketSize; } function in class:android::ByteBucketArray
50 if (index >= size()) {
63 CHECK(index < size()) << "ByteBucketArray.getOrCreate(index=" << index
64 << ") with size=" << size();
75 if (index >= size()) {
/frameworks/base/media/mca/filterfw/native/core/
H A Dvalue.h57 Value MakeBufferValue(const char* data, int size);
58 Value MakeBufferValueNoCopy(const char* data, int size);
59 Value MakeMutableBufferValue(const char* data, int size);
60 Value MakeMutableBufferValueNoCopy(char* data, int size);
68 int SetMutableBufferValue(Value* value, const char* new_data, int size);
/frameworks/native/include/binder/
H A DMemoryHeapBase.h45 MemoryHeapBase(int fd, size_t size, uint32_t flags = 0, uint32_t offset = 0);
50 MemoryHeapBase(const char* device, size_t size = 0, uint32_t flags = 0);
55 MemoryHeapBase(size_t size, uint32_t flags = 0, char const* name = NULL);
85 status_t init(int fd, void *base, int size,
89 status_t mapfd(int fd, size_t size, uint32_t offset = 0);
/frameworks/native/libs/binder/include/binder/
H A DMemoryHeapBase.h45 MemoryHeapBase(int fd, size_t size, uint32_t flags = 0, uint32_t offset = 0);
50 MemoryHeapBase(const char* device, size_t size = 0, uint32_t flags = 0);
55 MemoryHeapBase(size_t size, uint32_t flags = 0, char const* name = NULL);
85 status_t init(int fd, void *base, int size,
89 status_t mapfd(int fd, size_t size, uint32_t offset = 0);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DByteBufferReader.java41 * @param size The number of bytes to read from the buffer
46 public static long readInteger(ByteBuffer payload, ByteOrder byteOrder, int size) { argument
47 if (size < MINIMUM_INTEGER_SIZE || size > MAXIMUM_INTEGER_SIZE) {
48 throw new IllegalArgumentException("Invalid size " + size);
52 byte[] octets = new byte[size];
/frameworks/support/room/runtime/src/main/java/android/arch/persistence/room/util/
H A DStringUtil.java96 final int size = input.size();
97 if (size == 0) {
101 for (int i = 0; i < size; i++) {
103 if (i < size - 1) {
/frameworks/av/include/media/
H A DRingBuffer.h31 * A RingBuffer class that maintains an array of objects that can grow up to a certain size.
49 iterator(T* ptr, size_t size, size_t pos, size_t ctr);
75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr);
146 * this ringbuffer, [0, size), the behavior for this is undefined.
152 * for this ringbuffer, [0, size), the behavior for this is undefined.
157 * Return the current size of this RingBuffer.
159 size_t size() const;
162 * Remove all elements from this RingBuffer and set the size to 0.
177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : argument
178 mPtr{ptr}, mSize{size}, mPo
221 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr) argument
347 size_t RingBuffer<T>::size() const { function in class:android::RingBuffer
[all...]
/frameworks/av/media/libmedia/include/media/
H A DRingBuffer.h31 * A RingBuffer class that maintains an array of objects that can grow up to a certain size.
49 iterator(T* ptr, size_t size, size_t pos, size_t ctr);
75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr);
146 * this ringbuffer, [0, size), the behavior for this is undefined.
152 * for this ringbuffer, [0, size), the behavior for this is undefined.
157 * Return the current size of this RingBuffer.
159 size_t size() const;
162 * Remove all elements from this RingBuffer and set the size to 0.
177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : argument
178 mPtr{ptr}, mSize{size}, mPo
221 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr) argument
347 size_t RingBuffer<T>::size() const { function in class:android::RingBuffer
[all...]
/frameworks/native/services/sensorservice/
H A DRingBuffer.h31 * A RingBuffer class that maintains an array of objects that can grow up to a certain size.
49 iterator(T* ptr, size_t size, size_t pos, size_t ctr);
75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr);
146 * this ringbuffer, [0, size), the behavior for this is undefined.
152 * for this ringbuffer, [0, size), the behavior for this is undefined.
157 * Return the current size of this RingBuffer.
159 size_t size() const;
162 * Remove all elements from this RingBuffer and set the size to 0.
177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : argument
178 mPtr{ptr}, mSize{size}, mPo
221 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr) argument
347 size_t RingBuffer<T>::size() const { function in class:android::SensorServiceUtil::RingBuffer
[all...]
/frameworks/compile/mclinker/unittests/
H A DNamePoolTest.cpp70 uint64_t size = 0; local
74 name, isDyn, type, desc, binding, size, other, NULL, result1);
82 EXPECT_EQ(size, result1.info->size());
87 name, isDyn, type, desc, binding, size, other, NULL, result2);
95 EXPECT_EQ(size, result1.info->size());
107 uint64_t size = 0; local
111 name, isDyn, type, desc, binding, size, other, NULL, result1);
119 EXPECT_EQ(size, result
149 uint64_t size = 0; local
175 uint64_t size = 0; local
[all...]
/frameworks/native/libs/gui/bufferqueue/1.0/
H A DH2BGraphicBufferProducer.cpp178 size_t size = numInts * sizeof(int32_t); local
180 status_t status = l->unflatten(constBuffer, size, constFds, numFds);
191 * \brief Return the size of the non-fd buffer required to flatten a fence.
194 * \return The required size of the flat buffer.
221 * \param[in,out] size The size of the flat non-fd buffer.
223 * \param[in,out] numFds The size of the flat fd buffer.
231 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) {
232 if (size < 4) {
237 FlattenableUtils::read(buffer, size, numFdsInHandl
230 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
273 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
319 size_t size = baseSize; local
381 size_t size = baseSize; local
411 unflatten(HRegion* t, void const*& buffer, size_t& size) argument
480 unflatten( HGraphicBufferProducer::QueueBufferInput* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
550 size_t size = baseSize; local
620 flatten(HGraphicBufferProducer::FenceTimeSnapshot const& t, native_handle_t** nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
719 flatten(HGraphicBufferProducer::FrameEventsDelta const& t, std::vector<native_handle_t*>* nh, void*& buffer, size_t& size, int*& fds, size_t numFds) argument
782 size_t size = 4 + // mDeltas.size() local
823 flatten( HGraphicBufferProducer::FrameEventHistoryDelta const& t, std::vector<std::vector<native_handle_t*> >* nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
886 size_t size = baseSize; local
[all...]
/frameworks/av/cmds/stagefright/
H A DWaveWriter.h49 void Append(const void *data, size_t size) { argument
50 fwrite(data, 1, size, mFile);
51 mTotalBytes += size;
/frameworks/av/media/libstagefright/filters/
H A DZeroFilter.cpp46 for (size_t i = 0; i < srcBuffer->size() / 4; ++i) {
50 memcpy(outBuffer->data(), srcBuffer->data(), srcBuffer->size());
52 outBuffer->setRange(0, srcBuffer->size());
/frameworks/av/media/libstagefright/httplive/
H A DLiveDataSource.h35 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
36 ssize_t readAtNonBlocking(off64_t offset, void *data, size_t size);
57 ssize_t readAt_l(off64_t offset, void *data, size_t size);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioCollections.cpp31 for (size_t i = 0; i < size(); i++) {
48 snprintf(buffer, SIZE, "\n%*sAudio Routes (%zu):\n", spaces, "", size());
50 for (size_t i = 0; i < size(); i++) {
H A DAudioRoute.cpp39 if (mSources.size() != 0) {
42 for (size_t i = 0; i < mSources.size(); i++) {
49 write(fd, result.string(), result.size());
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInputStream.java29 * {@link BackupDataInput}. The entity's key string and total data size are available
30 * through this class's {@link #getKey()} and {@link #size()} methods, respectively.
33 * source, nor read more than {@link #size()} bytes from the stream.</p>
53 * an integer value. If more than {@link #size()} bytes of data
68 * Read up to {@code size} bytes of data into a byte array, beginning at position
74 * @param size The number of bytes to read in this operation. If insufficient
80 public int read(byte[] b, int offset, int size) throws IOException { argument
81 return mData.readEntityData(b, offset, size);
113 public int size() { method in class:BackupDataInputStream
/frameworks/base/core/java/com/android/internal/util/
H A DLocalLog.java42 if (mLines.size() >= mMaxLines) {
51 if (mLines.size() <= 0) {
57 for (int i=0; i<mLines.size(); i++) {
/frameworks/base/core/java/com/android/internal/widget/
H A DMediaNotificationView.java67 int size = MeasureSpec.getSize(widthMeasureSpec);
68 size = size - mActions.getMeasuredWidth();
72 size -= imageEndMargin;
74 if (size > fullHeight) {
75 size = fullHeight;
76 } else if (size < fullHeight) {
77 size = Math.max(0, size);
78 mImagePushIn = fullHeight - size;
[all...]

Completed in 890 milliseconds

1234567891011>>