Home
last modified time | relevance | path

Searched refs:getFile (Results 1 – 25 of 93) sorted by relevance

1234

/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DGkiDeviceFlashPreparer.java292 if (buildInfo.getFile(mVendorBootImageName) != null) { in flashGki()
297 buildInfo.getFile(mVendorBootImageName), in flashGki()
301 if (buildInfo.getFile(mVendorKernelBootImageName) != null) { in flashGki()
306 buildInfo.getFile(mVendorKernelBootImageName), in flashGki()
311 if (buildInfo.getFile(mDtboImageName) != null) { in flashGki()
316 buildInfo.getFile(mDtboImageName), in flashGki()
323 if (buildInfo.getFile(mVendorDlkmImageName) != null) { in flashGki()
328 buildInfo.getFile(mVendorDlkmImageName), in flashGki()
336 if (buildInfo.getFile(mSystemDlkmImageName) != null) { in flashGki()
341 buildInfo.getFile(mSystemDlkmImageName), in flashGki()
[all …]
DGsiDeviceFlashPreparer.java255 if (buildInfo.getFile(mSystemImageZipName) == null) { in validateGsiImg()
264 buildInfo.getFile(mSystemImageZipName), in validateGsiImg()
266 if (buildInfo.getFile(mVbmetaImageZipName) != null) { in validateGsiImg()
271 buildInfo.getFile(mVbmetaImageZipName), in validateGsiImg()
274 if (buildInfo.getFile(mBootImageZipName) != null && mBootImageFileName != null) { in validateGsiImg()
279 buildInfo.getFile(mBootImageZipName), in validateGsiImg()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/multi/
DMergeMultiBuildTargetPreparerTest.java78 assertNotNull(mMockInfo1.getFile(EXAMPLE_KEY)); in testMergeFiles()
79 assertNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles()
83 assertNotNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles()
102 assertNotNull(mMockInfo1.getFile(EXAMPLE_KEY)); in testMergeFiles_collision()
103 assertNotNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles_collision()
107 assertNotNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles_collision()
108 assertEquals("/orig", mMockInfo2.getFile(EXAMPLE_KEY).getAbsolutePath()); in testMergeFiles_collision()
122 assertNotNull(mMockInfo1.getFile(EXAMPLE_KEY)); in testMergeFiles_collision_enforce()
123 assertNotNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles_collision_enforce()
143 assertNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles_keyNotFound()
/tools/tradefederation/core/javatests/com/android/tradefed/build/
DBuildInfoTest.java80 assertTrue(!mFile.getAbsolutePath().equals(copy.getFile(FILE_KEY).getAbsolutePath())); in testClone()
81 assertTrue(FileUtil.compareFileContents(mFile, copy.getFile(FILE_KEY))); in testClone()
86 FileUtil.deleteFile(copy.getFile(FILE_KEY)); in testClone()
93 assertTrue(mBuildInfo.getFile(FILE_KEY).exists()); in testCleanUp()
95 assertNull(mBuildInfo.getFile(FILE_KEY)); in testCleanUp()
147 assertNotNull(mBuildInfo.getFile("name")); in testCleanUpWithExemption()
148 assertNotNull(mBuildInfo.getFile("name2")); in testCleanUpWithExemption()
151 assertNull(mBuildInfo.getFile("name")); in testCleanUpWithExemption()
153 assertNotNull(mBuildInfo.getFile("name2")); in testCleanUpWithExemption()
182 assertNotNull(mBuildInfo.getFile(BuildInfoFileKey.PACKAGE_FILES)); in testListFiles()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardBuildCloner.java80 .equals(primaryBuild.getFile(BuildInfoFileKey.TESTDIR_IMAGE))) { in cloneBuildInfos()
83 primaryClone.getFile(BuildInfoFileKey.TESTDIR_IMAGE)); in cloneBuildInfos()
89 .equals(primaryBuild.getFile(BuildInfoFileKey.HOST_LINKED_DIR))) { in cloneBuildInfos()
92 primaryClone.getFile(BuildInfoFileKey.HOST_LINKED_DIR)); in cloneBuildInfos()
98 .equals(primaryBuild.getFile(BuildInfoFileKey.TARGET_LINKED_DIR))) { in cloneBuildInfos()
101 primaryClone.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)); in cloneBuildInfos()
107 if (versionedFile.getFile().equals(execFiles.get(key))) { in cloneBuildInfos()
108 execFiles.put(key, primaryClone.getFile(key)); in cloneBuildInfos()
/tools/tradefederation/core/src/com/android/tradefed/build/
DDeviceBuildInfo.java76 return getFile(BuildInfoFileKey.DEVICE_IMAGE); in getDeviceImageFile()
100 return getFile(BuildInfoFileKey.USERDATA_IMAGE); in getUserDataImageFile()
124 return getFile(BuildInfoFileKey.TESTDIR_IMAGE); in getTestsDir()
148 return getFile(BuildInfoFileKey.BASEBAND_IMAGE); in getBasebandImageFile()
172 return getFile(BuildInfoFileKey.BOOTLOADER_IMAGE); in getBootloaderImageFile()
196 return getFile(BuildInfoFileKey.OTA_IMAGE); in getOtaPackageFile()
220 return getFile(BuildInfoFileKey.MKBOOTIMG_IMAGE); in getMkbootimgFile()
244 return getFile(BuildInfoFileKey.RAMDISK_IMAGE); in getRamdiskFile()
DBuildInfo.java238 File origFile = fileEntry.getValue().getFile(); in addAllFiles()
245 new File(fileEntry.getValue().getFile().getPath()), in addAllFiles()
280 if (origFileConsidered.getFile().equals(build.getFile(name))) { in applyBuildProperties()
282 name, origFileConsidered.getFile(), origFileConsidered.getVersion()); in applyBuildProperties()
314 public File getFile(String name) { in getFile() method in BuildInfo
319 return fileRecords.get(0).getFile(); in getFile()
324 public File getFile(BuildInfoFileKey key) { in getFile() method in BuildInfo
325 return getFile(key.getFileKey()); in getFile()
434 FileUtil.recursiveDelete(fileRecord.getFile()); in cleanUp()
446 if (!doNotClean.contains(fileRecord.getFile())) { in cleanUp()
[all …]
DOtaDeviceBuildInfo.java162 return getFile(OTA_TOOLS_DIR_KEY_NAME); in getOtaTools()
172 return getFile(BASELINE_TARGET_FILE_KEY_NAME); in getBaselineTargetFileZip()
175 return getFile(TARGET_TARGET_FILE_KEY_NAME); in getTargetTargetFileZip()
185 return getFile(BASELINE_OTA_TOOLS_KEY_NAME); in getBaselineOtatoolsZip()
188 return getFile(TARGET_OTA_TOOLS_KEY_NAME); in getTargetOtatoolsZip()
DOtatoolsBuildInfo.java49 return getFile(SECURITY_DIR_NAME); in getSecurityDir()
63 return getFile(BIN_DIR_NAME); in getBinDir()
77 return getFile(FRAMEWORK_DIR_NAME); in getFrameworkDir()
91 return getFile(RELEASETOOLS_DIR_NAME); in getReleasetoolsDir()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java146 when(mBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in setUp()
242 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTestsWhenRemoteTestTimeoutIsSet()
244 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testLoadTestsWhenRemoteTestTimeoutIsSet()
336 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTests_testMappingsZip()
338 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testLoadTests_testMappingsZip()
401 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
403 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
468 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTests_testMappingsZipFailWithKeywords()
470 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testLoadTests_testMappingsZipFailWithKeywords()
514 when(mockBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR)).thenReturn(null); in testLoadTests_testMappingsZipHostTests()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DTestDescriptionsFileTest.java37 File file = tdf.getFile(); in getFile_empty()
49 File file = tdf.getFile(); in getFile_oneEntry()
61 File file = tdf.getFile(); in getFile_caching()
62 File cachedFile = tdf.getFile(); in getFile_caching()
68 File changedFile = tdf.getFile(); in getFile_caching()
86 File file = tdf.getFile(); in fromFile_empty()
101 File file = tdf.getFile(); in fromFile()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DInstallAllTestZipAppsSetupTest.java112 when(mMockBuildInfo.getFile(zip)).thenReturn(file); in testGetZipFile()
122 when(mMockBuildInfo.getFile(zip)).thenReturn(null); in testGetZipFileDoesntExist()
143 when(mMockBuildInfo.getFile((String) any())).thenReturn(new File("zip")); in testSuccess()
160 when(mMockBuildInfo.getFile((String) any())).thenReturn(new File("zip")); in testForceQueryableSuccess()
178 when(mMockBuildInfo.getFile((String) any())).thenReturn(new File("zip")); in testDeviceApi34ForceQueryableIsFalse()
194 when(mMockBuildInfo.getFile((String) any())).thenReturn(new File("zip")); in testSuccessNoTearDown()
246 when(mMockBuildInfo.getFile((String) any())).thenReturn(new File("zip")); in testUnzipFail()
267 when(mMockBuildInfo.getFile((String) any())).thenReturn(new File("zip")); in testAaptFail()
DGsiDeviceFlashPreparerTest.java202 "flash", "system", mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetUp_Success_NoVbmetaImage()
234 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success()
244 "flash", "system", mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success()
323 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success_WithGkiBootImg()
333 "flash", "system", mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success_WithGkiBootImg()
337 "flash", "boot", mBuildInfo.getFile("gki_boot.img").getAbsolutePath())) in testSetup_Success_WithGkiBootImg()
428 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success_Api28()
434 "flash", "system", mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success_Api28()
465 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_GsiFlashFailure()
475 "flash", "system", mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_GsiFlashFailure()
[all …]
DPythonVirtualenvPreparerTest.java75 assertTrue(buildInfo.getFile("PYTHONPATH") != null); in testInstallDeps_reqFile_success()
86 assertTrue(buildInfo.getFile("PYTHONPATH") != null); in testInstallDeps_depModule_success()
101 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_reqFile_failure()
116 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_depModule_failure()
124 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_noDeps()
DPushFilePreparerTest.java303 when(buildInfo.getFile(fileName)).thenReturn(null); in testResolveRelativeFilePath_noDeviceBuildInfo()
307 inOrder.verify(buildInfo).getFile(fileName); in testResolveRelativeFilePath_noDeviceBuildInfo()
327 when(buildInfo.getFile(fileName)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
329 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
335 inOrder.verify(buildInfo).getFile(fileName); in testResolveRelativeFilePath_withDeviceBuildInfo()
337 inOrder.verify(buildInfo).getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in testResolveRelativeFilePath_withDeviceBuildInfo()
361 when(buildInfo.getFile(fileName)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
363 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
371 inOrder.verify(buildInfo).getFile(fileName); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
373 inOrder.verify(buildInfo).getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DMixKernelTargetPreparer.java144 File srcFile = buildInfo.getFile(fileKey); in setUp()
248 mMixKernelToolPath = buildInfo.getFile(BuildInfoFileKey.TESTDIR_IMAGE.getFileKey()); in findMixKernelTool()
288 buildInfo.getFile(BuildInfoFileKey.DEVICE_IMAGE.getFileKey()).toString(), in setNewDeviceImage()
289 buildInfo.getFile(BuildInfoFileKey.DEVICE_IMAGE.getFileKey()).length()); in setNewDeviceImage()
300 String deviceImagePath = buildInfo.getFile(BuildInfoFileKey.DEVICE_IMAGE).getAbsolutePath(); in setNewDeviceImage()
301 buildInfo.getFile(BuildInfoFileKey.DEVICE_IMAGE.getFileKey()).delete(); in setNewDeviceImage()
316 buildInfo.getFile(BuildInfoFileKey.DEVICE_IMAGE.getFileKey()).toString(), in setNewDeviceImage()
317 buildInfo.getFile(BuildInfoFileKey.DEVICE_IMAGE.getFileKey()).length()); in setNewDeviceImage()
DAppSetup.java126 AaptParser aaptParser = doAaptParse(apkFile.getFile()); in setUp()
131 apkFile.getFile().getName()), in setUp()
146 apkFile.getFile(), true, args.toArray(new String[args.size()])); in setUp()
154 apkFile.getFile().getName(), device.getSerialNumber(), result), in setUp()
159 addPackageNameToUninstall(apkFile.getFile(), device); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/
DSandboxedInvocationExecution.java108 File testsDir = primaryBuild.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in backFillTestInformation()
114 File targetDir = primaryBuild.getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in backFillTestInformation()
120 File hostDir = primaryBuild.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in backFillTestInformation()
129 && versionedFile.getFile().exists() in backFillTestInformation()
131 execFiles.put(key, versionedFile.getFile()); in backFillTestInformation()
/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/
DTestMappingsValidation.java227 if (deviceBuildInfo.getFile(TEST_MAPPINGS_ZIP).isDirectory()) { in setUp()
228 testMappingsDir = deviceBuildInfo.getFile(TEST_MAPPINGS_ZIP); in setUp()
232 TestMapping.extractTestMappingsZip(deviceBuildInfo.getFile(TEST_MAPPINGS_ZIP)); in setUp()
235 mergeModuleInfo(deviceBuildInfo.getFile(MODULE_INFO)); in setUp()
239 mergeModuleInfo(deviceBuildInfo.getFile(fileKey)); in setUp()
259 File configZip = deviceBuildInfo.getFile("general-tests_configs.zip"); in testValidTestConfigForParameterizedMainlineModules()
449 File configZip = deviceBuildInfo.getFile("general-tests_configs.zip"); in testNoPerformanceTests()
450 File deviceConfigZip = deviceBuildInfo.getFile("device-tests_configs.zip"); in testNoPerformanceTests()
747 File configZip = deviceBuildInfo.getFile("general-tests_configs.zip"); in validateConfigsOfSharedPool()
748 File deviceConfigZip = deviceBuildInfo.getFile("device-tests_configs.zip"); in validateConfigsOfSharedPool()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/sync/
DIncrementalImageFuncTest.java107 getBuild().getFile("src-image"), in testBlockUtility()
110 getBuild().getFile("target-image"), in testBlockUtility()
111 getBuild().getFile("create_snapshot.zip"), in testBlockUtility()
135 File srcImage = getBuild().getFile("src-image"); in testBlockCompareUpdate()
137 File targetImage = getBuild().getFile("target-image"); in testBlockCompareUpdate()
282 File createSnapshotZip = getBuild().getFile("create_snapshot.zip"); in getCreateSnapshot()
293 File inspectZip = getBuild().getFile("inspect_cow.zip"); in inspectCowPatches()
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DBaseDeviceMetricCollectorTest.java615 when(buildInfo.getFile(fileName)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
617 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
627 buildInfoOrder.verify(buildInfo).getFile(fileName); in testResolveRelativeFilePath_withDeviceBuildInfo()
629 buildInfoOrder.verify(buildInfo).getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in testResolveRelativeFilePath_withDeviceBuildInfo()
651 when(buildInfo.getFile(differentFileName)).thenReturn(null); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
653 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
662 buildInfoOrder.verify(buildInfo).getFile(differentFileName); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
664 buildInfoOrder.verify(buildInfo).getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
686 when(buildInfo.getFile(fileName)).thenReturn(null); in testResolveRelativeFilePath_fromModule()
688 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testResolveRelativeFilePath_fromModule()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/build/content/
DTestContentAnalyzer.java152 if (build.getFile(BuildInfoFileKey.ROOT_DIRECTORY) == null) { in xtsAnalysis()
164 context.contentEntry(), diffs, build.getFile(BuildInfoFileKey.ROOT_DIRECTORY)); in xtsAnalysis()
256 File rootDir = build.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in fileAnalysis()
258 if (build.getFile(BuildInfoFileKey.ROOT_DIRECTORY) != null) { in fileAnalysis()
259 rootDir = build.getFile(BuildInfoFileKey.ROOT_DIRECTORY); in fileAnalysis()
305 if (build.getFile(BuildInfoFileKey.TESTDIR_IMAGE) == null) { in workdirAnalysis()
309 File testsDirRoot = build.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in workdirAnalysis()
/tools/tradefederation/contrib/src/com/android/monkey/
DAppPkgInjector.java72 AaptParser aapt = AaptParser.parse(apkFile.getFile()); in setUp()
77 "aapt parse of %s failed", apkFile.getFile().getAbsolutePath()), in setUp()
87 apkFile.getFile().getAbsolutePath()), in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/util/testmapping/
DTestMappingTest.java221 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testGetTests()
244 verify(mockBuildInfo, times(2)).getFile(TEST_MAPPINGS_ZIP); in testGetTests()
277 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testGetTests_matchKeywords()
288 verify(mockBuildInfo, times(1)).getFile(TEST_MAPPINGS_ZIP); in testGetTests_matchKeywords()
317 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testGetTests_withIgnoreKeywords()
327 verify(mockBuildInfo, times(1)).getFile(TEST_MAPPINGS_ZIP); in testGetTests_withIgnoreKeywords()
758 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testIncludeImports()
856 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testExcludeImports()
960 when(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).thenReturn(zipFile); in testMergeMissedTestMappingZips()
961 when(mockBuildInfo.getFile("extra-zip")).thenReturn(null); in testMergeMissedTestMappingZips()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/host/
DCoverageMeasurementForwarderTest.java124 .getFile(ARTIFACT_NAME1); in setUp()
127 .getFile(ARTIFACT_NAME2); in setUp()
130 .getFile(ARTIFACT_NAME3); in setUp()
133 .getFile(ARTIFACT_NAME4); in setUp()

1234