/aosp_15_r20/external/libchrome/base/ |
H A 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 …]
|
H A 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,
|
/aosp_15_r20/external/cronet/base/ |
H A 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() 335 bool CommandLine::HasSwitch(std::string_view switch_string) const { in HasSwitch() 336 DCHECK_EQ(ToLowerASCII(switch_string), switch_string); in HasSwitch() 337 return Contains(switches_, switch_string); in HasSwitch() 345 std::string_view switch_string) const { in GetSwitchValueASCII() 346 StringType value = GetSwitchValueNative(switch_string); in GetSwitchValueASCII() 352 DLOG(WARNING) << "Value of switch (" << switch_string << ") must be ASCII."; in GetSwitchValueASCII() 362 FilePath CommandLine::GetSwitchValuePath(std::string_view switch_string) const { in GetSwitchValueASCII() [all …]
|
H A D | command_line.h | 192 bool HasSwitch(std::string_view switch_string) const; 198 std::string GetSwitchValueASCII(std::string_view switch_string) const; 199 FilePath GetSwitchValuePath(std::string_view switch_string) const; 200 StringType GetSwitchValueNative(std::string_view switch_string) const; 207 void AppendSwitch(std::string_view switch_string); 208 void AppendSwitchPath(std::string_view switch_string, const FilePath& path); 209 void AppendSwitchNative(std::string_view switch_string, 211 void AppendSwitchASCII(std::string_view switch_string,
|
/aosp_15_r20/external/libchrome-gestures/src/ |
H A 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 …]
|
/aosp_15_r20/external/cronet/base/android/ |
H A D | command_line_android.cc | 35 std::string& switch_string) { in JNI_CommandLine_HasSwitch() argument 36 return CommandLine::ForCurrentProcess()->HasSwitch(switch_string); in JNI_CommandLine_HasSwitch() 40 std::string& switch_string) { in JNI_CommandLine_GetSwitchValue() argument 41 return CommandLine::ForCurrentProcess()->GetSwitchValueNative(switch_string); in JNI_CommandLine_GetSwitchValue() 57 std::string& switch_string) { in JNI_CommandLine_AppendSwitch() argument 58 CommandLine::ForCurrentProcess()->AppendSwitch(switch_string); in JNI_CommandLine_AppendSwitch() 62 std::string& switch_string, in JNI_CommandLine_AppendSwitchWithValue() argument 64 CommandLine::ForCurrentProcess()->AppendSwitchASCII(switch_string, in JNI_CommandLine_AppendSwitchWithValue() 75 std::string& switch_string) { in JNI_CommandLine_RemoveSwitch() argument 76 CommandLine::ForCurrentProcess()->RemoveSwitch(switch_string); in JNI_CommandLine_RemoveSwitch()
|
/aosp_15_r20/external/libchrome/base/android/ |
H A 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()
|
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/gensrcs/external/libchrome/base/ |
D | command_line.h | 165 bool HasSwitch(const StringPiece& switch_string) const; 171 std::string GetSwitchValueASCII(const StringPiece& switch_string) const; 172 FilePath GetSwitchValuePath(const StringPiece& switch_string) const; 173 StringType GetSwitchValueNative(const StringPiece& switch_string) const; 180 void AppendSwitch(const std::string& switch_string); 181 void AppendSwitchPath(const std::string& switch_string, 183 void AppendSwitchNative(const std::string& switch_string, 185 void AppendSwitchASCII(const std::string& switch_string,
|
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/0/external/libchrome/base/ |
D | command_line.h | 165 bool HasSwitch(const StringPiece& switch_string) const; 171 std::string GetSwitchValueASCII(const StringPiece& switch_string) const; 172 FilePath GetSwitchValuePath(const StringPiece& switch_string) const; 173 StringType GetSwitchValueNative(const StringPiece& switch_string) const; 180 void AppendSwitch(const std::string& switch_string); 181 void AppendSwitchPath(const std::string& switch_string, 183 void AppendSwitchNative(const std::string& switch_string, 185 void AppendSwitchASCII(const std::string& switch_string,
|
/aosp_15_r20/external/libchrome-gestures/include/ |
H A 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,
|
/aosp_15_r20/external/libchrome/mojo/core/test/ |
H A 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()
|
H A D | multiprocess_test_helper.h | 60 const std::string& switch_string,
|
/aosp_15_r20/external/libchrome/base/files/ |
H A 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()
|
/aosp_15_r20/external/cronet/base/files/ |
H A D | file_util_unittest.cc | 3769 std::string switch_string = command_line->GetSwitchValueASCII("sync_event"); in MULTIPROCESS_TEST_MAIN() local 3770 EXPECT_FALSE(switch_string.empty()); in MULTIPROCESS_TEST_MAIN() 3772 EXPECT_TRUE(StringToUint(switch_string, &switch_uint)); in MULTIPROCESS_TEST_MAIN() 3800 std::string switch_string = command_line->GetSwitchValueASCII("sync_event"); in MULTIPROCESS_TEST_MAIN() local 3801 EXPECT_FALSE(switch_string.empty()); in MULTIPROCESS_TEST_MAIN() 3803 EXPECT_TRUE(StringToUint(switch_string, &switch_uint)); in MULTIPROCESS_TEST_MAIN()
|