Home
last modified time | relevance | path

Searched refs:sampled_item_and_weight (Results 1 – 6 of 6) sorted by relevance

/aosp12/packages/modules/StatsD/lib/libkll/tests/
H A Dsampler_test.cpp49 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F()
54 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F()
73 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F()
95 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F()
127 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F()
150 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F()
169 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F()
219 EXPECT_THAT(sampler.sampled_item_and_weight(), in TEST_F()
226 EXPECT_THAT(sampler.sampled_item_and_weight(), in TEST_F()
234 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F()
[all …]
H A Dcompactor_stack_test.cpp73 if (sampler.sampled_item_and_weight().has_value()) { in TEST_P()
74 EXPECT_EQ(sampler.sampled_item_and_weight().value().second, in TEST_P()
101 if (sampler.sampled_item_and_weight().has_value()) { in TEST_P()
102 EXPECT_EQ(sampler.sampled_item_and_weight().value().second, in TEST_P()
145 if (compactor_stack.sampled_item_and_weight().has_value()) { in TEST_F()
169 EXPECT_FALSE(compactor_stack.sampled_item_and_weight().has_value()); in TEST_F()
205 if (compactor_stack.sampled_item_and_weight().has_value()) { in TEST_P()
234 if (!compactor_stack.sampled_item_and_weight().has_value()) { in TEST_P()
242 if (compactor_stack.sampled_item_and_weight().has_value()) { in TEST_P()
303 (compactor_stack.sampled_item_and_weight().has_value()) in TEST_P()
[all …]
/aosp12/packages/modules/StatsD/lib/libkll/
H A Dkll.cpp104 const auto& sampled_item_and_weight = compactor_stack_.sampled_item_and_weight(); in SerializeToProto() local
105 if (sampled_item_and_weight.has_value()) { in SerializeToProto()
107 sampled_item_and_weight->first, in SerializeToProto()
109 quantile_state->mutable_sampler()->set_sampled_weight(sampled_item_and_weight->second); in SerializeToProto()
H A Dcompactor_stack.cpp186 ((sampler_->sampled_item_and_weight().has_value()) ? 1 : 0); in num_stored_items()
190 std::optional<std::pair<const int64_t, int64_t>> CompactorStack::sampled_item_and_weight() const { in sampled_item_and_weight() function in dist_proc::aggregation::internal::CompactorStack
192 return sampler_->sampled_item_and_weight(); in sampled_item_and_weight()
/aosp12/packages/modules/StatsD/lib/libkll/include/
H A Dsampler.h56 std::optional<std::pair<int64_t, int>> sampled_item_and_weight() const { in sampled_item_and_weight() function
H A Dcompactor_stack.h65 std::optional<std::pair<const int64_t, int64_t>> sampled_item_and_weight() const;