/system/libbase/ |
D | strings.cpp | 102 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith() argument 103 return s.size() >= suffix.size() && s.substr(s.size() - suffix.size(), suffix.size()) == suffix; in EndsWith() 106 bool EndsWith(std::string_view s, char suffix) { in EndsWith() argument 107 return !s.empty() && s.back() == suffix; in EndsWith() 110 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix) { in EndsWithIgnoreCase() argument 111 return s.size() >= suffix.size() && in EndsWithIgnoreCase() 112 strncasecmp(s.data() + (s.size() - suffix.size()), suffix.data(), suffix.size()) == 0; in EndsWithIgnoreCase()
|
D | Android.bp | 201 suffix: "32", 204 suffix: "64", 237 suffix: "32", 240 suffix: "64",
|
/system/libbase/include/android-base/ |
D | strings.h | 65 bool EndsWith(std::string_view s, std::string_view suffix); 66 bool EndsWith(std::string_view s, char suffix); 67 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix); 82 inline bool ConsumeSuffix(std::string_view* s, std::string_view suffix) { in ConsumeSuffix() argument 83 if (!EndsWith(*s, suffix)) return false; in ConsumeSuffix() 84 s->remove_suffix(suffix.size()); in ConsumeSuffix()
|
D | parseint.h | 58 const char* suffix; variable 59 if ((!allow_suffixes || (suffix = strchr(suffixes, tolower(*end))) == nullptr) || 60 __builtin_mul_overflow(result, 1ULL << (10 * (suffix - suffixes)), &result)) {
|
/system/core/fs_mgr/libsnapshot/ |
D | test_helpers.cpp | 144 const std::string& suffix) { in FillFakeMetadata() argument 146 if (!builder->AddGroup(group.name() + suffix, group.size())) { in FillFakeMetadata() 151 auto p = builder->AddPartition(partition_name + suffix, group.name() + suffix, in FillFakeMetadata() 154 return AssertionFailure() << "Cannot add partition " << partition_name + suffix in FillFakeMetadata() 155 << " to group " << group.name() << suffix; in FillFakeMetadata() 160 auto p = builder->FindPartition(partition.partition_name() + suffix); in FillFakeMetadata() 163 << suffix << "; it is not found."; in FillFakeMetadata() 167 << "Cannot resize partition " << partition.partition_name() << suffix in FillFakeMetadata()
|
/system/core/fs_mgr/liblp/ |
D | utility.cpp | 116 uint32_t SlotNumberForSlotSuffix(const std::string& suffix) { in SlotNumberForSlotSuffix() argument 117 if (suffix.empty() || suffix == "a" || suffix == "_a") { in SlotNumberForSlotSuffix() 119 } else if (suffix == "b" || suffix == "_b") { in SlotNumberForSlotSuffix() 122 LERROR << __PRETTY_FUNCTION__ << "slot '" << suffix in SlotNumberForSlotSuffix() 166 std::string suffix = partition_name.substr(partition_name.size() - 2); in GetPartitionSlotSuffix() local 167 return (suffix == "_a" || suffix == "_b") ? suffix : ""; in GetPartitionSlotSuffix()
|
/system/tools/hidl/host_utils/ |
D | StringHelper.cpp | 197 bool StringHelper::EndsWith(const std::string &in, const std::string &suffix) { in EndsWith() argument 198 return in.size() >= suffix.size() && in EndsWith() 199 in.substr(in.size() - suffix.size()) == suffix; in EndsWith() 207 std::string StringHelper::RTrim(const std::string &in, const std::string &suffix) { in RTrim() argument 208 if (EndsWith(in, suffix)) { in RTrim() 209 return in.substr(0, in.size() - suffix.size()); in RTrim() 223 std::string StringHelper::RTrimAll(const std::string &in, const std::string &suffix) { in RTrimAll() argument 224 if (suffix.empty()) { in RTrimAll() 229 while (EndsWith(copy, suffix)) { in RTrimAll() 230 copy = copy.substr(0, copy.size() - suffix.size()); in RTrimAll()
|
/system/libziparchive/ |
D | test_ziparchive_large.py | 58 zip_path = tempfile.NamedTemporaryFile(suffix='.zip') 72 zip_path = tempfile.NamedTemporaryFile(suffix='.zip') 87 zip_path = tempfile.NamedTemporaryFile(suffix='.zip') 101 file_path = tempfile.NamedTemporaryFile(suffix='.txt') 104 zip_path = tempfile.NamedTemporaryFile(suffix='.zip') 117 zip_path = tempfile.NamedTemporaryFile(suffix='.zip') 131 zip_path = tempfile.NamedTemporaryFile(suffix='.zip')
|
/system/bt/service/ |
D | settings.cc | 50 const std::string& suffix = iter.second; in Init() local 51 if (suffix.empty()) { in Init() 56 android_ipc_socket_suffix_ = suffix; in Init()
|
/system/update_engine/ |
D | dynamic_partition_utils.cc | 29 const std::string& suffix) { in DeleteGroupsWithSuffix() argument 32 if (base::EndsWith(group_name, suffix, base::CompareCase::SENSITIVE)) { in DeleteGroupsWithSuffix()
|
D | dynamic_partition_utils.h | 29 const std::string& suffix);
|
/system/tools/hidl/build/ |
D | utils.go | 18 func wrap(prefix string, strs []string, suffix string) []string { 21 ret[i] = prefix + v + suffix
|
/system/core/libprocinfo/ |
D | Android.bp | 92 suffix: "32", 95 suffix: "64", 121 suffix: "32", 124 suffix: "64",
|
/system/tools/hidl/host_utils/include/hidl-util/ |
D | StringHelper.h | 56 static bool EndsWith(const std::string &in, const std::string &suffix); 60 static std::string RTrim(const std::string &in, const std::string &suffix); 66 static std::string RTrimAll(const std::string &in, const std::string &suffix);
|
/system/core/fastboot/device/ |
D | fastboot_device.cpp | 105 std::string suffix; in GetCurrentSlot() local 106 auto cb = [&suffix](hidl_string s) { suffix = s; }; in GetCurrentSlot() 108 return suffix; in GetCurrentSlot()
|
/system/core/libcutils/ |
D | fs_config.cpp | 227 static size_t strip(const char* path, size_t len, const char suffix[]) { in strip() argument 228 if (len < strlen(suffix)) return len; in strip() 229 if (strncmp(path + len - strlen(suffix), suffix, strlen(suffix))) return len; in strip() 230 return len - strlen(suffix); in strip()
|
/system/incremental_delivery/incfs/ |
D | path.cpp | 257 bool endsWith(std::string_view path, std::string_view suffix) { in endsWith() argument 258 if (!path.ends_with(suffix)) { in endsWith() 261 return path.size() == suffix.size() || path[path.size() - suffix.size() - 1] == '/'; in endsWith()
|
/system/extras/tests/bootloader/ |
D | haltest.py | 35 suffix = self.bootctl.get_suffix(slot) 36 self.assertNotEqual(suffix, "(null)") 37 suffixes[suffix] = slot
|
/system/extras/simpleperf/runtest/ |
D | Android.bp | 30 suffix: "64", 33 suffix: "32",
|
/system/core/fs_mgr/tests/ |
D | Android.bp | 25 suffix: "32", 28 suffix: "64",
|
/system/extras/memory_replay/ |
D | Android.bp | 61 suffix: "32", 64 suffix: "64",
|
/system/libufdt/tests/testdata/ |
D | suffix_compress-base.dts | 4 /* these name could be suffix compressed in dtb after compiled */
|
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/ |
D | test_helpers.h | 101 void set_slot_suffix(const std::string& suffix) { slot_suffix_ = suffix; } in set_slot_suffix() argument 152 const std::string& suffix);
|
/system/netd/tests/ |
D | Android.bp | 107 suffix: "32", 110 suffix: "64",
|
/system/extras/verity/ |
D | build_verity_metadata.py | 50 with tempfile.NamedTemporaryFile(suffix='.table') as table_file: 51 with tempfile.NamedTemporaryFile(suffix='.sig') as signature_file:
|