Home
last modified time | relevance | path

Searched refs:ONLINE (Results 1 – 25 of 32) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDeviceState.java28 ONLINE, enumConstant
38 case ONLINE: in getDdmsState()
39 return DeviceState.ONLINE; in getDdmsState()
56 case ONLINE: in getStateByDdms()
57 return TestDeviceState.ONLINE; in getStateByDdms()
DBackgroundDeviceAction.java146 || !TestDeviceState.ONLINE.equals(mTestDevice.getDeviceState())) { in blockUntilOnlineNoThrow()
DManagedTestDeviceFactory.java107 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
DITestDevice.java42 ONLINE, enumConstant
DNativeDevice.java184 private TestDeviceState mState = TestDeviceState.ONLINE;
410 if (!DeviceState.ONLINE.equals(getIDevice().getState())) { in getProperty()
1886 mRecovery.recoverDevice(mStateMonitor, mRecoveryMode.equals(RecoveryMode.ONLINE)); in recoverDevice()
1906 } else if (mRecoveryMode.equals(RecoveryMode.ONLINE)) { in recoverDevice()
1912 mRecoveryMode = RecoveryMode.ONLINE; in recoverDevice()
2664 setRecoveryMode(RecoveryMode.ONLINE); in reboot()
2688 setRecoveryMode(RecoveryMode.ONLINE); in rebootUntilOnline()
2975 setRecoveryMode(RecoveryMode.ONLINE); in unencryptDevice()
3912 if (!TestDeviceState.ONLINE.equals(mState)) { in getMacAddress()
DWaitDeviceRecovery.java260 } else if (monitor.getDeviceState() == TestDeviceState.ONLINE) { in recoverDeviceBootloader()
DNativeDeviceStateMonitor.java102 if (waitForDeviceState(TestDeviceState.ONLINE, waitTime)) { in waitForDeviceOnline()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceStateMonitorTest.java52 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in setUp()
75 mMonitor.setState(TestDeviceState.ONLINE); in testWaitForDeviceOnline()
98 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_usb()
110 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_tcp()
131 mMonitor.setState(TestDeviceState.ONLINE); in testWaitForDeviceOffline()
151 mMonitor.setState(TestDeviceState.ONLINE); in testWaitForDeviceOffline_timeout()
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()
[all …]
DManagedTestDeviceFactoryTest.java87 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()
DBackgroundDeviceActionTest.java45 private TestDeviceState mDeviceState = TestDeviceState.ONLINE;
50 mDeviceState = TestDeviceState.ONLINE; in setUp()
68 EasyMock.expect(mMockTestDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE) in testBackgroundActionComplete()
DDeviceManagerTest.java513 EasyMock.expect(newMockDevice.getState()).andReturn(DeviceState.ONLINE); in testSetIDevice()
515 mMockTestDevice.setDeviceState(TestDeviceState.ONLINE); in testSetIDevice()
545 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testInit_excludeDevice()
546 mMockTestDevice.setDeviceState(TestDeviceState.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()
576 mMockTestDevice.setDeviceState(TestDeviceState.ONLINE); in testInit_includeDevice()
868 EasyMock.expect(iDevice.getState()).andReturn(DeviceState.ONLINE); in setCheckAvailableDeviceExpectations()
871 mMockTestDevice.setDeviceState(TestDeviceState.ONLINE); in setCheckAvailableDeviceExpectations()
920 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unavailable()
[all …]
DTestDeviceStressTest.java77 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyReboots()
87 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyRebootBootloaders()
DWaitDeviceRecoveryTest.java108 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testRecoverDevice_unresponsive()
209 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testRecoverDeviceBootloader_online()
231 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testRecoverDeviceBootloader_unavailable_online()
DTestDeviceFuncTest.java520 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
529 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
559 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand()
576 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testRebootIntoBootloader()
585 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testReboot()
DMockDeviceManager.java72 TestDeviceState.ONLINE).anyTimes(); in setNumDevicesInternal()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDeviceWiperFuncTest.java15 assertTrue(getDevice().getDeviceState().equals(TestDeviceState.ONLINE)); in testWipe()
DDefaultTestsZipInstallerTest.java108 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testCantTouchFilesystem()
137 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testPushTestsZipOntoData()
181 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testPushTestsZipOntoData_retry()
DDeviceFlashPreparerTest.java131 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in doSetupExpectations()
167 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testSetup_buildError()
210 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testSetup_flashException()
DRunCommandTargetPreparerTest.java46 private static final TestDeviceState ONLINE_STATE = TestDeviceState.ONLINE;
DFastbootDeviceFlasherTest.java163 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testGetCurrentSlot_adb()
178 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testGetCurrentSlot_null()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/companion/
DCompanionDeviceTracker.java87 if (!TestDeviceState.ONLINE.equals(companion.getDeviceState())) { in freeCompanionDevice()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DTestSystemAppInstallSetup.java76 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
DDeviceCleaner.java98 if (TestDeviceState.ONLINE.equals(device.getDeviceState())) { in clean()
DDeviceFlashPreparer.java184 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerFuncTest.java264 TestDeviceState.ONLINE).anyTimes(); in testBatteryLowLevel()
314 TestDeviceState.ONLINE).anyTimes(); in testBatteryLowLevel_interruptible()

12