Searched refs:NullDevice (Results 1 – 10 of 10) sorted by relevance
484 … addAvailableDevice(new NullDevice(String.format("%s-%d", NULL_DEVICE_SERIAL_PREFIX, i))); in addNullDevices()620 String serial = String.format("%s%s", NullDevice.TEMP_NULL_DEVICE_PREFIX, rand); in allocateDevice()621 addAvailableDevice(new NullDevice(serial, true)); in allocateDevice()665 if (ideviceToReturn instanceof NullDevice) { in freeDevice()666 NullDevice nullDevice = (NullDevice) ideviceToReturn; in freeDevice()
46 NULL_DEVICE(NullDevice.class),578 if (nullDeviceRequested() != (device instanceof NullDevice)) { in checkDeviceTypeRequested()
4525 if (idevice instanceof NullDevice) { in getDeviceDescriptor()4526 isTemporary = ((NullDevice) idevice).isTemporary(); in getDeviceDescriptor()
105 IDevice device = new NullDevice("serial"); in testGetSerials_envVariable_nullDevice()327 IDevice stubDevice = new NullDevice("null device");548 assertFalse(mDeviceSelection.matches(new NullDevice("test")));557 assertTrue(mDeviceSelection.matches(new NullDevice("test")));
124 } else if (idevice instanceof NullDevice) { in setNumDevicesStub()
467 assertTrue(device.getIDevice() instanceof NullDevice); in testAllocateDevice_nullDevice()
24 public class NullDevice extends StubDevice { class31 public NullDevice(String serial) { in NullDevice() method in NullDevice35 public NullDevice(String serial, boolean isTemporary) { in NullDevice() method in NullDevice
34 import com.android.tradefed.device.NullDevice;1246 if (device.getIDevice() instanceof NullDevice) { in getPrimaryAbi()1263 if (device.getIDevice() instanceof NullDevice) { in getDeviceAbis()
25 import com.android.tradefed.device.NullDevice;101 EasyMock.expect(mNullMockDevice.getIDevice()).andStubReturn(new NullDevice("null-dev")); in setUp()
44 import com.android.tradefed.device.NullDevice;1625 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new NullDevice("null-device-0")); in testNullDeviceSuite()1646 EasyMock.expect(mMockDevice.getIDevice()).andReturn(new NullDevice("null-device-0")); in testNullDeviceSuite_primaryAbi()