RestartSystemServerTargetPreparer

public class RestartSystemServerTargetPreparer
extends Object implements ITargetCleaner

java.lang.Object
   ↳ com.android.tradefed.targetprep.RestartSystemServerTargetPreparer


Target preparer that restarts the system server without rebooting the device.

Summary

Constants

String KILL_SERVER_COMMAND

Public constructors

RestartSystemServerTargetPreparer()

Public methods

void setUp(ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)

Perform the target cleanup/teardown after testing.

Constants

KILL_SERVER_COMMAND

String KILL_SERVER_COMMAND

Constant Value: "pkill system_server"

Public constructors

RestartSystemServerTargetPreparer

RestartSystemServerTargetPreparer ()

Public methods

setUp

void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device ITestDevice: the ITestDevice to prepare.

buildInfo IBuildInfo: data about the build under test.

Throws
TargetSetupError
BuildError
DeviceNotAvailableException

tearDown

void tearDown (ITestDevice device, 
                IBuildInfo buildInfo, 
                Throwable e)

Perform the target cleanup/teardown after testing.

Parameters
device ITestDevice: the ITestDevice to prepare.

buildInfo IBuildInfo: data about the build under test.

e Throwable: if the invocation ended with an exception, this will be the exception that was caught at the Invocation level. Otherwise, will be null.

Throws
DeviceNotAvailableException