Searched refs:ARRAY_SIZE (Results 1 - 25 of 42) sorted by relevance

12

/frameworks/av/include/media/stagefright/foundation/
H A DABase.h21 #ifndef ARRAY_SIZE
22 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A DABase.h21 #ifndef ARRAY_SIZE
22 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/
H A DABase.h21 #ifndef ARRAY_SIZE
22 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/frameworks/rs/tests/lldb/java/ScriptGroup/src/com/android/rs/scriptgroup/
H A DMainActivity.java26 private static final int ARRAY_SIZE = 8; field in class:MainActivity
40 int[] array = new int[ARRAY_SIZE];
41 for (int i = 0; i < ARRAY_SIZE; i++) {
44 Allocation input = Allocation.createSized(pRS, Element.I32(pRS), ARRAY_SIZE);
52 script.getKernelID_foo(), Type.createX(pRS, Element.I32(pRS), ARRAY_SIZE), unbound);
55 Type.createX(pRS, Element.I32(pRS), ARRAY_SIZE), c0.getReturn());
59 int[] a = new int[ARRAY_SIZE];
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A DUT_script_group2_gatherscatter.java26 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_gatherscatter
37 mArray = new int[ARRAY_SIZE * 4];
39 for (int i = 0; i < ARRAY_SIZE; i++) {
49 // The test sums up all elements in the input int4 array of size ARRAY_SIZE.
67 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
77 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) {
110 a[i] != ARRAY_SIZE * (ARRAY_SIZE - 1) * 7 / 2 + i * ARRAY_SIZE) {
112 (ARRAY_SIZE * (ARRAY_SIZ
[all...]
H A DUT_script_group2_pointwise.java26 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_pointwise
39 int[] array = new int[ARRAY_SIZE * 4];
41 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
45 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
52 Type T = Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE);
66 int[] a = new int[ARRAY_SIZE * 4];
78 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
H A DUT_script_group2_float.java26 private static final int ARRAY_SIZE = 8; field in class:UT_script_group2_float
39 float[] array = new float[ARRAY_SIZE];
41 for (int i = 0; i < ARRAY_SIZE; i++) {
45 Allocation input = Allocation.createSized(pRS, Element.F32(pRS), ARRAY_SIZE);
55 final Type T = Type.createX(pRS, Element.F64(pRS), ARRAY_SIZE);
74 double[] a = new double[ARRAY_SIZE];
85 for (int i = 0; i < ARRAY_SIZE; i++) {
H A DUT_script_group2_nochain.java26 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_nochain
40 int[] array = new int[ARRAY_SIZE * 4];
42 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
46 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
53 Type T = Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE);
73 int[] a = new int[ARRAY_SIZE * 4];
86 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
H A DUT_script_group2_gatherscatter.java28 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_gatherscatter
39 mArray = new int[ARRAY_SIZE * 4];
41 for (int i = 0; i < ARRAY_SIZE; i++) {
51 // The test sums up all elements in the input int4 array of size ARRAY_SIZE.
69 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
79 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) {
112 a[i] != ARRAY_SIZE * (ARRAY_SIZE - 1) * 7 / 2 + i * ARRAY_SIZE) {
114 (ARRAY_SIZE * (ARRAY_SIZ
[all...]
H A DUT_script_group2_pointwise.java28 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_pointwise
41 int[] array = new int[ARRAY_SIZE * 4];
43 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
47 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
54 Type T = Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE);
68 int[] a = new int[ARRAY_SIZE * 4];
80 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
H A DUT_script_group2_float.java28 private static final int ARRAY_SIZE = 8; field in class:UT_script_group2_float
41 float[] array = new float[ARRAY_SIZE];
43 for (int i = 0; i < ARRAY_SIZE; i++) {
47 Allocation input = Allocation.createSized(pRS, Element.F32(pRS), ARRAY_SIZE);
57 final Type T = Type.createX(pRS, Element.F64(pRS), ARRAY_SIZE);
76 double[] a = new double[ARRAY_SIZE];
87 for (int i = 0; i < ARRAY_SIZE; i++) {
H A DUT_script_group2_nochain.java28 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_nochain
42 int[] array = new int[ARRAY_SIZE * 4];
44 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
48 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
55 Type T = Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE);
75 int[] a = new int[ARRAY_SIZE * 4];
88 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
/frameworks/av/media/libstagefright/omx/tests/
H A DFrameDropper_test.cpp118 RunTest(testFrames20Fps, ARRAY_SIZE(testFrames20Fps));
122 RunTest(testFrames30Fps, ARRAY_SIZE(testFrames30Fps));
126 RunTest(testFrames40Fps, ARRAY_SIZE(testFrames40Fps));
130 RunTest(testFrames60Fps, ARRAY_SIZE(testFrames60Fps));
134 RunTest(testFramesVariableFps, ARRAY_SIZE(testFramesVariableFps));
/frameworks/av/media/libaudioprocessing/tests/
H A Dresampler_tests.cpp265 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
282 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
295 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
308 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
333 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
341 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
361 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
369 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
389 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
397 for (size_t i = 0; i < ARRAY_SIZE(kQualityArra
[all...]
H A Dtest_utils.h28 #ifndef ARRAY_SIZE
29 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
/frameworks/native/cmds/installd/
H A Dinstalld_constants.h68 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/frameworks/av/media/libmediaplayerservice/tests/
H A DDrmSessionManager_test.cpp81 GetSessionId(kTestSessionId1, ARRAY_SIZE(kTestSessionId1), &mSessionId1);
82 GetSessionId(kTestSessionId2, ARRAY_SIZE(kTestSessionId2), &mSessionId2);
83 GetSessionId(kTestSessionId3, ARRAY_SIZE(kTestSessionId3), &mSessionId3);
207 GetSessionId(ids, ARRAY_SIZE(ids), &sessionId);
236 GetSessionId(ids, ARRAY_SIZE(ids), &sessionId);
/frameworks/av/services/mediadrm/tests/
H A DDrmSessionManager_test.cpp77 GetSessionId(kTestSessionId1, ARRAY_SIZE(kTestSessionId1), &mSessionId1);
78 GetSessionId(kTestSessionId2, ARRAY_SIZE(kTestSessionId2), &mSessionId2);
79 GetSessionId(kTestSessionId3, ARRAY_SIZE(kTestSessionId3), &mSessionId3);
203 GetSessionId(ids, ARRAY_SIZE(ids), &sessionId);
232 GetSessionId(ids, ARRAY_SIZE(ids), &sessionId);
/frameworks/base/tests/net/jni/
H A Dapf_jni.cpp27 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
179 gMethods, ARRAY_SIZE(gMethods));
/frameworks/av/media/libaudioprocessing/
H A DRecordBufferConverter.cpp28 #ifndef ARRAY_SIZE
29 #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) macro
214 mIdxAry, ARRAY_SIZE(mIdxAry), mDstChannelMask, mSrcChannelMask);
/frameworks/av/media/img_utils/src/
H A DTiffWriter.cpp42 #define ARRAY_SIZE(array) \ macro
46 buildTagMap(TIFF_EP_TAG_DEFINITIONS, ARRAY_SIZE(TIFF_EP_TAG_DEFINITIONS)),
47 buildTagMap(DNG_TAG_DEFINITIONS, ARRAY_SIZE(DNG_TAG_DEFINITIONS)),
48 buildTagMap(EXIF_2_3_TAG_DEFINITIONS, ARRAY_SIZE(EXIF_2_3_TAG_DEFINITIONS)),
49 buildTagMap(TIFF_6_TAG_DEFINITIONS, ARRAY_SIZE(TIFF_6_TAG_DEFINITIONS))
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPort.cpp26 #ifndef ARRAY_SIZE
27 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
259 (i < ARRAY_SIZE(sPcmFormatCompareTable)) && ((index1 == -1) || (index2 == -1));
311 audio_format_t bestFormat = sPcmFormatCompareTable[ARRAY_SIZE(sPcmFormatCompareTable) - 1];
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DSparseMappingTable.java50 public static final int ARRAY_SIZE = 4096; field in class:SparseMappingTable
113 * SparseMappingTable.ARRAY_SIZE.
135 array = new long[ARRAY_SIZE];
482 mLongs.add(new long[ARRAY_SIZE]);
491 mLongs.add(new long[ARRAY_SIZE]);
/frameworks/av/camera/tests/
H A DVendorTagDescriptorTests.cpp39 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
49 EXPECT_TRUE(ContainsTag(a, ARRAY_SIZE(a), t))
/frameworks/native/libs/binder/tests/
H A DbinderLibTest.cpp31 #define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) macro
331 for (size_t i = 0; i < ARRAY_SIZE(testValue); i++) {
373 data.writeInt32(ARRAY_SIZE(serverId));
374 for (size_t i = 0; i < ARRAY_SIZE(serverId); i++) {
394 EXPECT_EQ(ARRAY_SIZE(serverId), (size_t)count);
416 data.writeInt32(ARRAY_SIZE(serverId));
417 for (size_t i = 0; i < ARRAY_SIZE(serverId); i++) {
444 EXPECT_EQ(ARRAY_SIZE(serverId), (size_t)count);

Completed in 625 milliseconds

12