/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 | TriggerEvent.java | 59 TriggerEvent(int size) { argument 60 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/core/jni/android/graphics/ |
H A D | Utils.cpp | 47 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { argument 51 if (0 == size) { 62 off64_t newOffset = fAsset->seek(size, SEEK_CUR); 64 SkDebugf("---- fAsset->seek(%d) failed\n", size); 69 amount = fAsset->read(buffer, size); 71 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount); 86 off64_t size = asset->seek(0, SEEK_SET); local 87 if ((off64_t)-1 == size) { 92 size = asset->getLength(); 93 if (size < [all...] |
/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/native/libs/diskusage/ |
H A D | dirsize.c | 27 // count actual blocks used instead of nominal file size 28 int64_t size = s->st_blocks * 512; local 31 /* round up to filesystem block size */ 32 size = (size + blksize - 1) & (~(blksize - 1)); 35 return size; 40 int64_t size = 0; local 54 size += stat_size(&s); 69 size += calculate_dir_size(subfd); 74 return size; [all...] |
/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 | 49 size_t size; local 52 size = leb128::encode<uint32_t>(result, 2); 55 ASSERT_TRUE(size == 1); 58 size = leb128::encode<uint32_t>(result, 127); 61 ASSERT_TRUE(size == 1); 64 size = leb128::encode<uint32_t>(result, 128); 68 ASSERT_TRUE(size == 2); 71 size = leb128::encode<uint32_t>(result, 129); 75 ASSERT_TRUE(size == 2); 78 size 95 size_t size; local 141 size_t size; local 200 size_t size; local 236 size_t size; local 303 size_t size; local 420 size_t size; local 502 size_t size; local 518 size_t size; local [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/rs/cpu_ref/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/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 | 36 // page_boundary - Given a file size, return the size to read integral pages. 46 const size_t threshold = (PageSize*3)/4; // 3/4 page size in Linux 83 size_t start = 0, size = 0, total_offset = 0; local 86 // adjust total_offset, start and size 89 if (total_offset > pHandler.size()) { 91 size = pSize; 94 else if (pHandler.size() > start) { 95 // not writable -> shrink the size 96 size 102 << start << size; local 113 error(diag::err_cannot_read_file) << pHandler.path() << start << size; local 132 << start << size; local 140 error(diag::err_cannot_mmap_file) << pHandler.path() << start << size; local [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | SectionedListAdapter.java | 58 final int size = mSections.size(); 59 for (int i = 0; i < size; i++) { 67 final int size = mSections.size(); 68 for (int i = 0; i < size; i++) { 92 final int size = mSections.size(); 93 for (int i = 0; i < size; i++) { 117 final int 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/av/media/libstagefright/codecs/aacenc/inc/ |
H A D | memalign.h | 29 extern void *mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
H A D | mem_align.h | 29 extern void *mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID);
|
/frameworks/base/media/java/android/media/ |
H A D | DataSource.java | 32 * @param size how many bytes to read 35 public int readAt(long offset, byte[] buffer, int size); argument 38 * Gets the size of the data source. 40 * @return size of data source, or -1 if the length is unknown
|
/frameworks/compile/mclinker/lib/Fragment/ |
H A D | AlignFragment.cpp | 29 size_t AlignFragment::size() const function in class:AlignFragment 31 assert(hasOffset() && "AlignFragment::size() should not be called before layout."); 32 uint64_t size = llvm::OffsetToAlignment(getOffset(), m_Alignment); local 33 if (size > m_MaxBytesToEmit) 36 return size;
|