Home | History | Annotate | Download | only in build

Lines Matching refs:File

5  * you may not use this file except in compliance with the License.
22 import java.io.File;
34 private final File mRootDir;
36 private final File mCtsDir;
44 public CtsBuildHelper(File rootDir) {
46 mCtsDir = new File(mRootDir, CTS_DIR_NAME);
84 * @return a {@link File} representing the parent folder of the CTS installation
86 public File getRootDir() {
91 * @return a {@link File} representing the "android-cts" folder of the CTS installation
93 public File getCtsDir() {
98 * @return a {@link File} representing the test application file with given name
99 * @throws FileNotFoundException if file does not exist
101 public File getTestApp(String appFileName) throws FileNotFoundException {
102 File apkFile = new File(getTestCasesDir(), appFileName);
104 throw new FileNotFoundException(String.format("CTS test app file %s does not exist",
110 private File getRepositoryDir() {
111 return new File(getCtsDir(), "repository");
115 * @return a {@link File} representing the results directory.
117 public File getResultsDir() {
118 return new File(getRepositoryDir(), "results");
122 * @return a {@link File} representing the directory to store result logs.
124 public File getLogsDir() {
125 return new File(getRepositoryDir(), "logs");
129 * @return a {@link File} representing the test cases directory
131 public File getTestCasesDir() {
132 return new File(getRepositoryDir(), "testcases");
136 * @return a {@link File} representing the test plan directory
138 public File getTestPlansDir() {
139 return new File(getRepositoryDir(), "plans");
143 * @return a {@link File} representing the test plan with given name. note: no attempt will be
147 public File getTestPlanFile(String planName) throws FileNotFoundException {
149 return new File(getTestPlansDir(), ctsPlanRelativePath);
153 * Check the validity of the CTS build file system structure.