Lines Matching refs:ApkFormat
38 static ApkFormat DetermineApkFormat(io::IFileCollection* apk) { in DetermineApkFormat()
40 return ApkFormat::kBinary; in DetermineApkFormat()
42 return ApkFormat::kProto; in DetermineApkFormat()
47 return ApkFormat::kUnknown; in DetermineApkFormat()
56 return ApkFormat::kProto; in DetermineApkFormat()
67 return ApkFormat::kBinary; in DetermineApkFormat()
71 return ApkFormat::kUnknown; in DetermineApkFormat()
84 ApkFormat apkFormat = DetermineApkFormat(apk.get()); in LoadApkFromPath()
86 case ApkFormat::kBinary: in LoadApkFromPath()
88 case ApkFormat::kProto: in LoadApkFromPath()
151 std::move(manifest), ApkFormat::kProto); in LoadProtoApkFromFileCollection()
194 std::move(manifest), ApkFormat::kBinary); in LoadBinaryApkFromFileCollection()
252 if (format_ == ApkFormat::kBinary && path == kApkResourceTablePath) { in WriteToArchive()
269 } else if (format_ == ApkFormat::kProto && path == kProtoResourceTablePath) { in WriteToArchive()
313 if (format_ == ApkFormat::kProto) { in LoadXml()
333 } else if (format_ == ApkFormat::kBinary) { in LoadXml()