HomeSort by relevance Sort by last modified time
    Searched refs:StartsWith (Results 1 - 25 of 225) sorted by null

1 2 3 4 5 6 7 8 9

  /external/perfetto/src/base/
string_utils_unittest.cc 26 TEST(StringUtilsTest, StartsWith) {
27 EXPECT_TRUE(StartsWith("", ""));
28 EXPECT_TRUE(StartsWith("abc", ""));
29 EXPECT_TRUE(StartsWith("abc", "a"));
30 EXPECT_TRUE(StartsWith("abc", "ab"));
31 EXPECT_TRUE(StartsWith("abc", "abc"));
32 EXPECT_FALSE(StartsWith("abc", "abcd"));
33 EXPECT_FALSE(StartsWith("aa", "ab"));
34 EXPECT_FALSE(StartsWith("", "ab"));
string_utils.cc 22 bool StartsWith(const std::string& str, const std::string& prefix) {
  /external/perfetto/include/perfetto/base/
string_utils.h 25 bool StartsWith(const std::string& str, const std::string& prefix);
  /external/mockito/src/main/java/org/mockito/internal/matchers/
StartsWith.java 12 public class StartsWith implements ArgumentMatcher<String>, Serializable {
16 public StartsWith(String prefix) {
21 return actual != null && actual.startsWith(prefix);
25 return "startsWith(\"" + prefix + "\")";
  /external/easymock/src/org/easymock/internal/matchers/
StartsWith.java 22 public class StartsWith implements IArgumentMatcher, Serializable {
28 public StartsWith(String prefix) {
34 && ((String) actual).startsWith(prefix);
38 buffer.append("startsWith(\"" + prefix + "\")");
  /external/perfetto/src/ftrace_reader/
cpu_stats_parser.cc 53 if (base::StartsWith(splitter.cur_token(), "entries")) {
55 } else if (base::StartsWith(splitter.cur_token(), "overrun")) {
57 } else if (base::StartsWith(splitter.cur_token(), "commit overrun")) {
59 } else if (base::StartsWith(splitter.cur_token(), "bytes")) {
61 } else if (base::StartsWith(splitter.cur_token(), "oldest event ts")) {
63 } else if (base::StartsWith(splitter.cur_token(), "now ts")) {
65 } else if (base::StartsWith(splitter.cur_token(), "dropped events")) {
67 } else if (base::StartsWith(splitter.cur_token(), "read events")) {
  /build/make/tools/fs_config/
fs_config_test.cpp 101 if (!android::base::StartsWith(config->prefix, vendor_str) &&
102 !android::base::StartsWith(config->prefix, vendor_alt_str) &&
103 !android::base::StartsWith(config->prefix, oem_str) &&
104 !android::base::StartsWith(config->prefix, oem_alt_str) &&
105 !android::base::StartsWith(config->prefix, odm_str) &&
106 !android::base::StartsWith(config->prefix, odm_alt_str)) {
120 if (android::base::StartsWith(config->prefix, vendor_str) ||
121 android::base::StartsWith(config->prefix, vendor_alt_str)) {
135 if (android::base::StartsWith(config->prefix, oem_str) ||
136 android::base::StartsWith(config->prefix, oem_alt_str))
    [all...]
  /system/core/adb/
socket_spec.cpp 32 using android::base::StartsWith;
69 if (!StartsWith(spec, "tcp:")) {
121 if (StartsWith(spec, prefix)) {
125 return StartsWith(spec, "tcp:");
131 if (StartsWith(spec, prefix)) {
145 if (StartsWith(spec, "tcp:")) {
173 if (StartsWith(spec, prefix)) {
190 if (StartsWith(spec, "tcp:")) {
216 if (StartsWith(spec, prefix)) {
  /external/pdfium/fpdfsdk/
fpdfsave_embeddertest.cpp 23 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n"));
30 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.4\r\n"));
36 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n"));
40 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n"));
44 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.7\r\n"));
78 EXPECT_THAT(GetString(), testing::StartsWith("%PDF-1.6\r\n"));
  /external/mockito/src/test/java/org/mockito/internal/matchers/
StringMatchersTest.java 18 assertTrue(new StartsWith("mockito").matches("mockito is here"));
23 assertFalse(new StartsWith("junit").matches("mockito is here"));
28 assertFalse(new StartsWith("java").matches(null));
  /system/tools/hidl/test/utils_test/
main.cpp 47 EXPECT_TRUE(StringHelper::StartsWith("", ""));
48 EXPECT_TRUE(StringHelper::StartsWith("a", ""));
49 EXPECT_TRUE(StringHelper::StartsWith("b", "b"));
50 EXPECT_TRUE(StringHelper::StartsWith("ab", "a"));
51 EXPECT_TRUE(StringHelper::StartsWith("ab", "ab"));
52 EXPECT_TRUE(StringHelper::StartsWith("abcd", "abc"));
53 EXPECT_TRUE(StringHelper::StartsWith("abcd", "abcd"));
54 EXPECT_TRUE(StringHelper::StartsWith("abcdefghijk", "abc"));
55 EXPECT_TRUE(StringHelper::StartsWith("abcdefghijk", "abcdefghij"));
57 EXPECT_FALSE(StringHelper::StartsWith("", "a"))
    [all...]
  /external/libchrome/dbus/
string_util.cc 16 if (!base::StartsWith(value, "/", base::CompareCase::SENSITIVE))
  /external/llvm/lib/Support/
Triple.cpp 248 .StartsWith("bpf", BPFArch)
333 (ArchName.startswith("v2") || ArchName.startswith("v3")))
392 .StartsWith("kalimba", Triple::kalimba)
404 if (ArchName.startswith("arm") || ArchName.startswith("thumb") ||
405 ArchName.startswith("aarch64"))
407 if (ArchName.startswith("bpf"))
435 .StartsWith("cloudabi", Triple::CloudABI)
436 .StartsWith("darwin", Triple::Darwin
    [all...]
  /external/tensorflow/tensorflow/core/common_runtime/gpu/
gpu_device_test.cc 51 static bool StartsWith(const string& lhs, const string& rhs) {
62 EXPECT_TRUE(StartsWith(status.error_message(), "Could not parse entry"))
72 EXPECT_TRUE(StartsWith(status.error_message(),
83 EXPECT_TRUE(StartsWith(status.error_message(),
94 EXPECT_TRUE(StartsWith(status.error_message(),
107 EXPECT_TRUE(StartsWith(status.error_message(),
120 EXPECT_TRUE(StartsWith(status.error_message(),
135 EXPECT_TRUE(StartsWith(status.error_message(),
  /frameworks/native/cmds/bugreportz/
bugreportz.cpp 38 if (!show_progress && (android::base::StartsWith(line, PROGRESS_PREFIX) ||
39 android::base::StartsWith(line, BEGIN_PREFIX)))
  /system/core/init/
rlimit_parser.cpp 25 using android::base::StartsWith;
50 if (StartsWith(args[1], "RLIM_")) {
  /external/swiftshader/third_party/llvm-subzero/lib/Support/
Triple.cpp 258 .StartsWith("bpf", BPFArch)
346 (ArchName.startswith("v2") || ArchName.startswith("v3")))
408 .StartsWith("kalimba", Triple::kalimba)
420 if (ArchName.startswith("arm") || ArchName.startswith("thumb") ||
421 ArchName.startswith("aarch64"))
423 if (ArchName.startswith("bpf"))
451 .StartsWith("cloudabi", Triple::CloudABI)
452 .StartsWith("darwin", Triple::Darwin
    [all...]
  /external/perfetto/tools/ftrace_proto_gen/
ftrace_proto_gen.cc 47 bool StartsWith(const std::string& str, const std::string& prefix) {
70 if (StartsWith(field.type_and_name, "char *"))
74 if (StartsWith(field.type_and_name, "char ") && field.size == 0)
79 if (StartsWith(field.type_and_name, "ino_t ") ||
80 StartsWith(field.type_and_name, "i_ino ") ||
81 StartsWith(field.type_and_name, "dev_t ")) {
184 if (!StartsWith(line, "#")) {
  /external/libchrome/base/
sys_info.cc 45 if (StartsWith(group_name, "Enabled", CompareCase::SENSITIVE))
  /frameworks/base/libs/androidfw/tests/
CommonHelpers.cpp 35 if (base::StartsWith(arg, "--testdata=")) {
  /frameworks/base/tools/aapt2/filter/
AbiFilter.cpp 36 if (!util::StartsWith(path, kLibPrefix)) {
Filter.h 46 return util::StartsWith(path, prefix_);
  /system/core/libvndksupport/tests/
linker_test.cpp 42 if (android::base::StartsWith(name, "libEGL_")) {
  /system/core/base/
strings_test.cpp 146 ASSERT_FALSE(android::base::StartsWith("", "foo"));
147 ASSERT_TRUE(android::base::StartsWith("", ""));
156 ASSERT_TRUE(android::base::StartsWith("foo", ""));
157 ASSERT_TRUE(android::base::StartsWith("foo", "f"));
158 ASSERT_TRUE(android::base::StartsWith("foo", "fo"));
159 ASSERT_TRUE(android::base::StartsWith("foo", "foo"));
181 ASSERT_FALSE(android::base::StartsWith("foo", "foobar"));
190 ASSERT_FALSE(android::base::StartsWith("foobar", "oba"));
191 ASSERT_FALSE(android::base::StartsWith("foobar", "bar"));
257 ASSERT_TRUE(android::base::StartsWith("hello", std::string{"hell"}))
    [all...]
  /system/core/base/include/android-base/
strings.h 61 bool StartsWith(const std::string& s, const char* prefix);
63 bool StartsWith(const std::string& s, const std::string& prefix);

Completed in 579 milliseconds

1 2 3 4 5 6 7 8 9