Searched defs:size (Results 1 - 25 of 1014) sorted by relevance

1234567891011>>

/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/av/media/libstagefright/foundation/include/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/av/media/libstagefright/include/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/vr/
H A Ddvr_library_loader.cpp16 size_t size = env->GetStringUTFLength(java_library); local
17 std::string library(data, size);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/
H A Dh264bsdClearMbLayer.s26 size RN 1 label
53 SUBS size, size, #64
57 SUBS size, size, #64
/frameworks/base/cmds/incidentd/src/
H A Dprotobuf.cpp35 write_length_delimited_tag_header(uint8_t* buf, uint32_t fieldId, size_t size) argument
38 buf = write_raw_varint(buf, size);
/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/core/java/android/util/
H A DContainerHelpers.java22 static int binarySearch(int[] array, int size, int value) { argument
24 int hi = size - 1;
41 static int binarySearch(long[] array, int size, long value) { argument
43 int hi = size - 1;
/frameworks/base/core/tests/utiltests/jni/
H A Dregistration.cpp20 jobject clazz, jstring name, jint size);
22 jobject clazz, jint fd, jint size);
26 JNIEnv * env, jobject obj, jstring name, jint size);
28 JNIEnv * env, jobject obj, jint fd, jint size);
33 jstring name, jint size)
35 return android_util_MemoryIntArrayTest_createAshmem(env, obj, name, size);
40 jint fd, jint size)
42 android_util_MemoryIntArrayTest_setAshmemSize(env, obj, fd, size);
31 Java_android_util_MemoryIntArrayTest_nativeCreateAshmem( __attribute__((unused)) JNIEnv * env,__attribute__((unused)) jobject obj, jstring name, jint size) argument
38 Java_android_util_MemoryIntArrayTest_nativeSetAshmemSize( __attribute__((unused)) JNIEnv * env,__attribute__((unused)) jobject obj, jint fd, jint size) argument
/frameworks/base/libs/androidfw/
H A DChunkIterator.cpp30 reinterpret_cast<const uint8_t*>(this_chunk) + dtohl(this_chunk->size));
31 len_ -= dtohl(this_chunk->size);
58 const size_t size = dtohl(next_chunk_->size); local
60 last_error_ = "header size too small";
64 if (header_size > size) {
65 last_error_ = "header size is larger than entire chunk";
69 if (size > len_) {
70 last_error_ = "chunk size is bigger than given data";
74 if ((size | header_siz
[all...]
/frameworks/base/libs/hwui/protos/
H A DProtoHelpers.h33 size_t size = src.writeToMemory(nullptr); local
34 dest->resize(size);
/frameworks/base/native/android/
H A Dsharedmem.cpp21 int ASharedMemory_create(const char *name, size_t size) { argument
22 if (size == 0) {
25 return ashmem_create_region(name, size);
/frameworks/compile/mclinker/include/mcld/Fragment/
H A DNullFragment.h26 /// size -
27 size_t size() const { return 0x0; } function in class:mcld::NullFragment
/frameworks/compile/mclinker/lib/Target/
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/minikin/tests/unittest/
H A DUnicodeUtilsTest.cpp27 size_t size; local
28 ParseUnicode(buf, BUF_SIZE, "U+000D U+1F431 | 'a'", &size, &offset);
29 EXPECT_EQ(size, 4u);
/frameworks/av/include/media/
H A DStringArray.h59 inline int size(void) const { return mCurrent; } function in class:android::StringArray
/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DDelayMix_16x16.c30 LVM_INT16 size, /* Delay size */
61 if (Offset >= size)
28 DelayMix_16x16(const LVM_INT16 *src, LVM_INT16 *delay, LVM_INT16 size, LVM_INT16 *dst, LVM_INT16 *pOffset, LVM_INT16 n) argument
H A DDelayWrite_32.c30 LVM_UINT16 size, /* Delay size */
44 if (Offset >= size)
28 DelayWrite_32(const LVM_INT32 *src, LVM_INT32 *delay, LVM_UINT16 size, LVM_UINT16 *pOffset, LVM_INT16 n) argument
/frameworks/av/media/libmedia/include/media/
H A DStringArray.h59 inline int size(void) const { return mCurrent; } function in class:android::StringArray
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
H A Dh264bsdClearMbLayer.S26 #define size r1 define
53 SUBS size, size, #64
57 SUBS size, size, #64
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DSizeAreaComparator.java38 public int compare(Camera.Size size, Camera.Size size2) { argument
39 checkNotNull(size, "size must not be null");
42 if (size.equals(size2)) {
46 long width = size.width;
48 long area = width * size.height;
59 * Get the largest api1 {@code Camera.Size} from the list by comparing each size's area
63 * @return a non-{@code null} size
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSizeAreaComparator.java37 public int compare(Size size, Size size2) { argument
38 checkNotNull(size, "size must not be null");
41 if (size.equals(size2)) {
45 long width = size.getWidth();
47 long area = width * size.getHeight();
58 * Get the largest {@code Size} from the list by comparing each size's area
62 * @return a non-{@code null} size
/frameworks/base/core/java/android/view/autofill/
H A DParcelableMap.java31 ParcelableMap(int size) { argument
32 super(size);
42 dest.writeInt(size());
54 int size = source.readInt();
56 ParcelableMap map = new ParcelableMap(size);
58 for (int i = 0; i < size; i++) {
69 public ParcelableMap[] newArray(int size) {
70 return new ParcelableMap[size];

Completed in 126 milliseconds

1234567891011>>