/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceStateMonitorTest.java | 52 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 …]
|
D | ManagedTestDeviceFactoryTest.java | 93 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()
|
D | DeviceManagerTest.java | 588 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 …]
|
D | BackgroundDeviceActionTest.java | 45 private TestDeviceState mDeviceState = TestDeviceState.ONLINE; 50 mDeviceState = TestDeviceState.ONLINE; in setUp() 68 EasyMock.expect(mMockTestDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE) in testBackgroundActionComplete()
|
D | TestDeviceFuncTest.java | 522 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()
|
D | WaitDeviceRecoveryTest.java | 108 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()
|
D | TestDeviceStressTest.java | 77 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyReboots() 87 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyRebootBootloaders()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDeviceState.java | 28 ONLINE, enumConstant 38 case ONLINE: in getDdmsState() 39 return DeviceState.ONLINE; in getDdmsState() 56 case ONLINE: in getStateByDdms() 57 return TestDeviceState.ONLINE; in getStateByDdms()
|
D | NativeDevice.java | 198 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()
|
D | BackgroundDeviceAction.java | 150 || !TestDeviceState.ONLINE.equals(mTestDevice.getDeviceState())) { in blockUntilOnlineNoThrow()
|
D | ManagedTestDeviceFactory.java | 148 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
|
D | ITestDevice.java | 42 ONLINE, enumConstant
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | DefaultTestsZipInstallerTest.java | 108 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testCantTouchFilesystem() 137 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testPushTestsZipOntoData() 180 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testPushTestsZipOntoData_retry()
|
D | DeviceFlashPreparerTest.java | 131 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in doSetupExpectations() 167 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testSetup_buildError() 210 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testSetup_flashException()
|
D | DeviceWiperFuncTest.java | 15 assertTrue(getDevice().getDeviceState().equals(TestDeviceState.ONLINE)); in testWipe()
|
D | FastbootDeviceFlasherTest.java | 165 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testGetCurrentSlot_adb() 181 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testGetCurrentSlot_null()
|
D | RunCommandTargetPreparerTest.java | 49 private static final TestDeviceState ONLINE_STATE = TestDeviceState.ONLINE;
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/ |
D | BatteryUnavailableDeviceRecoveryTest.java | 44 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/ |
D | DefaultTestsZipInstaller.java | 118 device.setRecoveryMode(RecoveryMode.ONLINE); in pushTestsZipOntoData() 145 device.setRecoveryMode(RecoveryMode.ONLINE); in deleteData()
|
D | TestSystemAppInstallSetup.java | 76 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
|
D | DeviceCleaner.java | 98 if (TestDeviceState.ONLINE.equals(device.getDeviceState())) { in clean()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | RemoteAndroidVirtualDeviceTest.java | 273 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/ |
D | CompanionDeviceTracker.java | 87 if (!TestDeviceState.ONLINE.equals(companion.getDeviceState())) { in freeCompanionDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandSchedulerFuncTest.java | 277 TestDeviceState.ONLINE).anyTimes(); in testBatteryLowLevel() 320 TestDeviceState.ONLINE).anyTimes(); in testBatteryLowLevel_interruptible()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | LogcatEventParserTest.java | 161 EasyMock.expect(mTestDevice.getDeviceState()).andReturn(TestDeviceState.ONLINE); in testEndToEnd()
|