Searched refs:newDevice (Results 1 – 3 of 3) sorted by relevance
701 IDevice newDevice = EasyMock.createMock(IDevice.class); in testSetState_offline() local702 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()
504 public void setIDevice(IDevice newDevice) { in setIDevice() argument506 if (!getIDevice().equals(newDevice)) { in setIDevice()508 mDevice = newDevice; in setIDevice()
419 public void setIDevice(IDevice newDevice) { in setIDevice() argument420 throwIfNull(newDevice); in setIDevice()422 if (!getIDevice().equals(newDevice)) { in setIDevice()424 mIDevice = newDevice; in setIDevice()