Home
last modified time | relevance | path

Searched refs:enableAdbRoot (Results 1 – 25 of 42) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DClangCodeCoverageListenerTest.java150 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()
DNativeCodeCoverageListenerTest.java102 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()
DJavaCodeCoverageListenerTest.java113 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()
DGTestTest.java506 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/
DRootTargetPreparerTest.java68 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()
DRestartSystemServerTargetPreparerTest.java46 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()
DDisableSELinuxTargetPreparerTest.java96 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()
DDeviceFlashPreparerTest.java147 EasyMock.expect(mMockDevice.enableAdbRoot()).andStubReturn(Boolean.TRUE); in doSetupExpectations()
202 EasyMock.expect(mMockDevice.enableAdbRoot()).andStubReturn(Boolean.TRUE); in testSetup_buildError()
DDefaultTestsZipInstallerFuncTest.java35 getDevice().enableAdbRoot(); in testDeleteData()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustBinaryTestTest.java314 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/
DRemoteAndroidVirtualDeviceTest.java267 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/
DNativeDevice.java2167 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/
DTestDeviceTest.java186 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()
DNativeDeviceTest.java1811 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()
DTestDeviceFuncTest.java643 mTestDevice.enableAdbRoot(); in testDeviceSoftRestart()
653 mTestDevice.enableAdbRoot(); in testDeviceSoftRestart()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DDisableSELinuxTargetPreparer.java53 if (!mWasRoot && !device.enableAdbRoot()) { in setUp()
75 device.enableAdbRoot(); in tearDown()
DRootTargetPreparer.java59 if (!mWasRoot && mForceRoot && !device.enableAdbRoot()) { in setUp()
76 device.enableAdbRoot(); in tearDown()
DRestartSystemServerTargetPreparer.java37 device.enableAdbRoot(); in restartSystemServer()
DEraseUserDataPreparer.java53 device.enableAdbRoot(); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DShellStatusChecker.java64 reset = device.enableAdbRoot(); in preExecutionCheck()
92 reset = device.enableAdbRoot(); in postExecutionCheck()
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DShellStatusCheckerTest.java79 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/
DDeviceUpdateTargetPreparer.java96 boolean rootEnabled = device.enableAdbRoot(); in setUp()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DNativeCodeCoverageListener.java120 verify(mDevice.enableAdbRoot(), "Failed to enable adb root."); in logCoverageMeasurements()
DJavaCodeCoverageListener.java166 if (!wasRoot && !mDevice.enableAdbRoot()) { in collectAndLogCoverageMeasurementsAsRoot()
DClangCodeCoverageListener.java117 verify(mDevice.enableAdbRoot(), "Failed to enable adb root."); in testRunEnded()

12