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.java352 public void setIDevice(IDevice newDevice) { in setIDevice() argument
353 throwIfNull(newDevice); in setIDevice()
355 if (!getIDevice().equals(newDevice)) { in setIDevice()
357 mIDevice = newDevice; in setIDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceManagerTest.java629 IDevice newDevice = EasyMock.createMock(IDevice.class); in testSetState_offline() local
630 EasyMock.expect(newDevice.getSerialNumber()).andReturn(DEVICE_SERIAL).anyTimes(); in testSetState_offline()
631 EasyMock.expect(newDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testSetState_offline()
632 EasyMock.replay(newDevice); in testSetState_offline()
633 mDeviceListener.deviceChanged(newDevice, IDevice.CHANGE_STATE); in testSetState_offline()