Searched refs:ARRAY_SIZE (Results 1 - 25 of 46) 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/foundation/
H A DABase.h21 #ifndef ARRAY_SIZE
22 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/frameworks/av/media/libstagefright/include/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/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/tests/java_api/RsTest/src/com/android/rs/test/
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.
68 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE);
78 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.java26 private static final int ARRAY_SIZE = 256; field in class:UT_script_group2_pointwise
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);
67 int[] a = new int[ARRAY_SIZE * 4];
79 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
40 float[] array = new float[ARRAY_SIZE];
42 for (int i = 0; i < ARRAY_SIZE; i++) {
46 Allocation input = Allocation.createSized(pRS, Element.F32(pRS), ARRAY_SIZE);
56 final Type T = Type.createX(pRS, Element.F64(pRS), ARRAY_SIZE);
75 double[] a = new double[ARRAY_SIZE];
86 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
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);
74 int[] a = new int[ARRAY_SIZE * 4];
87 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/services/radio/
H A DRadioRegions.h55 #ifndef ARRAY_SIZE
56 #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/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.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))

Completed in 7364 milliseconds

12