Home
last modified time | relevance | path

Searched refs:suffix (Results 1 – 25 of 74) sorted by relevance

123

/system/libbase/
Dstrings.cpp102 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()
DAndroid.bp201 suffix: "32",
204 suffix: "64",
237 suffix: "32",
240 suffix: "64",
/system/libbase/include/android-base/
Dstrings.h65 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()
Dparseint.h58 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/
Dtest_helpers.cpp144 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/
Dutility.cpp116 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/
DStringHelper.cpp197 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/
Dtest_ziparchive_large.py58 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/
Dsettings.cc50 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/
Ddynamic_partition_utils.cc29 const std::string& suffix) { in DeleteGroupsWithSuffix() argument
32 if (base::EndsWith(group_name, suffix, base::CompareCase::SENSITIVE)) { in DeleteGroupsWithSuffix()
Ddynamic_partition_utils.h29 const std::string& suffix);
/system/tools/hidl/build/
Dutils.go18 func wrap(prefix string, strs []string, suffix string) []string {
21 ret[i] = prefix + v + suffix
/system/core/libprocinfo/
DAndroid.bp92 suffix: "32",
95 suffix: "64",
121 suffix: "32",
124 suffix: "64",
/system/tools/hidl/host_utils/include/hidl-util/
DStringHelper.h56 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/
Dfastboot_device.cpp105 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/
Dfs_config.cpp227 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/
Dpath.cpp257 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/
Dhaltest.py35 suffix = self.bootctl.get_suffix(slot)
36 self.assertNotEqual(suffix, "(null)")
37 suffixes[suffix] = slot
/system/extras/simpleperf/runtest/
DAndroid.bp30 suffix: "64",
33 suffix: "32",
/system/core/fs_mgr/tests/
DAndroid.bp25 suffix: "32",
28 suffix: "64",
/system/extras/memory_replay/
DAndroid.bp61 suffix: "32",
64 suffix: "64",
/system/libufdt/tests/testdata/
Dsuffix_compress-base.dts4 /* these name could be suffix compressed in dtb after compiled */
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h101 void set_slot_suffix(const std::string& suffix) { slot_suffix_ = suffix; } in set_slot_suffix() argument
152 const std::string& suffix);
/system/netd/tests/
DAndroid.bp107 suffix: "32",
110 suffix: "64",
/system/extras/verity/
Dbuild_verity_metadata.py50 with tempfile.NamedTemporaryFile(suffix='.table') as table_file:
51 with tempfile.NamedTemporaryFile(suffix='.sig') as signature_file:

123