Searched refs:ApkArchive (Results 1 – 8 of 8) sorted by relevance
29 import com.android.fastdeploy.ApkArchive;42 ApkArchive archive = new ApkArchive(SAMPLE_APK); in testApkArchiveSizes()44 ApkArchive.Location cdLoc = archive.getCDLocation(); in testApkArchiveSizes()50 ApkArchive.Location sigLoc = archive.getSignatureLocation(cdLoc.offset); in testApkArchiveSizes()58 ApkArchive archive = new ApkArchive(SAMPLE_APK); in testApkArchiveDump()60 ApkArchive.Dump dump = archive.extractMetadata(); in testApkArchiveDump()70 ApkArchive archive = new ApkArchive(WRONG_APK); in testApkArchiveDumpWrongApk()
69 ApkArchive::ApkArchive(const std::string& path) : path_(path), size_(0) { in ApkArchive() function in ApkArchive84 ApkArchive::~ApkArchive() {} in ~ApkArchive()86 APKDump ApkArchive::ExtractMetadata() { in ExtractMetadata()108 off_t ApkArchive::FindEndOfCDRecord() const { in FindEndOfCDRecord()131 ApkArchive::Location ApkArchive::FindCDRecord(const char* cursor) { in FindCDRecord()152 ApkArchive::Location ApkArchive::GetCDLocation() { in GetCDLocation()176 ApkArchive::Location ApkArchive::GetSignatureLocation(off_t cdRecordOffset) { in GetSignatureLocation()204 std::string ApkArchive::ReadMetadata(Location loc) const { in ReadMetadata()209 size_t ApkArchive::ParseCentralDirectoryRecord(const char* input, size_t size, std::string* md5Hash, in ParseCentralDirectoryRecord()291 size_t ApkArchive::CalculateLocalFileEntrySize(int64_t localFileHeaderOffset, in CalculateLocalFileEntrySize()
32 ApkArchive::Location GetCDLocation() { return archive_.GetCDLocation(); } in GetCDLocation()33 ApkArchive::Location GetSignatureLocation(size_t start) { in GetSignatureLocation()38 ApkArchive archive_;45 ApkArchive::Location cdLoc = archiveTester.GetCDLocation(); in TEST()51 ApkArchive::Location sigLoc = archiveTester.GetSignatureLocation(cdLoc.offset); in TEST()
31 class ApkArchive {43 ApkArchive(const std::string& path);44 ~ApkArchive();
45 while (auto consumed = ApkArchive::ParseCentralDirectoryRecord( in GetDeviceAPKMetaData()59 ApkArchive archive(apkPath); in GetHostAPKMetaData()
73 ApkArchive archive(apkPath); in TEST()
33 import com.android.fastdeploy.ApkArchive;180 ApkArchive.Dump dump = new ApkArchive(apk).extractMetadata(); in dumpApk()
33 public final class ApkArchive { class70 public ApkArchive(File apk) throws IOException { in ApkArchive() method in ApkArchive