Searched refs:size (Results 1 - 25 of 4916) 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/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/gui/
H A DBufferItem.cpp64 static void addAligned(size_t& size, T /* value */) { argument
65 size = FlattenableUtils::align<sizeof(T)>(size);
66 size += sizeof(T);
70 size_t size = 0; local
71 addAligned(size, mCrop);
72 addAligned(size, mTransform);
73 addAligned(size, mScalingMode);
74 addAligned(size, low32(mTimestamp));
75 addAligned(size, high3
91 size_t size = sizeof(uint32_t); // Flags local
117 writeAligned(void*& buffer, size_t& size, T value) argument
122 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
180 readAligned(const void*& buffer, size_t& size, T& value) argument
185 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
[all...]
/frameworks/base/tools/aapt2/util/
H A DBigBuffer.cpp27 void* BigBuffer::NextBlockImpl(size_t size) { argument
30 if (block.block_size_ - block.size >= size) {
31 void* out_buffer = block.buffer.get() + block.size;
32 block.size += size;
33 size_ += size;
38 const size_t actual_size = std::max(block_size_, size);
46 block.size = size;
59 size_t size = block.block_size_ - block.size; local
[all...]
/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/rs/tests/lldb/cpp/BranchingFunCalls/
H A DBranchingFunCalls.cpp23 static const int size = 64; local
30 tb.setX(size);
31 tb.setY(size);
37 int * input = new int[size*size];
38 for(int i = 0; i < size*size; ++i) {
39 input[i] = i - (size*size / 2);
41 a->copy2DRangeFrom(0, 0, size, siz
[all...]
/frameworks/rs/tests/lldb/jni/BranchingFunCalls/jnibranchingfuncalls/
H A Djnibranchingfuncalls.cpp30 static const int size = 64; local
39 tb.setX(size);
40 tb.setY(size);
46 int * input = new int[size*size];
47 for(int i = 0; i < size*size; ++i) {
48 input[i] = i - (size*size / 2);
50 a->copy2DRangeFrom(0, 0, size, siz
[all...]
/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
110 doRead(void* buffer, size_t size) argument
118 doRead(void* buffer, size_t size) argument
122 doRead(void* dstBuffer, size_t size) argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dvertex_frame.cpp28 VertexFrame::VertexFrame(int size) argument
30 size_(size) {
42 bool VertexFrame::WriteData(const uint8_t* data, int size) { argument
55 if (first_upload && size == size_)
56 glBufferData(GL_ARRAY_BUFFER, size, data, GL_STATIC_DRAW);
57 else if (!first_upload && size <= size_)
58 glBufferSubData(GL_ARRAY_BUFFER, 0, size, data);
61 "inside the vertex frame (%d bytes)!", size, size_);
69 // Subsequent uploads are now bound to the size given here
70 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/apct-tests/perftests/multiuser/src/android/multiuser/
H A DBenchmarkResults.java50 final int size = mResults.size();
52 for (int i = 0; i < size; ++i) {
55 return (double) sum / size;
59 final int size = mResults.size();
60 if (size == 0) {
64 final int idx = size / 2;
65 return size % 2 == 0
71 final int 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.cpp19 size_t size = 0; local
22 size += leb128::size<uint32_t>(m_IntValue);
25 size += m_StringValue.length() + 1 /* for NULL-terminator */;
27 if (size <= 0)
31 return size;
/frameworks/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/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/core/java/com/android/internal/widget/
H A DScrollBarUtils.java21 public static int getThumbLength(int size, int thickness, int extent, int range) { argument
24 int length = Math.round((float) size * extent / range);
31 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { argument
33 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent));
34 if (thumbOffset > size - thumbLength) {
35 thumbOffset = size - thumbLength;
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A Dbugdroid.rs21 int size;
116 float3 p1 = { size * 0.5f, size * 0.5f, size * 0.3f };
117 float3 p2 = { size * 0.5f, size * 0.5f, size * 0.65f };
118 float radius = size * 0.22f;
120 p2.z = size * 0.4f;
123 v -= circle(p1, radius*0.9f, normal, size * 0.0
[all...]
/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/base/tools/aapt2/io/
H A DStringInputStream_test.cpp38 size_t size; local
39 ASSERT_TRUE(in.Next(reinterpret_cast<const void**>(&buffer), &size));
40 ASSERT_THAT(size, Eq(kCount));
46 EXPECT_FALSE(in.Next(reinterpret_cast<const void**>(&buffer), &size));
55 size_t size; local
56 ASSERT_TRUE(in.Next(reinterpret_cast<const void**>(&buffer), &size));
57 ASSERT_THAT(size, Eq(input.size()));
59 EXPECT_THAT(in.ByteCount(), Eq(input.size()));
62 EXPECT_THAT(in.ByteCount(), Eq(input.size()
[all...]
/frameworks/av/media/libstagefright/
H A DESDS.cpp29 ESDS::ESDS(const void *data, size_t size) argument
30 : mData(new uint8_t[size]),
31 mSize(size),
36 memcpy(mData, data, size);
60 status_t ESDS::getCodecSpecificInfo(const void **data, size_t *size) const {
66 *size = mDecoderSpecificLength;
72 size_t offset, size_t size,
74 if (size == 0) {
79 --size;
84 if (size
71 skipDescriptorHeader( size_t offset, size_t size, uint8_t *tag, size_t *data_offset, size_t *data_size) const argument
125 parseESDescriptor(size_t offset, size_t size) argument
210 parseDecoderConfigDescriptor(size_t offset, size_t size) argument
[all...]
/frameworks/compile/mclinker/lib/Fragment/
H A DAlignFragment.cpp32 size_t AlignFragment::size() const { function in class:mcld::AlignFragment
34 "AlignFragment::size() should not be called before layout.");
35 uint64_t size = llvm::OffsetToAlignment(getOffset(), m_Alignment); local
36 if (size > m_MaxBytesToEmit)
39 return size;
/frameworks/av/include/media/stagefright/foundation/
H A DABase.h29 /* Returns true if the size parameter is safe for new array allocation (32-bit)
51 bool isSafeArraySize(S size) { argument
52 return size >= 0 // in case S is signed, ignored if not.
53 && size <= 0xffffffff / sizeof(T); // max-unsigned-32-bit-int / element-size.

Completed in 909 milliseconds

1234567891011>>