Home
last modified time | relevance | path

Searched refs:StartsWith (Results 1 – 25 of 194) sorted by relevance

12345678

/external/perfetto/src/base/
Dstring_utils_unittest.cc28 TEST(StringUtilsTest, StartsWith) { in TEST() argument
29 EXPECT_TRUE(StartsWith("", "")); in TEST()
30 EXPECT_TRUE(StartsWith("abc", "")); in TEST()
31 EXPECT_TRUE(StartsWith("abc", "a")); in TEST()
32 EXPECT_TRUE(StartsWith("abc", "ab")); in TEST()
33 EXPECT_TRUE(StartsWith("abc", "abc")); in TEST()
34 EXPECT_FALSE(StartsWith("abc", "abcd")); in TEST()
35 EXPECT_FALSE(StartsWith("aa", "ab")); in TEST()
36 EXPECT_FALSE(StartsWith("", "ab")); in TEST()
/external/libtextclassifier/utils/strings/
Dstringpiece_test.cc34 TEST(StringPieceTest, StartsWith) { in TEST() argument
35 EXPECT_TRUE(StartsWith("hello there!", "hello")); in TEST()
36 EXPECT_TRUE(StartsWith("hello there!", "hello ")); in TEST()
37 EXPECT_FALSE(StartsWith("hello there!", "there!")); in TEST()
38 EXPECT_FALSE(StartsWith("hello there!", " hello there! ")); in TEST()
39 EXPECT_TRUE(StartsWith("hello there!", "")); in TEST()
40 EXPECT_FALSE(StartsWith("", "hello there!")); in TEST()
Dstringpiece.h67 bool StartsWith(StringPiece prefix) const { in StartsWith() function
94 inline bool StartsWith(StringPiece text, StringPiece prefix) { in StartsWith() function
95 return text.StartsWith(prefix); in StartsWith()
99 if (!text->StartsWith(prefix)) { in ConsumePrefix()
/external/perfetto/src/traced/probes/ftrace/
Dcpu_stats_parser.cc54 if (base::StartsWith(splitter.cur_token(), "entries")) { in DumpCpuStats()
56 } else if (base::StartsWith(splitter.cur_token(), "overrun")) { in DumpCpuStats()
58 } else if (base::StartsWith(splitter.cur_token(), "commit overrun")) { in DumpCpuStats()
60 } else if (base::StartsWith(splitter.cur_token(), "bytes")) { in DumpCpuStats()
62 } else if (base::StartsWith(splitter.cur_token(), "oldest event ts")) { in DumpCpuStats()
64 } else if (base::StartsWith(splitter.cur_token(), "now ts")) { in DumpCpuStats()
66 } else if (base::StartsWith(splitter.cur_token(), "dropped events")) { in DumpCpuStats()
68 } else if (base::StartsWith(splitter.cur_token(), "read events")) { in DumpCpuStats()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/
DAsmLexer.cpp672 .StartsWith("call16", {AsmToken::PercentCall16, 7}) in LexToken()
673 .StartsWith("call_hi", {AsmToken::PercentCall_Hi, 8}) in LexToken()
674 .StartsWith("call_lo", {AsmToken::PercentCall_Lo, 8}) in LexToken()
675 .StartsWith("dtprel_hi", {AsmToken::PercentDtprel_Hi, 10}) in LexToken()
676 .StartsWith("dtprel_lo", {AsmToken::PercentDtprel_Lo, 10}) in LexToken()
677 .StartsWith("got_disp", {AsmToken::PercentGot_Disp, 9}) in LexToken()
678 .StartsWith("got_hi", {AsmToken::PercentGot_Hi, 7}) in LexToken()
679 .StartsWith("got_lo", {AsmToken::PercentGot_Lo, 7}) in LexToken()
680 .StartsWith("got_ofst", {AsmToken::PercentGot_Ofst, 9}) in LexToken()
681 .StartsWith("got_page", {AsmToken::PercentGot_Page, 9}) in LexToken()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DTriple.cpp258 .StartsWith("bpf", BPFArch) in getArchTypeForLLVMName()
408 .StartsWith("kalimba", Triple::kalimba) in parseArch()
451 .StartsWith("cloudabi", Triple::CloudABI) in parseOS()
452 .StartsWith("darwin", Triple::Darwin) in parseOS()
453 .StartsWith("dragonfly", Triple::DragonFly) in parseOS()
454 .StartsWith("freebsd", Triple::FreeBSD) in parseOS()
455 .StartsWith("fuchsia", Triple::Fuchsia) in parseOS()
456 .StartsWith("ios", Triple::IOS) in parseOS()
457 .StartsWith("kfreebsd", Triple::KFreeBSD) in parseOS()
458 .StartsWith("linux", Triple::Linux) in parseOS()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DTriple.cpp268 .StartsWith("bpf", BPFArch) in getArchTypeForLLVMName()
428 .StartsWith("kalimba", Triple::kalimba) in parseArch()
473 .StartsWith("ananas", Triple::Ananas) in parseOS()
474 .StartsWith("cloudabi", Triple::CloudABI) in parseOS()
475 .StartsWith("darwin", Triple::Darwin) in parseOS()
476 .StartsWith("dragonfly", Triple::DragonFly) in parseOS()
477 .StartsWith("freebsd", Triple::FreeBSD) in parseOS()
478 .StartsWith("fuchsia", Triple::Fuchsia) in parseOS()
479 .StartsWith("ios", Triple::IOS) in parseOS()
480 .StartsWith("kfreebsd", Triple::KFreeBSD) in parseOS()
[all …]
/external/llvm/lib/Support/
DTriple.cpp248 .StartsWith("bpf", BPFArch) in getArchTypeForLLVMName()
392 .StartsWith("kalimba", Triple::kalimba) in parseArch()
435 .StartsWith("cloudabi", Triple::CloudABI) in parseOS()
436 .StartsWith("darwin", Triple::Darwin) in parseOS()
437 .StartsWith("dragonfly", Triple::DragonFly) in parseOS()
438 .StartsWith("freebsd", Triple::FreeBSD) in parseOS()
439 .StartsWith("ios", Triple::IOS) in parseOS()
440 .StartsWith("kfreebsd", Triple::KFreeBSD) in parseOS()
441 .StartsWith("linux", Triple::Linux) in parseOS()
442 .StartsWith("lv2", Triple::Lv2) in parseOS()
[all …]
/external/pdfium/fpdfsdk/
Dfpdfsave_embeddertest.cpp23 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n")); in TEST_F()
30 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.4\r\n")); in TEST_F()
36 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n")); in TEST_F()
40 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n")); in TEST_F()
44 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n")); in TEST_F()
78 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.6\r\n")); in TEST_F()
/external/mockito/src/test/java/org/mockito/internal/matchers/
DStringMatchersTest.java18 assertTrue(new StartsWith("mockito").matches("mockito is here")); in startsWithString()
23 assertFalse(new StartsWith("junit").matches("mockito is here")); in doesNotStartWithString()
28 assertFalse(new StartsWith("java").matches(null)); in nullStartsWith()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dxla_internal_test_main.cc36 if (arg == "--benchmarks" || absl::StartsWith(arg, "--benchmarks=")) { in main()
38 if (absl::StartsWith(arg, "--benchmarks=")) { in main()
42 if (i + 1 >= argc || absl::StartsWith(argv[i + 1], "--")) { in main()
/external/catch2/include/internal/
Dcatch_objc.hpp152 struct StartsWith : StringHolder { struct
153 StartsWith( NSString* substr ) : StringHolder( substr ){} in StartsWith() function
186 inline Impl::NSStringMatchers::StartsWith
187 StartsWith( NSString* substr ){ return Impl::NSStringMatchers::StartsWith( substr ); } in StartsWith() function
/external/libchrome/base/strings/
Dstring_util_unittest.cc858 TEST(StringUtilTest, StartsWith) { in TEST() argument
859 EXPECT_TRUE(StartsWith("javascript:url", "javascript", in TEST()
861 EXPECT_FALSE(StartsWith("JavaScript:url", "javascript", in TEST()
863 EXPECT_TRUE(StartsWith("javascript:url", "javascript", in TEST()
865 EXPECT_TRUE(StartsWith("JavaScript:url", "javascript", in TEST()
867 EXPECT_FALSE(StartsWith("java", "javascript", base::CompareCase::SENSITIVE)); in TEST()
868 EXPECT_FALSE(StartsWith("java", "javascript", in TEST()
870 EXPECT_FALSE(StartsWith(std::string(), "javascript", in TEST()
872 EXPECT_FALSE(StartsWith(std::string(), "javascript", in TEST()
874 EXPECT_TRUE(StartsWith("java", std::string(), in TEST()
[all …]
/external/perfetto/tools/ftrace_proto_gen/
Dproto_gen_utils.cc95 using base::StartsWith;
250 if (StartsWith(field.type_and_name, "char *")) in InferProtoType()
254 if (StartsWith(field.type_and_name, "char ") && field.size == 0) in InferProtoType()
259 if (StartsWith(field.type_and_name, "ino_t ") || in InferProtoType()
260 StartsWith(field.type_and_name, "i_ino ") || in InferProtoType()
261 StartsWith(field.type_and_name, "dev_t ")) { in InferProtoType()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DStringSwitchTest.cpp74 TEST(StringSwitchTest, StartsWith) { in TEST() argument
77 .StartsWith("add", [](int X, int Y) { return X + Y; }) in TEST()
78 .StartsWith("sub", [](int X, int Y) { return X - Y; }) in TEST()
79 .StartsWith("mul", [](int X, int Y) { return X * Y; }) in TEST()
80 .StartsWith("div", [](int X, int Y) { return X / Y; }) in TEST()
/external/tensorflow/tensorflow/core/framework/
Dtensor_shape_test.cc625 TEST(TensorShapeUtilsTest, StartsWith) { in TEST() argument
626 EXPECT_TRUE(TensorShapeUtils::StartsWith(TensorShape({}), TensorShape({}))); in TEST()
628 TensorShapeUtils::StartsWith(TensorShape({2, 3}), TensorShape({}))); in TEST()
630 TensorShapeUtils::StartsWith(TensorShape({2, 3}), TensorShape({2}))); in TEST()
632 TensorShapeUtils::StartsWith(TensorShape({2, 3}), TensorShape({2, 3}))); in TEST()
633 EXPECT_TRUE(TensorShapeUtils::StartsWith(TensorShape({2, 3, 4}), in TEST()
636 TensorShapeUtils::StartsWith(TensorShape({2, 3}), TensorShape({3}))); in TEST()
638 TensorShapeUtils::StartsWith(TensorShape({2, 3}), TensorShape({2, 4}))); in TEST()
639 EXPECT_FALSE(TensorShapeUtils::StartsWith(TensorShape({2, 3}), in TEST()
641 EXPECT_FALSE(TensorShapeUtils::StartsWith(TensorShape({2, 3, 4}), in TEST()
/external/mockito/src/main/java/org/mockito/internal/matchers/
DStartsWith.java12 public class StartsWith implements ArgumentMatcher<String>, Serializable { class
16 public StartsWith(String prefix) { in StartsWith() method in StartsWith
/external/easymock/src/org/easymock/internal/matchers/
DStartsWith.java22 public class StartsWith implements IArgumentMatcher, Serializable { class
28 public StartsWith(String prefix) { in StartsWith() method in StartsWith
/external/tensorflow/tensorflow/java/src/gen/cc/
Dop_specs.cc222 if (str_util::StartsWith(markup, "\n")) { in ParseDocumentation()
232 } else if (!str_util::StartsWith(input, "```")) { in ParseDocumentation()
236 } else if (str_util::StartsWith(markup, "```")) { in ParseDocumentation()
243 } else if (str_util::StartsWith("(" + markup + ")", "`")) { in ParseDocumentation()
264 } else if (str_util::StartsWith(markup, "[")) { in ParseDocumentation()
270 str_util::StartsWith(input, label + link)) { in ParseDocumentation()
/external/deqp-deps/SPIRV-Tools/test/
Dsoftware_version_test.cpp27 using ::testing::StartsWith;
54 EXPECT_THAT(detailed_version, StartsWith("SPIRV-Tools v")); in TEST()
Dtarget_env_test.cpp26 using ::testing::StartsWith;
40 ASSERT_THAT(description, StartsWith("SPIR-V ")); in TEST_P()
/external/swiftshader/third_party/SPIRV-Tools/test/
Dsoftware_version_test.cpp27 using ::testing::StartsWith;
54 EXPECT_THAT(detailed_version, StartsWith("SPIRV-Tools v")); in TEST()
Dtarget_env_test.cpp26 using ::testing::StartsWith;
40 ASSERT_THAT(description, StartsWith("SPIR-V ")); in TEST_P()
/external/dng_sdk/source/
Ddng_info.cpp1221 if (fExif->fMake.StartsWith ("NIKON")) in ParseMakerNote()
1239 if (fExif->fMake.StartsWith ("CANON")) in ParseMakerNote()
1257 if (fExif->fMake.StartsWith ("MINOLTA" ) || in ParseMakerNote()
1258 fExif->fMake.StartsWith ("KONICA MINOLTA")) in ParseMakerNote()
1276 if (fExif->fMake.StartsWith ("SONY")) in ParseMakerNote()
1294 if (fExif->fMake.StartsWith ("EASTMAN KODAK")) in ParseMakerNote()
1312 if (fExif->fMake.StartsWith ("Mamiya")) in ParseMakerNote()
1346 if (fExif->fMake.StartsWith ("Hasselblad")) in ParseMakerNote()
1364 if (fExif->fMake.StartsWith ("Samsung")) in ParseMakerNote()
1382 if (fExif->fMake.StartsWith ("CASIO COMPUTER") && in ParseMakerNote()
[all …]
Ddng_validate.cpp747 if (gDumpStage1.IsEmpty () || gDumpStage1.StartsWith ("-")) in main()
770 if (gDumpStage2.IsEmpty () || gDumpStage2.StartsWith ("-")) in main()
793 if (gDumpStage3.IsEmpty () || gDumpStage3.StartsWith ("-")) in main()
816 if (gDumpTIF.IsEmpty () || gDumpTIF.StartsWith ("-")) in main()
839 if (gDumpDNG.IsEmpty () || gDumpDNG.StartsWith ("-")) in main()

12345678