Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceManagerTest.java701 IDevice newDevice = EasyMock.createMock(IDevice.class); in testSetState_offline() local
702 EasyMock.expect(newDevice.getSerialNumber()).andReturn(DEVICE_SERIAL).anyTimes(); in testSetState_offline()
703 EasyMock.expect(newDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testSetState_offline()
704 EasyMock.replay(newDevice); in testSetState_offline()
705 mDeviceListener.deviceChanged(newDevice, IDevice.CHANGE_STATE); in testSetState_offline()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDeviceStateMonitor.java504 public void setIDevice(IDevice newDevice) { in setIDevice() argument
506 if (!getIDevice().equals(newDevice)) { in setIDevice()
508 mDevice = newDevice; in setIDevice()
DNativeDevice.java419 public void setIDevice(IDevice newDevice) { in setIDevice() argument
420 throwIfNull(newDevice); in setIDevice()
422 if (!getIDevice().equals(newDevice)) { in setIDevice()
424 mIDevice = newDevice; in setIDevice()