Home
last modified time | relevance | path

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

1234567

/system/tools/hidl/test/host_utils_test/
Dmain.cpp45 EXPECT_TRUE(StringHelper::StartsWith("", "")); in TEST_F()
46 EXPECT_TRUE(StringHelper::StartsWith("a", "")); in TEST_F()
47 EXPECT_TRUE(StringHelper::StartsWith("b", "b")); in TEST_F()
48 EXPECT_TRUE(StringHelper::StartsWith("ab", "a")); in TEST_F()
49 EXPECT_TRUE(StringHelper::StartsWith("ab", "ab")); in TEST_F()
50 EXPECT_TRUE(StringHelper::StartsWith("abcd", "abc")); in TEST_F()
51 EXPECT_TRUE(StringHelper::StartsWith("abcd", "abcd")); in TEST_F()
52 EXPECT_TRUE(StringHelper::StartsWith("abcdefghijk", "abc")); in TEST_F()
53 EXPECT_TRUE(StringHelper::StartsWith("abcdefghijk", "abcdefghij")); in TEST_F()
55 EXPECT_FALSE(StringHelper::StartsWith("", "a")); in TEST_F()
[all …]
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp47 using android::base::StartsWith;
132 if (entry->fs_type == "f2fs" && StartsWith(flag, "reserve_root=")) { in ParseMountFlags()
138 } else if (StartsWith(flag, "lowerdir=")) { in ParseMountFlags()
188 if (StartsWith(flag, "encryptable=")) { in ParseFsMgrFlags()
192 } else if (StartsWith(flag, "voldmanaged=")) { in ParseFsMgrFlags()
212 } else if (StartsWith(flag, "length=")) { in ParseFsMgrFlags()
217 } else if (StartsWith(flag, "swapprio=")) { in ParseFsMgrFlags()
221 } else if (StartsWith(flag, "zramsize=")) { in ParseFsMgrFlags()
235 } else if (StartsWith(flag, "forceencrypt=")) { in ParseFsMgrFlags()
239 } else if (StartsWith(flag, "fileencryption=")) { in ParseFsMgrFlags()
[all …]
/system/libbase/
Dstrings_test.cpp146 ASSERT_FALSE(android::base::StartsWith("", "foo")); in TEST()
147 ASSERT_TRUE(android::base::StartsWith("", "")); in TEST()
156 ASSERT_TRUE(android::base::StartsWith("foo", "")); in TEST()
157 ASSERT_TRUE(android::base::StartsWith("foo", "f")); in TEST()
158 ASSERT_TRUE(android::base::StartsWith("foo", "fo")); in TEST()
159 ASSERT_TRUE(android::base::StartsWith("foo", "foo")); in TEST()
181 ASSERT_FALSE(android::base::StartsWith("foo", "foobar")); in TEST()
190 ASSERT_FALSE(android::base::StartsWith("foobar", "oba")); in TEST()
191 ASSERT_FALSE(android::base::StartsWith("foobar", "bar")); in TEST()
202 ASSERT_FALSE(android::base::StartsWith("", 'f')); in TEST()
[all …]
/system/linkerconfig/modules/
Dapex.cc44 using android::base::StartsWith;
223 return StartsWith(original_path, "/system/apex/") || in InSystem()
224 StartsWith(original_path, "/system_ext/apex/") || in InSystem()
226 StartsWith(original_path, "/product/apex/")); in InSystem()
231 StartsWith(original_path, "/product/apex/"); in InProduct()
235 return StartsWith(original_path, "/vendor/apex/") || in InVendor()
236 StartsWith(original_path, "/odm/apex/"); in InVendor()
Dstringutil.cc24 if (android::base::StartsWith(s, prefix)) { in TrimPrefix()
/system/apex/tests/native/
Dapex_shared_libraries_test.cpp33 using android::base::StartsWith;
63 if (!StartsWith(dev_file, "loop") && !StartsWith(dev_file, "dm-")) { in TEST()
84 if (ec || !StartsWith(target.string(), kApexSharedLibsRoot)) { in TEST()
/system/core/init/
Dmount_handler.cpp62 if (android::base::StartsWith(fields[0], "/dev/")) { in ParseMount()
72 if (!android::base::StartsWith(entry.blk_device, devblock)) return; in SetMountProperty()
76 if (android::base::StartsWith(value, "sd")) { in SetMountProperty()
87 if (android::base::StartsWith(value, "loop")) value = ""; in SetMountProperty()
88 if (android::base::StartsWith(entry.mount_point, "/apex/")) value = ""; in SetMountProperty()
Ddevices.cpp49 using android::base::StartsWith;
62 if (!StartsWith(path, "/devices/pci")) return false; in FindPciDevicePrefix()
93 if (!StartsWith(path, "/devices/vbd-")) return false; in FindVbdDevicePrefix()
115 if (!StartsWith(path, "/devices/virtual/block/dm-")) return false; in FindDmDevice()
158 if (prefix_) return StartsWith(path, name_); in Match()
335 if (StartsWith(device, devices_platform_prefix)) { in GetBlockDeviceSymlinks()
337 } else if (StartsWith(device, devices_prefix)) { in GetBlockDeviceSymlinks()
421 if (action == "add" || (action == "change" && StartsWith(devpath, "/dev/block/dm-"))) { in HandleDevice()
440 if (StartsWith(devpath, "/dev/block/dm-")) { in HandleDevice()
487 if (StartsWith(uevent.path, "/devices")) { in HandleUevent()
[all …]
Drlimit_parser.cpp25 using android::base::StartsWith;
50 if (StartsWith(args[1], "RLIM_")) { in ParseRlimit()
Dswitch_root.cpp28 using android::base::StartsWith;
59 return StartsWith(mentry->mnt_dir, older_mount); in GetMounts()
Dpersistent_properties.cpp36 using android::base::StartsWith;
66 if (!StartsWith(entry->d_name, "persist.")) { in LoadLegacyPersistentProperties()
115 if (!StartsWith(entry->d_name, "persist.")) { in RemoveLegacyPersistentPropertyFiles()
132 if (StartsWith(name, "persist.")) { in LoadPersistentPropertiesFromMemory()
Dsnapuserd_transition.cpp124 if (android::base::StartsWith(path.string(), "/dev/block/dm-")) { in RelabelDeviceMapper()
155 if (android::base::StartsWith(device, "/dev/dm-user/")) { in SnapuserdSelinuxHelper()
165 if (!ok || android::base::StartsWith(map.name, "/dev/") || in LockAllSystemPages()
166 !android::base::StartsWith(map.name, "/")) { in LockAllSystemPages()
/system/unwinding/libunwindstack/benchmarks/
DUtils.cpp52 if (vma.name == "[anon:libc_malloc]" || android::base::StartsWith(vma.name, "[anon:scudo:") || in GatherRss()
53 android::base::StartsWith(vma.name, "[anon:GWP-ASan")) { in GatherRss()
/system/libbase/include/android-base/
Dstrings.h60 bool StartsWith(std::string_view s, std::string_view prefix);
61 bool StartsWith(std::string_view s, char prefix);
75 if (!StartsWith(*s, prefix)) return false; in ConsumePrefix()
/system/apex/apexd/
Dapex_database.cpp45 using android::base::StartsWith;
72 if (StartsWith(name, "loop")) return LoopDevice; in GetType()
73 if (StartsWith(name, "dm-")) return DeviceMapperDevice; in GetType()
157 return StartsWith(backing_file, active_apex_dir) || in PopulateLoopInfo()
158 StartsWith(backing_file, decompression_dir); in PopulateLoopInfo()
171 if (!StartsWith(backing_files[1], apex_hash_tree_dir)) { in PopulateLoopInfo()
/system/tools/aidl/
Dcomments.cpp33 using android::base::StartsWith;
49 AIDL_FATAL_IF(!StartsWith(s, prefix), AIDL_LOCATION_HERE) in ConsumePrefix()
164 if (StartsWith(body, kLineCommentBegin)) { in Comment()
166 } else if (StartsWith(body, kBlockCommentBegin) && EndsWith(body, kBlockCommentEnd)) { in Comment()
226 if (last && it->type == Comment::Type::BLOCK && !StartsWith(it->body, kDocCommentBegin)) { in FormatCommentsForJava()
/system/core/toolbox/
Dsetprop.cpp27 using android::base::StartsWith;
61 if (value.size() >= PROP_VALUE_MAX && !StartsWith(value, "ro.")) { in setprop_main()
/system/core/libmodprobe/
Dlibmodprobe_ext_test.cpp45 if (android::base::StartsWith(*it, path_name)) { in Insmod()
65 if (*it == module_name || android::base::StartsWith(*it, module_name + " ")) { in Rmmod()
/system/update_engine/common/
Dfile_fetcher.cc47 base::StartsWith(url, "file:///", base::CompareCase::INSENSITIVE_ASCII) || in SupportedUrl()
48 base::StartsWith(url, "fd://", base::CompareCase::INSENSITIVE_ASCII)); in SupportedUrl()
73 if (base::StartsWith(url, "fd://", base::CompareCase::INSENSITIVE_ASCII)) { in BeginTransfer()
/system/update_engine/
Dlibcurl_http_fetcher.cc115 if (base::StartsWith( in GetProxyType()
117 base::StartsWith( in GetProxyType()
122 if (base::StartsWith( in GetProxyType()
127 if (base::StartsWith( in GetProxyType()
129 base::StartsWith( in GetProxyType()
134 if (base::StartsWith(proxy, kNoProxy, base::CompareCase::INSENSITIVE_ASCII)) { in GetProxyType()
263 if (base::StartsWith( in ResumeTransfer()
266 } else if (base::StartsWith( in ResumeTransfer()
270 } else if (base::StartsWith( in ResumeTransfer()
819 if (base::StartsWith(url_, "file://", base::CompareCase::INSENSITIVE_ASCII)) { in GetHttpResponseCode()
/system/linkerconfig/contents/tests/backward_compatibility/
Dtestbase.h78 if (!android::base::StartsWith(path, "/apex") && in ContainsSearchPath()
99 if (!android::base::StartsWith(path, "/apex") && in ContainsPermittedPath()
/system/linkerconfig/contents/context/
Dcontext.cc26 using android::base::StartsWith;
89 if (StartsWith(apex.name, "com.android.vndk.")) { in IsVndkAvailable()
/system/core/property_service/libpropertyinfoserializer/
Dproperty_info_file.cpp25 using android::base::StartsWith;
115 if (trimmed_line.empty() || StartsWith(trimmed_line, "#")) { in ParsePropertyInfoFile()
/system/core/fs_mgr/liblp/
Dpartition_opener.cpp44 if (android::base::StartsWith(path, "/")) { in GetPartitionAbsolutePath()
57 if (android::base::StartsWith(path, "mmcblk")) { in GetPartitionAbsolutePath()
/system/core/fs_mgr/libfiemap/
Dutility.cpp172 CHECK(android::base::StartsWith(child, "/")) << "Not an absolute path: " << child; in IsSubdir()
173 CHECK(android::base::StartsWith(parent, "/")) << "Not an absolute path: " << parent; in IsSubdir()
192 return android::base::StartsWith(child_sv, std::string(parent_sv) + "/"); in IsSubdir()

1234567