Home
last modified time | relevance | path

Searched refs:newDevice (Results 1 – 3 of 3) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDeviceStateMonitor.java469 public void setIDevice(IDevice newDevice) { in setIDevice() argument
471 if (!getIDevice().equals(newDevice)) { in setIDevice()
473 mDevice = newDevice; in setIDevice()
DNativeDevice.java398 public void setIDevice(IDevice newDevice) { in setIDevice() argument
399 throwIfNull(newDevice); in setIDevice()
401 if (!getIDevice().equals(newDevice)) { in setIDevice()
403 mIDevice = newDevice; in setIDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceManagerTest.java699 IDevice newDevice = EasyMock.createMock(IDevice.class); in testSetState_offline() local
700 EasyMock.expect(newDevice.getSerialNumber()).andReturn(DEVICE_SERIAL).anyTimes(); in testSetState_offline()
701 EasyMock.expect(newDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testSetState_offline()
702 EasyMock.replay(newDevice); in testSetState_offline()
703 mDeviceListener.deviceChanged(newDevice, IDevice.CHANGE_STATE); in testSetState_offline()