Home
last modified time | relevance | path

Searched refs:trial_name (Results 1 – 18 of 18) 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::__anon07913ade0111::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_params.cc15 const std::string& trial_name, in AssociateFieldTrialParams() argument
19 ->AssociateFieldTrialParams(trial_name, group_name, params); in AssociateFieldTrialParams()
22 bool GetFieldTrialParams(const std::string& trial_name, in GetFieldTrialParams() argument
25 trial_name, params); in GetFieldTrialParams()
37 return GetFieldTrialParams(trial->trial_name(), params); in GetFieldTrialParamsByFeature()
40 std::string GetFieldTrialParamValue(const std::string& trial_name, in GetFieldTrialParamValue() argument
43 if (GetFieldTrialParams(trial_name, &params)) { in GetFieldTrialParamValue()
60 return GetFieldTrialParamValue(trial->trial_name(), param_name); in GetFieldTrialParamValueByFeature()
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,
Dfield_trial_params.h22 const std::string& trial_name,
33 const std::string& trial_name,
53 BASE_EXPORT std::string GetFieldTrialParamValue(const std::string& trial_name,
Dfield_trial_params_unittest.cc20 const std::string& trial_name, in CreateFieldTrial() argument
25 trial_name, total_probability, default_group_name, in CreateFieldTrial()
/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/android/
Dfield_trial_list.cc24 std::string trial_name(ConvertJavaStringToUTF8(env, jtrial_name)); in JNI_FieldTrialList_FindFullName() local
26 env, base::FieldTrialList::FindFullName(trial_name)); in JNI_FieldTrialList_FindFullName()
33 std::string trial_name(ConvertJavaStringToUTF8(env, jtrial_name)); in JNI_FieldTrialList_TrialExists() local
34 return base::FieldTrialList::TrialExists(trial_name); in JNI_FieldTrialList_TrialExists()
/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/webrtc/modules/audio_processing/aec3/
Decho_canceller3.cc41 void RetrieveFieldTrialValue(const char* trial_name, in RetrieveFieldTrialValue() argument
45 const std::string field_trial_str = field_trial::FindFullName(trial_name); in RetrieveFieldTrialValue()
57 void RetrieveFieldTrialValue(const char* trial_name, in RetrieveFieldTrialValue() argument
61 const std::string field_trial_str = field_trial::FindFullName(trial_name); in RetrieveFieldTrialValue()
/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()