Home
last modified time | relevance | path

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

/system/core/libziparchive/
Dzip_archive.cc348 uint16_t len = name.name_length; in ComputeHash()
370 if (hash_table[ent].name_length == name.name_length && in EntryToIndex()
371 memcmp(hash_table[ent].name, name.name, name.name_length) == 0) { in EntryToIndex()
378 ALOGV("Zip: Unable to find entry %.*s", name.name_length, name.name); in EntryToIndex()
395 if (hash_table[ent].name_length == name.name_length && in AddToHash()
396 memcmp(hash_table[ent].name, name.name, name.name_length) == 0) { in AddToHash()
398 ALOGW("Zip: Found duplicate entry %.*s", name.name_length, name.name); in AddToHash()
405 hash_table[ent].name_length = name.name_length; in AddToHash()
610 entry_name.name_length = file_name_length; in ParseZipArchive()
717 const uint16_t nameLen = archive->hash_table[ent].name_length; in FindEntry()
[all …]
Dzip_archive_test.cc74 ASSERT_EQ(name_str.size(), name.name_length); in AssertNameEquals()
75 ASSERT_EQ(0, memcmp(name_str.c_str(), name.name, name.name_length)); in AssertNameEquals()
266 name.name_length = kATxtNameLength; in TEST()
279 absent_name.name_length = kNonexistentTxtNameLength; in TEST()
309 a_name.name_length = kATxtNameLength; in TEST()
321 b_name.name_length = kBTxtNameLength; in TEST()
408 empty_name.name_length = kEmptyTxtNameLength; in TEST()
439 ab_name.name_length = kAbTxtNameLength; in TEST()
507 name.name_length = kATxtNameLength; in TEST()
/system/core/include/ziparchive/
Dzip_archive.h38 uint16_t name_length; member
46 : name(reinterpret_cast<const uint8_t*>(entry_name)), name_length(strlen(entry_name)) {} in ZipEntryName()
/system/core/init/
Dinit_parser.cpp571 int name_length; in queue_property_triggers() local
581 name_length = strlen(name); in queue_property_triggers()
582 if (!strncmp(name, test, name_length) && in queue_property_triggers()
583 test[name_length] == '=' && in queue_property_triggers()
584 (!strcmp(test + name_length + 1, value) || in queue_property_triggers()
585 !strcmp(test + name_length + 1, "*"))) { in queue_property_triggers()