Home
last modified time | relevance | path

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

1234

/hardware/libhardware/modules/camera/3_0/
DExampleCamera.cpp30 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
53 ARRAY_SIZE(android_control_ae_available_target_fps_ranges), in initStaticInfo()
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()
85 ARRAY_SIZE(android_lens_info_available_focal_lengths), in initStaticInfo()
91 ARRAY_SIZE(android_request_max_num_output_streams), in initStaticInfo()
105 ARRAY_SIZE(android_scaler_available_formats), in initStaticInfo()
[all …]
/hardware/libhardware/modules/usbcamera/
DUsbCamera.cpp32 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
57 ARRAY_SIZE(android_control_ae_available_target_fps_ranges), in initStaticInfo()
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()
89 ARRAY_SIZE(android_lens_info_available_focal_lengths), in initStaticInfo()
95 ARRAY_SIZE(android_request_max_num_output_streams), in initStaticInfo()
109 ARRAY_SIZE(android_scaler_available_formats), in initStaticInfo()
[all …]
/hardware/qcom/sm8150/thermal/
Dthermal_target.c111 .sens_cnt = ARRAY_SIZE(cpu_sensors_talos),
160 .sens_cnt = ARRAY_SIZE(cpu_sensors_sdmmagpie),
197 .sens_cnt = ARRAY_SIZE(cpu_sensors_sdmmagpie),
246 .sens_cnt = ARRAY_SIZE(cpu_sensors_trinket),
295 .sens_cnt = ARRAY_SIZE(cpu_sensors_bengal),
344 .sens_cnt = ARRAY_SIZE(cpu_sensors_msmnile),
374 .sens_cnt = ARRAY_SIZE(cpu_sensors_msmnile),
423 .sens_cnt = ARRAY_SIZE(cpu_sensors_660),
465 .sens_cnt = ARRAY_SIZE(cpu_sensors_630),
514 .sens_cnt = ARRAY_SIZE(cpu_sensors_8953),
[all …]
/hardware/google/pixel/pixelstats/test/mm/
DMmMetricsReporterTest.cpp25 #ifndef ARRAY_SIZE
26 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
51 ASSERT_EQ(ARRAY_SIZE(PixelMmMetricsPerHour_golden), in TEST()
52 ARRAY_SIZE(PixelMmMetricsPerHour_field_types)); in TEST()
81 EXPECT_EQ(values.size(), ARRAY_SIZE(PixelMmMetricsPerHour_field_types)); in TEST()
104 ASSERT_EQ(ARRAY_SIZE(PixelMmMetricsPerDay_golden), in TEST()
105 ARRAY_SIZE(PixelMmMetricsPerDay_field_types)); in TEST()
120 EXPECT_EQ(values.size(), ARRAY_SIZE(PixelMmMetricsPerDay_field_types)); in TEST()
123 EXPECT_LT(i, ARRAY_SIZE(PixelMmMetricsPerDay_field_types)); in TEST()
/hardware/google/aemu/base/
DArraySize_unittest.cpp26 EXPECT_EQ(100U, ARRAY_SIZE(array1)); in TEST()
30 EXPECT_EQ(200U, ARRAY_SIZE(array2)); in TEST()
34 EXPECT_EQ(15U, ARRAY_SIZE(array3)); in TEST()
39 static_assert(ARRAY_SIZE(arr) == 20U, in TEST()
48 static_assert(arraySize(arr) == ARRAY_SIZE(arr2), in TEST()
/hardware/google/gfxstream/guest/mesa/src/util/
Dbitset.h101 STATIC_ASSERT(ARRAY_SIZE(r) == ARRAY_SIZE(x)); \
102 STATIC_ASSERT(ARRAY_SIZE(r) == ARRAY_SIZE(y)); \
103 __bitset_and(r, x, y, ARRAY_SIZE(r)); \
108 STATIC_ASSERT(ARRAY_SIZE(r) == ARRAY_SIZE(x)); \
109 STATIC_ASSERT(ARRAY_SIZE(r) == ARRAY_SIZE(y)); \
110 __bitset_or(r, x, y, ARRAY_SIZE(r)); \
114 __bitset_not(x, ARRAY_SIZE(x))
118 assert(ARRAY_SIZE(r) == ARRAY_SIZE(x)); \
119 assert(ARRAY_SIZE(r) == ARRAY_SIZE(y)); \
120 __bitset_andnot(r, x, y, ARRAY_SIZE(r)); \
[all …]
Dbigmath.h64 _ubm_add_u32arr(dst, ARRAY_SIZE(dst), a, ARRAY_SIZE(a), b, ARRAY_SIZE(b))
110 _ubm_mul_u32arr(dst, ARRAY_SIZE(dst), a, ARRAY_SIZE(a), b, ARRAY_SIZE(b))
/hardware/google/pixel/vibrator/cs40l26/
DStats.h34 #ifndef ARRAY_SIZE
35 #define ARRAY_SIZE(x) (sizeof((x)) / sizeof((x)[0])) macro
76 return kWaveformLookup[(index < ARRAY_SIZE(kWaveformLookup)) ? index in waveformToString()
77 : ARRAY_SIZE(kWaveformLookup) - 1]; in waveformToString()
81 return kLatencyLookup[(index < ARRAY_SIZE(kLatencyLookup)) ? index in latencyToString()
82 : ARRAY_SIZE(kLatencyLookup) - 1]; in latencyToString()
86 return kErrorLookup[(index < ARRAY_SIZE(kErrorLookup)) ? index : ARRAY_SIZE(kErrorLookup) - 1]; in errorToString()
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Dxmlconfig.cpp74 driParseOptionInfo(&options, driconf, ARRAY_SIZE(driconf)); in TEST_F()
86 driParseOptionInfo(&options, driconf, ARRAY_SIZE(driconf)); in TEST_F()
97 driParseOptionInfo(&options, driconf, ARRAY_SIZE(driconf)); in TEST_F()
108 driParseOptionInfo(&options, driconf, ARRAY_SIZE(driconf)); in TEST_F()
121 driParseOptionInfo(&options, driconf, ARRAY_SIZE(driconf)); in TEST_F()
132 driParseOptionInfo(&options, driconf, ARRAY_SIZE(driconf)); in TEST_F()
144 driParseOptionInfo(&options, driconf, ARRAY_SIZE(driconf)); in TEST_F()
163 driParseOptionInfo(&options, driconf, ARRAY_SIZE(driconf)); in TEST_F()
205 driParseOptionInfo(&options, driconf, ARRAY_SIZE(driconf)); in drirc_init()
Drb_tree_test.cpp49 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*a)) macro
210 struct rb_test_node nodes[ARRAY_SIZE(test_numbers)]; in TEST()
215 for (unsigned i = 0; i < ARRAY_SIZE(test_numbers); i++) { in TEST()
223 for (unsigned i = 0; i < ARRAY_SIZE(test_numbers); i++) { in TEST()
226 validate_tree_order(&tree, ARRAY_SIZE(test_numbers) - i - 1); in TEST()
227 validate_search(&tree, i + 1, ARRAY_SIZE(test_numbers) - 1); in TEST()
240 for (unsigned i = 0; i < ARRAY_SIZE(nodes); i++) { in TEST()
260 for (i = 0; i < ARRAY_SIZE(nodes) / 3; i++) { in TEST()
266 for (/* empty */; i < 2 * ARRAY_SIZE(nodes) / 3; i++) { in TEST()
271 for (/* empty */; i < ARRAY_SIZE(nodes); i++) { in TEST()
Droundeven_test.cpp53 for (unsigned i = 0; i < ARRAY_SIZE(float_data); i++) { in TEST()
61 for (unsigned i = 0; i < ARRAY_SIZE(float_data); i++) { in TEST()
89 for (unsigned i = 0; i < ARRAY_SIZE(double_data); i++) { in TEST()
97 for (unsigned i = 0; i < ARRAY_SIZE(double_data); i++) { in TEST()
/hardware/google/pixel/vibrator/cs40l25/
DStats.h33 #ifndef ARRAY_SIZE
34 #define ARRAY_SIZE(x) (sizeof((x)) / sizeof((x)[0])) macro
75 return kWaveformLookup[(index < ARRAY_SIZE(kWaveformLookup)) ? index in waveformToString()
76 : ARRAY_SIZE(kWaveformLookup) - 1]; in waveformToString()
80 return kLatencyLookup[(index < ARRAY_SIZE(kLatencyLookup)) ? index in latencyToString()
81 : ARRAY_SIZE(kLatencyLookup) - 1]; in latencyToString()
85 return kErrorLookup[(index < ARRAY_SIZE(kErrorLookup)) ? index : ARRAY_SIZE(kErrorLookup) - 1]; in errorToString()
/hardware/google/aemu/base/include/aemu/base/
DArraySize.h25 # define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro
26 # define STRING_LITERAL_LENGTH(str) (ARRAY_SIZE(str) - 1))
54 #define ARRAY_SIZE(arr) (::android::base::arraySize(arr)) macro
/hardware/google/graphics/common/libmemtrack/
Dion.cpp28 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(ion_record_templates)); in ion_memtrack_get_memory()
53 *num_records = ARRAY_SIZE(ion_record_templates); in ion_memtrack_get_memory()
/hardware/qcom/audio/hal/msm8974/
Dhw_info.c36 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
76 hw_info->num_snd_devices = ARRAY_SIZE(tasha_fluid_variant_devices); in update_hardware_info_8996()
79 hw_info->num_snd_devices = ARRAY_SIZE(tasha_liquid_variant_devices); in update_hardware_info_8996()
82 hw_info->num_snd_devices = ARRAY_SIZE(tasha_db_variant_devices); in update_hardware_info_8996()
/hardware/qcom/sm7250/display/libmemtrack/
Dkgsl.c27 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(record_templates)); in kgsl_memtrack_get_memory()
54 *num_records = ARRAY_SIZE(record_templates); in kgsl_memtrack_get_memory()
/hardware/qcom/sm8150/display/libmemtrack/
Dkgsl.c27 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(record_templates)); in kgsl_memtrack_get_memory()
54 *num_records = ARRAY_SIZE(record_templates); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8960/libmemtrack/
Dkgsl.c27 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(record_templates)); in kgsl_memtrack_get_memory()
55 *num_records = ARRAY_SIZE(record_templates); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8084/libmemtrack/
Dkgsl.c27 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(record_templates)); in kgsl_memtrack_get_memory()
57 *num_records = ARRAY_SIZE(record_templates); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8994/libmemtrack/
Dkgsl.c27 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(record_templates)); in kgsl_memtrack_get_memory()
57 *num_records = ARRAY_SIZE(record_templates); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8996/libmemtrack/
Dkgsl.c27 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(record_templates)); in kgsl_memtrack_get_memory()
55 *num_records = ARRAY_SIZE(record_templates); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8226/libmemtrack/
Dkgsl.c27 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(record_templates)); in kgsl_memtrack_get_memory()
57 *num_records = ARRAY_SIZE(record_templates); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8909w_3100/libmemtrack/
Dkgsl.c27 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(record_templates)); in kgsl_memtrack_get_memory()
54 *num_records = ARRAY_SIZE(record_templates); in kgsl_memtrack_get_memory()
/hardware/libhardware/modules/consumerir/
Dconsumerir.c29 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
58 return ARRAY_SIZE(consumerir_freqs); in consumerir_get_num_carrier_freqs()
64 size_t to_copy = ARRAY_SIZE(consumerir_freqs); in consumerir_get_carrier_freqs()
/hardware/qcom/display/msm8998/libmemtrack/
Dkgsl.c27 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
47 size_t allocated_records = min(*num_records, ARRAY_SIZE(record_templates)); in kgsl_memtrack_get_memory()
54 *num_records = ARRAY_SIZE(record_templates); in kgsl_memtrack_get_memory()

1234