/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | DeviceSetupTest.java | 109 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup() 136 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_airplane_mode_on() 151 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_airplane_mode_off() 164 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_data_on() 177 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_data_off() 189 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_cell_on() 201 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_cell_off() 213 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_cell_auto_setting_on() 225 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_cell_auto_setting_off() 238 verify(mMockDevice, atLeastOnce()).enableAdbRoot(); in testSetup_wifi_on() [all …]
|
D | RootTargetPreparerTest.java | 73 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUpSuccess_notRootBefore() 79 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUpSuccess_notRootBefore() 86 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testSetUpFail() 99 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUpSuccess_rootBefore_forceUnroot() 105 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUpSuccess_rootBefore_forceUnroot() 138 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testSetUpFail_forceRoot_ignoresFailure() 155 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUpFail_forceUnroot_ignoresFailure() 162 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUpFail_forceUnroot_ignoresFailure()
|
D | RestartSystemServerTargetPreparerTest.java | 61 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUp_bootComplete() 68 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUp_bootComplete() 75 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUp_bootNotComplete() 84 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUp_bootNotComplete() 95 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testTearDown_restart() 102 verify(mMockDevice, times(1)).enableAdbRoot(); in testTearDown_restart()
|
D | DisableSELinuxTargetPreparerTest.java | 99 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUpSuccess_enforced_notRootBefore() 109 verify(mMockDevice, times(2)).enableAdbRoot(); in testSetUpSuccess_enforced_notRootBefore() 121 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testSetUp_rootFail() 128 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUp_rootFail() 141 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testSetUp_disableSELinuxFail() 148 verify(mMockDevice, times(1)).enableAdbRoot(); in testSetUp_disableSELinuxFail()
|
D | DefaultTestsZipInstallerFuncTest.java | 35 getDevice().enableAdbRoot(); in testDeleteData()
|
D | DeviceFlashPreparerTest.java | 171 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in doSetupExpectations() 218 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in testSetup_buildError()
|
D | GkiDeviceFlashPreparerTest.java | 384 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in testSetup_Success() 444 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in testSetup_vendor_img_Success() 492 when(mMockDevice.enableAdbRoot()).thenReturn(Boolean.TRUE); in testSetup_Success_FromZip()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | AdbRootElevatorTest.java | 49 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testEnablesAndDisablesRoot() 57 inOrder.verify(mMockDevice).enableAdbRoot(); in testEnablesAndDisablesRoot() 81 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testFailsToEnableAdbRoot_throwsException() 96 when(mMockDevice.enableAdbRoot()).thenThrow(new DeviceNotAvailableException()); in testDeviceNotAvailableOnRoot_throwsException()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/sync/ |
D | DeviceSyncHelper.java | 86 device.enableAdbRoot(); in syncFiles() 88 device.enableAdbRoot(); in syncFiles() 132 device.enableAdbRoot(); in syncFiles()
|
/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() 80 device.enableAdbRoot(); in tearDown()
|
D | RestartSystemServerTargetPreparer.java | 37 device.enableAdbRoot(); in restartSystemServer()
|
D | EraseUserDataPreparer.java | 53 device.enableAdbRoot(); in setUp()
|
D | DeviceWiper.java | 112 if (!device.enableAdbRoot()) { in doFactoryReset()
|
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/ |
D | ShellStatusCheckerTest.java | 82 when(mMockDevice.enableAdbRoot()).thenReturn(preRevertOk).thenReturn(postRevertOk); in expectPreAndPost() 89 when(mMockDevice.enableAdbRoot()).thenReturn(preRevertOk); in expectPreAndPost() 96 when(mMockDevice.enableAdbRoot()).thenReturn(postRevertOk); in expectPreAndPost()
|
/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/src/com/android/tradefed/util/ |
D | AdbRootElevator.java | 33 if (!mDevice.enableAdbRoot()) { in AdbRootElevator()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | GcovCodeCoverageCollectorTest.java | 266 doReturn(true).when(mMockDevice).enableAdbRoot(); in testNoCollectOnTestEnd_noCoverageMeasurements() 298 when(mMockDevice.enableAdbRoot()).thenReturn(true); in testInit_adbRootAndCoverageFlushed() 305 inOrder.verify(mMockDevice).enableAdbRoot(); in testInit_adbRootAndCoverageFlushed()
|
D | JavaCodeCoverageCollectorTest.java | 140 when(mMockDevice.enableAdbRoot()).thenReturn(true); in setUp() 255 inOrder.verify(mMockDevice).enableAdbRoot(); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles() 265 when(mMockDevice.enableAdbRoot()).thenReturn(false); in testRunEnded_rootDisabled_noLogIfCannotEnableRoot()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceUpdateTargetPreparer.java | 97 boolean rootEnabled = device.enableAdbRoot(); in setUp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/sync/ |
D | IncrementalImageFuncTest.java | 91 getDevice().enableAdbRoot(); in teardown() 234 getDevice().enableAdbRoot(); in testBlockCompareUpdate()
|
/tools/tradefederation/core/src/com/android/tradefed/util/image/ |
D | IncrementalImageUtil.java | 318 if (!mDevice.enableAdbRoot()) { in updateDevice() 460 mDevice.enableAdbRoot(); in internalUpdateDevice() 526 mDevice.enableAdbRoot(); in teardownDevice()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | TestDeviceFuncTest.java | 686 mTestDevice.enableAdbRoot(); in testDeviceSoftRestart() 699 mTestDevice.enableAdbRoot(); in testDeviceSoftRestart() 904 mTestDevice.enableAdbRoot(); in testPullFileContents()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 2762 boolean enabled = enableAdbRoot(); in recoverDevice() 2804 enableAdbRoot(); in recoverDevice() 3066 boolean root = enableAdbRoot(); in logAnrs() 3194 || !enableAdbRoot() in connectToWifiNetwork() 3467 enableAdbRoot(); in postBootSetup() 3774 enableAdbRoot(); in internalRebootUntilOnline() 3796 enableAdbRoot(); in rebootUserspaceUntilOnline() 4020 public boolean enableAdbRoot() throws DeviceNotAvailableException { in enableAdbRoot() method in NativeDevice 4158 enableAdbRoot(); in unlockDevice() 4236 enableAdbRoot(); in isEncryptionSupported() [all …]
|
/tools/tradefederation/contrib/src/com/android/fastboot/tests/ |
D | FastbootTest.java | 248 mDevice.enableAdbRoot(); in testFastboot()
|