Home
last modified time | relevance | path

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

12

/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.java93 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testNestedDevice()
115 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkAvailable()
144 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkNotAvailable()
180 EasyMock.expect(mMockIDevice.getState()).andStubReturn(DeviceState.ONLINE); in testCheckFramework_emptyReturns()
DDeviceManagerTest.java588 EasyMock.expect(newMockDevice.getState()).andReturn(DeviceState.ONLINE); in testSetIDevice()
590 mMockTestDevice.setDeviceState(TestDeviceState.ONLINE); in testSetIDevice()
619 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testInit_excludeDevice()
620 mMockTestDevice.setDeviceState(TestDeviceState.ONLINE); in testInit_excludeDevice()
646 EasyMock.expect(excludedDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()
647 EasyMock.expect(mMockIDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()
649 mMockTestDevice.setDeviceState(TestDeviceState.ONLINE); in testInit_includeDevice()
934 EasyMock.expect(iDevice.getState()).andReturn(DeviceState.ONLINE); in setCheckAvailableDeviceExpectations()
937 mMockTestDevice.setDeviceState(TestDeviceState.ONLINE); in setCheckAvailableDeviceExpectations()
986 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unavailable()
[all …]
DBackgroundDeviceActionTest.java45 private TestDeviceState mDeviceState = TestDeviceState.ONLINE;
50 mDeviceState = TestDeviceState.ONLINE; in setUp()
68 EasyMock.expect(mMockTestDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE) in testBackgroundActionComplete()
DTestDeviceFuncTest.java522 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
531 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
561 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand()
578 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testRebootIntoBootloader()
587 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testReboot()
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()
DTestDeviceStressTest.java77 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyReboots()
87 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyRebootBootloaders()
/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()
DNativeDevice.java198 private TestDeviceState mState = TestDeviceState.ONLINE;
453 if (!TestDeviceState.ONLINE.equals(getDeviceState())) { in getProperty()
2065 mRecovery.recoverDevice(mStateMonitor, mRecoveryMode.equals(RecoveryMode.ONLINE)); in recoverDevice()
2091 } else if (mRecoveryMode.equals(RecoveryMode.ONLINE)) { in recoverDevice()
2097 mRecoveryMode = RecoveryMode.ONLINE; in recoverDevice()
2870 setRecoveryMode(RecoveryMode.ONLINE); in reboot()
2894 setRecoveryMode(RecoveryMode.ONLINE); in rebootUntilOnline()
3207 setRecoveryMode(RecoveryMode.ONLINE); in unencryptDevice()
4141 if (TestDeviceState.ONLINE.equals(getDeviceState())) { in postInvocationTearDown()
4256 if (!TestDeviceState.ONLINE.equals(mState)) { in getMacAddress()
DBackgroundDeviceAction.java150 || !TestDeviceState.ONLINE.equals(mTestDevice.getDeviceState())) { in blockUntilOnlineNoThrow()
DManagedTestDeviceFactory.java148 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
DITestDevice.java42 ONLINE, enumConstant
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDefaultTestsZipInstallerTest.java108 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testCantTouchFilesystem()
137 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testPushTestsZipOntoData()
180 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()
DDeviceWiperFuncTest.java15 assertTrue(getDevice().getDeviceState().equals(TestDeviceState.ONLINE)); in testWipe()
DFastbootDeviceFlasherTest.java165 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testGetCurrentSlot_adb()
181 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testGetCurrentSlot_null()
DRunCommandTargetPreparerTest.java49 private static final TestDeviceState ONLINE_STATE = TestDeviceState.ONLINE;
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/
DBatteryUnavailableDeviceRecoveryTest.java44 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testShouldSkip()
61 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testShouldSkip_recovery()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDefaultTestsZipInstaller.java118 device.setRecoveryMode(RecoveryMode.ONLINE); in pushTestsZipOntoData()
145 device.setRecoveryMode(RecoveryMode.ONLINE); in deleteData()
DTestSystemAppInstallSetup.java76 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
DDeviceCleaner.java98 if (TestDeviceState.ONLINE.equals(device.getDeviceState())) { in clean()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDeviceTest.java273 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testPreInvocationSetup()
464 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testDeviceNotStoreShutdownState()
567 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testDevice_skipTearDown()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/companion/
DCompanionDeviceTracker.java87 if (!TestDeviceState.ONLINE.equals(companion.getDeviceState())) { in freeCompanionDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerFuncTest.java277 TestDeviceState.ONLINE).anyTimes(); in testBatteryLowLevel()
320 TestDeviceState.ONLINE).anyTimes(); in testBatteryLowLevel_interruptible()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DLogcatEventParserTest.java161 EasyMock.expect(mTestDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testEndToEnd()

12