/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | RootTargetPreparerTest.java | 57 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(true).once(); in testSetUpSuccess_rootBefore() 67 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(false).once(); in testSetUpSuccess_notRootBefore() 79 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(false).once(); in testSetUpFail() 92 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(true).once(); in testSetUpSuccess_rootBefore_forceUnroot() 107 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(false).once(); in testSetUpSuccess_notRootBefore_forceUnroot() 120 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(true).once(); in testSetUpFail_forceUnroot() 133 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(false).once(); in testSetUpFail_forceRoot_ignoresFailure() 149 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(true).once(); in testSetUpFail_forceUnroot_ignoresFailure()
|
D | DisableSELinuxTargetPreparerTest.java | 75 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(true).once(); in testSetUpSuccess_enforced_rootBefore() 95 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(false).once(); in testSetUpSuccess_enforced_notRootBefore() 117 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(false).once(); in testSetUp_rootFail() 135 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(false).once(); in testSetUp_disableSELinuxFail()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | NativeCodeCoverageFlusherTest.java | 54 doReturn(true).when(mMockDevice).isAdbRoot(); in testClearCoverageMeasurements_rmCommandCalled() 65 doReturn(false).when(mMockDevice).isAdbRoot(); in testNoAdbRootClearCoverageMeasurements_noOp() 82 doReturn(true).when(mMockDevice).isAdbRoot(); in testFlushCoverageAllProcesses_flushAllCommandCalled() 96 doReturn(true).when(mMockDevice).isAdbRoot(); in testFlushCoverageSpecificProcesses_flushSpecificCommandCalled() 109 doReturn(false).when(mMockDevice).isAdbRoot(); in testNoAdbRootFlush_noOp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | JavaCodeCoverageListenerTest.java | 112 when(mMockDevice.isAdbRoot()).thenReturn(false); in setUp() 125 when(mMockDevice.isAdbRoot()).thenReturn(true); in testRunEnded_rootEnabled_logsCoverageMeasurement() 177 when(mMockDevice.isAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles() 193 when(mMockDevice.isAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_throwsIfCannotEnableRoot() 208 when(mMockDevice.isAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_disablesRootAfterPullingFiles() 224 when(mMockDevice.isAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_throwsIfCannotDisableRoot()
|
D | NativeCodeCoverageListenerTest.java | 171 doReturn(true).when(mMockDevice).isAdbRoot(); in testCoverageFlushAllProcesses_flushAllCommandCalled() 194 doReturn(true).when(mMockDevice).isAdbRoot(); in testCoverageFlushSpecificProcesses_flushCommandCalled()
|
D | GTestTest.java | 509 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageAllProcesses() 570 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageSpecificProcesses()
|
D | ClangCodeCoverageListenerTest.java | 151 doReturn(true).when(mMockDevice).isAdbRoot(); in coverageFlushEnabled_flushCalled()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustBinaryTestTest.java | 318 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageAllProcesses() 319 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageAllProcesses() 370 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageAllProcesses() 413 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageSpecificProcesses() 414 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageSpecificProcesses() 471 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageSpecificProcesses()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceTest.java | 297 assertFalse(mTestDevice.isAdbRoot()); in testIsAdbRootForNonRoot() 306 assertTrue(mTestDevice.isAdbRoot()); in testIsAdbRootForRoot() 595 public boolean isAdbRoot() throws DeviceNotAvailableException { in testExecuteShellCommand_recoveryRetry() 662 public boolean isAdbRoot() throws DeviceNotAvailableException { in testExecuteShellCommand_recoveryTimeoutRetry() 712 public boolean isAdbRoot() throws DeviceNotAvailableException { in testExecuteShellCommand_recoveryAttempts() 4016 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetAndroidId() 4035 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetAndroidId_notFound() 4048 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetAndroidId_notRoot() 4505 public boolean isAdbRoot() throws DeviceNotAvailableException { in testIsEncryptionSupported_newformat() 4525 public boolean isAdbRoot() throws DeviceNotAvailableException { in testIsEncryptionSupported_failure()
|
D | TestDeviceFuncTest.java | 642 if (!mTestDevice.isAdbRoot()) { in testDeviceSoftRestart() 652 if (!mTestDevice.isAdbRoot()) { in testDeviceSoftRestart()
|
D | NativeDeviceTest.java | 3032 public boolean isAdbRoot() throws DeviceNotAvailableException { in testSetProperty() 3145 doReturn(false).when(spy).isAdbRoot(); in testGetTombstones_notRoot() 3157 doReturn(true).when(spy).isAdbRoot(); in testGetTombstones()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/executor/ |
D | ParallelDeviceExecutorTest.java | 61 return device.isAdbRoot(); in testSimpleExecution() 66 doReturn(true).when(mDevice1).isAdbRoot(); in testSimpleExecution() 67 doReturn(false).when(mDevice2).isAdbRoot(); in testSimpleExecution()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 3266 if (isAdbRoot()) { in enableAdbRoot() 3290 if (isAdbRoot()) { in enableAdbRoot() 3304 if (!isAdbRoot()) { in disableAdbRoot() 3321 if (!isAdbRoot()) { in disableAdbRoot() 3356 public boolean isAdbRoot() throws DeviceNotAvailableException { in isAdbRoot() method in NativeDevice 4944 if (!isAdbRoot()) { in getTombstones()
|
D | TestDevice.java | 947 if (getApiLevel() >= 18 && isAdbRoot()) { in doAdbFrameworkReboot() 1671 if (isAdbRoot()) { in getAndroidId()
|
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/ |
D | ShellStatusChecker.java | 55 if (mExpectedRoot != device.isAdbRoot()) { in preExecutionCheck() 83 if (mExpectedRoot != device.isAdbRoot()) { in postExecutionCheck()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/ |
D | ShellStatusCheckerTest.java | 75 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(preRoot); in expectPreAndPost() 85 EasyMock.expect(mMockDevice.isAdbRoot()).andReturn(postRoot); in expectPreAndPost()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | NativeCodeCoverageFlusher.java | 63 checkState(mDevice.isAdbRoot(), "adb root is required to flush native coverage data."); in forceCoverageFlush()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | DisableSELinuxTargetPreparer.java | 52 mWasRoot = device.isAdbRoot(); in setUp()
|
D | RootTargetPreparer.java | 58 mWasRoot = device.isAdbRoot(); in setUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | TemperatureCollectorTest.java | 54 when(mDevice.isAdbRoot()).thenReturn(true); in setup()
|
/tools/tradefederation/core/src/com/android/tradefed/device/battery/ |
D | BatteryController.java | 71 if (!device.isAdbRoot()) { in getDeviceChargingState()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | TemperatureCollector.java | 90 if (!device.isAdbRoot()) { in collect()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | JavaCodeCoverageListener.java | 165 boolean wasRoot = mDevice.isAdbRoot(); in collectAndLogCoverageMeasurementsAsRoot()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | INativeDevice.java | 1063 public boolean isAdbRoot() throws DeviceNotAvailableException; in isAdbRoot() method
|