/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 | 46 using android::base::StartsWith; 129 if (entry->fs_type == "f2fs" && StartsWith(flag, "reserve_root=")) { in ParseMountFlags() 186 if (StartsWith(flag, "encryptable=")) { in ParseFsMgrFlags() 190 } else if (StartsWith(flag, "voldmanaged=")) { in ParseFsMgrFlags() 210 } else if (StartsWith(flag, "length=")) { in ParseFsMgrFlags() 215 } else if (StartsWith(flag, "swapprio=")) { in ParseFsMgrFlags() 219 } else if (StartsWith(flag, "zramsize=")) { in ParseFsMgrFlags() 233 } else if (StartsWith(flag, "forceencrypt=")) { in ParseFsMgrFlags() 237 } else if (StartsWith(flag, "fileencryption=")) { in ParseFsMgrFlags() 239 } else if (StartsWith(flag, "forcefdeorfbe=")) { 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/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 | 48 using android::base::StartsWith; 61 if (!StartsWith(path, "/devices/pci")) return false; in FindPciDevicePrefix() 92 if (!StartsWith(path, "/devices/vbd-")) return false; in FindVbdDevicePrefix() 114 if (!StartsWith(path, "/devices/virtual/block/dm-")) return false; in FindDmDevice() 151 if (prefix_) return StartsWith(path, name_); in Match() 327 if (StartsWith(device, devices_platform_prefix)) { in GetBlockDeviceSymlinks() 329 } else if (StartsWith(device, devices_prefix)) { in GetBlockDeviceSymlinks() 413 if (action == "add" || (action == "change" && StartsWith(devpath, "/dev/block/dm-"))) { in HandleDevice() 432 if (StartsWith(devpath, "/dev/block/dm-")) { in HandleDevice() 478 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 | host_import_parser.cpp | 21 using android::base::StartsWith;
|
/system/apex/apexd/ |
D | apex_database.cpp | 42 using android::base::StartsWith; 69 if (StartsWith(name, "loop")) return LoopDevice; in GetType() 70 if (StartsWith(name, "dm-")) return DeviceMapperDevice; in GetType() 151 if (!StartsWith(backing_files[0], kActiveApexPackagesDataDir)) { in PopulateLoopInfo() 156 if (!StartsWith(backing_files[0], kActiveApexPackagesDataDir)) { in PopulateLoopInfo() 161 if (!StartsWith(backing_files[1], kApexHashTreeDir)) { in PopulateLoopInfo()
|
/system/core/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/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 | 116 if (base::StartsWith( in GetProxyType() 118 base::StartsWith( in GetProxyType() 123 if (base::StartsWith( in GetProxyType() 128 if (base::StartsWith( in GetProxyType() 130 base::StartsWith( in GetProxyType() 135 if (base::StartsWith(proxy, kNoProxy, base::CompareCase::INSENSITIVE_ASCII)) { in GetProxyType() 264 if (base::StartsWith( in ResumeTransfer() 267 } else if (base::StartsWith( in ResumeTransfer() 271 } else if (base::StartsWith( in ResumeTransfer() 821 if (base::StartsWith(url_, "file://", base::CompareCase::INSENSITIVE_ASCII)) { in GetHttpResponseCode()
|
D | omaha_request_params.cc | 138 return base::StartsWith( in CollectECFWVersions() 140 base::StartsWith( in CollectECFWVersions() 142 base::StartsWith(hwid_, string("SNOW"), base::CompareCase::SENSITIVE); in CollectECFWVersions()
|
/system/linkerconfig/contents/tests/backward_compatibility/ |
D | testbase.h | 80 if (!android::base::StartsWith(path, "/apex") && in ContainsSearchPath() 101 if (!android::base::StartsWith(path, "/apex") && in ContainsPermittedPath()
|
/system/core/adb/client/ |
D | bugreport.cpp | 137 if (android::base::StartsWith(line, BUGZ_BEGIN_PREFIX)) { in ProcessLine() 139 } else if (android::base::StartsWith(line, BUGZ_OK_PREFIX)) { in ProcessLine() 141 } else if (android::base::StartsWith(line, BUGZ_FAIL_PREFIX)) { in ProcessLine() 145 } else if (show_progress_ && android::base::StartsWith(line, BUGZ_PROGRESS_PREFIX)) { in ProcessLine()
|
/system/core/fs_mgr/liblp/ |
D | partition_opener.cpp | 41 if (android::base::StartsWith(path, "/")) { in GetPartitionAbsolutePath() 54 if (android::base::StartsWith(path, "mmcblk")) { in GetPartitionAbsolutePath()
|
/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/linkerconfig/contents/context/ |
D | context.cc | 26 using android::base::StartsWith; 80 if (StartsWith(apex.name, "com.android.vndk.")) { in IsVndkAvailable()
|
/system/linkerconfig/modules/ |
D | stringutil.cc | 24 if (android::base::StartsWith(s, prefix)) { in TrimPrefix()
|
/system/vold/ |
D | VolumeManager.cpp | 73 using android::base::StartsWith; 524 if (!StartsWith(exeName, "/system/bin/app_process") && sb.st_uid < AID_APP_START) { in remountUid() 660 if ((StartsWith(test, "/mnt/") && in unmountAll() 662 !StartsWith(test, "/mnt/scratch") && in unmountAll() 664 !StartsWith(test, "/mnt/vendor") && !StartsWith(test, "/mnt/product")) || in unmountAll() 665 StartsWith(test, "/storage/")) { in unmountAll() 681 if (StartsWith(path, "/storage/")) { in mkdirs()
|
D | Process.cpp | 61 if (android::base::StartsWith(line, prefix)) { in checkMaps() 76 if (android::base::StartsWith(res, prefix)) { in checkSymlink()
|