Home
last modified time | relevance | path

Searched refs:ARRAY_SIZE (Results 1 – 25 of 181) sorted by relevance

12345678

/aosp12/art/test/655-checker-simd-arm-opt/src/
H A DMain.java68 for (int i = 0; i < ARRAY_SIZE; i++) { in encodableConstants()
71 for (int i = 0; i < ARRAY_SIZE; i++) { in encodableConstants()
74 for (int i = 0; i < ARRAY_SIZE; i++) { in encodableConstants()
77 for (int i = 0; i < ARRAY_SIZE; i++) { in encodableConstants()
111 byte[] b = new byte[ARRAY_SIZE]; in main()
112 short[] s = new short[ARRAY_SIZE]; in main()
113 char[] c = new char[ARRAY_SIZE]; in main()
114 int[] a = new int[ARRAY_SIZE]; in main()
115 long[] l = new long[ARRAY_SIZE]; in main()
116 float[] f = new float[ARRAY_SIZE]; in main()
[all …]
/aosp12/hardware/libhardware/modules/camera/3_0/
H A DExampleCamera.cpp30 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
58 ARRAY_SIZE(android_control_ae_compensation_range), in initStaticInfo()
63 ARRAY_SIZE(android_control_ae_compensation_step), in initStaticInfo()
68 ARRAY_SIZE(android_control_max_regions), in initStaticInfo()
74 ARRAY_SIZE(android_jpeg_available_thumbnail_sizes), in initStaticInfo()
79 ARRAY_SIZE(android_jpeg_max_size), in initStaticInfo()
105 ARRAY_SIZE(android_scaler_available_formats), in initStaticInfo()
115 ARRAY_SIZE(android_scaler_available_jpeg_sizes), in initStaticInfo()
140 ARRAY_SIZE(android_scaler_available_raw_sizes), in initStaticInfo()
163 ARRAY_SIZE(android_sensor_info_physical_size), in initStaticInfo()
[all …]
/aosp12/hardware/libhardware/modules/usbcamera/
H A DUsbCamera.cpp32 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
62 ARRAY_SIZE(android_control_ae_compensation_range), in initStaticInfo()
67 ARRAY_SIZE(android_control_ae_compensation_step), in initStaticInfo()
72 ARRAY_SIZE(android_control_max_regions), in initStaticInfo()
78 ARRAY_SIZE(android_jpeg_available_thumbnail_sizes), in initStaticInfo()
83 ARRAY_SIZE(android_jpeg_max_size), in initStaticInfo()
109 ARRAY_SIZE(android_scaler_available_formats), in initStaticInfo()
119 ARRAY_SIZE(android_scaler_available_jpeg_sizes), in initStaticInfo()
144 ARRAY_SIZE(android_scaler_available_raw_sizes), in initStaticInfo()
167 ARRAY_SIZE(android_sensor_info_physical_size), in initStaticInfo()
[all …]
/aosp12/hardware/qcom/sm8150/thermal/
H A Dthermal_target.c111 .sens_cnt = ARRAY_SIZE(cpu_sensors_talos),
246 .sens_cnt = ARRAY_SIZE(cpu_sensors_trinket),
295 .sens_cnt = ARRAY_SIZE(cpu_sensors_bengal),
423 .sens_cnt = ARRAY_SIZE(cpu_sensors_660),
465 .sens_cnt = ARRAY_SIZE(cpu_sensors_630),
514 .sens_cnt = ARRAY_SIZE(cpu_sensors_8953),
564 .sens_cnt = ARRAY_SIZE(cpu_sensors_710),
613 .sens_cnt = ARRAY_SIZE(cpu_sensors_632),
662 .sens_cnt = ARRAY_SIZE(cpu_sensors_439),
707 .sens_cnt = ARRAY_SIZE(cpu_sensors_8917),
[all …]
/aosp12/hardware/qcom/sdm845/thermal/
H A Dthermal_target.c109 .sens_cnt = ARRAY_SIZE(cpu_sensors_talos),
158 .sens_cnt = ARRAY_SIZE(cpu_sensors_sdmmagpie),
244 .sens_cnt = ARRAY_SIZE(cpu_sensors_trinket),
293 .sens_cnt = ARRAY_SIZE(cpu_sensors_msmnile),
342 .sens_cnt = ARRAY_SIZE(cpu_sensors_660),
384 .sens_cnt = ARRAY_SIZE(cpu_sensors_630),
433 .sens_cnt = ARRAY_SIZE(cpu_sensors_8953),
483 .sens_cnt = ARRAY_SIZE(cpu_sensors_710),
532 .sens_cnt = ARRAY_SIZE(cpu_sensors_632),
581 .sens_cnt = ARRAY_SIZE(cpu_sensors_439),
[all …]
/aosp12/system/chre/util/tests/
H A Dbuffer_test.cc38 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST()
41 buffer.wrap(buf, ARRAY_SIZE(buf)); in TEST()
43 EXPECT_EQ(buffer.size(), ARRAY_SIZE(buf)); in TEST()
48 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST()
51 EXPECT_TRUE(buffer.copy_array(buf, ARRAY_SIZE(buf))); in TEST()
52 EXPECT_EQ(buffer.size(), ARRAY_SIZE(buf)); in TEST()
54 for (size_t i = 0; i < ARRAY_SIZE(buf); i++) { in TEST()
68 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST()
71 buffer.wrap(buf, ARRAY_SIZE(buf)); in TEST()
79 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST()
[all …]
/aosp12/art/test/011-array-copy/src/
H A DMain.java50 static final int ARRAY_SIZE = 8; field in Main
53 for (int i = 0; i < ARRAY_SIZE; i++) { in initByteArray()
58 for (int i = 0; i < ARRAY_SIZE; i++) { in initShortArray()
63 for (int i = 0; i < ARRAY_SIZE; i++) { in initIntArray()
68 for (int i = 0; i < ARRAY_SIZE; i++) { in initLongArray()
73 for (int i = 0; i < ARRAY_SIZE; i++) { in initCharArray()
83 byte[] byteArray = new byte[ARRAY_SIZE]; in makeCopies()
85 int[] intArray = new int[ARRAY_SIZE]; in makeCopies()
86 long[] longArray = new long[ARRAY_SIZE]; in makeCopies()
101 for (int i = 0; i < ARRAY_SIZE; i++) { in makeCopies()
[all …]
/aosp12/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 UT_script_group2_gatherscatter
37 mArray = new int[ARRAY_SIZE * 4]; in initializeGlobals()
39 for (int i = 0; i < ARRAY_SIZE; i++) { in initializeGlobals()
67 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
77 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in run()
110 a[i] != ARRAY_SIZE * (ARRAY_SIZE - 1) * 7 / 2 + i * ARRAY_SIZE) { in run()
112 (ARRAY_SIZE * (ARRAY_SIZE - 1) * 7 / 2 + i * ARRAY_SIZE)); in run()
H A DUT_script_group2_pointwise.java26 private static final int ARRAY_SIZE = 256; field in UT_script_group2_pointwise
39 int[] array = new int[ARRAY_SIZE * 4]; in run()
41 for (int i = 0; i < ARRAY_SIZE * 4; i++) { in run()
45 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
52 Type T = Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
66 int[] a = new int[ARRAY_SIZE * 4]; in run()
78 for (int i = 0; i < ARRAY_SIZE * 4; i++) { in run()
H A DUT_script_group2_float.java26 private static final int ARRAY_SIZE = 8; field in UT_script_group2_float
39 float[] array = new float[ARRAY_SIZE]; in run()
41 for (int i = 0; i < ARRAY_SIZE; i++) { in run()
45 Allocation input = Allocation.createSized(pRS, Element.F32(pRS), ARRAY_SIZE); in run()
55 final Type T = Type.createX(pRS, Element.F64(pRS), ARRAY_SIZE); in run()
74 double[] a = new double[ARRAY_SIZE]; in run()
85 for (int i = 0; i < ARRAY_SIZE; i++) { in run()
H A DUT_script_group2_nochain.java26 private static final int ARRAY_SIZE = 256; field in UT_script_group2_nochain
40 int[] array = new int[ARRAY_SIZE * 4]; in run()
42 for (int i = 0; i < ARRAY_SIZE * 4; i++) { in run()
46 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
53 Type T = Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
73 int[] a = new int[ARRAY_SIZE * 4]; in run()
86 for (int i = 0; i < ARRAY_SIZE * 4; i++) { in run()
/aosp12/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 UT_script_group2_gatherscatter
39 mArray = new int[ARRAY_SIZE * 4]; in initializeGlobals()
41 for (int i = 0; i < ARRAY_SIZE; i++) { in initializeGlobals()
69 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
79 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in run()
112 a[i] != ARRAY_SIZE * (ARRAY_SIZE - 1) * 7 / 2 + i * ARRAY_SIZE) { in run()
114 (ARRAY_SIZE * (ARRAY_SIZE - 1) * 7 / 2 + i * ARRAY_SIZE)); in run()
H A DUT_script_group2_pointwise.java28 private static final int ARRAY_SIZE = 256; field in UT_script_group2_pointwise
41 int[] array = new int[ARRAY_SIZE * 4]; in run()
43 for (int i = 0; i < ARRAY_SIZE * 4; i++) { in run()
47 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
54 Type T = Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
68 int[] a = new int[ARRAY_SIZE * 4]; in run()
80 for (int i = 0; i < ARRAY_SIZE * 4; i++) { in run()
H A DUT_script_group2_float.java28 private static final int ARRAY_SIZE = 8; field in UT_script_group2_float
41 float[] array = new float[ARRAY_SIZE]; in run()
43 for (int i = 0; i < ARRAY_SIZE; i++) { in run()
47 Allocation input = Allocation.createSized(pRS, Element.F32(pRS), ARRAY_SIZE); in run()
57 final Type T = Type.createX(pRS, Element.F64(pRS), ARRAY_SIZE); in run()
76 double[] a = new double[ARRAY_SIZE]; in run()
87 for (int i = 0; i < ARRAY_SIZE; i++) { in run()
H A DUT_script_group2_nochain.java28 private static final int ARRAY_SIZE = 256; field in UT_script_group2_nochain
42 int[] array = new int[ARRAY_SIZE * 4]; in run()
44 for (int i = 0; i < ARRAY_SIZE * 4; i++) { in run()
48 Allocation input = Allocation.createSized(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
55 Type T = Type.createX(pRS, Element.I32_4(pRS), ARRAY_SIZE); in run()
75 int[] a = new int[ARRAY_SIZE * 4]; in run()
88 for (int i = 0; i < ARRAY_SIZE * 4; i++) { in run()
/aosp12/system/bt/service/test/
H A Dsettings_unittest.cc49 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F()
56 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F()
62 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F()
68 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F()
75 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F()
83 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F()
90 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F()
97 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F()
/aosp12/frameworks/rs/tests/lldb/java/ScriptGroup/src/com/android/rs/scriptgroup/
H A DMainActivity.java26 private static final int ARRAY_SIZE = 8; field in MainActivity
40 int[] array = new int[ARRAY_SIZE]; in onCreate()
41 for (int i = 0; i < ARRAY_SIZE; i++) { in onCreate()
44 Allocation input = Allocation.createSized(pRS, Element.I32(pRS), ARRAY_SIZE); in onCreate()
52 script.getKernelID_foo(), Type.createX(pRS, Element.I32(pRS), ARRAY_SIZE), unbound); in onCreate()
55 Type.createX(pRS, Element.I32(pRS), ARRAY_SIZE), c0.getReturn()); in onCreate()
59 int[] a = new int[ARRAY_SIZE]; in onCreate()
/aosp12/system/extras/tests/pagingtest/
H A Dthrashing_test.c34 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1); in thrashing_test()
36 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test()
43 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test()
60 for (size_t j = 0; j < ARRAY_SIZE(fds); j++) { in thrashing_test()
73 (filesize * ARRAY_SIZE(fds) * test_runs * USEC_PER_SEC) / in thrashing_test()
79 for (size_t i = 0; i < ARRAY_SIZE(bufs) && bufs[i] != NULL; i++) { in thrashing_test()
83 for (size_t i = 0; i < ARRAY_SIZE(fds) && fds[i] >= 0; i++) { in thrashing_test()
/aosp12/art/test/550-checker-multiply-accumulate/src/
H A DMain.java490 public static final int ARRAY_SIZE = 1000; field in Main
493 for (int i = 0; i < ARRAY_SIZE; i++) { in initArray()
499 for (int i = 0; i < ARRAY_SIZE; i++) { in initArrayLong()
506 for (int i = 0; i < ARRAY_SIZE; i++) { in calcArraySum()
514 for (int i = 0; i < ARRAY_SIZE; i++) { in calcArraySumLong()
521 int[] array1 = new int[ARRAY_SIZE]; in testSimdMultiplyAccumulate()
522 int[] array2 = new int[ARRAY_SIZE]; in testSimdMultiplyAccumulate()
523 long[] array3 = new long[ARRAY_SIZE]; in testSimdMultiplyAccumulate()
524 long[] array4 = new long[ARRAY_SIZE]; in testSimdMultiplyAccumulate()
/aosp12/frameworks/av/media/libaudioprocessing/tests/
H A Dresampler_tests.cpp326 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
343 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
356 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
369 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
394 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
402 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
422 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
430 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
450 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
458 for (size_t i = 0; i < ARRAY_SIZE(kQualityArray); ++i) { in TEST()
[all …]
/aosp12/frameworks/av/media/libstagefright/bqhelper/tests/
H A DFrameDropper_test.cpp118 RunTest(testFrames20Fps, ARRAY_SIZE(testFrames20Fps)); in TEST_F()
122 RunTest(testFrames30Fps, ARRAY_SIZE(testFrames30Fps)); in TEST_F()
126 RunTest(testFrames40Fps, ARRAY_SIZE(testFrames40Fps)); in TEST_F()
130 RunTest(testFrames60Fps, ARRAY_SIZE(testFrames60Fps)); in TEST_F()
134 RunTest(testFramesVariableFps, ARRAY_SIZE(testFramesVariableFps)); in TEST_F()
/aosp12/system/chre/platform/slpi/see/
H A Dsee_cal_helper.cc32 if (index < ARRAY_SIZE(mCalInfo)) { in applyCalibration()
58 if (index < ARRAY_SIZE(mCalInfo)) { in getBias()
81 if (index < ARRAY_SIZE(mCalInfo)) { in areCalUpdatesEnabled()
92 if (index >= ARRAY_SIZE(mCalInfo)) { in configureCalUpdates()
107 if (calIndex < ARRAY_SIZE(mCalInfo) && mCalInfo[calIndex].suid.has_value()) { in getCalSuidFromSensorType()
117 for (size_t i = 0; i < ARRAY_SIZE(mCalInfo); i++) { in findCalibrationSensors()
136 if (index < ARRAY_SIZE(mCalInfo)) { in updateCalibration()
223 for (; i < ARRAY_SIZE(mCalInfo); i++) { in getCalIndexFromSuid()
/aosp12/system/bt/tools/hci/
H A Dmain.c82 if (argv[0][0] == 't') packet[ARRAY_SIZE(packet) - 1] = 0x03; in set_discoverable()
84 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_discoverable()
127 if (argv[0][0] == 't') packet[ARRAY_SIZE(packet) - 1] = 0x01; in set_pcm_loopback()
129 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_pcm_loopback()
154 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_sco_route()
205 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in find_command()
213 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in usage()
/aosp12/system/bt/osi/test/
H A Dlist_test.cc74 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
85 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
87 EXPECT_EQ(list_back(list), &x[ARRAY_SIZE(x) - 1]); in TEST_F()
96 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
109 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
123 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_prepend(list, &x[i]); in TEST_F()
125 int i = ARRAY_SIZE(x) - 1; in TEST_F()
167 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
184 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
/aosp12/art/test/510-checker-try-catch/src/
H A DMain.java133 public final static int ARRAY_SIZE = 128; field in Main
136 int[] a = new int[ARRAY_SIZE]; in testBoundsCheckAndCatch()
137 int[] b = new int[ARRAY_SIZE]; in testBoundsCheckAndCatch()
139 int index = ARRAY_SIZE - 2; in testBoundsCheckAndCatch()
143 index = ARRAY_SIZE - 1; in testBoundsCheckAndCatch()

12345678