Home | History | Annotate | Download | only in companion

Lines Matching refs:device

20 import com.android.tradefed.device.DeviceNotAvailableException;
21 import com.android.tradefed.device.DeviceSelectionOptions;
22 import com.android.tradefed.device.ITestDevice;
29 * Base class that takes care of allocating and freeing companion device
32 * needed to allocate the companion device
37 * Sets up the device.
39 * Internal implementation of this method will request a companion device, and allocate it.
42 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError,
45 device, getCompanionDeviceSelectionOptions());
47 throw new TargetSetupError(String.format("failed to allocate companion device for %s",
48 device.getSerialNumber()), device.getDeviceDescriptor());
53 * Describe the {@link DeviceSelectionOptions} for the companion device
58 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
60 getCompanionDeviceTracker().freeCompanionDevice(device);