Home
last modified time | relevance | path

Searched refs:aggregator_state (Results 1 – 2 of 2) sorted by relevance

/packages/modules/StatsD/lib/libkll/tests/
Dkll_test.cpp41 AggregatorStateProto aggregator_state = aggregator->SerializeToProto(); in TEST() local
42 ASSERT_TRUE(aggregator_state.has_num_values()); in TEST()
43 EXPECT_EQ(aggregator_state.num_values(), 50); in TEST()
44 EXPECT_EQ(aggregator_state.type(), zetasketch::android::KLL_QUANTILES); in TEST()
45 EXPECT_EQ(aggregator_state.type(), 113); in TEST()
46 EXPECT_EQ(aggregator_state.value_type(), zetasketch::android::DefaultOpsType::INT64); in TEST()
47 EXPECT_EQ(aggregator_state.value_type(), 4); in TEST()
57 AggregatorStateProto aggregator_state = aggregator->SerializeToProto(); in TEST() local
58 EXPECT_EQ(aggregator_state.num_values(), 10); in TEST()
60 EXPECT_EQ(aggregator_state.type(), zetasketch::android::KLL_QUANTILES); in TEST()
[all …]
/packages/modules/StatsD/lib/libkll/
Dkll.cpp65 AggregatorStateProto aggregator_state; in SerializeToProto() local
67 aggregator_state.set_type(zetasketch::android::KLL_QUANTILES); in SerializeToProto()
68 aggregator_state.set_num_values(num_values_); in SerializeToProto()
69 aggregator_state.set_value_type(zetasketch::android::DefaultOpsType::INT64); in SerializeToProto()
72 aggregator_state.MutableExtension(zetasketch::android::kll_quantiles_state); in SerializeToProto()
78 return aggregator_state; in SerializeToProto()
114 return aggregator_state; in SerializeToProto()