Home
last modified time | relevance | path

Searched refs:trial_name (Results 1 – 13 of 13) sorted by relevance

/external/libchrome/base/metrics/
Dfield_trial_param_associator.cc21 const std::string& trial_name, in AssociateFieldTrialParams() argument
24 if (FieldTrialList::IsTrialActive(trial_name)) in AssociateFieldTrialParams()
28 const FieldTrialKey key(trial_name, group_name); in AssociateFieldTrialParams()
37 const std::string& trial_name, in GetFieldTrialParams() argument
39 FieldTrial* field_trial = FieldTrialList::Find(trial_name); in GetFieldTrialParams()
44 if (GetFieldTrialParamsWithoutFallback(trial_name, field_trial->group_name(), in GetFieldTrialParams()
54 const std::string& trial_name, in GetFieldTrialParamsWithoutFallback() argument
59 const FieldTrialKey key(trial_name, group_name); in GetFieldTrialParamsWithoutFallback()
76 const std::string& trial_name, in ClearParamsForTesting() argument
79 const FieldTrialKey key(trial_name, group_name); in ClearParamsForTesting()
Dfield_trial.cc84 WriteStringPair(pickle, *trial_state.trial_name, *trial_state.group_name); in PickleFieldTrial()
89 *trial_state.trial_name, *trial_state.group_name, &params); in PickleFieldTrial()
144 StringPiece trial_name; member
177 entry.trial_name = in ParseFieldTrialsString()
268 StringPiece* trial_name, in GetTrialAndGroupName() argument
271 return ReadStringPair(&iter, trial_name, group_name); in GetTrialAndGroupName()
301 StringPiece* trial_name, in ReadStringPair() argument
303 if (!iter->ReadStringPiece(trial_name)) in ReadStringPair()
398 const std::string& trial_name, in CreateSimulatedFieldTrial() argument
402 return new FieldTrial(trial_name, total_probability, default_group_name, in CreateSimulatedFieldTrial()
[all …]
Dfield_trial.h118 virtual double GetEntropyForTrial(const std::string& trial_name,
124 std::string trial_name; member
133 const std::string* trial_name = nullptr; member
165 bool GetTrialAndGroupName(StringPiece* trial_name,
180 StringPiece* trial_name,
206 const std::string& trial_name() const { return trial_name_; } in trial_name() function
248 const std::string& trial_name,
289 FieldTrial(const std::string& trial_name,
409 virtual void OnFieldTrialGroupFinalized(const std::string& trial_name,
447 const std::string& trial_name,
[all …]
Dfield_trial_unittest.cc36 const std::string& trial_name, in CreateFieldTrial() argument
41 trial_name, total_probability, default_group_name, in CreateFieldTrial()
81 const std::string& trial_name() const { return trial_name_; } in trial_name() function in base::__anon298567000111::TestFieldTrialObserver
119 EXPECT_EQ(name1, trial1->trial_name()); in TEST_F()
130 EXPECT_EQ(name2, trial2->trial_name()); in TEST_F()
314 EXPECT_EQ(one_winner, active_group.trial_name); in TEST_F()
328 EXPECT_EQ(multi_group, active_group.trial_name); in TEST_F()
337 EXPECT_NE(no_group, active_groups[i].trial_name); in TEST_F()
338 EXPECT_TRUE(one_winner != active_groups[i].trial_name || in TEST_F()
340 EXPECT_TRUE(multi_group != active_groups[i].trial_name || in TEST_F()
[all …]
Dfield_trial_param_associator.h33 bool AssociateFieldTrialParams(const std::string& trial_name,
39 bool GetFieldTrialParams(const std::string& trial_name,
46 bool GetFieldTrialParamsWithoutFallback(const std::string& trial_name,
56 void ClearParamsForTesting(const std::string& trial_name,
/external/libchrome/base/
Dfeature_list.cc50 StringPiece* trial_name) const { in GetFeatureAndTrialName()
61 auto sink = pickle_iter.ReadStringPiece(trial_name); in GetFeatureAndTrialName()
112 StringPiece trial_name; in InitializeFromSharedMemory() local
113 if (!entry->GetFeatureAndTrialName(&feature_name, &trial_name)) in InitializeFromSharedMemory()
116 FieldTrial* trial = FieldTrialList::Find(trial_name.as_string()); in InitializeFromSharedMemory()
141 << " already has trial: " << entry->field_trial->trial_name() in AssociateReportingFieldTrial()
142 << ", associating trial: " << field_trial->trial_name(); in AssociateReportingFieldTrial()
157 << overrides_.find(feature_name)->second.field_trial->trial_name() in RegisterFieldTrialOverride()
158 << " / " << field_trial->trial_name(); in RegisterFieldTrialOverride()
170 pickle.WriteString(override.second.field_trial->trial_name()); in AddFeaturesToAllocator()
[all …]
Dfeature_list_unittest.cc166 EXPECT_FALSE(FieldTrialList::IsTrialActive(trial1->trial_name())); in TEST_F()
167 EXPECT_FALSE(FieldTrialList::IsTrialActive(trial2->trial_name())); in TEST_F()
173 EXPECT_TRUE(FieldTrialList::IsTrialActive(trial1->trial_name())); in TEST_F()
174 EXPECT_FALSE(FieldTrialList::IsTrialActive(trial2->trial_name())); in TEST_F()
180 EXPECT_TRUE(FieldTrialList::IsTrialActive(trial1->trial_name())); in TEST_F()
181 EXPECT_TRUE(FieldTrialList::IsTrialActive(trial2->trial_name())); in TEST_F()
198 EXPECT_FALSE(FieldTrialList::IsTrialActive(trial1->trial_name())); in TEST_F()
199 EXPECT_FALSE(FieldTrialList::IsTrialActive(trial2->trial_name())); in TEST_F()
204 EXPECT_TRUE(FieldTrialList::IsTrialActive(trial1->trial_name())); in TEST_F()
205 EXPECT_FALSE(FieldTrialList::IsTrialActive(trial2->trial_name())); in TEST_F()
[all …]
/external/libchrome/base/test/
Dmock_entropy_provider.cc15 const std::string& trial_name, in GetEntropyForTrial() argument
Dmock_entropy_provider.h21 double GetEntropyForTrial(const std::string& trial_name,
Dscoped_feature_list.cc94 field_trial_override_->trial_name(), in ~ScopedFeatureList()
192 feature_it->as_string() + "<" + (*trial_it)->trial_name())); in InitWithFeaturesAndFieldTrials()
/external/cros/system_api/dbus/
Dfield_trial_list.proto14 optional string trial_name = 1; field
/external/libchrome/base/debug/
Dactivity_tracker.h1042 void RecordFieldTrial(const std::string& trial_name, StringPiece group_name);
1043 static void RecordFieldTrialIfEnabled(const std::string& trial_name, in RecordFieldTrialIfEnabled() argument
1047 tracker->RecordFieldTrial(trial_name, group_name); in RecordFieldTrialIfEnabled()
Dactivity_tracker.cc1634 void GlobalActivityTracker::RecordFieldTrial(const std::string& trial_name, in RecordFieldTrial() argument
1636 const std::string key = std::string("FieldTrial.") + trial_name; in RecordFieldTrial()
1697 RecordFieldTrial(group.trial_name, group.group_name); in GlobalActivityTracker()