Home
last modified time | relevance | path

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

123456

/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.cpp46 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/
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/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.cpp48 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 …]
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()
Dhost_import_parser.cpp21 using android::base::StartsWith;
/system/apex/apexd/
Dapex_database.cpp42 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/
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/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.cc116 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()
Domaha_request_params.cc138 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/
Dtestbase.h80 if (!android::base::StartsWith(path, "/apex") && in ContainsSearchPath()
101 if (!android::base::StartsWith(path, "/apex") && in ContainsPermittedPath()
/system/core/adb/client/
Dbugreport.cpp137 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/
Dpartition_opener.cpp41 if (android::base::StartsWith(path, "/")) { in GetPartitionAbsolutePath()
54 if (android::base::StartsWith(path, "mmcblk")) { in GetPartitionAbsolutePath()
/system/core/property_service/libpropertyinfoserializer/
Dproperty_info_file.cpp25 using android::base::StartsWith;
115 if (trimmed_line.empty() || StartsWith(trimmed_line, "#")) { in ParsePropertyInfoFile()
/system/linkerconfig/contents/context/
Dcontext.cc26 using android::base::StartsWith;
80 if (StartsWith(apex.name, "com.android.vndk.")) { in IsVndkAvailable()
/system/linkerconfig/modules/
Dstringutil.cc24 if (android::base::StartsWith(s, prefix)) { in TrimPrefix()
/system/vold/
DVolumeManager.cpp73 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()
DProcess.cpp61 if (android::base::StartsWith(line, prefix)) { in checkMaps()
76 if (android::base::StartsWith(res, prefix)) { in checkSymlink()

123456