Home
last modified time | relevance | path

Searched refs:isAdbRoot (Results 1 – 24 of 24) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DRootTargetPreparerTest.java57 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()
DDisableSELinuxTargetPreparerTest.java75 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/
DNativeCodeCoverageFlusherTest.java54 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/
DJavaCodeCoverageListenerTest.java112 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()
DNativeCodeCoverageListenerTest.java171 doReturn(true).when(mMockDevice).isAdbRoot(); in testCoverageFlushAllProcesses_flushAllCommandCalled()
194 doReturn(true).when(mMockDevice).isAdbRoot(); in testCoverageFlushSpecificProcesses_flushCommandCalled()
DGTestTest.java509 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageAllProcesses()
570 EasyMock.expect(mMockITestDevice.isAdbRoot()).andReturn(true); in testNativeCoverageSpecificProcesses()
DClangCodeCoverageListenerTest.java151 doReturn(true).when(mMockDevice).isAdbRoot(); in coverageFlushEnabled_flushCalled()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustBinaryTestTest.java318 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/
DTestDeviceTest.java297 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()
DTestDeviceFuncTest.java642 if (!mTestDevice.isAdbRoot()) { in testDeviceSoftRestart()
652 if (!mTestDevice.isAdbRoot()) { in testDeviceSoftRestart()
DNativeDeviceTest.java3032 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/
DParallelDeviceExecutorTest.java61 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/
DNativeDevice.java3266 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()
DTestDevice.java947 if (getApiLevel() >= 18 && isAdbRoot()) { in doAdbFrameworkReboot()
1671 if (isAdbRoot()) { in getAndroidId()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DShellStatusChecker.java55 if (mExpectedRoot != device.isAdbRoot()) { in preExecutionCheck()
83 if (mExpectedRoot != device.isAdbRoot()) { in postExecutionCheck()
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DShellStatusCheckerTest.java75 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/
DNativeCodeCoverageFlusher.java63 checkState(mDevice.isAdbRoot(), "adb root is required to flush native coverage data."); in forceCoverageFlush()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DDisableSELinuxTargetPreparer.java52 mWasRoot = device.isAdbRoot(); in setUp()
DRootTargetPreparer.java58 mWasRoot = device.isAdbRoot(); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DTemperatureCollectorTest.java54 when(mDevice.isAdbRoot()).thenReturn(true); in setup()
/tools/tradefederation/core/src/com/android/tradefed/device/battery/
DBatteryController.java71 if (!device.isAdbRoot()) { in getDeviceChargingState()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DTemperatureCollector.java90 if (!device.isAdbRoot()) { in collect()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DJavaCodeCoverageListener.java165 boolean wasRoot = mDevice.isAdbRoot(); in collectAndLogCoverageMeasurementsAsRoot()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java1063 public boolean isAdbRoot() throws DeviceNotAvailableException; in isAdbRoot() method