/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | ClangCodeCoverageListenerTest.java | 150 doReturn(true).when(mMockDevice).enableAdbRoot(); in coverageFlushEnabled_flushCalled() 169 doReturn(true).when(mMockDevice).enableAdbRoot(); in testRun_logsCoverageFile() 206 doReturn(true).when(mMockDevice).enableAdbRoot(); in testOtherFileTypes_ignored() 240 doReturn(true).when(mMockDevice).enableAdbRoot(); in testNoClangMeasurements_noLogFile() 259 doReturn(true).when(mMockDevice).enableAdbRoot(); in testProfileToolInConfiguration_notFromBuild() 285 doReturn(true).when(mMockDevice).enableAdbRoot(); in testProfileToolNotFound_throwsException() 316 doReturn(true).when(mMockDevice).enableAdbRoot(); in testProfileToolFailed_throwsException()
|
D | NativeCodeCoverageListenerTest.java | 102 doReturn(true).when(mMockDevice).enableAdbRoot(); in test_logsCoverageZip() 141 doReturn(true).when(mMockDevice).enableAdbRoot(); in testNoCoverageFiles_logsEmptyZip() 170 doReturn(true).when(mMockDevice).enableAdbRoot(); in testCoverageFlushAllProcesses_flushAllCommandCalled() 193 doReturn(true).when(mMockDevice).enableAdbRoot(); in testCoverageFlushSpecificProcesses_flushCommandCalled() 213 doReturn(true).when(mMockDevice).enableAdbRoot(); in testFailure_unableToPullFile() 245 doReturn(true).when(mMockDevice).enableAdbRoot(); in testNoCollectOnTestEnd_noCoverageMeasurements()
|
D | JavaCodeCoverageListenerTest.java | 113 when(mMockDevice.enableAdbRoot()).thenReturn(true); in setUp() 184 inOrder.verify(mMockDevice).enableAdbRoot(); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles() 194 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_throwsIfCannotEnableRoot()
|
D | GTestTest.java | 506 EasyMock.expect(mMockITestDevice.enableAdbRoot()).andReturn(true); in testNativeCoverageAllProcesses() 566 EasyMock.expect(mMockITestDevice.enableAdbRoot()).andReturn(true); in testNativeCoverageSpecificProcesses()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | RootTargetPreparerTest.java | 68 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(true).once(); in testSetUpSuccess_notRootBefore() 80 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(false).once(); in testSetUpFail() 94 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(true).once(); in testSetUpSuccess_rootBefore_forceUnroot() 134 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(false).once(); in testSetUpFail_forceRoot_ignoresFailure() 152 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(true).once(); in testSetUpFail_forceUnroot_ignoresFailure()
|
D | RestartSystemServerTargetPreparerTest.java | 46 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(true).once(); in testSetUp_bootComplete() 64 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(true).once(); in testSetUp_bootNotComplete() 85 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(true).once(); in testTearDown_restart()
|
D | DisableSELinuxTargetPreparerTest.java | 96 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(true).times(2); in testSetUpSuccess_enforced_notRootBefore() 118 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(false).once(); in testSetUp_rootFail() 136 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(true).once(); in testSetUp_disableSELinuxFail()
|
D | DeviceFlashPreparerTest.java | 147 EasyMock.expect(mMockDevice.enableAdbRoot()).andStubReturn(Boolean.TRUE); in doSetupExpectations() 202 EasyMock.expect(mMockDevice.enableAdbRoot()).andStubReturn(Boolean.TRUE); in testSetup_buildError()
|
D | DefaultTestsZipInstallerFuncTest.java | 35 getDevice().enableAdbRoot(); in testDeleteData()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustBinaryTestTest.java | 314 EasyMock.expect(mMockITestDevice.enableAdbRoot()).andReturn(true); in testNativeCoverageAllProcesses() 315 EasyMock.expect(mMockITestDevice.enableAdbRoot()).andReturn(true); in testNativeCoverageAllProcesses() 369 EasyMock.expect(mMockITestDevice.enableAdbRoot()).andReturn(true); in testNativeCoverageAllProcesses() 408 EasyMock.expect(mMockITestDevice.enableAdbRoot()).andReturn(true); in testNativeCoverageSpecificProcesses() 409 EasyMock.expect(mMockITestDevice.enableAdbRoot()).andReturn(true); in testNativeCoverageSpecificProcesses() 470 EasyMock.expect(mMockITestDevice.enableAdbRoot()).andReturn(true); in testNativeCoverageSpecificProcesses()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | RemoteAndroidVirtualDeviceTest.java | 267 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testPreInvocationSetup() 306 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testPreInvocationSetup_fails() 496 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testDeviceNotStoreShutdownState() 599 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testDevice_skipTearDown() 686 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testDeviceBoot_offline()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 2167 boolean enabled = enableAdbRoot(); in recoverDevice() 2193 enableAdbRoot(); in recoverDevice() 2884 enableAdbRoot(); in postBootSetup() 3070 enableAdbRoot(); in rebootUntilOnline() 3080 enableAdbRoot(); in rebootUserspaceUntilOnline() 3263 public boolean enableAdbRoot() throws DeviceNotAvailableException { in enableAdbRoot() method in NativeDevice 3377 enableAdbRoot(); in encryptDevice() 3510 enableAdbRoot(); in unlockDevice() 3588 enableAdbRoot(); in isEncryptionSupported()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceTest.java | 186 assertTrue(mTestDevice.enableAdbRoot()); in testEnableAdbRoot_alreadyRoot() 195 assertTrue(mTestDevice.enableAdbRoot()); in testEnableAdbRoot_notRoot() 206 assertFalse(mTestDevice.enableAdbRoot()); in testEnableAdbRoot_noEnableRoot() 288 assertTrue(mTestDevice.enableAdbRoot()); in testEnableAdbRoot_rootRetry() 453 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testRecoverDevice_ThrowException() 4510 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testIsEncryptionSupported_newformat() 4530 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testIsEncryptionSupported_failure()
|
D | NativeDeviceTest.java | 1811 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testUnlockDevice() 1837 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testUnlockDevice_garbageOutput() 1863 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testUnlockDevice_emptyOutput() 1889 public boolean enableAdbRoot() throws DeviceNotAvailableException { in testUnlockDevice_goodOutputPasswordEnteredCorrectly()
|
D | TestDeviceFuncTest.java | 643 mTestDevice.enableAdbRoot(); in testDeviceSoftRestart() 653 mTestDevice.enableAdbRoot(); in testDeviceSoftRestart()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | DisableSELinuxTargetPreparer.java | 53 if (!mWasRoot && !device.enableAdbRoot()) { in setUp() 75 device.enableAdbRoot(); in tearDown()
|
D | RootTargetPreparer.java | 59 if (!mWasRoot && mForceRoot && !device.enableAdbRoot()) { in setUp() 76 device.enableAdbRoot(); in tearDown()
|
D | RestartSystemServerTargetPreparer.java | 37 device.enableAdbRoot(); in restartSystemServer()
|
D | EraseUserDataPreparer.java | 53 device.enableAdbRoot(); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/ |
D | ShellStatusChecker.java | 64 reset = device.enableAdbRoot(); in preExecutionCheck() 92 reset = device.enableAdbRoot(); in postExecutionCheck()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/ |
D | ShellStatusCheckerTest.java | 79 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(preRevertOk); in expectPreAndPost() 89 EasyMock.expect(mMockDevice.enableAdbRoot()).andReturn(postRevertOk); in expectPreAndPost()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceUpdateTargetPreparer.java | 96 boolean rootEnabled = device.enableAdbRoot(); in setUp()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | NativeCodeCoverageListener.java | 120 verify(mDevice.enableAdbRoot(), "Failed to enable adb root."); in logCoverageMeasurements()
|
D | JavaCodeCoverageListener.java | 166 if (!wasRoot && !mDevice.enableAdbRoot()) { in collectAndLogCoverageMeasurementsAsRoot()
|
D | ClangCodeCoverageListener.java | 117 verify(mDevice.enableAdbRoot(), "Failed to enable adb root."); in testRunEnded()
|