SplitApkInstallerBase

public abstract class SplitApkInstallerBase
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.server.SplitApkInstallerBase


Summary

Fields

protected static final CharMatcher UNSAFE_PM_INSTALL_SESSION_SPLIT_NAME_CHARS

Protected constructors

SplitApkInstallerBase(IDevice device, String options)

Protected methods

String createMultiInstallSession(String options, long timeout, TimeUnit unit)
IDevice getDevice()
static String getOptions(boolean reInstall, installOptions)
String getOptions()
static String getOptions(boolean reInstall, boolean partialInstall, String applicationId, installOptions)
String getPrefix()
void installAbandon(String sessionId, long timeout, TimeUnit unit)
void installCommit(String sessionId, long timeout, TimeUnit unit)

Fields

UNSAFE_PM_INSTALL_SESSION_SPLIT_NAME_CHARS

protected static final CharMatcher UNSAFE_PM_INSTALL_SESSION_SPLIT_NAME_CHARS

Protected constructors

SplitApkInstallerBase

protected SplitApkInstallerBase (IDevice device, 
                String options)

Parameters
device IDevice

options String

Protected methods

createMultiInstallSession

protected String createMultiInstallSession (String options, 
                long timeout, 
                TimeUnit unit)

Parameters
options String

timeout long

unit TimeUnit

Returns
String

Throws
AdbCommandRejectedException
InstallException
ShellCommandUnresponsiveException
TimeoutException

getDevice

protected IDevice getDevice ()

Returns
IDevice

getOptions

protected static String getOptions (boolean reInstall, 
                 installOptions)

Parameters
reInstall boolean

installOptions

Returns
String

getOptions

protected String getOptions ()

Returns
String

getOptions

protected static String getOptions (boolean reInstall, 
                boolean partialInstall, 
                String applicationId, 
                 installOptions)

Parameters
reInstall boolean

partialInstall boolean

applicationId String

installOptions

Returns
String

getPrefix

protected String getPrefix ()

Returns
String

installAbandon

protected void installAbandon (String sessionId, 
                long timeout, 
                TimeUnit unit)

Parameters
sessionId String

timeout long

unit TimeUnit

Throws
AdbCommandRejectedException
InstallException
ShellCommandUnresponsiveException
TimeoutException

installCommit

protected void installCommit (String sessionId, 
                long timeout, 
                TimeUnit unit)

Parameters
sessionId String

timeout long

unit TimeUnit

Throws
AdbCommandRejectedException
InstallException
ShellCommandUnresponsiveException
TimeoutException