Stay organized with collections
Save and categorize content based on your preferences.
BuildTestsZipUtils
public
class
BuildTestsZipUtils
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.BuildTestsZipUtils
|
A helper class for operations related to tests zip generated by Android build system
Summary
Public methods |
static
File
|
getApkFile(IBuildInfo buildInfo, String apkFileName, altDirs, AltDirBehavior altDirBehavior, boolean lookupInResource, String deviceSigningKey)
Resolve the actual apk path based on testing artifact information inside build info.
|
Public constructors
BuildTestsZipUtils
public BuildTestsZipUtils ()
Public methods
getApkFile
public static File getApkFile (IBuildInfo buildInfo,
String apkFileName,
altDirs,
AltDirBehavior altDirBehavior,
boolean lookupInResource,
String deviceSigningKey)
Resolve the actual apk path based on testing artifact information inside build info.
Parameters |
buildInfo |
IBuildInfo : build artifact information |
apkFileName |
String : filename of the apk to install |
altDirs |
: alternative search paths, in addition to path inside buildInfo |
altDirBehavior |
AltDirBehavior : how alternative search paths should be used against path inside
buildInfo : as fallback, or as override; if unspecified, fallback will be used |
lookupInResource |
boolean : if the file should be looked up in test harness resources as a final
fallback mechanism |
Returns |
File |
a ERROR(/File) representing the physical apk file on host or null if the
file does not exist. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-03-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-08 UTC."],[],[]]