Searched refs:ARRAY_SIZE (Results 1 - 25 of 43) 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/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_script_group2_gatherscatter.java29 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_gatherscatter
41 mArray = new int[ARRAY_SIZE * 4];
43 for (int i = 0; i < ARRAY_SIZE; i++) {
53 // The test sums up all elements in the input int4 array of size ARRAY_SIZE.
72 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
82 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) {
111 a[i] != ARRAY_SIZE * (ARRAY_SIZE - 1) * 7 / 2 + i * ARRAY_SIZE) {
113 (ARRAY_SIZE * (ARRAY_SIZ
[all...]
H A DUT_script_group2_pointwise.java29 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_pointwise
44 int[] array = new int[ARRAY_SIZE * 4];
46 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
50 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
59 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
64 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
69 int[] a = new int[ARRAY_SIZE * 4];
76 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
H A DUT_script_group2_nochain.java29 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_nochain
45 int[] array = new int[ARRAY_SIZE * 4];
47 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
51 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
60 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
66 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
74 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
79 int[] a = new int[ARRAY_SIZE * 4];
86 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
H A DUT_script_group2_float.java27 private static final int ARRAY_SIZE = 8; field in class:UT_script_group2_float
42 float[] array = new float[ARRAY_SIZE];
44 for (int i = 0; i < ARRAY_SIZE; i++) {
48 Allocation input = Allocation.createSized(pRS, Element.F32(pRS), ARRAY_SIZE);
60 Type.createX(pRS, Element.F64(pRS), ARRAY_SIZE),
69 Type.createX(pRS, Element.F64(pRS), ARRAY_SIZE),
77 double[] a = new double[ARRAY_SIZE];
84 for (int i = 0; i < ARRAY_SIZE; i++) {
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_script_group2_gatherscatter.java27 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.
70 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
80 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) {
109 a[i] != ARRAY_SIZE * (ARRAY_SIZE - 1) * 7 / 2 + i * ARRAY_SIZE) {
111 (ARRAY_SIZE * (ARRAY_SIZ
[all...]
H A DUT_script_group2_pointwise.java27 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_pointwise
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);
57 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
62 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
67 int[] a = new int[ARRAY_SIZE * 4];
74 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
H A DUT_script_group2_nochain.java27 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_nochain
43 int[] array = new int[ARRAY_SIZE * 4];
45 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
49 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
58 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
63 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
69 Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE),
74 int[] a = new int[ARRAY_SIZE * 4];
81 for (int i = 0; i < ARRAY_SIZE * 4; i++) {
H A DUT_script_group2_float.java27 private static final int ARRAY_SIZE = 8; field in class:UT_script_group2_float
42 float[] array = new float[ARRAY_SIZE];
44 for (int i = 0; i < ARRAY_SIZE; i++) {
48 Allocation input = Allocation.createSized(pRS, Element.F32(pRS), ARRAY_SIZE);
60 Type.createX(pRS, Element.F64(pRS), ARRAY_SIZE),
69 Type.createX(pRS, Element.F64(pRS), ARRAY_SIZE),
77 double[] a = new double[ARRAY_SIZE];
84 for (int i = 0; i < ARRAY_SIZE; 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/services/radio/
H A DRadioRegions.h55 #ifndef ARRAY_SIZE
56 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
/frameworks/av/services/audioflinger/tests/
H A Dresampler_tests.cpp249 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
266 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
279 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
292 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
317 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
325 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
345 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
353 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
373 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) {
381 for (size_t i = 0; i < ARRAY_SIZE(kQualityArra
[all...]
H A Dtest_utils.h22 #ifndef ARRAY_SIZE
23 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) 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/native/cmds/installd/
H A Dinstalld_constants.h94 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/frameworks/base/services/tests/servicestests/jni/
H A Dapf_jni.cpp27 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
179 gMethods, ARRAY_SIZE(gMethods));
/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.cpp25 #ifndef ARRAY_SIZE
26 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
258 (i < ARRAY_SIZE(sPcmFormatCompareTable)) && ((index1 == -1) || (index2 == -1));
310 audio_format_t bestFormat = sPcmFormatCompareTable[ARRAY_SIZE(sPcmFormatCompareTable) - 1];
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DSparseMappingTable.java49 public static final int ARRAY_SIZE = 4096; field in class:SparseMappingTable
112 * SparseMappingTable.ARRAY_SIZE.
134 array = new long[ARRAY_SIZE];
481 mLongs.add(new long[ARRAY_SIZE]);
490 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), count);
416 data.writeInt32(ARRAY_SIZE(serverId));
417 for (size_t i = 0; i < ARRAY_SIZE(serverId); i++) {
444 EXPECT_EQ(ARRAY_SIZE(serverId), count);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
H A DSoftMPEG4.cpp391 kH263ProfileLevels, ARRAY_SIZE(kH263ProfileLevels),
396 kM4VProfileLevels, ARRAY_SIZE(kM4VProfileLevels),
/frameworks/av/services/audioflinger/
H A DBufferProviders.cpp31 #ifndef ARRAY_SIZE
32 #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) macro
295 mIdxAry, ARRAY_SIZE(mIdxAry), outputChannelMask, inputChannelMask);
/frameworks/av/media/libstagefright/
H A DHevcUtils.cpp365 for (size_t i = 0; i < ARRAY_SIZE(kHevcNalUnitTypes); ++i) {
436 for (size_t i = 0; i < ARRAY_SIZE(kHevcNalUnitTypes); ++i) {

Completed in 368 milliseconds

12