/system/libbase/ |
D | strings.cpp | 103 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith() argument 104 return s.size() >= suffix.size() && s.substr(s.size() - suffix.size(), suffix.size()) == suffix; in EndsWith() 107 bool EndsWith(std::string_view s, char suffix) { in EndsWith() argument 108 return !s.empty() && s.back() == suffix; in EndsWith() 111 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix) { in EndsWithIgnoreCase() argument 112 return s.size() >= suffix.size() && in EndsWithIgnoreCase() 113 strncasecmp(s.data() + (s.size() - suffix.size()), suffix.data(), suffix.size()) == 0; in EndsWithIgnoreCase()
|
D | Android.bp | 225 suffix: "32", 228 suffix: "64", 273 suffix: "32", 276 suffix: "64", 296 suffix: "32", 299 suffix: "64",
|
/system/tools/aidl/build/ |
D | aidl_utils.go | 22 func wrap(prefix string, strs []string, suffix string) []string { 25 ret[i] = prefix + v + suffix 31 func wrapFunc(prefix string, strs []string, suffix string, f func(string) string) []string { 34 ret[i] = prefix + f(v) + suffix
|
/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 | 64 with tempfile.NamedTemporaryFile(suffix='.zip') as zip_path: 78 with tempfile.NamedTemporaryFile(suffix='.zip') as zip_path: 93 with tempfile.NamedTemporaryFile(suffix='.zip') as zip_path: 107 with tempfile.NamedTemporaryFile(suffix='.txt') as file_path: 110 with tempfile.NamedTemporaryFile(suffix='.zip') as zip_path: 123 with tempfile.NamedTemporaryFile(suffix='.zip') as zip_path: 137 with tempfile.NamedTemporaryFile(suffix='.zip') as zip_path:
|
/system/libbase/include/android-base/ |
D | strings.h | 123 bool EndsWith(std::string_view s, std::string_view suffix); 124 bool EndsWith(std::string_view s, char suffix); 125 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix); 140 inline bool ConsumeSuffix(std::string_view* s, std::string_view suffix) { in ConsumeSuffix() argument 141 if (!EndsWith(*s, suffix)) return false; in ConsumeSuffix() 142 s->remove_suffix(suffix.size()); in ConsumeSuffix()
|
D | parseint.h | 61 const char* suffix; variable 62 if ((!allow_suffixes || (suffix = strchr(suffixes, tolower(*end))) == nullptr) || 63 __builtin_mul_overflow(result, 1ULL << (10 * (suffix - suffixes)), &result)) {
|
/system/tools/mkbootimg/ |
D | repack_bootimg.py | 48 def make_temp_dir(self, prefix='tmp', suffix=''): argument 54 dir_name = tempfile.mkdtemp(prefix=prefix, suffix=suffix) 58 def make_temp_file(self, prefix='tmp', suffix=''): argument 64 fd, file_name = tempfile.mkstemp(prefix=prefix, suffix=suffix) 96 suffix='_new_ramdisk') 101 suffix='_' + os.path.basename(self._ramdisk_img)) 184 suffix='_' + os.path.basename(self._bootimg))
|
/system/core/fs_mgr/libsnapshot/ |
D | test_helpers.cpp | 179 const std::string& suffix) { in FillFakeMetadata() argument 181 if (!builder->AddGroup(group.name() + suffix, group.size())) { in FillFakeMetadata() 186 auto p = builder->AddPartition(partition_name + suffix, group.name() + suffix, in FillFakeMetadata() 189 return AssertionFailure() << "Cannot add partition " << partition_name + suffix in FillFakeMetadata() 190 << " to group " << group.name() << suffix; in FillFakeMetadata() 195 auto p = builder->FindPartition(partition.partition_name() + suffix); in FillFakeMetadata() 198 << suffix << "; it is not found."; in FillFakeMetadata() 202 << "Cannot resize partition " << partition.partition_name() << suffix in FillFakeMetadata()
|
D | utility.cpp | 81 const std::string& suffix) { in ListPartitionsWithSuffix() argument 85 if (!base::EndsWith(partition->name(), suffix)) { in ListPartitionsWithSuffix() 273 auto suffix = android::fs_mgr::GetPartitionSlotSuffix(name); in GetOtherPartitionName() local 274 CHECK(suffix == "_a" || suffix == "_b"); in GetOtherPartitionName() 276 auto other_suffix = (suffix == "_a") ? "_b" : "_a"; in GetOtherPartitionName() 277 return name.substr(0, name.size() - suffix.size()) + other_suffix; in GetOtherPartitionName()
|
/system/update_engine/aosp/ |
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/libprocinfo/ |
D | Android.bp | 99 suffix: "32", 102 suffix: "64", 127 suffix: "32", 130 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/extras/verity/fec/ |
D | Android.bp | 16 suffix: "32", 19 suffix: "",
|
/system/tools/aidl/ |
D | logging.cpp | 24 const std::string& suffix /* = "" */) in AidlErrorLog() argument 25 : os_(&std::cerr), severity_(severity), location_(location), suffix_(suffix) { in AidlErrorLog()
|
/system/core/libstats/socket_lazy/ |
D | Android.bp | 38 suffix: "64", 41 suffix: "32",
|
/system/core/libstats/pull_lazy/ |
D | Android.bp | 42 suffix: "64", 45 suffix: "32",
|
/system/core/libcutils/ |
D | fs_config.cpp | 241 static size_t strip(const char* path, size_t len, const char suffix[]) { in strip() argument 242 if (len < strlen(suffix)) return len; in strip() 243 if (strncmp(path + len - strlen(suffix), suffix, strlen(suffix))) return len; in strip() 244 return len - strlen(suffix); in strip()
|
/system/incremental_delivery/incfs/ |
D | path.cpp | 232 bool endsWith(std::string_view path, std::string_view suffix) { in endsWith() argument 233 if (!path.ends_with(suffix)) { in endsWith() 236 return path.size() == suffix.size() || path[path.size() - suffix.size() - 1] == '/'; in endsWith()
|
/system/apex/tests/native/ |
D | Android.bp | 29 suffix: "32", 32 suffix: "64",
|
/system/extras/tests/bootloader/ |
D | haltest.py | 35 suffix = self.bootctl.get_suffix(slot) 36 self.assertNotEqual(suffix, "(null)") 37 suffixes[suffix] = slot
|
/system/apex/tests/testdata/sharedlibs/build/ |
D | Android.bp | 28 suffix: "32", 31 suffix: "64",
|