Home
last modified time | relevance | path

Searched refs:apk_path (Results 1 – 10 of 10) sorted by relevance

/system/extras/simpleperf/
Dread_apk.cpp38 EmbeddedElf* ApkInspector::FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset) { in FindElfInApkByOffset() argument
40 ApkNode& node = embedded_elf_cache_[apk_path]; in FindElfInApkByOffset()
45 std::unique_ptr<EmbeddedElf> elf = FindElfInApkByOffsetWithoutCache(apk_path, file_offset); in FindElfInApkByOffset()
54 EmbeddedElf* ApkInspector::FindElfInApkByName(const std::string& apk_path, in FindElfInApkByName() argument
56 ApkNode& node = embedded_elf_cache_[apk_path]; in FindElfInApkByName()
61 std::unique_ptr<EmbeddedElf> elf = FindElfInApkByNameWithoutCache(apk_path, entry_name); in FindElfInApkByName()
71 const std::string& apk_path, uint64_t file_offset) { in FindElfInApkByOffsetWithoutCache() argument
72 std::unique_ptr<ArchiveHelper> ahelper = ArchiveHelper::CreateInstance(apk_path); in FindElfInApkByOffsetWithoutCache()
103 return std::unique_ptr<EmbeddedElf>(new EmbeddedElf(apk_path, found_entry_name, in FindElfInApkByOffsetWithoutCache()
109 const std::string& apk_path, const std::string& entry_name) { in FindElfInApkByNameWithoutCache() argument
[all …]
Dread_apk.h71 static EmbeddedElf* FindElfInApkByOffset(const std::string& apk_path, uint64_t file_offset);
72 static EmbeddedElf* FindElfInApkByName(const std::string& apk_path,
76 static std::unique_ptr<EmbeddedElf> FindElfInApkByOffsetWithoutCache(const std::string& apk_path,
79 const std::string& apk_path, const std::string& entry_name);
90 std::string GetUrlInApk(const std::string& apk_path, const std::string& elf_filename);
Dcmd_api_test.cpp62 static void RecordApp(const std::string& package_name, const std::string& apk_path) { in RecordApp() argument
68 ASSERT_TRUE(app_helper.InstallApk(apk_path, package_name)); in RecordApp()
Dtest_util.h151 bool InstallApk(const std::string& apk_path, const std::string& package_name) { in InstallApk() argument
152 if (Workload::RunCmd({"pm", "install", "-t", "--abi", GetABI(), apk_path})) { in InstallApk()
Ddso_test.cpp69 std::string apk_path = ConvertPathSeparator(APK_FILE); in TEST() local
71 GetTestDataDir() + apk_path + "!/" + NATIVELIB_IN_APK); in TEST()
Ddso.cpp189 std::string apk_path = std::get<1>(tuple); in GetPathInSymFsDir() local
191 std::replace(apk_path.begin(), apk_path.end(), '/', OS_PATH_SEPARATOR); in GetPathInSymFsDir()
192 return GetUrlInApk(add_symfs_prefix(apk_path), entry_path); in GetPathInSymFsDir()
Dcmd_record_test.cpp803 bool InstallApk(const std::string& apk_path, const std::string& package_name) { in InstallApk() argument
804 return app_helper_.InstallApk(apk_path, package_name); in InstallApk()
/system/core/adb/client/
Dfastdeploy.cpp151 static std::string get_package_name_from_apk(const char* apk_path) { in get_package_name_from_apk() argument
153 std::unique_ptr<android::ZipFileRO> zip_file((android::ZipFileRO::open)(apk_path)); in get_package_name_from_apk()
156 perror_exit("Could not open %s", apk_path); in get_package_name_from_apk()
160 error_exit("Could not find AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
164 error_exit("Could not read AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
168 error_exit("Could not uncompress AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
173 error_exit("Could not parse AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
214 error_exit("Could not find package name tag in AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
238 std::optional<APKMetaData> extract_metadata(const char* apk_path) { in extract_metadata() argument
244 std::string package_name = get_package_name_from_apk(apk_path); in extract_metadata()
[all …]
Dfastdeploy.h35 std::optional<com::android::fastdeploy::APKMetaData> extract_metadata(const char* apk_path);
38 int stream_patch(const char* apk_path, com::android::fastdeploy::APKMetaData metadata,
/system/extras/simpleperf/scripts/
Dtest.py283 cls.apk_path = os.path.join(root, 'app-profiling.apk')
292 args.append(cls.apk_path)
1570 apk_path = TEST_HELPER.testdata_path(apk_name)
1572 adb.check_run(['install', '-t', apk_path])
1735 def install_apk(self, apk_path, package_name): argument
1737 self.adb.run(['install', '-t', apk_path])