Home
last modified time | relevance | path

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

12

/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DDeviceInteractionHelperInstallerTest.java84 private File createFindableFile(File dir, String name, TestInformation testInfo) in createFindableFile() argument
88 if (testInfo != null) { in createFindableFile()
89 testInfo.executionFiles().put(name, f); in createFindableFile()
113 TestInformation testInfo = makeTestInfo(mMockDevice); in testNoOptionsNoDeviceProperty() local
115 createFindableFile(testsDir, "com.android.cts.helpers.aosp.apk", testInfo); in testNoOptionsNoDeviceProperty()
120 mPreparer.setUp(testInfo); in testNoOptionsNoDeviceProperty()
131 TestInformation testInfo = makeTestInfo(mMockDevice); in testNoOptionsEmptyDeviceProperty() local
133 createFindableFile(testsDir, "com.android.cts.helpers.aosp.apk", testInfo); in testNoOptionsEmptyDeviceProperty()
138 mPreparer.setUp(testInfo); in testNoOptionsEmptyDeviceProperty()
150 TestInformation testInfo = makeTestInfo(mMockDevice); in testNoOptionsValidDeviceProperty() local
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/
DAppCrawlTesterHostPreparer.java87 public static String getSdkPath(TestInformation testInfo) { in getSdkPath() argument
88 return getPathFromBuildInfo(testInfo, SDK_PATH_KEY); in getSdkPath()
97 public static String getCrawlerBinPath(TestInformation testInfo) { in getCrawlerBinPath() argument
98 return getPathFromBuildInfo(testInfo, CRAWLER_BIN_PATH_KEY); in getCrawlerBinPath()
107 public static String getCredentialPath(TestInformation testInfo) { in getCredentialPath() argument
108 return getPathFromBuildInfo(testInfo, CREDENTIAL_PATH_KEY); in getCredentialPath()
117 public static boolean isReady(TestInformation testInfo) { in isReady() argument
118 return testInfo.getBuildInfo().getBuildAttributes().get(IS_READY_KEY) != null; in isReady()
121 private static String getPathFromBuildInfo(TestInformation testInfo, String key) { in getPathFromBuildInfo() argument
122 return testInfo.getBuildInfo().getBuildAttributes().get(key); in getPathFromBuildInfo()
[all …]
DModuleGenerator.java117 public void setUp(TestInformation testInfo) { in setUp() argument
128 public void tearDown(TestInformation testInfo, Throwable e) throws DeviceNotAvailableException { in tearDown() argument
131 mBuildInfo = testInfo.getBuildInfo(); in tearDown()
235 public void run(final TestInformation testInfo, final ITestInvocationListener listener) {
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/targetprep/
DCheckGmsPreparer.java47 public void setUp(TestInformation testInfo) in setUp() argument
49 if (!mEnable || isGmsRunning(testInfo)) { in setUp()
54 testInfo.getDevice().reboot(); in setUp()
55 testInfo.getDevice().waitForBootComplete(WAIT_FOR_BOOT_COMPLETE_TIMEOUT_MILLIS); in setUp()
57 if (!isGmsRunning(testInfo)) { in setUp()
62 testInfo.getDevice().getDeviceDescriptor(), in setUp()
67 private static boolean isGmsRunning(TestInformation testInfo) in isGmsRunning() argument
69 CommandResult res = testInfo.getDevice().executeShellV2Command(CHECK_GMS_COMMAND); in isGmsRunning()
83 public void tearDown(TestInformation testInfo, Throwable e) throws DeviceNotAvailableException { in tearDown() argument
84 if (!mEnable || isGmsRunning(testInfo)) { in tearDown()
DAppSetupPreparer.java158 public void setUp(TestInformation testInfo) in setUp() argument
197 public void setUp(TestInformation testInfo) in setUp()
200 setUpOnce(testInfo); in setUp()
206 handler.setUp(testInfo); in setUp()
214 e.getMessage(), e, testInfo.getDevice().getDeviceDescriptor()); in setUp()
217 waitForDeviceAvailable(testInfo.getDevice()); in setUp()
230 e.getMessage(), e, testInfo.getDevice().getDeviceDescriptor()); in setUp()
235 private void setUpOnce(TestInformation testInfo) in setUpOnce() argument
248 e.getMessage(), e, testInfo.getDevice().getDeviceDescriptor()); in setUpOnce()
252 SystemPackageUninstaller.uninstallPackage(mPackageName, testInfo.getDevice()); in setUpOnce()
[all …]
/test/vts/tests/fastboot_test/src/com/android/tests/
DFastbootVerifyUserspaceTest.java68 public static void setUpClass(TestInformation testInfo) throws Exception { in setUpClass() argument
70 boolean isKernelARM64 = testInfo.getDevice() in setUpClass()
75 String output = testInfo.getDevice().executeShellCommand("uname -r"); in setUpClass()
84 sDeviceIsGKI10.put(testInfo.getDevice(), isGKI10); in setUpClass()
88 testInfo.getDevice().rebootIntoFastbootd(); in setUpClass()
105 public static void tearDownClass(TestInformation testInfo) throws Exception { in tearDownClass() argument
106 if (!sDeviceIsGKI10.get(testInfo.getDevice())) { in tearDownClass()
110 if (!TestDeviceState.FASTBOOTD.equals(testInfo.getDevice().getDeviceState())) { in tearDownClass()
111 ((IManagedTestDevice) testInfo.getDevice()) in tearDownClass()
114 testInfo.getDevice().reboot(); // reboot from fastbootd to adb. in tearDownClass()
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DInteractiveResultCollector.java81 public void setUp(TestInformation testInfo) in setUp() argument
83 ITestDevice mDevice = testInfo.getDevice(); in setUp()
84 if (!(testInfo.getBuildInfo() instanceof IDeviceBuildInfo)) { in setUp()
101 public void tearDown(TestInformation testInfo, Throwable e) throws DeviceNotAvailableException { in tearDown() argument
110 hostResultDir = getHostResultDir(testInfo); in tearDown()
124 ITestDevice testDevice = testInfo.getDevice(); in tearDown()
146 private File getHostResultDir(TestInformation testInfo) throws FileNotFoundException { in getHostResultDir() argument
147 File resultDir = new CompatibilityBuildHelper(testInfo.getBuildInfo()).getResultDir(); in getHostResultDir()
DApkInstrumentationPreparer.java83 public void run(TestInformation testInfo) in run() argument
88 ITestDevice device = testInfo.getDevice(); in run()
90 if (instrument(testInfo)) { in run()
109 public void tearDown(TestInformation testInfo, Throwable e) throws DeviceNotAvailableException { in tearDown() argument
117 instrument(testInfo); in tearDown()
131 private boolean instrument(TestInformation testInfo) in instrument() argument
134 new CompatibilityBuildHelper(testInfo.getBuildInfo()); in instrument()
141 ITestDevice device = testInfo.getDevice(); in instrument()
147 testInfo.getDevice().waitForDeviceAvailable(); in instrument()
160 instrTest.run(testInfo, listener); in instrument()
DDeviceInfoCollector.java105 public void setUp(TestInformation testInfo) in setUp() argument
107 if (testInfo.getBuildInfo().getFile(DEVICE_INFO_DIR) != null) { in setUp()
114 ITestDevice device = testInfo.getDevice(); in setUp()
115 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp()
149 run(testInfo); in setUp()
184 public void tearDown(TestInformation testInfo, Throwable e) throws DeviceNotAvailableException { in tearDown() argument
186 super.tearDown(testInfo, e); in tearDown()
DDeviceInteractionHelperInstaller.java72 public void setUp(TestInformation testInfo) in setUp() argument
74 ITestDevice device = testInfo.getDevice(); in setUp()
79 File defaultHelpers = testInfo.getDependencyFile(defaultHelperName, true); in setUp()
110 File apkFile = testInfo.getDependencyFile(apkName, true); in setUp()
121 public void tearDown(TestInformation testInfo, Throwable t) throws DeviceNotAvailableException { in tearDown() argument
122 ITestDevice device = testInfo.getDevice(); in tearDown()
DPreconditionPreparer.java60 public void setUp(TestInformation testInfo) in setUp() argument
72 run(testInfo); in setUp()
89 public void run(TestInformation testInfo) in run() argument
92 run(testInfo.getDevice(), testInfo.getBuildInfo()); in run()
DLocationCheck.java43 public void run(TestInformation testInfo) in run() argument
46 if (!hasLocationFeature(testInfo.getDevice())) { in run()
57 super.run(testInfo); in run()
DReportLogCollector.java57 public void setUp(TestInformation testInfo) in setUp() argument
59 prepareReportLogContainers(testInfo.getBuildInfo()); in setUp()
80 public void tearDown(TestInformation testInfo, Throwable e) { in tearDown() argument
85 ITestDevice device = testInfo.getDevice(); in tearDown()
86 IBuildInfo buildInfo = testInfo.getBuildInfo(); in tearDown()
DApkInstaller.java58 protected File getLocalPathForFilename(TestInformation testInfo, String apkFileName) in getLocalPathForFilename() argument
62 apkFile = getTestFile(testInfo.getBuildInfo(), apkFileName); in getLocalPathForFilename()
70 testInfo.getDevice().getDeviceDescriptor()); in getLocalPathForFilename()
DStayAwakePreparer.java45 public void run(TestInformation testInfo) in run() argument
54 super.run(testInfo); in run()
DPackageDisabler.java38 public void run(TestInformation testInfo) in run() argument
40 ITestDevice device = testInfo.getDevice(); in run()
DWifiCheck.java55 public void run(TestInformation testInfo) in run() argument
57 ITestDevice device = testInfo.getDevice(); in run()
DDeviceFileCollector.java65 public void run(TestInformation testInfo) { in run() argument
69 ITestDevice device = testInfo.getDevice(); in run()
73 createResultDir(testInfo.getBuildInfo()); in run()
DSettingsPreparer.java66 public void run(TestInformation testInfo) in run() argument
68 ITestDevice device = testInfo.getDevice(); in run()
85 String testUser = testInfo.properties().get(RUN_TESTS_AS_USER_KEY); in run()
DMediaPreparer.java526 public void setUp(TestInformation testInfo) in setUp() argument
528 ITestDevice device = testInfo.getDevice(); in setUp()
529 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp()
530 mUserId = getRunTestsAsUser(testInfo); in setUp()
539 setMaxRes(testInfo); // max resolution only applies to video files in setUp()
568 protected void setMaxRes(TestInformation testInfo) in setMaxRes() argument
571 ITestDevice device = testInfo.getDevice(); in setMaxRes()
572 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setMaxRes()
604 instrTest.run(testInfo, listener); in setMaxRes()
/test/vts/tests/fastboot_getvar/src/com/android/tests/
DFastbootGetvarUserspaceTest.java66 public static void setUpClass(TestInformation testInfo) throws Exception { in setUpClass() argument
68 boolean isKernelARM64 = testInfo.getDevice() in setUpClass()
73 String output = testInfo.getDevice().executeShellCommand("uname -r"); in setUpClass()
83 String codeName = testInfo.getDevice().getProperty(DeviceProperties.BUILD_CODENAME); in setUpClass()
89 sDeviceIsGKI10.put(testInfo.getDevice(), isGKI10); in setUpClass()
90 sDeviceCodeName.put(testInfo.getDevice(), codeName); in setUpClass()
94 testInfo.getDevice().rebootIntoFastbootd(); in setUpClass()
105 public static void tearDownClass(TestInformation testInfo) throws Exception { in tearDownClass() argument
106 if (!sDeviceIsGKI10.get(testInfo.getDevice())) { in tearDownClass()
107 testInfo.getDevice().reboot(); // reboot from fastbootd to adb. in tearDownClass()
[all …]
/test/catbox/target_preparers/src/com/android/catbox/targetpreparer/
DChromeMdPassengerLoadPreparer.java70 public void setUp(TestInformation testInfo) throws TargetSetupError, BuildError, in setUp() argument
72 ITestDevice device = testInfo.getDevice(); in setUp()
91 installApks(testInfo); in setUp()
101 public void tearDown(TestInformation testInfo, Throwable e) in tearDown() argument
103 ITestDevice device = testInfo.getDevice(); in tearDown()
105 installPreparer.tearDown(testInfo, e); in tearDown()
128 private void installApks(TestInformation testInfo) in installApks() argument
142 installPreparer.setUp(testInfo); in installApks()
/test/catbox/runner/src/com/android/catbox/runner/
DMopedRunner.java54 …private void unTarTestArtifact(TestInformation testInfo) throws TargetSetupError, TimeoutException… in unTarTestArtifact() argument
66 mLocalDestFile = new File(testInfo.dependenciesFolder().toString()); in unTarTestArtifact()
97 private String getDevicesString(TestInformation testInfo) throws DeviceNotAvailableException { in getDevicesString() argument
101 for(ITestDevice device : testInfo.getDevices()) { in getDevicesString()
116 public void run(TestInformation testInfo, ITestInvocationListener listener) in run() argument
120 unTarTestArtifact(testInfo); in run()
124 getDevicesString(testInfo), in run()
/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/
DCheckGmsPreparerTest.java93 TestInformation testInfo = createTestInfo(device); in tearDown_setUpThrows_doesNotCheck() local
94 assertThrows(TargetSetupError.class, () -> mPreparer.setUp(testInfo)); in tearDown_setUpThrows_doesNotCheck()
100 mPreparer.tearDown(testInfo, null); in tearDown_setUpThrows_doesNotCheck()
108 TestInformation testInfo = createTestInfo(device); in tearDown_setUpRecoveredGms_checksGms() local
109 mPreparer.setUp(testInfo); in tearDown_setUpRecoveredGms_checksGms()
115 mPreparer.tearDown(testInfo, null); in tearDown_setUpRecoveredGms_checksGms()
124 TestInformation testInfo = createTestInfo(device); in tearDown_setUpFoundGms_checksGms() local
125 mPreparer.setUp(testInfo); in tearDown_setUpFoundGms_checksGms()
131 mPreparer.tearDown(testInfo, null); in tearDown_setUpFoundGms_checksGms()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/webview/lib/
DWebviewInstallerToolPreparer.java131 public void setUp(TestInformation testInfo) throws TargetSetupError { in setUp() argument
199 setGcloudCliPath(testInfo, mGcloudCliDir); in setUp()
200 setWebviewInstallerToolPath(testInfo, mWebviewInstallerTool); in setUp()
204 public void tearDown(TestInformation testInfo, Throwable e) { in tearDown() argument

12