/system/tools/hidl/test/host_utils_test/ |
D | main.cpp | 45 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/ |
D | fs_mgr_fstab.cpp | 47 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/ |
D | strings_test.cpp | 146 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/ |
D | apex.cc | 44 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()
|
D | stringutil.cc | 24 if (android::base::StartsWith(s, prefix)) { in TrimPrefix()
|
/system/apex/tests/native/ |
D | apex_shared_libraries_test.cpp | 33 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/ |
D | mount_handler.cpp | 62 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()
|
D | devices.cpp | 49 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 …]
|
D | rlimit_parser.cpp | 25 using android::base::StartsWith; 50 if (StartsWith(args[1], "RLIM_")) { in ParseRlimit()
|
D | switch_root.cpp | 28 using android::base::StartsWith; 59 return StartsWith(mentry->mnt_dir, older_mount); in GetMounts()
|
D | persistent_properties.cpp | 36 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()
|
D | snapuserd_transition.cpp | 124 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/ |
D | Utils.cpp | 52 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/ |
D | strings.h | 60 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/ |
D | apex_database.cpp | 45 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/ |
D | comments.cpp | 33 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/ |
D | setprop.cpp | 27 using android::base::StartsWith; 61 if (value.size() >= PROP_VALUE_MAX && !StartsWith(value, "ro.")) { in setprop_main()
|
/system/core/libmodprobe/ |
D | libmodprobe_ext_test.cpp | 45 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/ |
D | file_fetcher.cc | 47 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/ |
D | libcurl_http_fetcher.cc | 115 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/ |
D | testbase.h | 78 if (!android::base::StartsWith(path, "/apex") && in ContainsSearchPath() 99 if (!android::base::StartsWith(path, "/apex") && in ContainsPermittedPath()
|
/system/linkerconfig/contents/context/ |
D | context.cc | 26 using android::base::StartsWith; 89 if (StartsWith(apex.name, "com.android.vndk.")) { in IsVndkAvailable()
|
/system/core/property_service/libpropertyinfoserializer/ |
D | property_info_file.cpp | 25 using android::base::StartsWith; 115 if (trimmed_line.empty() || StartsWith(trimmed_line, "#")) { in ParsePropertyInfoFile()
|
/system/core/fs_mgr/liblp/ |
D | partition_opener.cpp | 44 if (android::base::StartsWith(path, "/")) { in GetPartitionAbsolutePath() 57 if (android::base::StartsWith(path, "mmcblk")) { in GetPartitionAbsolutePath()
|
/system/core/fs_mgr/libfiemap/ |
D | utility.cpp | 172 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()
|