Home
last modified time | relevance | path

Searched refs:switch_string (Results 1 – 12 of 12) sorted by relevance

/external/libchrome/base/
Dcommand_line.cc59 CommandLine::StringType* switch_string, in IsSwitch() argument
61 switch_string->clear(); in IsSwitch()
68 *switch_string = string.substr(0, equals_position); in IsSwitch()
86 CommandLine::StringType switch_string; in AppendSwitchesAndArguments() local
89 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) { in AppendSwitchesAndArguments()
91 command_line->AppendSwitchNative(UTF16ToASCII(switch_string), in AppendSwitchesAndArguments()
94 command_line->AppendSwitchNative(switch_string, switch_value); in AppendSwitchesAndArguments()
283 bool CommandLine::HasSwitch(const base::StringPiece& switch_string) const { in HasSwitch()
284 DCHECK_EQ(ToLowerASCII(switch_string), switch_string); in HasSwitch()
285 return ContainsKey(switches_, switch_string); in HasSwitch()
[all …]
Dcommand_line.h162 bool HasSwitch(const StringPiece& switch_string) const;
168 std::string GetSwitchValueASCII(const StringPiece& switch_string) const;
169 FilePath GetSwitchValuePath(const StringPiece& switch_string) const;
170 StringType GetSwitchValueNative(const StringPiece& switch_string) const;
177 void AppendSwitch(const std::string& switch_string);
178 void AppendSwitchPath(const std::string& switch_string,
180 void AppendSwitchNative(const std::string& switch_string,
182 void AppendSwitchASCII(const std::string& switch_string,
/external/libchrome-gestures/src/
Dcommand_line.cc41 std::string* switch_string, in IsSwitch() argument
43 switch_string->clear(); in IsSwitch()
50 *switch_string = string.substr(0, equals_position); in IsSwitch()
64 std::string switch_string; in AppendSwitchesAndArguments() local
67 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) { in AppendSwitchesAndArguments()
68 command_line.AppendSwitchASCII(switch_string, switch_value); in AppendSwitchesAndArguments()
137 bool CommandLine::HasSwitch(const std::string& switch_string) const { in HasSwitch()
138 return switches_.find(switch_string) != switches_.end(); in HasSwitch()
142 const std::string& switch_string) const { in GetSwitchValueASCII()
144 switches_.find(switch_string); in GetSwitchValueASCII()
[all …]
/external/cronet/base/
Dcommand_line.cc82 CommandLine::StringType* switch_string, in IsSwitch() argument
84 switch_string->clear(); in IsSwitch()
91 *switch_string = string.substr(0, equals_position); in IsSwitch()
298 bool CommandLine::HasSwitch(StringPiece switch_string) const { in HasSwitch()
299 DCHECK_EQ(ToLowerASCII(switch_string), switch_string); in HasSwitch()
300 return Contains(switches_, switch_string); in HasSwitch()
307 std::string CommandLine::GetSwitchValueASCII(StringPiece switch_string) const { in GetSwitchValueASCII()
308 StringType value = GetSwitchValueNative(switch_string); in GetSwitchValueASCII()
314 DLOG(WARNING) << "Value of switch (" << switch_string << ") must be ASCII."; in GetSwitchValueASCII()
324 FilePath CommandLine::GetSwitchValuePath(StringPiece switch_string) const { in GetSwitchValueASCII()
[all …]
Dcommand_line.h182 bool HasSwitch(StringPiece switch_string) const;
188 std::string GetSwitchValueASCII(StringPiece switch_string) const;
189 FilePath GetSwitchValuePath(StringPiece switch_string) const;
190 StringType GetSwitchValueNative(StringPiece switch_string) const;
197 void AppendSwitch(StringPiece switch_string);
198 void AppendSwitchPath(StringPiece switch_string, const FilePath& path);
199 void AppendSwitchNative(StringPiece switch_string, StringPieceType value);
200 void AppendSwitchASCII(StringPiece switch_string, StringPiece value);
/external/cronet/base/android/
Dcommand_line_android.cc37 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in JNI_CommandLine_HasSwitch() local
38 return CommandLine::ForCurrentProcess()->HasSwitch(switch_string); in JNI_CommandLine_HasSwitch()
44 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in JNI_CommandLine_GetSwitchValue() local
46 switch_string)); in JNI_CommandLine_GetSwitchValue()
66 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in JNI_CommandLine_AppendSwitch() local
67 CommandLine::ForCurrentProcess()->AppendSwitch(switch_string); in JNI_CommandLine_AppendSwitch()
74 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in JNI_CommandLine_AppendSwitchWithValue() local
76 CommandLine::ForCurrentProcess()->AppendSwitchASCII(switch_string, in JNI_CommandLine_AppendSwitchWithValue()
88 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in JNI_CommandLine_RemoveSwitch() local
89 CommandLine::ForCurrentProcess()->RemoveSwitch(switch_string); in JNI_CommandLine_RemoveSwitch()
/external/libchrome/base/android/
Dcommand_line_android.cc39 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in JNI_CommandLine_HasSwitch() local
40 return CommandLine::ForCurrentProcess()->HasSwitch(switch_string); in JNI_CommandLine_HasSwitch()
47 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in JNI_CommandLine_GetSwitchValue() local
49 switch_string)); in JNI_CommandLine_GetSwitchValue()
58 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in JNI_CommandLine_AppendSwitch() local
59 CommandLine::ForCurrentProcess()->AppendSwitch(switch_string); in JNI_CommandLine_AppendSwitch()
67 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in JNI_CommandLine_AppendSwitchWithValue() local
69 CommandLine::ForCurrentProcess()->AppendSwitchASCII(switch_string, in JNI_CommandLine_AppendSwitchWithValue()
/external/libchrome-gestures/include/
Dcommand_line.h66 bool HasSwitch(const std::string& switch_string) const;
70 std::string GetSwitchValueASCII(const std::string& switch_string) const;
77 void AppendSwitch(const std::string& switch_string);
78 void AppendSwitchASCII(const std::string& switch_string,
/external/libchrome/mojo/core/test/
Dmultiprocess_test_helper.cc83 const std::string& switch_string, in StartChildWithExtraSwitch() argument
132 if (!switch_string.empty()) { in StartChildWithExtraSwitch()
133 CHECK(!command_line.HasSwitch(switch_string)); in StartChildWithExtraSwitch()
135 command_line.AppendSwitchASCII(switch_string, switch_value); in StartChildWithExtraSwitch()
137 command_line.AppendSwitch(switch_string); in StartChildWithExtraSwitch()
Dmultiprocess_test_helper.h60 const std::string& switch_string,
/external/libchrome/base/files/
Dfile_util_unittest.cc3022 std::string switch_string = command_line->GetSwitchValueASCII("sync_event"); in MULTIPROCESS_TEST_MAIN() local
3023 EXPECT_FALSE(switch_string.empty()); in MULTIPROCESS_TEST_MAIN()
3025 EXPECT_TRUE(StringToUint(switch_string, &switch_uint)); in MULTIPROCESS_TEST_MAIN()
3049 std::string switch_string = command_line->GetSwitchValueASCII("sync_event"); in MULTIPROCESS_TEST_MAIN() local
3050 EXPECT_FALSE(switch_string.empty()); in MULTIPROCESS_TEST_MAIN()
3052 EXPECT_TRUE(StringToUint(switch_string, &switch_uint)); in MULTIPROCESS_TEST_MAIN()
/external/cronet/base/files/
Dfile_util_unittest.cc3707 std::string switch_string = command_line->GetSwitchValueASCII("sync_event"); in MULTIPROCESS_TEST_MAIN() local
3708 EXPECT_FALSE(switch_string.empty()); in MULTIPROCESS_TEST_MAIN()
3710 EXPECT_TRUE(StringToUint(switch_string, &switch_uint)); in MULTIPROCESS_TEST_MAIN()
3738 std::string switch_string = command_line->GetSwitchValueASCII("sync_event"); in MULTIPROCESS_TEST_MAIN() local
3739 EXPECT_FALSE(switch_string.empty()); in MULTIPROCESS_TEST_MAIN()
3741 EXPECT_TRUE(StringToUint(switch_string, &switch_uint)); in MULTIPROCESS_TEST_MAIN()