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

1234567891011>>

/frameworks/av/include/media/
H A DExtractorUtils.h26 std::unique_ptr<T[]> heapbuffer(size_t size) { argument
27 return std::unique_ptr<T[]>(new (std::nothrow) T[size]);
H A DStringArray.h59 inline int size(void) const { return mCurrent; } function in class:android::StringArray
/frameworks/av/media/libmediaextractor/
H A DMediaBufferBase.cpp26 MediaBufferBase *MediaBufferBase::Create(size_t size) { argument
27 return new (std::nothrow) MediaBuffer(size);
/frameworks/av/media/libmediaextractor/include/media/
H A DExtractorUtils.h26 std::unique_ptr<T[]> heapbuffer(size_t size) { argument
27 return std::unique_ptr<T[]>(new (std::nothrow) T[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/av/media/libstagefright/foundation/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/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/vr/
H A Ddvr_library_loader.cpp16 size_t size = env->GetStringUTFLength(java_library); local
17 std::string library(data, 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
H A Dandroid_util_MemoryIntArrayTest.cpp26 jstring name, jint size)
33 if (size < 0) {
38 const int ashmemSize = sizeof(std::atomic_int) * size;
55 __attribute__((unused)) jobject clazz, jint fd, jint size)
61 if (size < 0) {
65 ioctl(fd, ASHMEM_SET_SIZE, size);
24 android_util_MemoryIntArrayTest_createAshmem(__attribute__((unused)) JNIEnv* env, __attribute__((unused)) jobject clazz, jstring name, jint size) argument
54 android_util_MemoryIntArrayTest_setAshmemSize(__attribute__((unused)) JNIEnv* env, __attribute__((unused)) jobject clazz, jint fd, jint size) argument
/frameworks/base/libs/hwui/protos/
H A DProtoHelpers.h33 size_t size = src.writeToMemory(nullptr); local
34 dest->resize(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/media/libeffects/lvm/lib/Common/src/
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/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/util/apk/
H A DByteBufferDataSource.java40 public long size() { method in class:ByteBufferDataSource
45 public void feedIntoDataDigester(DataDigester md, long offset, int size) argument
59 mBuf.limit((int) offset + size);
H A DDataSource.java26 * Returns the size (in bytes) of the data offered by this source.
28 long size(); method in interface:DataSource
34 * @param size size (in bytes) of the region.
36 void feedIntoDataDigester(DataDigester md, long offset, int size) argument
/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 2389 milliseconds

1234567891011>>