InstallApkSetup
public class InstallApkSetup
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.InstallApkSetup |
Un ITargetPreparer
che installa uno o più apk situati nel filesystem.
Questa classe dovrebbe essere utilizzata solo per l'installazione di apk dal filesystem quando tutte le versioni del test si basano sul fatto che l'apk sia sul filesystem. Per i test che utilizzano TestAppInstallSetup
per installare gli apk dal file zip dei test, utilizzare --alt-dir
per specificare una directory alternativa sul filesystem contenente l'apk per altre configurazioni dei test (ad esempio, esecuzioni locali in cui il file zip dei test non è presente) .
Riepilogo
Costruttori pubblici | |
---|---|
InstallApkSetup () |
Metodi pubblici | |
---|---|
void | setApkPaths ( paths) setApkPaths ( paths) Imposta i percorsi APK. |
void | setThrowIfInstallFail (boolean throwIfInstallFail) Imposta throw se l'installazione fallisce. |
void | setUp ( ITestDevice device, IBuildInfo buildInfo)
|
Metodi protetti | |
---|---|
getApkPaths () |
Costruttori pubblici
InstallApkSetup
public InstallApkSetup ()
Metodi pubblici
setApkPaths
public void setApkPaths (paths)
Imposta i percorsi APK. Esposto per test.
Parametri | |
---|---|
paths |
setThrowIfInstallFail
public void setThrowIfInstallFail (boolean throwIfInstallFail)
Imposta throw se l'installazione fallisce. Esposto per test.
Parametri | |
---|---|
throwIfInstallFail | boolean |
impostare
public void setUp (ITestDevice device, IBuildInfo buildInfo)
Parametri | |
---|---|
device | ITestDevice |
buildInfo | IBuildInfo |
Tiri | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
Metodi protetti
getApkPaths
protectedgetApkPaths ()
ritorna | |
---|---|