/system/memory/libmeminfo/ |
D | androidprocheaps.cpp | 48 if (base::StartsWith(name, "[heap]")) { in ExtractAndroidHeapStatsFromFile() 50 } else if (base::StartsWith(name, "[anon:libc_malloc]")) { in ExtractAndroidHeapStatsFromFile() 52 } else if (base::StartsWith(name, "[anon:scudo:")) { in ExtractAndroidHeapStatsFromFile() 54 } else if (base::StartsWith(name, "[anon:GWP-ASan")) { in ExtractAndroidHeapStatsFromFile() 56 } else if (base::StartsWith(name, "[stack")) { in ExtractAndroidHeapStatsFromFile() 58 } else if (base::StartsWith(name, "[anon:stack_and_tls:")) { in ExtractAndroidHeapStatsFromFile() 102 } else if (base::StartsWith(name, "/dev/")) { in ExtractAndroidHeapStatsFromFile() 104 if (base::StartsWith(name, "/dev/kgsl-3d0")) { in ExtractAndroidHeapStatsFromFile() 106 } else if (base::StartsWith(name, "/dev/ashmem/CursorWindow")) { in ExtractAndroidHeapStatsFromFile() 108 } else if (base::StartsWith(name, "/dev/ashmem/jit-zygote-cache")) { in ExtractAndroidHeapStatsFromFile() [all …]
|
/system/apex/apexd/ |
D | apexd_vendor_apex.cpp | 29 using android::base::StartsWith; 44 return (StartsWith(preinstalled_path, "/vendor/apex/") || in IsVendorApex() 45 StartsWith(preinstalled_path, "/system/vendor/apex/")); in IsVendorApex() 104 if (StartsWith(preinstalled_path, "/vendor/") || in GetPreinstallPartitionEnum() 105 StartsWith(preinstalled_path, "/system/vendor/")) { in GetPreinstallPartitionEnum() 109 if (StartsWith(preinstalled_path, "/system_ext/")) { in GetPreinstallPartitionEnum() 113 if (StartsWith(preinstalled_path, "/system/")) { in GetPreinstallPartitionEnum() 117 if (StartsWith(preinstalled_path, "/product/")) { in GetPreinstallPartitionEnum()
|
D | apex_database.cpp | 43 using android::base::StartsWith; 70 if (StartsWith(name, "loop")) return LoopDevice; in GetType() 71 if (StartsWith(name, "dm-")) return DeviceMapperDevice; in GetType() 156 [&](const std::string& dir) { return StartsWith(backing_file, dir); }); in PopulateLoopInfo() 169 if (!StartsWith(backing_files[1], apex_hash_tree_dir)) { in PopulateLoopInfo()
|
/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/libvintf/ |
D | Apex.cpp | 25 using android::base::StartsWith; 106 return StartsWith(path, "/vendor/apex/") || StartsWith(path, "/system/vendor/apex/"); in GetDeviceVintfDirs() 113 return StartsWith(path, "/system/apex/") || StartsWith(path, "/system_ext/apex/") || in GetFrameworkVintfDirs() 114 StartsWith(path, "/system/system_ext/apex/") || StartsWith(path, "/product/apex/") || in GetFrameworkVintfDirs() 115 StartsWith(path, "/system/product/apex/"); in GetFrameworkVintfDirs()
|
/system/linkerconfig/modules/ |
D | apex.cc | 44 using android::base::StartsWith; 235 } else if (StartsWith(info.getModulePath(), "/dev/block/vd")) { in ScanActiveApexes() 270 if (StartsWith(original_path, "/system/apex/")) { in InSystem() 274 if (StartsWith(original_path, "/system_ext/apex/") || in InSystem() 275 StartsWith(original_path, "/system/system_ext/apex/")) { in InSystem() 280 if (StartsWith(original_path, "/product/apex/") || in InSystem() 281 StartsWith(original_path, "/system/product/apex/")) { in InSystem() 286 if (StartsWith(original_path, "/dev/block/vd")) { in InSystem() 295 if (StartsWith(original_path, "/product/apex/") || in InProduct() 296 StartsWith(original_path, "/system/product/apex/")) { in InProduct() [all …]
|
/system/core/fs_mgr/libfstab/ |
D | fstab.cpp | 48 using android::base::StartsWith; 133 if (entry->fs_type == "f2fs" && StartsWith(flag, "reserve_root=")) { in ParseMountFlags() 141 } else if (StartsWith(flag, "lowerdir=")) { in ParseMountFlags() 213 if (StartsWith(flag, "encryptable=")) { in ParseFsMgrFlags() 223 } else if (StartsWith(flag, "forceencrypt=") || StartsWith(flag, "forcefdeorfbe=")) { in ParseFsMgrFlags() 226 } else if (StartsWith(flag, "voldmanaged=")) { in ParseFsMgrFlags() 246 } else if (StartsWith(flag, "length=")) { in ParseFsMgrFlags() 251 } else if (StartsWith(flag, "swapprio=")) { in ParseFsMgrFlags() 255 } else if (StartsWith(flag, "zramsize=")) { in ParseFsMgrFlags() 269 } else if (StartsWith(flag, "fileencryption=") || flag == "fileencryption") { in ParseFsMgrFlags() [all …]
|
/system/core/init/ |
D | persistent_properties.cpp | 37 using android::base::StartsWith; 67 if (!StartsWith(entry->d_name, "persist.")) { in LoadLegacyPersistentProperties() 116 if (!StartsWith(entry->d_name, "persist.")) { in RemoveLegacyPersistentPropertyFiles() 147 if (!StartsWith(prop.name(), "persist.") && !StartsWith(prop.name(), "next_boot.")) { in ParsePersistentPropertyFile() 214 if (StartsWith(name, "persist.")) { in LoadPersistentPropertiesFromMemory() 279 if (StartsWith(prop_name, staged_prefix)) { in LoadPersistentProperties() 296 if (StartsWith(prop_name, staged_prefix)) { in LoadPersistentProperties()
|
D | devices.cpp | 53 using android::base::StartsWith; 66 if (!StartsWith(path, "/devices/pci")) return false; in FindPciDevicePrefix() 97 if (!StartsWith(path, "/devices/vbd-")) return false; in FindVbdDevicePrefix() 119 if (!StartsWith(uevent.path, "/devices/virtual/block/dm-")) return false; in FindDmDevice() 159 if (prefix_) return StartsWith(path, name_); in Match() 384 if (StartsWith(device, devices_platform_prefix)) { in GetBlockDeviceSymlinks() 386 } else if (StartsWith(device, devices_prefix)) { in GetBlockDeviceSymlinks() 436 !StartsWith(model, "none")) { in GetBlockDeviceSymlinks() 485 if (action == "add" || (action == "change" && StartsWith(devpath, "/dev/block/dm-"))) { in HandleDevice() 488 if (StartsWith(link, "/dev/block/")) { in HandleDevice() [all …]
|
D | rlimit_parser.cpp | 25 using android::base::StartsWith; 54 if (StartsWith(args[1], "RLIM_")) { in ParseRlimit() 56 } else if (StartsWith(args[1], "RLIMIT_")) { in ParseRlimit()
|
D | mount_handler.cpp | 67 if (android::base::StartsWith(fields[0], "/dev/")) { in ParseMount() 79 while (android::base::StartsWith(blockdev, "dm-")) { in GetDiskPart() 108 if (!android::base::StartsWith(entry.blk_device, devblock)) return; in SetMountProperty() 118 if (android::base::StartsWith(target, "loop")) rootdisk = ""; in SetMountProperty() 119 if (android::base::StartsWith(entry.mount_point, "/apex/")) rootdisk = ""; in SetMountProperty()
|
D | switch_root.cpp | 28 using android::base::StartsWith; 59 return StartsWith(mentry->mnt_dir, older_mount); in GetMounts()
|
D | action_parser.cpp | 32 using android::base::StartsWith; 53 if (android::base::StartsWith(prop_name, prefix)) { in IsActionableProperty() 149 if (StartsWith(filename, "/apex/") && !action_subcontext) { in ParseSection()
|
/system/extras/mtectrl/ |
D | mtectrl_test.cc | 29 using ::testing::StartsWith; 113 EXPECT_THAT(GetMisc(), StartsWith("\x01\x5a\xfe\xfe\x5a\x02")); in TEST_F() 119 EXPECT_THAT(GetMisc(), StartsWith("\x01\x5a\xfe\xfe\x5a\x06")); in TEST_F() 272 EXPECT_THAT(GetMisc(), StartsWith("\x01\x5a\xfe\xfe\x5a\x02")); in TEST_F() 285 EXPECT_THAT(GetMisc(), StartsWith("\x01\x5a\xfe\xfe\x5a\x30")); in TEST_F() 297 EXPECT_THAT(GetMisc(), StartsWith("\x01\x5a\xfe\xfe\x5a\x21")); in TEST_F() 309 EXPECT_THAT(GetMisc(), StartsWith("\x01\x5a\xfe\xfe\x5a\x01")); in TEST_F()
|
/system/libbase/ |
D | strings_test.cpp | 208 ASSERT_FALSE(android::base::StartsWith("", "foo")); in TEST() 209 ASSERT_TRUE(android::base::StartsWith("", "")); in TEST() 218 ASSERT_TRUE(android::base::StartsWith("foo", "")); in TEST() 219 ASSERT_TRUE(android::base::StartsWith("foo", "f")); in TEST() 220 ASSERT_TRUE(android::base::StartsWith("foo", "fo")); in TEST() 221 ASSERT_TRUE(android::base::StartsWith("foo", "foo")); in TEST() 243 ASSERT_FALSE(android::base::StartsWith("foo", "foobar")); in TEST() 252 ASSERT_FALSE(android::base::StartsWith("foobar", "oba")); in TEST() 253 ASSERT_FALSE(android::base::StartsWith("foobar", "bar")); in TEST() 264 ASSERT_FALSE(android::base::StartsWith("", 'f')); in TEST() [all …]
|
/system/extras/simpleperf/ |
D | test_util.cpp | 122 return android::base::StartsWith(fingerprint, "google/sdk_gphone") || in IsInEmulator() 123 android::base::StartsWith(fingerprint, "google/sdk_gpc") || in IsInEmulator() 124 android::base::StartsWith(fingerprint, "generic/cf") || in IsInEmulator() 125 android::base::StartsWith(fingerprint, "generic/aosp_cf"); in IsInEmulator()
|
/system/tools/aidl/ |
D | comments.cpp | 33 using android::base::StartsWith; 50 AIDL_FATAL_IF(!StartsWith(s, prefix), AIDL_LOCATION_HERE) in ConsumePrefix() 165 if (StartsWith(body, kLineCommentBegin)) { in Comment() 167 } else if (StartsWith(body, kBlockCommentBegin) && EndsWith(body, kBlockCommentEnd)) { in Comment() 216 if (last || StartsWith(it->body, kDocCommentBegin)) { in FormatCommentsForJava()
|
/system/apex/tests/native/ |
D | apex_shared_libraries_test.cpp | 36 using android::base::StartsWith; 105 if (!StartsWith(dev_file, "loop") && !StartsWith(dev_file, "dm-")) { in TEST() 123 if (ec || !StartsWith(target.string(), kApexSharedLibsRoot)) { in TEST()
|
/system/core/toolbox/ |
D | setprop.cpp | 27 using android::base::StartsWith; 61 if (value.size() >= PROP_VALUE_MAX && !StartsWith(name, "ro.")) { in setprop_main()
|
/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 | 114 if (base::StartsWith( in GetProxyType() 116 base::StartsWith( in GetProxyType() 121 if (base::StartsWith( in GetProxyType() 126 if (base::StartsWith( in GetProxyType() 128 base::StartsWith( in GetProxyType() 133 if (base::StartsWith(proxy, kNoProxy, base::CompareCase::INSENSITIVE_ASCII)) { in GetProxyType() 262 if (base::StartsWith( in ResumeTransfer() 265 } else if (base::StartsWith( in ResumeTransfer() 269 } else if (base::StartsWith( in ResumeTransfer() 812 if (base::StartsWith(url_, "file://", base::CompareCase::INSENSITIVE_ASCII)) { in GetHttpResponseCode()
|
/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/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/libbase/include/android-base/ |
D | strings.h | 118 bool StartsWith(std::string_view s, std::string_view prefix); 119 bool StartsWith(std::string_view s, char prefix); 133 if (!StartsWith(*s, prefix)) return false; in ConsumePrefix()
|
/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()
|