Lines Matching refs:FieldTrial
59 FieldTrial::Probability GetGroupBoundaryValue( in GetGroupBoundaryValue()
60 FieldTrial::Probability divisor, in GetGroupBoundaryValue()
70 const FieldTrial::Probability result = in GetGroupBoundaryValue()
71 static_cast<FieldTrial::Probability>(divisor * entropy_value + kEpsilon); in GetGroupBoundaryValue()
80 std::vector<FieldTrial::State>* entries) { in ParseFieldTrialsString()
95 FieldTrial::State entry; in ParseFieldTrialsString()
118 const int FieldTrial::kNotFinalized = -1;
119 const int FieldTrial::kDefaultGroupNumber = 0;
120 bool FieldTrial::enable_benchmarking_ = false;
127 FieldTrial::EntropyProvider::~EntropyProvider() { in ~EntropyProvider()
130 FieldTrial::State::State() : activated(false) {} in State()
132 FieldTrial::State::State(const State& other) = default;
134 FieldTrial::State::~State() {} in ~State()
136 void FieldTrial::Disable() { in Disable()
151 int FieldTrial::AppendGroup(const std::string& name, in AppendGroup()
186 int FieldTrial::group() { in group()
193 const std::string& FieldTrial::group_name() { in group_name()
200 const std::string& FieldTrial::GetGroupNameWithoutActivation() { in GetGroupNameWithoutActivation()
205 void FieldTrial::SetForced() { in SetForced()
217 void FieldTrial::EnableBenchmarking() { in EnableBenchmarking()
223 FieldTrial* FieldTrial::CreateSimulatedFieldTrial( in CreateSimulatedFieldTrial()
228 return new FieldTrial(trial_name, total_probability, default_group_name, in CreateSimulatedFieldTrial()
232 FieldTrial::FieldTrial(const std::string& trial_name, in FieldTrial() function in base::FieldTrial
252 FieldTrial::~FieldTrial() {} in ~FieldTrial()
254 void FieldTrial::SetTrialRegistered() { in SetTrialRegistered()
260 void FieldTrial::SetGroupChoice(const std::string& group_name, int number) { in SetGroupChoice()
269 void FieldTrial::FinalizeGroupChoice() { in FinalizeGroupChoice()
279 bool FieldTrial::GetActiveGroup(ActiveGroup* active_group) const { in GetActiveGroup()
288 bool FieldTrial::GetState(State* field_trial_state) { in GetState()
311 const FieldTrial::EntropyProvider* entropy_provider) in FieldTrialList()
337 FieldTrial* FieldTrialList::FactoryGetFieldTrial( in FactoryGetFieldTrial()
339 FieldTrial::Probability total_probability, in FactoryGetFieldTrial()
344 FieldTrial::RandomizationType randomization_type, in FactoryGetFieldTrial()
352 FieldTrial* FieldTrialList::FactoryGetFieldTrialWithRandomizationSeed( in FactoryGetFieldTrialWithRandomizationSeed()
354 FieldTrial::Probability total_probability, in FactoryGetFieldTrialWithRandomizationSeed()
359 FieldTrial::RandomizationType randomization_type, in FactoryGetFieldTrialWithRandomizationSeed()
362 const FieldTrial::EntropyProvider* override_entropy_provider) { in FactoryGetFieldTrialWithRandomizationSeed()
364 *default_group_number = FieldTrial::kDefaultGroupNumber; in FactoryGetFieldTrialWithRandomizationSeed()
366 FieldTrial* existing_trial = Find(trial_name); in FactoryGetFieldTrialWithRandomizationSeed()
384 kNonConflictingGroupNumber != FieldTrial::kDefaultGroupNumber, in FactoryGetFieldTrialWithRandomizationSeed()
386 static_assert(kNonConflictingGroupNumber != FieldTrial::kNotFinalized, in FactoryGetFieldTrialWithRandomizationSeed()
395 if (randomization_type == FieldTrial::ONE_TIME_RANDOMIZED) { in FactoryGetFieldTrialWithRandomizationSeed()
397 const FieldTrial::EntropyProvider* entropy_provider = in FactoryGetFieldTrialWithRandomizationSeed()
404 DCHECK_EQ(FieldTrial::SESSION_RANDOMIZED, randomization_type); in FactoryGetFieldTrialWithRandomizationSeed()
409 FieldTrial* field_trial = new FieldTrial(trial_name, total_probability, in FactoryGetFieldTrialWithRandomizationSeed()
418 FieldTrial* FieldTrialList::Find(const std::string& trial_name) { in Find()
427 FieldTrial* field_trial = Find(trial_name); in FindValue()
430 return FieldTrial::kNotFinalized; in FindValue()
435 FieldTrial* field_trial = Find(trial_name); in FindFullName()
448 FieldTrial* field_trial = Find(trial_name); in IsTrialActive()
449 FieldTrial::ActiveGroup active_group; in IsTrialActive()
455 FieldTrial::ActiveGroups active_groups; in StatesToString()
457 for (FieldTrial::ActiveGroups::const_iterator it = active_groups.begin(); in StatesToString()
477 FieldTrial::State trial; in AllStatesToString()
495 FieldTrial::ActiveGroups* active_groups) { in GetActiveFieldTrialGroups()
503 FieldTrial::ActiveGroup active_group; in GetActiveFieldTrialGroups()
512 FieldTrial::ActiveGroups* active_groups) { in GetActiveFieldTrialGroupsFromString()
513 std::vector<FieldTrial::State> entries; in GetActiveFieldTrialGroupsFromString()
519 FieldTrial::ActiveGroup group; in GetActiveFieldTrialGroupsFromString()
535 std::vector<FieldTrial::State> entries; in CreateTrialsFromString()
546 FieldTrial* trial = CreateFieldTrial(trial_name, group_name); in CreateTrialsFromString()
560 FieldTrial* FieldTrialList::CreateFieldTrial( in CreateFieldTrial()
569 FieldTrial* field_trial = FieldTrialList::Find(name); in CreateFieldTrial()
578 field_trial = new FieldTrial(name, kTotalProbability, group_name, 0); in CreateFieldTrial()
600 void FieldTrialList::NotifyFieldTrialGroupSelection(FieldTrial* field_trial) { in NotifyFieldTrialGroupSelection()
628 const FieldTrial::EntropyProvider*
638 FieldTrial* FieldTrialList::PreLockedFind(const std::string& name) { in PreLockedFind()
646 void FieldTrialList::Register(FieldTrial* trial) { in Register()