/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 | BackgroundDeviceAction.java | 146 || !TestDeviceState.ONLINE.equals(mTestDevice.getDeviceState())) { in blockUntilOnlineNoThrow()
|
D | ManagedTestDeviceFactory.java | 107 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
|
D | ITestDevice.java | 42 ONLINE, enumConstant
|
D | NativeDevice.java | 184 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()
|
D | WaitDeviceRecovery.java | 260 } else if (monitor.getDeviceState() == TestDeviceState.ONLINE) { in recoverDeviceBootloader()
|
D | NativeDeviceStateMonitor.java | 102 if (waitForDeviceState(TestDeviceState.ONLINE, waitTime)) { in waitForDeviceOnline()
|
/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 | 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()
|
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 | DeviceManagerTest.java | 513 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 …]
|
D | TestDeviceStressTest.java | 77 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyReboots() 87 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyRebootBootloaders()
|
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 | TestDeviceFuncTest.java | 520 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()
|
D | MockDeviceManager.java | 72 TestDeviceState.ONLINE).anyTimes(); in setNumDevicesInternal()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | DeviceWiperFuncTest.java | 15 assertTrue(getDevice().getDeviceState().equals(TestDeviceState.ONLINE)); in testWipe()
|
D | DefaultTestsZipInstallerTest.java | 108 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testCantTouchFilesystem() 137 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testPushTestsZipOntoData() 181 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 | RunCommandTargetPreparerTest.java | 46 private static final TestDeviceState ONLINE_STATE = TestDeviceState.ONLINE;
|
D | FastbootDeviceFlasherTest.java | 163 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/ |
D | CompanionDeviceTracker.java | 87 if (!TestDeviceState.ONLINE.equals(companion.getDeviceState())) { in freeCompanionDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | TestSystemAppInstallSetup.java | 76 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
|
D | DeviceCleaner.java | 98 if (TestDeviceState.ONLINE.equals(device.getDeviceState())) { in clean()
|
D | DeviceFlashPreparer.java | 184 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandSchedulerFuncTest.java | 264 TestDeviceState.ONLINE).anyTimes(); in testBatteryLowLevel() 314 TestDeviceState.ONLINE).anyTimes(); in testBatteryLowLevel_interruptible()
|