Home
last modified time | relevance | path

Searched refs:ARRAY_COUNT (Results 1 – 15 of 15) sorted by relevance

/external/adhd/cras/src/tests/
Ddsp_ini_unittest.cc41 EXPECT_EQ(0, ARRAY_COUNT(&ini->plugins)); in TEST_F()
42 EXPECT_EQ(0, ARRAY_COUNT(&ini->flows)); in TEST_F()
63 EXPECT_EQ(1, ARRAY_COUNT(&ini->plugins)); in TEST_F()
64 EXPECT_EQ(0, ARRAY_COUNT(&ini->flows)); in TEST_F()
71 EXPECT_EQ(0, ARRAY_COUNT(&plugin->ports)); in TEST_F()
88 EXPECT_EQ(2, ARRAY_COUNT(&ini->plugins)); in TEST_F()
89 EXPECT_EQ(0, ARRAY_COUNT(&ini->flows)); in TEST_F()
103 EXPECT_EQ(1, ARRAY_COUNT(&ini->plugins)); in TEST_F()
104 EXPECT_EQ(0, ARRAY_COUNT(&ini->flows)); in TEST_F()
106 EXPECT_EQ(1, ARRAY_COUNT(&plugin->ports)); in TEST_F()
[all …]
Darray_unittest.cc27 EXPECT_EQ(2, ARRAY_COUNT(&a)); in TEST()
41 EXPECT_EQ(0, ARRAY_COUNT(&a)); in TEST()
55 EXPECT_EQ(2, ARRAY_COUNT(&a)); in TEST()
64 EXPECT_EQ(0, ARRAY_COUNT(&a)); in TEST()
Dexpr_unittest.cc99 EXPECT_EQ(0, ARRAY_COUNT(&expr->u.children)); in TEST()
109 EXPECT_EQ(2, ARRAY_COUNT(&expr->u.children)); in TEST()
119 ASSERT_EQ(2, ARRAY_COUNT(&expr->u.children)); in TEST()
123 ASSERT_EQ(2, ARRAY_COUNT(&expr1->u.children)); in TEST()
Dcras_dsp_pipeline_unittest.cc146 data->nr_ports = ARRAY_COUNT(&plugin->ports); in create_mock_module()
/external/adhd/cras/src/server/
Dcras_dsp_pipeline.c431 n = ARRAY_COUNT(&ini->plugins); in cras_dsp_pipeline_create()
455 ARRAY_COUNT(&pipeline->source_instance->output_audio_ports); in cras_dsp_pipeline_create()
457 ARRAY_COUNT(&pipeline->sink_instance->input_audio_ports); in cras_dsp_pipeline_create()
514 int in = ARRAY_COUNT(&instance->input_audio_ports); in allocate_buffers()
515 int out = ARRAY_COUNT(&instance->output_audio_ports); in allocate_buffers()
930 int n = ARRAY_COUNT(audio_ports); in dump_audio_ports()
948 int n = ARRAY_COUNT(control_ports); in dump_control_ports()
952 dumpf(d, " %s (%d) =\n", name, ARRAY_COUNT(control_ports)); in dump_control_ports()
989 dumpf(d, " instances (%d):\n", ARRAY_COUNT(&pipeline->instances)); in cras_dsp_pipeline_dump()
Dcras_dsp_ini.c89 i = ARRAY_COUNT(&ini->flows); in lookup_or_add_flow()
235 i = ARRAY_COUNT(&ini->flows); in add_new_flow()
274 if ((sink == NULL) || ARRAY_COUNT(&sink->ports) != 2) in insert_swap_lr_plugin()
468 dumpf(d, "number of plugins = %d\n", ARRAY_COUNT(&ini->plugins)); in cras_dsp_ini_dump()
484 dumpf(d, "number of flows = %d\n", ARRAY_COUNT(&ini->flows)); in cras_dsp_ini_dump()
Dcras_expr.c154 if (ARRAY_COUNT(operands) != 2) { in function_not()
171 int n = ARRAY_COUNT(operands); in function_and()
600 if (ARRAY_COUNT(&values) > 0) { in cras_expr_expression_eval()
Dcras_dsp_mod_ladspa.c132 if (desc->PortCount != ARRAY_COUNT(&plugin->ports)) { in verify_plugin_descriptor()
/external/skqp/third_party/skcms/
Dskcms_internal.h22 #define ARRAY_COUNT(arr) (int)(sizeof((arr)) / sizeof(*(arr))) macro
Dskcms.cc438 if (a2b->output_channels != ARRAY_COUNT(a2b->output_curves)) { in read_mft_common()
442 if (a2b->input_channels < 1 || a2b->input_channels > ARRAY_COUNT(a2b->input_curves)) { in read_mft_common()
609 if (a2b->output_channels != ARRAY_COUNT(a2b->output_curves)) { in read_tag_mab()
613 if (a2b->input_channels > ARRAY_COUNT(a2b->input_curves)) { in read_tag_mab()
804 for (int i = 0; i < ARRAY_COUNT(curves); i++) { in read_a2b()
965 for (int i = 0; i < ARRAY_COUNT(sigs); i++) { in skcms_Parse()
1683 for (int t = 0; t < ARRAY_COUNT(kTolerances); t++) { in skcms_ApproximateCurve()
/external/skia/third_party/skcms/
Dskcms_internal.h22 #define ARRAY_COUNT(arr) (int)(sizeof((arr)) / sizeof(*(arr))) macro
Dskcms.cc613 if (a2b->output_channels != ARRAY_COUNT(a2b->output_curves)) { in read_mft_common()
617 if (a2b->input_channels < 1 || a2b->input_channels > ARRAY_COUNT(a2b->input_curves)) { in read_mft_common()
640 if (b2a->input_channels != ARRAY_COUNT(b2a->input_curves)) { in read_mft_common()
643 if (b2a->output_channels < 3 || b2a->output_channels > ARRAY_COUNT(b2a->output_curves)) { in read_mft_common()
813 if (a2b->output_channels != ARRAY_COUNT(a2b->output_curves)) { in read_tag_mab()
817 if (a2b->input_channels > ARRAY_COUNT(a2b->input_curves)) { in read_tag_mab()
940 if (b2a->input_channels != ARRAY_COUNT(b2a->input_curves)) { in read_tag_mba()
943 if (b2a->output_channels < 3 || b2a->output_channels > ARRAY_COUNT(b2a->output_curves)) { in read_tag_mba()
2167 for (int t = 0; t < ARRAY_COUNT(kTolerances); t++) { in skcms_ApproximateCurve()
/external/adhd/cras/src/common/
Darray.h81 #define ARRAY_COUNT(a) ((a)->count) macro
/external/vboot_reference/cgpt/
Dcgpt_common.c658 for (i = 0; i < ARRAY_COUNT(supported_types); ++i) { in ResolveType()
669 for (i = 0; i < ARRAY_COUNT(supported_types); ++i) { in SupportedType()
681 for (i = 0; i < ARRAY_COUNT(supported_types); ++i) { in PrintTypes()
811 if (errnum < 0 || errnum >= ARRAY_COUNT(error_string)) in GptError()
Dcgpt.h199 #define ARRAY_COUNT(array) (sizeof(array)/sizeof((array)[0])) macro