Home
last modified time | relevance | path

Searched refs:HasSwitch (Results 1 – 15 of 15) sorted by relevance

/external/libchrome/base/
Dcommand_line_unittest.cc53 EXPECT_FALSE(cl.HasSwitch("cruller")); in TEST()
54 EXPECT_FALSE(cl.HasSwitch("flim")); in TEST()
55 EXPECT_FALSE(cl.HasSwitch("program")); in TEST()
56 EXPECT_FALSE(cl.HasSwitch("dog")); in TEST()
57 EXPECT_FALSE(cl.HasSwitch("cat")); in TEST()
58 EXPECT_FALSE(cl.HasSwitch("output-rotation")); in TEST()
59 EXPECT_FALSE(cl.HasSwitch("not-a-switch")); in TEST()
60 EXPECT_FALSE(cl.HasSwitch("--")); in TEST()
65 EXPECT_TRUE(cl.HasSwitch("foo")); in TEST()
67 EXPECT_TRUE(cl.HasSwitch("bar")); in TEST()
[all …]
Dsys_info.cc23 if (base::CommandLine::ForCurrentProcess()->HasSwitch( in AmountOfPhysicalMemory()
33 if (base::CommandLine::ForCurrentProcess()->HasSwitch( in AmountOfAvailablePhysicalMemory()
48 if (base::CommandLine::ForCurrentProcess()->HasSwitch( in IsLowEndDevice()
60 if (command_line->HasSwitch(switches::kEnableLowEndDeviceMode)) in DetectLowEndDevice()
62 if (command_line->HasSwitch(switches::kDisableLowEndDeviceMode)) in DetectLowEndDevice()
Dcommand_line.h162 bool HasSwitch(const StringPiece& switch_string) const;
163 bool HasSwitch(const char switch_constant[]) const;
Dcommand_line.cc283 bool CommandLine::HasSwitch(const base::StringPiece& switch_string) const { in HasSwitch() function in base::CommandLine
288 bool CommandLine::HasSwitch(const char switch_constant[]) const { in HasSwitch() function in base::CommandLine
289 return HasSwitch(base::StringPiece(switch_constant)); in HasSwitch()
365 if (source.HasSwitch(switches[i])) in CopySwitchesFrom()
Dlogging.cc414 if (command_line->HasSwitch(switches::kV) || in BaseInitLoggingImpl()
415 command_line->HasSwitch(switches::kVModule)) { in BaseInitLoggingImpl()
Dfeature_list.cc272 base::CommandLine::ForCurrentProcess()->HasSwitch( in SetInstance()
/external/libchrome/libchrome_tools/patch/
Dlogging.patch21 - if (command_line->HasSwitch(switches::kV) ||
22 - command_line->HasSwitch(switches::kVModule)) {
37 + if (command_line->HasSwitch(switches::kV) ||
38 + command_line->HasSwitch(switches::kVModule)) {
/external/libchrome/base/test/
Dtest_timeouts.cc27 if (base::CommandLine::ForCurrentProcess()->HasSwitch(switch_name)) { in InitializeTimeout()
98 base::CommandLine::ForCurrentProcess()->HasSwitch( in Initialize()
Dmultiprocess_test.cc24 if (!command_line.HasSwitch(switches::kTestChildProcess)) in SpawnMultiProcessTestChild()
Dmultiprocess_test_android.cc46 if (!command_line.HasSwitch(switches::kTestChildProcess)) { in SpawnMultiProcessTestChild()
/external/libchrome/mojo/core/test/
Dmultiprocess_test_helper.cc133 CHECK(!command_line.HasSwitch(switch_string)); in StartChildWithExtraSwitch()
222 if (command_line.HasSwitch(kRunAsBrokerClient)) { in ChildSetup()
/external/libbrillo/brillo/
Dflag_helper.cc199 if (command_line_->HasSwitch("help")) { in UpdateFlagValues()
/external/libchrome/base/metrics/
Dfield_trial.cc832 if (cmd_line.HasSwitch(field_trial_handle_switch)) { in CreateTrialsFromCommandLine()
842 if (cmd_line.HasSwitch(field_trial_handle_switch)) { in CreateTrialsFromCommandLine()
850 if (cmd_line.HasSwitch(switches::kForceFieldTrials)) { in CreateTrialsFromCommandLine()
Dfield_trial_unittest.cc1204 EXPECT_TRUE(command_line.HasSwitch(kFieldTrialHandleSwitch)); in TEST()
/external/libchrome/base/files/
Dfile_util_posix.cc988 disable_dev_shm = CommandLine::ForCurrentProcess()->HasSwitch( in GetShmemTempDir()