Searched refs:getState (Results 1 – 14 of 14) sorted by relevance
52 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in setUp()98 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_usb()110 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_tcp()161 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShellAvailable()188 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShell_becomeAvailable()229 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShell_timeout()334 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPmResponsive()362 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPm_becomeResponsive()404 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPm_timeout()436 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testgetMountPoint()[all …]
87 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkAvailable()113 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkNotAvailable()146 EasyMock.expect(mMockDevice.getState()).andStubReturn(DeviceState.ONLINE); in testCheckFramework_emptyReturns()
513 EasyMock.expect(newMockDevice.getState()).andReturn(DeviceState.ONLINE); in testSetIDevice()545 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testInit_excludeDevice()573 EasyMock.expect(excludedDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()574 EasyMock.expect(mMockIDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()631 EasyMock.expect(newDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testSetState_offline()868 EasyMock.expect(iDevice.getState()).andReturn(DeviceState.ONLINE); in setCheckAvailableDeviceExpectations()920 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unavailable()983 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unknown()1047 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unknown_subName()1109 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in setDeviceDescriptorExpectation()[all …]
2140 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.UNAUTHORIZED); in testGetSimState_unavailableDevice()2150 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.UNAUTHORIZED); in testGetSimOperator_unavailableDevice()2163 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testGetLogcatSince()
388 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testGetProductType_adbFail()702 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testExecuteShellCommand_recoveryAttempts()1701 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in injectSystemProperty()
924 idevice.getState(), in listAllDevices()961 if (o1.getState() != o2.getState()) { in sortDeviceList()963 return o1.getState().toString() in sortDeviceList()964 .compareTo(o2.getState().toString()); in sortDeviceList()988 desc.getState() != DeviceAllocationState.Allocated) { in addDevicesInfo()995 desc.getState().toString(), in addDevicesInfo()1026 TestDeviceState newState = TestDeviceState.getStateByDdms(idevice.getState()); in deviceChanged()1035 } else if (DeviceState.OFFLINE.equals(idevice.getState()) || in deviceChanged()1036 DeviceState.UNAUTHORIZED.equals(idevice.getState())) { in deviceChanged()1066 TestDeviceState.getStateByDdms(idevice.getState()); in deviceConnected()[all …]
65 if (deviceDesc.getState() == DeviceAllocationState.Unavailable) { in getUnavailableDevices()
107 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
162 record.addSample(deviceDesc.getState()); in run()
203 public DeviceState getState() { in getState() method in StubDevice
68 mDeviceState = TestDeviceState.getStateByDdms(device.getState()); in NativeDeviceStateMonitor()
410 if (!DeviceState.ONLINE.equals(getIDevice().getState())) { in getProperty()
114 public DeviceAllocationState getState() { in getState() method in DeviceDescriptor
231 assertEquals(DeviceAllocationState.Available, returnedDevices.get(0).getState()); in testListDevices()239 assertEquals(DeviceAllocationState.Allocated, returnedDevices.get(1).getState()); in testListDevices()