Home
last modified time | relevance | path

Searched refs:enableAdbRoot (Results 1 – 25 of 40) sorted by relevance

12

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDeviceSetupTest.java109 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup()
136 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_airplane_mode_on()
151 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_airplane_mode_off()
164 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_data_on()
177 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_data_off()
189 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_cell_on()
201 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_cell_off()
213 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_cell_auto_setting_on()
225 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_cell_auto_setting_off()
238 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_wifi_on()
[all …]
DRootTargetPreparerTest.java73 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUpSuccess_notRootBefore()
79 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUpSuccess_notRootBefore()
86 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testSetUpFail()
99 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUpSuccess_rootBefore_forceUnroot()
105 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUpSuccess_rootBefore_forceUnroot()
138 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testSetUpFail_forceRoot_ignoresFailure()
155 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUpFail_forceUnroot_ignoresFailure()
162 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUpFail_forceUnroot_ignoresFailure()
DRestartSystemServerTargetPreparerTest.java61 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUp_bootComplete()
68 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUp_bootComplete()
75 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUp_bootNotComplete()
84 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUp_bootNotComplete()
95 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testTearDown_restart()
102 verify(mMockDevice, times(1)).enableAdbRoot(); in testTearDown_restart()
DDisableSELinuxTargetPreparerTest.java99 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUpSuccess_enforced_notRootBefore()
109 verify(mMockDevice, times(2)).enableAdbRoot(); in testSetUpSuccess_enforced_notRootBefore()
121 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testSetUp_rootFail()
128 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUp_rootFail()
141 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUp_disableSELinuxFail()
148 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUp_disableSELinuxFail()
DDefaultTestsZipInstallerFuncTest.java35 getDevice().enableAdbRoot(); in testDeleteData()
DDeviceFlashPreparerTest.java171 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in doSetupExpectations()
218 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in testSetup_buildError()
DGkiDeviceFlashPreparerTest.java384 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in testSetup_Success()
444 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in testSetup_vendor_img_Success()
492 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in testSetup_Success_FromZip()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DAdbRootElevatorTest.java49 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testEnablesAndDisablesRoot()
57 inOrder.verify(mMockDevice).enableAdbRoot(); in testEnablesAndDisablesRoot()
81 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testFailsToEnableAdbRoot_throwsException()
96 when(mMockDevice.enableAdbRoot()).thenThrow(new DeviceNotAvailableException()); in testDeviceNotAvailableOnRoot_throwsException()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/sync/
DDeviceSyncHelper.java86 device.enableAdbRoot(); in syncFiles()
88 device.enableAdbRoot(); in syncFiles()
132 device.enableAdbRoot(); in syncFiles()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DDisableSELinuxTargetPreparer.java53 if (!mWasRoot && !device.enableAdbRoot()) { in setUp()
75 device.enableAdbRoot(); in tearDown()
DRootTargetPreparer.java59 if (!mWasRoot && mForceRoot && !device.enableAdbRoot()) { in setUp()
80 device.enableAdbRoot(); in tearDown()
DRestartSystemServerTargetPreparer.java37 device.enableAdbRoot(); in restartSystemServer()
DEraseUserDataPreparer.java53 device.enableAdbRoot(); in setUp()
DDeviceWiper.java112 if (!device.enableAdbRoot()) { in doFactoryReset()
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DShellStatusCheckerTest.java82 when(mMockDevice.enableAdbRoot()).thenReturn(preRevertOk).thenReturn(postRevertOk); in expectPreAndPost()
89 when(mMockDevice.enableAdbRoot()).thenReturn(preRevertOk); in expectPreAndPost()
96 when(mMockDevice.enableAdbRoot()).thenReturn(postRevertOk); in expectPreAndPost()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DShellStatusChecker.java64 reset = device.enableAdbRoot(); in preExecutionCheck()
92 reset = device.enableAdbRoot(); in postExecutionCheck()
/tools/tradefederation/core/src/com/android/tradefed/util/
DAdbRootElevator.java33 if (!mDevice.enableAdbRoot()) { in AdbRootElevator()
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DGcovCodeCoverageCollectorTest.java266 doReturn(true).when(mMockDevice).enableAdbRoot(); in testNoCollectOnTestEnd_noCoverageMeasurements()
298 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testInit_adbRootAndCoverageFlushed()
305 inOrder.verify(mMockDevice).enableAdbRoot(); in testInit_adbRootAndCoverageFlushed()
DJavaCodeCoverageCollectorTest.java140 when(mMockDevice.enableAdbRoot()).thenReturn(true); in setUp()
255 inOrder.verify(mMockDevice).enableAdbRoot(); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles()
265 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_noLogIfCannotEnableRoot()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceUpdateTargetPreparer.java97 boolean rootEnabled = device.enableAdbRoot(); in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/sync/
DIncrementalImageFuncTest.java91 getDevice().enableAdbRoot(); in teardown()
234 getDevice().enableAdbRoot(); in testBlockCompareUpdate()
/tools/tradefederation/core/src/com/android/tradefed/util/image/
DIncrementalImageUtil.java318 if (!mDevice.enableAdbRoot()) { in updateDevice()
460 mDevice.enableAdbRoot(); in internalUpdateDevice()
526 mDevice.enableAdbRoot(); in teardownDevice()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceFuncTest.java686 mTestDevice.enableAdbRoot(); in testDeviceSoftRestart()
699 mTestDevice.enableAdbRoot(); in testDeviceSoftRestart()
904 mTestDevice.enableAdbRoot(); in testPullFileContents()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java2762 boolean enabled = enableAdbRoot(); in recoverDevice()
2804 enableAdbRoot(); in recoverDevice()
3066 boolean root = enableAdbRoot(); in logAnrs()
3194 || !enableAdbRoot() in connectToWifiNetwork()
3467 enableAdbRoot(); in postBootSetup()
3774 enableAdbRoot(); in internalRebootUntilOnline()
3796 enableAdbRoot(); in rebootUserspaceUntilOnline()
4020 public boolean enableAdbRoot() throws DeviceNotAvailableException { in enableAdbRoot() method in NativeDevice
4158 enableAdbRoot(); in unlockDevice()
4236 enableAdbRoot(); in isEncryptionSupported()
[all …]
/tools/tradefederation/contrib/src/com/android/fastboot/tests/
DFastbootTest.java248 mDevice.enableAdbRoot(); in testFastboot()

12