Searched refs:size (Results 1 - 25 of 2722) sorted by relevance

1234567891011>>

/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DUtils.cpp22 if (lhs.size() < rhs.size()) {
24 } else if (lhs.size() > rhs.size()) {
27 return memcmp((void *)lhs.array(), (void *)rhs.array(), rhs.size()) < 0;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DStack.java35 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 DCharArrayBuffer.java23 public CharArrayBuffer(int size) { argument
24 data = new char[size];
H A DCursorIndexOutOfBoundsException.java24 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 DTriggerEvent.java59 TriggerEvent(int size) { argument
60 values = new float[size];
/frameworks/native/libs/binder/
H A DMemoryBase.cpp29 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/ex/framesequence/jni/
H A DStream.cpp42 size_t Stream::peek(void* buffer, size_t size) { argument
44 if (size > peek_remaining) {
46 mPeekBuffer = new char[size];
51 size_t read = doRead(mPeekBuffer + mPeekOffset, size - peek_remaining);
55 size = min(size, mPeekSize - mPeekOffset);
56 memcpy(buffer, mPeekBuffer + mPeekOffset, size);
57 return size;
60 size_t Stream::read(void* buffer, size_t size) { argument
64 bytes_read = min(size, peek_remainin
82 doRead(void* buffer, size_t size) argument
90 doRead(void* buffer, size_t size) argument
94 doRead(void* dstBuffer, size_t size) argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dvertex_frame.cpp32 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 Dnative_frame.cpp22 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/base/tools/layoutlib/bridge/src/dalvik/system/
H A DVMRuntime_Delegate.java36 int size = ((minLength & 1) == 0) ? minLength + 1 : minLength;
37 return java.lang.reflect.Array.newInstance(componentType, size);
42 int size = dataBytes / 2;
43 return new char[size];
45 int size = ((minLength & 1) == 0) ? minLength + 1 : minLength;
46 return new int[size];
51 int size = dataBytes;
52 return new byte[size];
57 int size = dataBytes;
58 return new boolean[size];
[all...]
/frameworks/compile/mclinker/lib/Target/
H A DELFAttributeData.cpp21 size_t size = 0; local
24 leb128::decode<uint64_t>(pBuf, size));
26 if (size > pBufSize)
29 pBuf += size;
30 pBufSize -= size;
40 size_t size = 0; local
41 uint64_t int_value = leb128::decode<uint64_t>(pBuf, size);
44 if (size > pBufSize)
47 pBuf += size;
48 pBufSize -= size;
55 size_t size = pValue.getStringValue().length() + 1 /* '\\0' */; local
[all...]
H A DELFAttributeValue.cpp20 size_t size = 0; local
23 size += leb128::size<uint32_t>(m_IntValue);
26 size += m_StringValue.length() + 1 /* for NULL-terminator */;
28 if (size <= 0)
32 return size;
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dm4venc_oscl.h31 #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 Djni_native_buffer.cpp20 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 Ddirsize.c27 // 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/include/media/stagefright/foundation/
H A DABase.h27 /* Returns true if the size parameter is safe for new array allocation (32-bit)
49 bool isSafeArraySize(S size) { argument
50 return size >= 0 // in case S is signed, ignored if not.
51 && size <= 0xffffffff / sizeof(T); // max-unsigned-32-bit-int / element-size.
/frameworks/av/media/libstagefright/
H A DESDS.cpp27 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/base/core/jni/android/graphics/
H A DUtils.cpp61 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { argument
65 if (0 == size) {
76 off64_t newOffset = fAsset->seek(size, SEEK_CUR);
78 SkDebugf("---- fAsset->seek(%d) failed\n", size);
83 amount = fAsset->read(buffer, size);
85 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount);
100 off64_t size = asset->seek(0, SEEK_SET); local
101 if ((off64_t)-1 == size) {
106 size = asset->getLength();
107 if (size <
[all...]
/frameworks/native/opengl/tests/gralloc/
H A Dgralloc.cpp30 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 DLEB128Test.cpp49 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 DEmojiFactory.h32 // 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 Dserialize.h69 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 DomxVCCOMM_LimitMVToRect.c52 * size - size of the current block or macroblock; must be equal to 8 or
66 * - size is not equal to either 8 or 16.
68 * twice the block size.
76 OMX_INT size
83 armRetArgErrIf((size != 8) && (size != 16), OMX_Sts_BadArgErr);
84 armRetArgErrIf((pRectVOPRef->width < (2* size)), OMX_Sts_BadArgErr);
85 armRetArgErrIf((pRectVOPRef->height < (2* size)), OMX_Sts_BadArgErr);
88 (2*pRectVOPRef->x + pRectVOPRef->width - Xcoord - size));
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DSectionedListAdapter.java58 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/native/libs/ui/
H A DFrameStats.cpp28 size_t size = timestampSize; local
29 size += 3 * desiredPresentTimesNano.size() * timestampSize;
31 return size;
34 status_t FrameStats::flatten(void* buffer, size_t size) const {
35 if (size < getFlattenedSize()) {
41 size_t frameCount = desiredPresentTimesNano.size();
57 status_t FrameStats::unflatten(void const* buffer, size_t size) { argument
60 if (size < timestampSize) {
65 size_t frameCount = (size
[all...]

Completed in 674 milliseconds

1234567891011>>