Home
last modified time | relevance | path

Searched refs:entry_name (Results 1 – 14 of 14) sorted by relevance

/system/extras/simpleperf/
Dread_apk_test.cpp32 ASSERT_EQ(NATIVELIB_IN_APK, ee->entry_name()); in TEST()
48 std::string entry_name; in TEST() local
51 "base.apk]", &zip_path, &entry_name)); in TEST()
54 ASSERT_EQ(entry_name, "classes.dex"); in TEST()
56 &zip_path, &entry_name)); in TEST()
59 " (deleted)", &zip_path, &entry_name)); in TEST()
62 ASSERT_EQ(entry_name, "classes.dex"); in TEST()
64 &zip_path, &entry_name)); in TEST()
69 "(deleted)", &zip_path, &entry_name)); in TEST()
71 ASSERT_EQ(entry_name, "classes2.dex"); in TEST()
Dread_apk.h39 const std::string& entry_name, in EmbeddedElf() argument
43 , entry_name_(entry_name) in EmbeddedElf()
53 const std::string &entry_name() const { return entry_name_; } in entry_name() function
73 const std::string& entry_name);
79 const std::string& apk_path, const std::string& entry_name);
96 std::string* entry_name);
Dread_apk.cpp49 node.name_map[result->entry_name()] = result; in FindElfInApkByOffset()
55 const std::string& entry_name) { in FindElfInApkByName() argument
57 auto it = node.name_map.find(entry_name); in FindElfInApkByName()
61 std::unique_ptr<EmbeddedElf> elf = FindElfInApkByNameWithoutCache(apk_path, entry_name); in FindElfInApkByName()
63 node.name_map[entry_name] = result; in FindElfInApkByName()
109 const std::string& apk_path, const std::string& entry_name) { in FindElfInApkByNameWithoutCache() argument
115 if (!ahelper->FindEntry(entry_name, &zentry)) { in FindElfInApkByNameWithoutCache()
121 return std::unique_ptr<EmbeddedElf>(new EmbeddedElf(apk_path, entry_name, zentry.offset, in FindElfInApkByNameWithoutCache()
141 std::string* entry_name) { in ParseExtractedInMemoryPath() argument
156 *entry_name = path.substr(entry_name_start, entry_name_end - entry_name_start); in ParseExtractedInMemoryPath()
Dcmd_record.cpp1491 r.SetDataAndFilename(data, GetUrlInApk(filename, ee->entry_name())); in UpdateMmapRecordForEmbeddedPath()
1496 std::string entry_name; in UpdateMmapRecordForEmbeddedPath() local
1497 if (ParseExtractedInMemoryPath(filename, &zip_path, &entry_name)) { in UpdateMmapRecordForEmbeddedPath()
1498 filename = GetUrlInApk(zip_path, entry_name); in UpdateMmapRecordForEmbeddedPath()
/system/libziparchive/
Dentry_name_utils-inl.h28 inline bool IsValidEntryName(const uint8_t* entry_name, const size_t length) { in IsValidEntryName() argument
33 const uint8_t byte = entry_name[i]; in IsValidEntryName()
54 const uint8_t continuation_byte = entry_name[i]; in IsValidEntryName()
Dzip_archive.cc526 std::string_view entry_name{reinterpret_cast<const char*>(file_name), file_name_length}; in ParseZipArchive() local
528 archive->cd_entry_map->AddToMap(entry_name, archive->central_directory.GetBasePtr()); in ParseZipArchive()
897 bool Match(std::string_view entry_name) const { return matcher(entry_name); } in Match()
1015 const auto [entry_name, offset] = entry; in Next()
1016 if (handle->Match(entry_name)) { in Next()
1017 const int error = FindEntry(archive, entry_name, offset, data); in Next()
1019 *name = entry_name; in Next()
Dzip_archive_test.cc634 static void ZipArchiveStreamTest(ZipArchiveHandle& handle, const std::string& entry_name, bool raw, in ZipArchiveStreamTest() argument
636 ASSERT_EQ(0, FindEntry(handle, entry_name, entry)); in ZipArchiveStreamTest()
663 const std::string& entry_name, in ZipArchiveStreamTestUsingContents() argument
670 ZipArchiveStreamTest(handle, entry_name, raw, true, &entry, &read_data); in ZipArchiveStreamTestUsingContents()
679 const std::string& entry_name) { in ZipArchiveStreamTestUsingMemory() argument
685 ZipArchiveStreamTest(handle, entry_name, false, true, &entry, &read_data); in ZipArchiveStreamTestUsingMemory()
/system/core/bootstat/
Dboot_event_record_store_test.cpp78 const std::string entry_name(entry->d_name); in DeleteDirectory() local
79 if (entry_name == "." || entry_name == "..") { in DeleteDirectory()
83 const std::string entry_path = path + "/" + entry_name; in DeleteDirectory()
/system/core/adb/client/
Dincremental_utils.cpp313 auto matcher = [](std::string_view entry_name) { in InstallationPriorityBlocks() argument
314 if (entry_name.starts_with("lib/"sv) && entry_name.ends_with(".so"sv)) { in InstallationPriorityBlocks()
318 [entry_name](std::string_view i) { return i == entry_name; }); in InstallationPriorityBlocks()
/system/update_engine/scripts/
Dbrillo_update_payload345 local entry_name="$2"
353 unzip "${zip_file}" "${entry_name}" -d "${output_directory}" ||
354 { rm -rf "${output_directory}"; die "Failed to extract ${entry_name}"; }
356 mv "${output_directory}/${entry_name}" "${destination}"
/system/core/fastboot/
Dfastboot.cpp527 static bool UnzipToMemory(ZipArchiveHandle zip, const std::string& entry_name, in UnzipToMemory() argument
530 if (FindEntry(zip, entry_name, &zip_entry) != 0) { in UnzipToMemory()
531 fprintf(stderr, "archive does not contain '%s'\n", entry_name.c_str()); in UnzipToMemory()
537 fprintf(stderr, "extracting %s (%zu MB) to RAM...\n", entry_name.c_str(), in UnzipToMemory()
542 if (error != 0) die("failed to extract '%s': %s", entry_name.c_str(), ErrorCodeString(error)); in UnzipToMemory()
637 static int unzip_to_file(ZipArchiveHandle zip, const char* entry_name) { in unzip_to_file() argument
638 unique_fd fd(make_temporary_fd(entry_name)); in unzip_to_file()
641 if (FindEntry(zip, entry_name, &zip_entry) != 0) { in unzip_to_file()
642 fprintf(stderr, "archive does not contain '%s'\n", entry_name); in unzip_to_file()
647 fprintf(stderr, "extracting %s (%" PRIu32 " MB) to disk...", entry_name, in unzip_to_file()
[all …]
/system/libziparchive/include/ziparchive/
Dzip_archive.h240 std::function<bool(std::string_view entry_name)> matcher);
/system/media/camera/docs/
Dhtml.mako57 ….entry_name { color: #333333; padding-left:1.0em; font-size:1.1em; font-family: monospace; vertica…
254 <td class="entry_name
/system/extras/boottime_tools/bootanalyze/
Dbootanalyze.py714 entry_name = entry_pair[0]
716 if entry_name != "SW":