Home
last modified time | relevance | path

Searched refs:experiment (Results 1 – 25 of 100) sorted by relevance

1234

/external/chromium_org/components/variations/
Dvariations_seed_processor.cc23 const Study_Experiment& experiment) { in RegisterExperimentParams() argument
25 for (int i = 0; i < experiment.param_size(); ++i) { in RegisterExperimentParams()
26 if (experiment.param(i).has_name() && experiment.param(i).has_value()) in RegisterExperimentParams()
27 params[experiment.param(i).name()] = experiment.param(i).value(); in RegisterExperimentParams()
30 AssociateVariationParams(study.name(), experiment.name(), params); in RegisterExperimentParams()
35 void RegisterVariationIds(const Study_Experiment& experiment, in RegisterVariationIds() argument
37 if (experiment.has_google_web_experiment_id()) { in RegisterVariationIds()
39 static_cast<VariationID>(experiment.google_web_experiment_id()); in RegisterVariationIds()
42 experiment.name(), in RegisterVariationIds()
45 if (experiment.has_google_web_trigger_experiment_id()) { in RegisterVariationIds()
[all …]
Dvariations_seed_simulator_unittest.cc64 Study_Experiment* experiment = study->add_experiment(); in AddExperiment() local
65 experiment->set_name(experiment_name); in AddExperiment()
66 experiment->set_probability_weight(probability); in AddExperiment()
68 return experiment; in AddExperiment()
74 Study_Experiment* experiment) { in AddExperimentParam() argument
75 Study_Experiment_Param* param = experiment->add_param(); in AddExperimentParam()
150 Study_Experiment* experiment = AddExperiment("B", 100, &study); in TEST_F() local
154 experiment->set_type(Study_Experiment_Type_NORMAL); in TEST_F()
156 experiment->set_type(Study_Experiment_Type_IGNORE_CHANGE); in TEST_F()
158 experiment->set_type(Study_Experiment_Type_KILL_BEST_EFFORT); in TEST_F()
[all …]
Dvariations_seed_simulator.cc46 const Study_Experiment& experiment = study.experiment(i); in SimulateGroupAssignment() local
50 if (!experiment.has_forcing_flag() && in SimulateGroupAssignment()
51 experiment.name() != study.default_experiment_name()) { in SimulateGroupAssignment()
52 trial->AppendGroup(experiment.name(), experiment.probability_weight()); in SimulateGroupAssignment()
65 if (study.experiment(i).name() == experiment_name) in FindExperiment()
66 return &study.experiment(i); in FindExperiment()
75 const Study_Experiment& experiment) { in VariationParamsAreEqual() argument
79 if (static_cast<int>(params.size()) != experiment.param_size()) in VariationParamsAreEqual()
82 for (int i = 0; i < experiment.param_size(); ++i) { in VariationParamsAreEqual()
84 params.find(experiment.param(i).name()); in VariationParamsAreEqual()
[all …]
Dprocessed_study.cc45 if (study.experiment(i).name().empty()) { in ValidateStudyAndComputeTotalProbability()
49 if (!experiment_names.insert(study.experiment(i).name()).second) { in ValidateStudyAndComputeTotalProbability()
51 << study.experiment(i).name(); in ValidateStudyAndComputeTotalProbability()
55 if (!study.experiment(i).has_forcing_flag()) in ValidateStudyAndComputeTotalProbability()
56 divisor += study.experiment(i).probability_weight(); in ValidateStudyAndComputeTotalProbability()
57 if (study.experiment(i).name() == default_group_name) in ValidateStudyAndComputeTotalProbability()
97 if (study_->experiment(i).name() == name) in GetExperimentIndexByName()
Dvariations_seed_processor_unittest.cc40 Study_Experiment* experiment = study->add_experiment(); in AddExperiment() local
41 experiment->set_name(name); in AddExperiment()
42 experiment->set_probability_weight(probability); in AddExperiment()
43 return experiment; in AddExperiment()
298 ASSERT_EQ(kForcingFlag1, study.experiment(1).forcing_flag()); in TEST_F()
389 ASSERT_EQ(kForcingFlag1, study.experiment(1).forcing_flag()); in TEST_F()
468 ASSERT_EQ(kNonFlagGroupName, study.experiment(0).name()); in TEST_F()
/external/chromium_org/chrome/browser/resources/
Dflags.css94 #experiment-reset-all {
98 html[dir=rtl] #experiment-reset-all {
120 .experiment-unsupported > td,
121 .experiment-disabled > td {
126 .experiment-unsupported .experiment-name,
127 .experiment-disabled .experiment-name {
131 .experiment {
135 .experiment td {
140 /* Indent the text related to each experiment. */
141 .experiment-text {
[all …]
/external/chromium_org/chrome/browser/net/
Dconnection_tester.cc70 ConnectionTester::ProxySettingsExperiment experiment, in CreateProxyConfigService() argument
73 switch (experiment) { in CreateProxyConfigService()
92 int Init(const ConnectionTester::Experiment& experiment, in Init() argument
99 rv = CreateHostResolver(experiment.host_resolver_experiment, in Init()
107 rv = CreateProxyService(experiment.proxy_settings_experiment, in Init()
152 ConnectionTester::HostResolverExperiment experiment, in CreateHostResolver() argument
165 switch (experiment) { in CreateHostResolver()
187 ConnectionTester::ProxySettingsExperiment experiment, in CreateProxyService() argument
313 const Experiment& experiment,
318 void Run(const Experiment& experiment);
[all …]
Dconnection_tester.h111 const Experiment& experiment) = 0;
118 const Experiment& experiment,
144 ProxySettingsExperiment experiment);
146 HostResolverExperiment experiment);
Dconnection_tester_unittest.cc48 const ConnectionTester::Experiment& experiment) OVERRIDE { in OnStartConnectionTestExperiment() argument
53 const ConnectionTester::Experiment& experiment, in OnCompletedConnectionTestExperiment() argument
/external/chromium_org/chrome/browser/resources/net_internals/
Dtest_view.js85 onStartedConnectionTestExperiment: function(experiment) { argument
109 addTextNode(experimentCell, 'Fetch ' + experiment.url);
111 if (experiment.proxy_settings_experiment ||
112 experiment.host_resolver_experiment) {
115 if (experiment.proxy_settings_experiment) {
117 addTextNode(li, experiment.proxy_settings_experiment);
120 if (experiment.host_resolver_experiment) {
122 addTextNode(li, experiment.host_resolver_experiment);
130 onCompletedConnectionTestExperiment: function(experiment, result) { argument
/external/chromium_org/sync/protocol/
Dexperiment_status.proto15 // experiment for a specific client can be determined based on the user agent
19 // experiment name must be the same as one of the field names specified in
24 // Response to an experiment status request.
29 // The experiments that the client has asked for, with each experiment
30 // containing exactly one experiment flag. The client can inspect the
31 // embedded flag to obtain the experiment status. Note that the number of
33 // sent in the request since it is possible that there is no experiment
35 repeated ExperimentsSpecifics experiment = 2; field
/external/chromium_org/chrome/browser/prerender/
Dprerender_histograms.cc94 experiment, HISTOGRAM) \ argument
95 PREFIXED_HISTOGRAM_INTERNAL(origin, experiment, false, HISTOGRAM, \
98 #define PREFIXED_HISTOGRAM_INTERNAL(origin, experiment, wash, HISTOGRAM, \ argument
106 std::string name = GetHistogramName(origin, experiment, wash, \
115 if (recording_experiment == kNoExperiment && experiment != kNoExperiment) \
116 recording_experiment = experiment; \
119 } else if (experiment != kNoExperiment && \
121 experiment != recording_experiment)) { \
138 } else if (experiment != kNoExperiment) { \
155 uint8 experiment = GetQueryStringBasedExperiment(url); in RecordPrerender() local
[all …]
/external/chromium_org/chrome/browser/
Dabout_flags_unittest.cc192 const about_flags::Experiment& experiment = experiments[i]; in GetAllSwitchesForTesting() local
193 if (experiment.type == about_flags::Experiment::SINGLE_VALUE) { in GetAllSwitchesForTesting()
194 result.insert(experiment.command_line_switch); in GetAllSwitchesForTesting()
195 } else if (experiment.type == about_flags::Experiment::MULTI_VALUE) { in GetAllSwitchesForTesting()
196 for (int j = 0; j < experiment.num_choices; ++j) { in GetAllSwitchesForTesting()
197 result.insert(experiment.choices[j].command_line_switch); in GetAllSwitchesForTesting()
200 DCHECK_EQ(experiment.type, about_flags::Experiment::ENABLE_DISABLE_VALUE); in GetAllSwitchesForTesting()
201 result.insert(experiment.command_line_switch); in GetAllSwitchesForTesting()
202 result.insert(experiment.disable_command_line_switch); in GetAllSwitchesForTesting()
329 const Experiment& experiment = kExperiments[3]; in TEST_F() local
[all …]
Dabout_flags.cc2042 bool SkipConditionalExperiment(const Experiment& experiment, in SkipConditionalExperiment() argument
2044 if (experiment.internal_name == in SkipConditionalExperiment()
2055 if ((experiment.internal_name == std::string("manual-enhanced-bookmarks")) || in SkipConditionalExperiment()
2056 (experiment.internal_name == in SkipConditionalExperiment()
2063 if (!strcmp("enable-data-reduction-proxy-dev", experiment.internal_name) && in SkipConditionalExperiment()
2068 if (!strcmp("enable-data-reduction-proxy-alt", experiment.internal_name) && in SkipConditionalExperiment()
2107 const Experiment& experiment, in CreateChoiceData() argument
2109 DCHECK(experiment.type == Experiment::MULTI_VALUE || in CreateChoiceData()
2110 experiment.type == Experiment::ENABLE_DISABLE_VALUE); in CreateChoiceData()
2112 for (int i = 0; i < experiment.num_choices; ++i) { in CreateChoiceData()
[all …]
/external/chromium_org/components/variations/proto/
Dstudy.proto39 // Name of the experiment that gets the default experience. This experiment
44 // An experiment within the study.
48 // A named parameter value for this experiment.
59 // The name of the experiment within the study.
63 // The cut of the total probability taken for this experiment (the x in
67 // Optional id used to uniquely identify this experiment for Google web
71 // Optional id used to allow this experiment to trigger experimental
75 // Optional id used to uniquely identify this experiment for Google Update.
78 // Optional name of a Chrome flag that, when present, causes this experiment
80 // assigned to this experiment unless that flag is present in Chrome's
[all …]
Dclient_variations.proto14 // A list of client experiment variation IDs that are active.
17 // A list of client experiment variation IDs that trigger server side
/external/chromium_org/chrome/installer/util/
Duser_experiment.cc284 bool CreateExperimentDetails(int flavor, ExperimentDetails* experiment) { in CreateExperimentDetails() argument
371 experiment->flavor = flavor; in CreateExperimentDetails()
372 experiment->heading = match.flavors[flavor].heading_id; in CreateExperimentDetails()
373 experiment->control_group = match.control_group; in CreateExperimentDetails()
375 experiment->prefix = prefix; in CreateExperimentDetails()
376 experiment->flags = match.flavors[flavor].flags; in CreateExperimentDetails()
412 ExperimentDetails experiment; in LaunchBrowserUserExperiment() local
413 if (!CreateExperimentDetails(-1, &experiment)) { in LaunchBrowserUserExperiment()
417 int flavor = experiment.flavor; in LaunchBrowserUserExperiment()
418 base::string16 base_group = experiment.prefix; in LaunchBrowserUserExperiment()
[all …]
/external/chromium_org/chrome/browser/prefetch/
Dprefetch_field_trial.cc16 std::string experiment = base::FieldTrialList::FindFullName("Prefetch"); in DisableForFieldTrial() local
17 return StartsWithASCII(experiment, "ExperimentDisable", false); in DisableForFieldTrial()
/external/libvpx/libvpx/tools/
Dall_builds.py28 experiment = line[4:]
29 if experiment not in currently_broken:
30 experiments.append(experiment)
/external/chromium_org/third_party/libvpx/source/libvpx/tools/
Dall_builds.py28 experiment = line[4:]
29 if experiment not in currently_broken:
30 experiments.append(experiment)
/external/chromium_org/chrome/browser/first_run/
Dtry_chrome_dialog_view.cc168 installer::ExperimentDetails experiment; in ShowModal() local
170 !installer::CreateExperimentDetails(flavor_, &experiment) || in ShowModal()
171 !experiment.heading) { in ShowModal()
176 l10n_util::GetStringUTF16(experiment.heading), in ShowModal()
204 !!(experiment.flags & installer::kToastUiDontBugMeAsButton); in ShowModal()
215 if (experiment.flags & installer::kToastUiUninstall) { in ShowModal()
228 if (experiment.flags & installer::kToastUiMakeDefault) { in ShowModal()
259 if (experiment.flags & installer::kToastUiWhyLink) { in ShowModal()
/external/chromium_org/chrome/browser/ui/views/extensions/
Dextension_install_dialog_view.cc311 prompt_->experiment()->should_show_expandable_permission_list()) { in InitView()
328 if (prompt_->experiment()->show_checkboxes()) in InitView()
466 new views::Label(prompt_->experiment()->GetExplanationText()); in InitView()
473 if (prompt_->experiment()->should_show_expandable_permission_list() || in InitView()
474 (prompt_->experiment()->show_details_link() && in InitView()
475 prompt_->experiment()->should_show_inline_explanations() && in InitView()
482 prompt_->experiment()->should_show_expandable_permission_list() in InitView()
495 if (prompt_->experiment()->show_checkboxes()) { in InitView()
571 if (prompt_->experiment()->ShouldHighlightText( in AddPermissions()
575 } else if (prompt_->experiment()->ShouldHighlightBackground( in AddPermissions()
[all …]
/external/chromium_org/components/gcm_driver/
Dgcm_channel_status_request.cc117 response_proto.experiment(0).has_gcm_channel() && in ParseResponse()
118 response_proto.experiment(0).gcm_channel().has_enabled()) { in ParseResponse()
119 enabled = response_proto.experiment(0).gcm_channel().enabled(); in ParseResponse()
/external/chromium_org/net/disk_cache/blockfile/
Dbackend_worker_v3.cc69 if (header->experiment == disk_cache::EXPERIMENT_OLD_FILE1 || in InitExperiment()
70 header->experiment == disk_cache::EXPERIMENT_OLD_FILE2) { in InitExperiment()
78 header->experiment = disk_cache::EXPERIMENT_SIMPLE_CONTROL; in InitExperiment()
80 } else if (header->experiment != disk_cache::EXPERIMENT_SIMPLE_CONTROL) { in InitExperiment()
85 header->experiment = disk_cache::NO_EXPERIMENT; in InitExperiment()
135 if (data_->header.experiment != NO_EXPERIMENT && in SyncInit()
Dhistogram_macros.h90 #define CACHE_UMA(type, name, experiment, sample) {\ argument
92 CACHE_UMA_BACKEND_IMPL_OBJ->HistogramName(name, experiment);\

1234