Home
last modified time | relevance | path

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

/system/core/include/ziparchive/
Dzip_archive.h37 uint16_t name_length; member
47 return name && (name_length == rhs.name_length) &&
48 (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, in EndsWith()
59 suffix.name_length) == 0); in EndsWith()
/system/core/libziparchive/
Dzip_archive.cc161 uint16_t len = name.name_length; in ComputeHash()
190 ALOGV("Zip: Unable to find entry %.*s", name.name_length, name.name); in EntryToIndex()
209 ALOGW("Zip: Found duplicate entry %.*s", name.name_length, name.name); in AddToHash()
216 hash_table[ent].name_length = name.name_length; in AddToHash()
429 entry_name.name_length = file_name_length; in ParseZipArchive()
519 const uint16_t nameLen = archive->hash_table[ent].name_length; in FindEntry()
665 uint8_t* name_copy = new uint8_t[in_prefix->name_length]; in IterationHandle()
666 memcpy(name_copy, in_prefix->name, in_prefix->name_length); in IterationHandle()
668 prefix.name_length = in_prefix->name_length; in IterationHandle()
671 prefix.name_length = 0; in IterationHandle()
[all …]
Dzip_archive_test.cc76 ASSERT_EQ(name_str.size(), name.name_length); in AssertNameEquals()
77 ASSERT_EQ(0, memcmp(name_str.c_str(), name.name, name.name_length)); in AssertNameEquals()
82 zip_str->name_length = str.size(); in SetZipString()
/system/extras/simpleperf/
Dread_apk.cpp99 entry_name.resize(zname.name_length,'\0'); in FindElfInApkByOffsetWithoutCache()
100 memcpy(&entry_name[0], zname.name, zname.name_length); in FindElfInApkByOffsetWithoutCache()
Dgtest_main.cpp74 std::string entry_name(name.name, name.name + name.name_length); in ExtractTestDataFromElfSection()