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.java625 public void setIDevice(IDevice newDevice) { in setIDevice() argument
627 if (!getIDevice().equals(newDevice)) { in setIDevice()
629 mDevice = newDevice; in setIDevice()
DNativeDevice.java559 public void setIDevice(IDevice newDevice) { in setIDevice() argument
560 throwIfNull(newDevice); in setIDevice()
562 if (!getIDevice().equals(newDevice)) { in setIDevice()
564 mIDevice = newDevice; in setIDevice()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DDeviceManagerTest.java614 IDevice newDevice = mock(IDevice.class); in testSetState_offline() local
615 when(newDevice.getSerialNumber()).thenReturn(DEVICE_SERIAL); in testSetState_offline()
616 when(newDevice.getState()).thenReturn(DeviceState.OFFLINE); in testSetState_offline()
618 mDeviceListener.deviceChanged(newDevice, IDevice.CHANGE_STATE); in testSetState_offline()
622 verify(newDevice, times(2)).getState(); in testSetState_offline()