Home
last modified time | relevance | path

Searched refs:mDevice (Results 1 – 22 of 22) sorted by relevance

/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/util/
DCmdUtilTest.java58 @Mock private ITestDevice mDevice; field in CmdUtilTest
70 doReturn("").when(mDevice).executeShellCommand(TEST_CMD); in testWaitCmdSuccess()
71 assertTrue(mCmdUtil.waitCmdResultWithDelay(mDevice, TEST_CMD, mCheckEmpty)); in testWaitCmdSuccess()
76 when(mDevice.executeShellCommand(TEST_CMD)).thenReturn("something").thenReturn(""); in testWaitCmdSuccessWithRetry()
77 assertTrue(mCmdUtil.waitCmdResultWithDelay(mDevice, TEST_CMD, mCheckEmpty)); in testWaitCmdSuccessWithRetry()
82 doReturn("something").when(mDevice).executeShellCommand(TEST_CMD); in testWaitCmdSuccessFail()
83 assertFalse(mCmdUtil.waitCmdResultWithDelay(mDevice, TEST_CMD, mCheckEmpty)); in testWaitCmdSuccessFail()
88 doReturn("").when(mDevice).executeShellCommand(TEST_CMD); in testRetrySuccess()
89 assertTrue(mCmdUtil.retry(mDevice, RUN_CMD, TEST_CMD, mCheckEmpty)); in testRetrySuccess()
90 verify(mDevice, times(1)).executeShellCommand(eq(RUN_CMD)); in testRetrySuccess()
[all …]
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/
DVtsCoveragePreparerTest.java87 @Mock private ITestDevice mDevice; field in VtsCoveragePreparerTest
105 doReturn("build_id").when(mDevice).getBuildId(); in setUp()
106 doReturn("1234").when(mDevice).getSerialNumber(); in setUp()
107 doReturn("enforcing").when(mDevice).executeShellCommand("getenforce"); in setUp()
121 doReturn("UnknowFlaver").when(mDevice).getBuildFlavor(); in testOnSetUpCoverageDisabled()
122 doReturn("None").when(mDevice).getProperty(GCOV_PROPERTY); in testOnSetUpCoverageDisabled()
124 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpCoverageDisabled()
130 doReturn("walleye_asan_coverage-userdebug").when(mDevice).getBuildFlavor(); in testOnSetUpSancovEnabled()
134 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpSancovEnabled()
136 .setFile(eq(VtsCoveragePreparer.getSancovResourceDirKey(mDevice)), eq(mTestDir), in testOnSetUpSancovEnabled()
[all …]
DVtsHalAdapterPreparerTest.java105 @Mock private ITestDevice mDevice; field in VtsHalAdapterPreparerTest
137 doReturn(output).doReturn("").when(mDevice).executeShellCommand( in testOnSetUpAdapterSingleInstance()
140 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpAdapterSingleInstance()
141 verify(mDevice, times(1)) in testOnSetUpAdapterSingleInstance()
145 verify(mDevice, times(1)).executeShellCommand(eq(adapterCmd)); in testOnSetUpAdapterSingleInstance()
155 doReturn(output).doReturn("").when(mDevice).executeShellCommand( in testOnSetUpAdapterMultipleInstance()
158 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetUpAdapterMultipleInstance()
171 verify(mDevice, times(1)).executeShellCommand(eq(cmd)); in testOnSetUpAdapterMultipleInstance()
178 mPreparer.setUp(mDevice, mBuildInfo); in testOnSetupAdapterNotFound()
189 doReturn("").when(mDevice).executeShellCommand( in testOnSetupServiceNotAvailable()
[all …]
DVtsDevicePreparerTest.java51 mPreparer.mDevice = mockDevice; in setUp()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/testtype/
DVtsMultiDeviceTestTest.java68 private ITestDevice mDevice = null; field in VtsMultiDeviceTestTest
154 mDevice = EasyMock.createMock(ITestDevice.class); in createMockDevice()
155 EasyMock.expect(mDevice.getSerialNumber()).andReturn("1234567890ABCXYZ").anyTimes(); in createMockDevice()
156 EasyMock.expect(mDevice.getBuildAlias()).andReturn("BUILD_ALIAS").anyTimes(); in createMockDevice()
157 EasyMock.expect(mDevice.getBuildFlavor()).andReturn("BUILD_FLAVOR").anyTimes(); in createMockDevice()
158 EasyMock.expect(mDevice.getBuildId()).andReturn("BUILD_ID").anyTimes(); in createMockDevice()
159 EasyMock.expect(mDevice.getProductType()).andReturn("PRODUCT_TYPE").anyTimes(); in createMockDevice()
160 EasyMock.expect(mDevice.getProductVariant()).andReturn("PRODUCT_VARIANT").anyTimes(); in createMockDevice()
161 return mDevice; in createMockDevice()
206 EasyMock.expect(mDevice.executeShellCommand(
[all …]
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsDevicePreparer.java115 ITestDevice mDevice = null; field in VtsDevicePreparer
133 mDevice = device; in setUp()
179 mInitialAdbRoot = mDevice.isAdbRoot(); in adbRootPreRebootSetUp()
309 String radioProp = mDevice.getProperty(mSyspropRadioLog); in radioLogGetState()
313 radioProp = mDevice.getProperty(mSyspropRadioLog); in radioLogGetState()
338 if (!mDevice.isAdbRoot()) { in adbRoot()
339 mDevice.executeAdbCommand("root"); in adbRoot()
349 if (mDevice.isAdbRoot()) { in adbUnroot()
350 mDevice.executeAdbCommand("unroot"); in adbUnroot()
378 mDevice.executeShellCommand("start"); in startFramework()
[all …]
DVtsMultiSimPreparer.java31 private ITestDevice mDevice; field in VtsMultiSimPreparer
39 mDevice = device; in setUp()
80 mDevice.waitForDeviceNotAvailable(SHUTDOWN_TIMEOUT_MS); in setSimCount()
81 mDevice.waitForDeviceAvailable(); in setSimCount()
85 return mDevice.executeShellCommand(cmd).trim(); in executeCmd()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DFailureListener.java34 private ITestDevice mDevice; field in FailureListener
45 mDevice = device; in FailureListener()
74 try (InputStreamSource screenSource = mDevice.getScreenshot()) { in testFailed()
81 mDevice.getSerialNumber()); in testFailed()
87 api = mDevice.getApiLevel(); in testFailed()
92 try (InputStreamSource fallback = mDevice.getBugreport()) { in testFailed()
97 try (InputStreamSource bugSource = mDevice.getBugreportz()) { in testFailed()
110 try (InputStreamSource logSource = mDevice.getLogcat(mMaxLogcatBytes)) { in testFailed()
119 if ("user".equals(mDevice.getProperty("ro.build.type"))) { in testFailed()
123 mDevice.reboot(); in testFailed()
[all …]
DCompatibilityTest.java298 private ITestDevice mDevice; field in CompatibilityTest
335 return mDevice; in getDevice()
343 mDevice = device; in setDevice()
388 mDevice.getSerialNumber()); in run()
398 mDevice.getSerialNumber()); in run()
403 mDevice.reboot(); in run()
418 module.setDevice(mDevice); in run()
428 mDevice.getSerialNumber())); in run()
439 mDevice.getSerialNumber()); in run()
460 if ("user".equals(mDevice.getProperty("ro.build.type"))) { in run()
[all …]
DModuleDef.java72 private ITestDevice mDevice; field in ModuleDef
238 return mDevice; in getDevice()
246 mDevice = device; in setDevice()
276 cleaner.tearDown(mDevice, mBuild, null); in runPreparerTeardowns()
308 ((IDeviceTest) mTest).setDevice(mDevice); in prepareTestClass()
352 preparer.setUp(mDevice, mBuild); in runPreparerSetup()
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
DVtsFuzzTest.java50 private ITestDevice mDevice = null; field in VtsFuzzTest
97 mDevice = device; in setDevice()
105 return mDevice; in getDevice()
330 if (mDevice == null) { in run()
334 if (!mDevice.doesFileExist(mFuzzerBinaryPath)) { in run()
336 mFuzzerBinaryPath, mDevice.getSerialNumber())); in run()
343 mFuzzerBinaryPath, flags, mDevice.getSerialNumber())); in run()
344 runTest(mDevice, resultParser, mFuzzerBinaryPath, flags); in run()
DVtsMultiDeviceTest.java165 private ITestDevice mDevice = null; field in VtsMultiDeviceTest
551 mDevice = device; in setDevice()
559 return mDevice; in getDevice()
1227 mDevice.executeShellCommand(String.format( in printToDeviceLogcatAboutTestModuleStatus()
1303 CLog.d("Device serial number: " + mDevice.getSerialNumber()); in doRunTest()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/module/
DVtsHalAdapterModuleControllerTest.java50 @Mock private ITestDevice mDevice; field in VtsHalAdapterModuleControllerTest
57 mDevices.add(mDevice); in setUp()
67 doReturn(output).when(mDevice).executeShellCommand( in testShouldRun()
76 doReturn("").when(mDevice).executeShellCommand( in testShouldSkip()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/device/metric/
DVtsCoverageCollectorTest.java53 @Mock ITestDevice mDevice; field in VtsCoverageCollectorTest
73 mDevices.add(mDevice); in setUp()
82 doReturn("1234").when(mDevice).getSerialNumber(); in testOnTestRunEndBasic()
103 doReturn("1234").when(mDevice).getSerialNumber(); in testOnTestRunEndReportDirMissing()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DRootProcessScanner.java33 private ITestDevice mDevice; field in RootProcessScanner
36 mDevice = device; in RootProcessScanner()
143 return mDevice.executeShellCommand(String.format("cat %s/statm", processDir)); in getProcessStatM()
195 return mDevice.executeShellCommand(String.format("cat %s/status", processDir)); in getProcessStatus()
DBusinessLogicHostExecutor.java34 private ITestDevice mDevice; field in BusinessLogicHostExecutor
39 mDevice = device; in BusinessLogicHostExecutor()
101 rm.addArg(mDevice); in getResolvedMethod()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/retry/
DRetryFactoryTest.java170 private ITestDevice mDevice; field in RetryFactoryTest
186 mDevice = device; in setDevice()
191 return mDevice; in getDevice()
238 helper.validateBuildFingerprint(mDevice); in loadSuite()
259 test.setDevice(mDevice); in loadSuite()
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DDevicePropertyInfo.java39 private final String mDevice; field in DevicePropertyInfo
87 mDevice = device; in DevicePropertyInfo()
120 propertyMap.put(prefix + "device", mDevice); in getPropertytMapWithPrefix()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DCrashReporter.java116 private ITestDevice mDevice; field in CrashReporter.CrashReporterReceiver
119 mDevice = device; in CrashReporterReceiver()
134 upload(mDevice, mTestName, mCrashes); in processLogLine()
/test/suite_harness/common/host-side/tradefed/tests/res/testtype/
DtestJar1.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/ui/ android/ ...
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java517 private ITestDevice mDevice; field in IntegrationTest.ShardThread
525 mDevice = device; in ShardThread()
533 ((IDeviceTest)mShardTest).setDevice(mDevice); in run()
/test/framework/harnesses/cts-tradefed/
Dtradefed-cts-prebuilt.jarMETA-INF/ META-INF/MANIFEST.MF com/android/compatibility/common/ ...