| /external/libchrome/base/ |
| D | command_line.cc | 59 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 …]
|
| D | command_line.h | 162 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/ |
| D | command_line.cc | 41 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/ |
| D | command_line.cc | 82 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 …]
|
| D | command_line.h | 183 bool HasSwitch(StringPiece switch_string) const; 189 std::string GetSwitchValueASCII(StringPiece switch_string) const; 190 FilePath GetSwitchValuePath(StringPiece switch_string) const; 191 StringType GetSwitchValueNative(StringPiece switch_string) const; 198 void AppendSwitch(StringPiece switch_string); 199 void AppendSwitchPath(StringPiece switch_string, const FilePath& path); 200 void AppendSwitchNative(StringPiece switch_string, StringPieceType value); 201 void AppendSwitchASCII(StringPiece switch_string, StringPiece value);
|
| /external/cronet/base/android/ |
| D | command_line_android.cc | 37 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/ |
| D | command_line_android.cc | 39 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/ |
| D | command_line.h | 66 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/ |
| D | multiprocess_test_helper.cc | 83 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()
|
| D | multiprocess_test_helper.h | 60 const std::string& switch_string,
|
| /external/libchrome/base/files/ |
| D | file_util_unittest.cc | 3022 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/ |
| D | file_util_unittest.cc | 3714 std::string switch_string = command_line->GetSwitchValueASCII("sync_event"); in MULTIPROCESS_TEST_MAIN() local 3715 EXPECT_FALSE(switch_string.empty()); in MULTIPROCESS_TEST_MAIN() 3717 EXPECT_TRUE(StringToUint(switch_string, &switch_uint)); in MULTIPROCESS_TEST_MAIN() 3745 std::string switch_string = command_line->GetSwitchValueASCII("sync_event"); in MULTIPROCESS_TEST_MAIN() local 3746 EXPECT_FALSE(switch_string.empty()); in MULTIPROCESS_TEST_MAIN() 3748 EXPECT_TRUE(StringToUint(switch_string, &switch_uint)); in MULTIPROCESS_TEST_MAIN()
|