/frameworks/av/libvideoeditor/osal/src/ |
H A D | M4PSW_MemoryInterface.c | 32 * @fn M4OSA_MemAddr32 M4OSA_32bitAlignedMalloc(M4OSA_UInt32 size, 37 * @param size (IN): size of allocated block in bytes 44 M4OSA_MemAddr32 M4OSA_32bitAlignedMalloc(M4OSA_UInt32 size, argument 51 * If size is 0, malloc on WIN OS allocates a zero-length item in 55 if (size == 0) 60 if (size%4 != 0) 62 size = size + 4 - (size [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | Stack.java | 35 public Stack(int size) { argument 36 super(size); 52 if (size() > 0) { 53 return remove(size() - 1); 64 if (size() > 0) { 65 return get(size() - 1);
|
/frameworks/base/core/java/android/database/ |
H A D | CharArrayBuffer.java | 23 public CharArrayBuffer(int size) { argument 24 data = new char[size];
|
H A D | CursorIndexOutOfBoundsException.java | 24 public CursorIndexOutOfBoundsException(int index, int size) { argument 25 super("Index " + index + " requested, with a size of " + size);
|
/frameworks/base/core/java/android/hardware/ |
H A D | SensorEvent.java | 455 SensorEvent(int size) { argument 456 values = new float[size];
|
/frameworks/native/libs/binder/ |
H A D | MemoryBase.cpp | 29 ssize_t offset, size_t size) 30 : mSize(size), mOffset(offset), mHeap(heap) 34 sp<IMemoryHeap> MemoryBase::getMemory(ssize_t* offset, size_t* size) const 37 if (size) *size = mSize; 28 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | vertex_frame.cpp | 32 VertexFrame::VertexFrame(int size) argument 34 size_(size) { 46 bool VertexFrame::WriteData(const uint8_t* data, int size) { argument 59 if (first_upload && size == size_) 60 glBufferData(GL_ARRAY_BUFFER, size, data, GL_STATIC_DRAW); 61 else if (!first_upload && size <= size_) 62 glBufferSubData(GL_ARRAY_BUFFER, 0, size, data); 65 "inside the vertex frame (%d bytes)!", size, size_); 73 // Subsequent uploads are now bound to the size given here 74 size_ = size; [all...] |
H A D | native_frame.cpp | 22 NativeFrame::NativeFrame(int size) : data_(NULL), size_(size), capacity_(size) { argument 30 bool NativeFrame::WriteData(const uint8_t* data, int offset, int size) { argument 31 if (size_ >= (offset + size)) { 32 memcpy(data_ + offset, data, size); 38 bool NativeFrame::SetData(uint8_t* data, int size) { argument 40 size_ = capacity_ = size;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | m4venc_oscl.h | 31 #define M4VENC_MALLOC(size) malloc(size) 34 #define M4VENC_MEMSET(ptr,val,size) memset(ptr,val,size) 35 #define M4VENC_MEMCPY(dst,src,size) memcpy(dst,src,size)
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_buffer.cpp | 20 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size) { argument 29 if (size) { 30 *size = env->GetIntField(buffer, size_field); 39 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size) { argument 48 env->SetIntField(buffer, size_field, size); 53 jboolean Java_android_filterfw_core_NativeBuffer_allocate(JNIEnv* env, jobject thiz, jint size) { argument 54 char* data = new char[size]; 55 return ToJBool(AttachDataToJBuffer(env, thiz, data, size)); 72 int size; local 73 char* source_data = GetJBufferData(env, thiz, &size); [all...] |
/frameworks/base/libs/diskusage/ |
H A D | dirsize.c | 27 int64_t size = s->st_size; local 30 /* round up to filesystem block size */ 31 size = (size + blksize - 1) & (~(blksize - 1)); 34 return size; 39 int64_t size = 0; local 53 size += stat_size(&s); 68 size += calculate_dir_size(subfd); 73 return size;
|
/frameworks/av/media/libstagefright/ |
H A D | ESDS.cpp | 27 ESDS::ESDS(const void *data, size_t size) argument 28 : mData(new uint8_t[size]), 29 mSize(size), 34 memcpy(mData, data, size); 58 status_t ESDS::getCodecSpecificInfo(const void **data, size_t *size) const { 64 *size = mDecoderSpecificLength; 70 size_t offset, size_t size, 72 if (size == 0) { 77 --size; 82 if (size 69 skipDescriptorHeader( size_t offset, size_t size, uint8_t *tag, size_t *data_offset, size_t *data_size) const argument 123 parseESDescriptor(size_t offset, size_t size) argument 191 parseDecoderConfigDescriptor(size_t offset, size_t size) argument [all...] |
/frameworks/native/opengl/tests/gralloc/ |
H A D | gralloc.cpp | 30 void* lamecpy(void* d, void const* s, size_t size) { argument 33 while (size) { 35 size--; 42 size_t size = 128*256*4; local 43 void* temp = malloc(size); 44 void* temp2 = malloc(size); 45 memset(temp, 0, size); 46 memset(temp2, 0, size); 67 memset(vaddr, 0, size); 73 memcpy(temp, temp2, size); [all...] |
/frameworks/compile/mclinker/unittests/ |
H A D | LEB128Test.cpp | 48 size_t size; local 51 size = leb128::encode<uint32_t>(result, 2); 54 ASSERT_EQ(size, 1); 57 size = leb128::encode<uint32_t>(result, 127); 60 ASSERT_EQ(size, 1); 63 size = leb128::encode<uint32_t>(result, 128); 67 ASSERT_EQ(size, 2); 70 size = leb128::encode<uint32_t>(result, 129); 74 ASSERT_EQ(size, 2); 77 size 94 size_t size; local 140 size_t size; local 199 size_t size; local 235 size_t size; local 302 size_t size; local 419 size_t size; local 500 size_t size; local 516 size_t size; local [all...] |
/frameworks/compile/linkloader/utils/ |
H A D | serialize.h | 69 ArchiveReader(unsigned char const *buf = NULL, size_t size = 0) 70 : buf_begin(buf), buf_end(buf + size), 74 void prologue(size_t size) { argument 79 void epilogue(size_t size) { argument 81 rsl_assert(cursor_base + size >= cursor); 82 cursor = cursor_base + size; 94 void readBytes(void *array, size_t size) { argument 95 if (!good || cursor + size > buf_end) { 98 memcpy(array, cursor, size); 102 template <size_t size> [all...] |
/frameworks/opt/emoji/ |
H A D | EmojiFactory.h | 32 // Returns binary image data corresponding to "pua". The size of binary is 33 // stored to "size". Returns NULL if there's no mapping from the "pua" to a 38 virtual const char *GetImageBinaryFromAndroidPua(int pua, int *size) = 0; 43 int *size) { 45 GetAndroidPuaFromVendorSpecificSjis(sjis), size); 51 int *size) { 53 GetAndroidPuaFromVendorSpecificPua(vsp), size); 42 GetImageBinaryFromVendorSpecificSjis(unsigned short sjis, int *size) argument 50 GetImageBinaryFromVendorSpecificPua(int vsp, int *size) argument
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/comm/src/ |
H A D | omxVCCOMM_LimitMVToRect.c | 37 * size - size of the current block or macroblock; must be equal to 8 or 51 * - size is not equal to either 8 or 16. 53 * twice the block size. 61 OMX_INT size 68 armRetArgErrIf((size != 8) && (size != 16), OMX_Sts_BadArgErr); 69 armRetArgErrIf((pRectVOPRef->width < (2* size)), OMX_Sts_BadArgErr); 70 armRetArgErrIf((pRectVOPRef->height < (2* size)), OMX_Sts_BadArgErr); 73 (2*pRectVOPRef->x + pRectVOPRef->width - Xcoord - size)); [all...] |
/frameworks/compile/mclinker/lib/Support/ |
H A D | Space.cpp | 33 // page_boundary - Given a file size, return the size to read integral pages. 40 const size_t threshold = (PageSize*3)/4; // 3/4 page size in Linux 71 size_t start, size = 0, total_offset; local 74 // adjust total_offset, start and size 77 if (total_offset > pHandler.size()) { 79 size = pSize; 82 else if (pHandler.size() > start) 83 size = pHandler.size() 88 << start << size; local 97 error(diag::err_cannot_read_file) << pHandler.path() << start << size; local 116 << start << size; local 124 error(diag::err_cannot_mmap_file) << pHandler.path() << start << size; local [all...] |
/frameworks/native/libs/gui/ |
H A D | BitTube.cpp | 33 // Socket buffer size. The default is typically about 128KB, which is much larger than 43 int size = SOCKET_BUFFER_SIZE; local 44 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); 45 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); 46 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); 47 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); 63 int size = SOCKET_BUFFER_SIZE; local 96 write(void const* vaddr, size_t size) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Utils.cpp | 31 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { argument 35 if (0 == size) { // caller is asking us for our total length 46 off64_t newOffset = fAsset->seek(size, SEEK_CUR); 48 SkDebugf("---- fAsset->seek(%d) failed\n", size); 53 amount = fAsset->read(buffer, size); 55 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount);
|
/frameworks/native/libs/utils/tests/ |
H A D | Vector_test.cpp | 48 EXPECT_EQ(vector.size(), 3); 53 EXPECT_EQ(other.size(), 3); 59 EXPECT_EQ(vector.size(), 4); 60 EXPECT_EQ(other.size(), 3); 66 EXPECT_EQ(vector.size(), 4); 67 EXPECT_EQ(other.size(), 4);
|
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
H A D | ViewGroup.java | 43 * Utility to reconcile a desired size and state, with constraints imposed 44 * by a MeasureSpec. Will take the desired size, unless a different size 46 * with the resolved size in the {@link #MEASURED_SIZE_MASK} bits and 48 * size is smaller than the size the view wants to be. 50 * @param size How big the view wants to be 55 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { argument 57 return View.resolveSizeAndState(size, measureSpec, childMeasuredState); 59 int result = size; [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | PrivateOutputStream.java | 69 public int size() { method in class:PrivateOutputStream 70 return mArray.size(); 86 if (mArray.size() == mMaxPacketSize) { 110 while ((mArray.size() + remainLength) >= mMaxPacketSize) { 111 int bufferLeft = mMaxPacketSize - mArray.size(); 124 * @param size the size of the array to return 127 public synchronized byte[] readBytes(int size) { argument 128 if (mArray.size() > 0) { 131 byte[] result = new byte[size]; [all...] |
/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | EhFrameHdr.h | 47 /// sizeOutput - base on the fde count to size output 51 template<size_t size> 58 template<size_t size> 59 typename SizeTraits<size>::Address 61 typename SizeTraits<size>::Offset pOffset, 64 template<size_t size> 68 typedef std::pair<typename SizeTraits<size>::Address, 69 typename SizeTraits<size>::Address> EntryType; 72 template<size_t size> 74 : public std::binary_function<const typename BSTEntry<size> [all...] |
/frameworks/compile/mclinker/lib/LD/ |
H A D | EhFrameHdr.cpp | 39 /// sizeOutput - base on the fde count to size output 42 size_t size = 12; local 45 size += 8 * fde_count; 47 m_EhFrameHdrSect.setSize(size);
|