Home
last modified time | relevance | path

Searched refs:disableAdbRoot (Results 1 – 18 of 18) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DRootTargetPreparerTest.java74 when(mMockDevice.disableAdbRoot()).thenReturn(true); in testSetUpSuccess_notRootBefore()
80 verify(mMockDevice, times(1)).disableAdbRoot(); in testSetUpSuccess_notRootBefore()
98 when(mMockDevice.disableAdbRoot()).thenReturn(true); in testSetUpSuccess_rootBefore_forceUnroot()
104 verify(mMockDevice, times(1)).disableAdbRoot(); in testSetUpSuccess_rootBefore_forceUnroot()
126 when(mMockDevice.disableAdbRoot()).thenReturn(false); in testSetUpFail_forceUnroot()
140 when(mMockDevice.disableAdbRoot()).thenReturn(true); in testSetUpFail_forceRoot_ignoresFailure()
153 when(mMockDevice.disableAdbRoot()).thenReturn(false); in testSetUpFail_forceUnroot_ignoresFailure()
160 verify(mMockDevice, times(1)).disableAdbRoot(); in testSetUpFail_forceUnroot_ignoresFailure()
DDisableSELinuxTargetPreparerTest.java100 when(mMockDevice.disableAdbRoot()).thenReturn(true); in testSetUpSuccess_enforced_notRootBefore()
110 verify(mMockDevice, times(2)).disableAdbRoot(); in testSetUpSuccess_enforced_notRootBefore()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DAdbRootElevatorTest.java59 inOrder.verify(mMockDevice).disableAdbRoot(); in testEnablesAndDisablesRoot()
89 verify(mMockDevice, never()).disableAdbRoot(); in testFailsToEnableAdbRoot_throwsException()
104 verify(mMockDevice, never()).disableAdbRoot(); in testDeviceNotAvailableOnRoot_throwsException()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DDisableSELinuxTargetPreparer.java64 device.disableAdbRoot(); in setUp()
80 device.disableAdbRoot(); in tearDown()
DRootTargetPreparer.java61 } else if (mWasRoot && !mForceRoot && !device.disableAdbRoot()) { in setUp()
78 device.disableAdbRoot(); in tearDown()
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DShellStatusCheckerTest.java84 when(mMockDevice.disableAdbRoot()).thenReturn(preRevertOk).thenReturn(postRevertOk); in expectPreAndPost()
91 when(mMockDevice.disableAdbRoot()).thenReturn(preRevertOk); in expectPreAndPost()
98 when(mMockDevice.disableAdbRoot()).thenReturn(postRevertOk); in expectPreAndPost()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DShellStatusChecker.java66 reset = device.disableAdbRoot(); in preExecutionCheck()
94 reset = device.disableAdbRoot(); in postExecutionCheck()
/tools/tradefederation/core/src/com/android/tradefed/util/
DAdbRootElevator.java43 mDevice.disableAdbRoot(); in close()
/tools/tradefederation/contrib/src/com/android/fastboot/tests/
DFastbootTest.java228 mDevice.disableAdbRoot(); in testFastboot()
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DJavaCodeCoverageCollectorTest.java141 when(mMockDevice.disableAdbRoot()).thenReturn(true); in setUp()
295 inOrder.verify(mMockDevice).disableAdbRoot(); in testRunEnded_rootDisabled_disablesRootAfterPullingFiles()
DGcovCodeCoverageCollectorTest.java308 inOrder.verify(mMockDevice).disableAdbRoot(); in testInit_adbRootAndCoverageFlushed()
DClangCodeCoverageCollectorTest.java626 inOrder.verify(mMockDevice).disableAdbRoot(); in testInit_adbRootAndCoverageFlush()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java1220 public boolean disableAdbRoot() throws DeviceNotAvailableException; in disableAdbRoot() method
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceFileFuncTest.java180 mTestDevice.disableAdbRoot(); in testPull_NoPermissions()
DTestDeviceFuncTest.java912 mTestDevice.disableAdbRoot(); in testPullFileContents()
DTestDeviceTest.java370 assertTrue(mTestDevice.disableAdbRoot()); in testDisableAdbRoot_alreadyUnroot()
389 assertTrue(mTestDevice.disableAdbRoot()); in testDisableAdbRoot_unroot()
DNativeDeviceTest.java3455 public boolean disableAdbRoot() throws DeviceNotAvailableException { in testGetFastbootSerialNumber_non_root_tcp_adb()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java4075 public boolean disableAdbRoot() throws DeviceNotAvailableException { in disableAdbRoot() method in NativeDevice
4449 disableAdbRoot(); in getFastbootSerialNumber()