Home | History | Annotate | Download | only in targetprep

Lines Matching refs:device

21 import com.android.tradefed.device.DeviceNotAvailableException;
22 import com.android.tradefed.device.ITestDevice;
24 /** Target preparer that restarts the system server without rebooting the device. */
37 private void restartSystemServer(ITestDevice device) throws DeviceNotAvailableException {
38 device.enableAdbRoot();
39 device.executeShellCommand("setprop dev.bootcomplete 0");
40 device.executeShellCommand(KILL_SERVER_COMMAND);
41 device.waitForDeviceAvailable();
45 public void setUp(ITestDevice device, IBuildInfo buildInfo)
50 restartSystemServer(device);
54 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
59 restartSystemServer(device);