Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dread_apk_test.cpp34 ASSERT_EQ(NATIVELIB_IN_APK, ee->entry_name()); in TEST()
50 std::string entry_name; in TEST() local
55 &zip_path, &entry_name)); in TEST()
59 ASSERT_EQ(entry_name, "classes.dex"); in TEST()
61 ParseExtractedInMemoryPath("[anon:dalvik-thread local mark stack]", &zip_path, &entry_name)); in TEST()
66 &zip_path, &entry_name)); in TEST()
70 ASSERT_EQ(entry_name, "classes.dex"); in TEST()
72 &zip_path, &entry_name)); in TEST()
79 &zip_path, &entry_name)); in TEST()
81 ASSERT_EQ(entry_name, "classes2.dex"); in TEST()
Dread_apk.h36 EmbeddedElf(const std::string& filepath, const std::string& entry_name, uint64_t entry_offset, in EmbeddedElf() argument
39 entry_name_(entry_name), in EmbeddedElf()
47 const std::string& entry_name() const { return entry_name_; } in entry_name() function
67 const std::string& entry_name);
73 const std::string& entry_name);
90 std::string* entry_name);
Dread_apk.cpp51 node.name_map[result->entry_name()] = result; in FindElfInApkByOffset()
57 const std::string& entry_name) { in FindElfInApkByName() argument
59 auto it = node.name_map.find(entry_name); in FindElfInApkByName()
63 std::unique_ptr<EmbeddedElf> elf = FindElfInApkByNameWithoutCache(apk_path, entry_name); in FindElfInApkByName()
65 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()
122 new EmbeddedElf(apk_path, entry_name, zentry.offset, zentry.uncompressed_length)); in FindElfInApkByNameWithoutCache()
142 std::string* entry_name) { in ParseExtractedInMemoryPath() argument
157 *entry_name = path.substr(entry_name_start, entry_name_end - entry_name_start); in ParseExtractedInMemoryPath()
Dcmd_record.cpp1537 r.SetDataAndFilename(data, GetUrlInApk(filename, ee->entry_name())); in UpdateMmapRecordForEmbeddedPath()
1542 std::string entry_name; in UpdateMmapRecordForEmbeddedPath() local
1543 if (ParseExtractedInMemoryPath(filename, &zip_path, &entry_name)) { in UpdateMmapRecordForEmbeddedPath()
1544 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.cc565 std::string_view entry_name{reinterpret_cast<const char*>(file_name), file_name_length}; in ParseZipArchive() local
567 archive->cd_entry_map->AddToMap(entry_name, archive->central_directory.GetBasePtr()); in ParseZipArchive()
959 bool Match(std::string_view entry_name) const { return matcher(entry_name); } in Match()
1079 const auto [entry_name, offset] = entry; in Next()
1080 if (handle->Match(entry_name)) { in Next()
1081 const int error = FindEntry(archive, entry_name, offset, data); in Next()
1083 *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/update_engine/scripts/
Dsimulate_ota.py34 def extract_file(zip_file_path, entry_name, target_file_path): argument
38 with zip_file_path.open(entry_name) as fp:
41 with open(os.path.join(zip_file_path, entry_name), "rb") as fp:
51 entry_name = "IMAGES/" + img_name + ".img"
52 extract_file(zip_archive, entry_name, output_path)
Dbrillo_update_payload360 local entry_name="$2"
368 unzip "${zip_file}" "${entry_name}" -d "${output_directory}" ||
369 { rm -rf "${output_directory}"; die "Failed to extract ${entry_name}"; }
371 mv "${output_directory}/${entry_name}" "${destination}"
/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/fastboot/
Dfastboot.cpp548 static bool UnzipToMemory(ZipArchiveHandle zip, const std::string& entry_name, in UnzipToMemory() argument
551 if (FindEntry(zip, entry_name, &zip_entry) != 0) { in UnzipToMemory()
552 fprintf(stderr, "archive does not contain '%s'\n", entry_name.c_str()); in UnzipToMemory()
557 die("entry '%s' is too large: %" PRIu64, entry_name.c_str(), zip_entry.uncompressed_length); in UnzipToMemory()
561 fprintf(stderr, "extracting %s (%zu MB) to RAM...\n", entry_name.c_str(), in UnzipToMemory()
566 if (error != 0) die("failed to extract '%s': %s", entry_name.c_str(), ErrorCodeString(error)); in UnzipToMemory()
661 static unique_fd unzip_to_file(ZipArchiveHandle zip, const char* entry_name) { in unzip_to_file() argument
662 unique_fd fd(make_temporary_fd(entry_name)); in unzip_to_file()
665 if (FindEntry(zip, entry_name, &zip_entry) != 0) { in unzip_to_file()
666 fprintf(stderr, "archive does not contain '%s'\n", entry_name); in unzip_to_file()
[all …]
Dvendor_boot_img_utils.cpp283 std::string_view entry_name(entry_name_c_str, entry_name_len); in find_unique_ramdisk() local
284 if (entry_name == ramdisk_name) { in find_unique_ramdisk()
/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.py709 entry_name = entry_pair[0]
711 if entry_name != "SW":