Searched refs:size (Results 1 - 25 of 3680) 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/native/libs/gui/
H A DBufferItem.cpp49 static void addAligned(size_t& size, T /* value */) { argument
50 size = FlattenableUtils::align<sizeof(T)>(size);
51 size += sizeof(T);
55 size_t size = 0; local
56 addAligned(size, mCrop);
57 addAligned(size, mTransform);
58 addAligned(size, mScalingMode);
59 addAligned(size, mTimestampLo);
60 addAligned(size, mTimestampH
73 size_t size = sizeof(uint32_t); // Flags local
99 writeAligned(void*& buffer, size_t& size, T value) argument
104 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
159 readAligned(const void*& buffer, size_t& size, T& value) argument
164 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
[all...]
/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/base/tools/aapt2/util/
H A DBigBuffer.cpp25 void* BigBuffer::nextBlockImpl(size_t size) { argument
28 if (block.mBlockSize - block.size >= size) {
29 void* outBuffer = block.buffer.get() + block.size;
30 block.size += size;
31 mSize += size;
36 const size_t actualSize = std::max(mBlockSize, size);
44 block.size = size;
[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/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/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.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/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/java/tests/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/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/base/core/tests/utiltests/src/android/util/
H A DIRemoteMemoryIntArray.aidl23 void create(int size, boolean clientWritable);
27 int size();
/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.
/frameworks/base/core/java/android/app/backup/
H A DFullBackupDataOutput.java30 public void addSize(long size) { argument
31 if (size > 0) {
32 mSize += size;
/frameworks/base/libs/hwui/tests/common/scenes/
H A DShapeAnimation.cpp37 [](TestCanvas& canvas, float size, const SkPaint& paint) {
38 canvas.drawArc(0, 0, size, size, 50, 189, true, paint);
40 [](TestCanvas& canvas, float size, const SkPaint& paint) {
41 canvas.drawOval(0, 0, size, size, paint);
43 [](TestCanvas& canvas, float size, const SkPaint& paint) {
45 diamondPath.moveTo(size / 2, 0);
46 diamondPath.lineTo(size, size /
[all...]
/frameworks/av/media/libmedia/
H A DMidiIoWrapper.cpp27 static int readAt(void *handle, void *buffer, int pos, int size) { argument
28 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size);
30 static int size(void *handle) { function
31 return ((android::MidiIoWrapper*)handle)->size();
43 MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) { argument
47 mLength = size;
69 int MidiIoWrapper::readAt(void *buffer, int offset, int size) {
70 ALOGV("readAt(%p, %d, %d)", buffer, offset, size);
73 return mDataSource->readAt(offset, buffer, size);
80 if (offset + size > mLengt
[all...]

Completed in 4223 milliseconds

1234567891011>>