Home
last modified time | relevance | path

Searched refs:name_length (Results 1 – 8 of 8) sorted by relevance

/system/core/libziparchive/include/ziparchive/
Dzip_archive.h38 uint16_t name_length; member
48 return name && (name_length == rhs.name_length) && (memcmp(name, rhs.name, name_length) == 0);
52 return name && (name_length >= prefix.name_length) && in StartsWith()
53 (memcmp(name, prefix.name, prefix.name_length) == 0); in StartsWith()
57 return name && (name_length >= suffix.name_length) && in EndsWith()
58 (memcmp(name + name_length - suffix.name_length, suffix.name, suffix.name_length) == 0); in EndsWith()
/system/core/libziparchive/
Dzip_archive.cc107 std::string_view(reinterpret_cast<const char*>(name.name), name.name_length)); in ComputeHash()
111 uint16_t len = name.name_length; in ComputeHash()
155 ALOGV("Zip: Unable to find entry %.*s", name.name_length, name.name); in EntryToIndex()
174 ALOGW("Zip: Found duplicate entry %.*s", name.name_length, name.name); in AddToHash()
180 hash_table[ent].name_length = name.name_length; in AddToHash()
433 entry_name.name_length = file_name_length; in ParseZipArchive()
549 const uint16_t nameLen = archive->hash_table[ent].name_length; in FindEntry()
713 uint8_t* name_copy = new uint8_t[in_prefix->name_length]; in IterationHandle()
714 memcpy(name_copy, in_prefix->name, in_prefix->name_length); in IterationHandle()
716 prefix.name_length = in_prefix->name_length; in IterationHandle()
[all …]
Dzip_archive_private.h149 uint16_t name_length; member
154 zip_string.name_length = name_length; in GetZipString()
Dunzip.cpp247 std::string name(string.name, string.name + string.name_length); in ProcessAll()
Dzip_archive_test.cc68 zip_str->name_length = str.size(); in SetZipString()
128 names.push_back(std::string(reinterpret_cast<const char*>(name.name), name.name_length)); in AssertIterationOrder()
/system/bt/stack/avdt/
Davdt_scb_act.cc378 uint8_t name_length; in avdt_scb_hdl_report() local
387 BE_STREAM_TO_UINT8(name_length, p); in avdt_scb_hdl_report()
388 if (name_length > len - 2 || name_length > AVDT_MAX_CNAME_SIZE) { in avdt_scb_hdl_report()
391 BE_STREAM_TO_ARRAY(p, &(report.cname[0]), name_length); in avdt_scb_hdl_report()
/system/bt/btif/src/
Dbtif_storage.cc207 int name_length = prop->len > BTM_MAX_LOC_BD_NAME_LEN in prop2cfg() local
210 strncpy(value, (char*)prop->val, name_length); in prop2cfg()
211 value[name_length] = '\0'; in prop2cfg()
/system/extras/simpleperf/
Dutils.cpp117 std::string name(zname.name, zname.name + zname.name_length); in IterateEntries()