/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | RootTargetPreparerTest.java | 63 when(mMockDevice.isAdbRoot()).thenReturn(true); in testSetUpSuccess_rootBefore() 67 verify(mMockDevice, times(1)).isAdbRoot(); in testSetUpSuccess_rootBefore() 72 when(mMockDevice.isAdbRoot()).thenReturn(false); in testSetUpSuccess_notRootBefore() 78 verify(mMockDevice, times(1)).isAdbRoot(); in testSetUpSuccess_notRootBefore() 85 when(mMockDevice.isAdbRoot()).thenReturn(false); in testSetUpFail() 97 when(mMockDevice.isAdbRoot()).thenReturn(true); in testSetUpSuccess_rootBefore_forceUnroot() 103 verify(mMockDevice, times(1)).isAdbRoot(); in testSetUpSuccess_rootBefore_forceUnroot() 113 when(mMockDevice.isAdbRoot()).thenReturn(false); in testSetUpSuccess_notRootBefore_forceUnroot() 117 verify(mMockDevice, times(1)).isAdbRoot(); in testSetUpSuccess_notRootBefore_forceUnroot() 125 when(mMockDevice.isAdbRoot()).thenReturn(true); in testSetUpFail_forceUnroot() [all …]
|
D | DisableSELinuxTargetPreparerTest.java | 80 when(mMockDevice.isAdbRoot()).thenReturn(true); in testSetUpSuccess_enforced_rootBefore() 87 verify(mMockDevice, times(1)).isAdbRoot(); in testSetUpSuccess_enforced_rootBefore() 98 when(mMockDevice.isAdbRoot()).thenReturn(false); in testSetUpSuccess_enforced_notRootBefore() 108 verify(mMockDevice, times(1)).isAdbRoot(); in testSetUpSuccess_enforced_notRootBefore() 120 when(mMockDevice.isAdbRoot()).thenReturn(false); in testSetUp_rootFail() 127 verify(mMockDevice, times(1)).isAdbRoot(); in testSetUp_rootFail() 140 when(mMockDevice.isAdbRoot()).thenReturn(false); in testSetUp_disableSELinuxFail() 147 verify(mMockDevice, times(1)).isAdbRoot(); in testSetUp_disableSELinuxFail()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | AdbRootElevatorTest.java | 48 when(mMockDevice.isAdbRoot()).thenReturn(false); in testEnablesAndDisablesRoot() 56 inOrder.verify(mMockDevice).isAdbRoot(); in testEnablesAndDisablesRoot() 65 when(mMockDevice.isAdbRoot()).thenReturn(true); in testRootAlreadyEnabled_doesNotEnableOrDisableRoot() 72 inOrder.verify(mMockDevice).isAdbRoot(); in testRootAlreadyEnabled_doesNotEnableOrDisableRoot() 80 when(mMockDevice.isAdbRoot()).thenReturn(false); in testFailsToEnableAdbRoot_throwsException() 95 when(mMockDevice.isAdbRoot()).thenReturn(false); in testDeviceNotAvailableOnRoot_throwsException()
|
D | NativeCodeCoverageFlusherTest.java | 71 doReturn(true).when(mMockDevice).isAdbRoot(); in testClearCoverageMeasurements_rmCommandCalled() 92 doReturn(false).when(mMockDevice).isAdbRoot(); in testNoAdbRootClearCoverageMeasurements_noOp() 110 doReturn(true).when(mMockDevice).isAdbRoot(); in testFlushCoverageAllProcesses_flushAllCommandCalled() 133 doReturn(true).when(mMockDevice).isAdbRoot(); in testFlushCoverageSpecificProcesses_flushSpecificCommandCalled() 153 doReturn(true).when(mMockDevice).isAdbRoot(); in testFlushNotHandled_flushNotCalled() 173 doReturn(true).when(mMockDevice).isAdbRoot(); in testFlushStatusReadFailed_flushNotCalled() 192 doReturn(true).when(mMockDevice).isAdbRoot(); in testFlushStatusReadEmpty_flushNotCalled() 210 doReturn(true).when(mMockDevice).isAdbRoot(); in testFlushOnlySigCgt_flushSpecificProcesses() 239 doReturn(false).when(mMockDevice).isAdbRoot(); in testNoAdbRootFlush_noOp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | GcovCodeCoverageCollectorTest.java | 129 doReturn(true).when(mMockDevice).isAdbRoot(); in test_logsCoverageZip() 168 doReturn(true).when(mMockDevice).isAdbRoot(); in testNoCoverageFiles_logsEmptyZip() 195 doReturn(true).when(mMockDevice).isAdbRoot(); in testCoverageFlushAllProcesses_flushAllCommandCalled() 216 doReturn(true).when(mMockDevice).isAdbRoot(); in testCoverageFlushSpecificProcesses_flushCommandCalled() 234 doReturn(true).when(mMockDevice).isAdbRoot(); in testFailure_unableToPullFile() 254 doReturn(true).when(mMockDevice).isAdbRoot(); in testNoCollectOnTestEnd_noCoverageMeasurements() 297 when(mMockDevice.isAdbRoot()).thenReturn(false).thenReturn(true); in testInit_adbRootAndCoverageFlushed() 304 inOrder.verify(mMockDevice).isAdbRoot(); in testInit_adbRootAndCoverageFlushed()
|
D | ClangCodeCoverageCollectorTest.java | 199 doReturn(true).when(mMockDevice).isAdbRoot(); in coverageFlushEnabled_flushCalled() 220 doReturn(true).when(mMockDevice).isAdbRoot(); in testRun_misc_trace_only_logsCoverageFile() 277 doReturn(true).when(mMockDevice).isAdbRoot(); in testRun_local_tmp_only_logsCoverageFile() 327 doReturn(true).when(mMockDevice).isAdbRoot(); in testRun_both_locations_logsCoverageFile() 381 doReturn(true).when(mMockDevice).isAdbRoot(); in testRun_noModuleName_logsCoverageFile() 423 doReturn(true).when(mMockDevice).isAdbRoot(); in testRun_profraw_filter_option() 463 doReturn(true).when(mMockDevice).isAdbRoot(); in testOtherFileTypes_ignored() 500 doReturn(true).when(mMockDevice).isAdbRoot(); in testNoClangMeasurements_noLogFile() 521 doReturn(true).when(mMockDevice).isAdbRoot(); in testProfileToolInConfiguration_notFromBuild() 554 doReturn(true).when(mMockDevice).isAdbRoot(); in testProfileToolNotFound_noLog() [all …]
|
D | JavaCodeCoverageCollectorTest.java | 139 when(mMockDevice.isAdbRoot()).thenReturn(false); in setUp() 177 when(mMockDevice.isAdbRoot()).thenReturn(true); in testRunEnded_rootEnabled_logsCoverageMeasurement() 208 when(mMockDevice.isAdbRoot()).thenReturn(true); in testRunEnded_rootEnabled_noModuleName_logsCoverageMeasurement() 245 when(mMockDevice.isAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles() 264 when(mMockDevice.isAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_noLogIfCannotEnableRoot() 284 when(mMockDevice.isAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_disablesRootAfterPullingFiles()
|
D | GcovKernelCodeCoverageCollectorTest.java | 193 when(mMockDevice.isAdbRoot()).thenReturn(true); in setUp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/executor/ |
D | ParallelDeviceExecutorTest.java | 62 return device.isAdbRoot(); in testSimpleExecution() 67 doReturn(true).when(mDevice1).isAdbRoot(); in testSimpleExecution() 68 doReturn(false).when(mDevice2).isAdbRoot(); in testSimpleExecution()
|
/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/src/com/android/tradefed/util/ |
D | AdbRootElevator.java | 31 mWasRoot = mDevice.isAdbRoot(); in AdbRootElevator()
|
D | NativeCodeCoverageFlusher.java | 91 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/src/com/android/tradefed/device/battery/ |
D | BatteryController.java | 71 if (!device.isAdbRoot()) { in getDeviceChargingState()
|
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/ |
D | ShellStatusCheckerTest.java | 103 when(mMockDevice.isAdbRoot()).thenReturn(preRoot).thenReturn(postRoot); in expectPreAndPost()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 2812 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetMacAddress() 2859 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetMacAddress_failure() 3199 public boolean isAdbRoot() throws DeviceNotAvailableException { in testSetProperty() 3314 doReturn(false).when(spy).isAdbRoot(); in testGetTombstones_notRoot() 3324 doReturn(true).when(spy).isAdbRoot(); in testGetTombstones() 3445 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetFastbootSerialNumber_non_root_tcp_adb() 3495 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetFastbootSerialNumber_root_tcp_adb()
|
D | TestDeviceFuncTest.java | 685 if (!mTestDevice.isAdbRoot()) { in testDeviceSoftRestart() 698 if (!mTestDevice.isAdbRoot()) { in testDeviceSoftRestart()
|
D | TestDeviceTest.java | 458 assertFalse(mTestDevice.isAdbRoot()); in testIsAdbRootForNonRoot() 466 assertTrue(mTestDevice.isAdbRoot()); in testIsAdbRootForRoot() 817 public boolean isAdbRoot() throws DeviceNotAvailableException { in testExecuteShellCommand_recoveryRetry() 915 public boolean isAdbRoot() throws DeviceNotAvailableException { in testExecuteShellCommand_recoveryTimeoutRetry() 982 public boolean isAdbRoot() throws DeviceNotAvailableException { in testExecuteShellCommand_recoveryAttempts() 5175 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetAndroidId() 5196 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetAndroidId_notFound() 5209 public boolean isAdbRoot() throws DeviceNotAvailableException { in testGetAndroidId_notRoot() 5678 public boolean isAdbRoot() throws DeviceNotAvailableException { in testIsEncryptionSupported_newformat() 5698 public boolean isAdbRoot() throws DeviceNotAvailableException { in testIsEncryptionSupported_failure()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | INativeDevice.java | 1228 public boolean isAdbRoot() throws DeviceNotAvailableException; in isAdbRoot() method
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 4023 if (isAdbRoot()) { in enableAdbRoot() 4047 if (isAdbRoot()) { in enableAdbRoot() 4057 if (isAdbRoot()) { in enableAdbRoot() 4076 if (!isAdbRoot()) { in disableAdbRoot() 4093 if (!isAdbRoot()) { in disableAdbRoot() 4128 public boolean isAdbRoot() throws DeviceNotAvailableException { in isAdbRoot() method in NativeDevice 4443 boolean adbRoot = isAdbRoot(); in getFastbootSerialNumber() 5987 if (!isAdbRoot()) { in getTombstones()
|
D | TestDevice.java | 2338 if (isAdbRoot()) { in getAndroidId()
|