/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 125 EasyMock.expect(mBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null) in setUp() 261 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZip() 265 EasyMock.expect(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).andReturn(zipFile); in testLoadTests_testMappingsZip() 331 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZipFoundTestsWithKeywords() 335 EasyMock.expect(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).andReturn(zipFile); in testLoadTests_testMappingsZipFoundTestsWithKeywords() 403 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZipFailWithKeywords() 406 EasyMock.expect(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).andReturn(zipFile); in testLoadTests_testMappingsZipFailWithKeywords() 451 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR)) in testLoadTests_testMappingsZipHostTests() 454 EasyMock.expect(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).andReturn(zipFile); in testLoadTests_testMappingsZipHostTests() 498 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_shard() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | BuildInfo.java | 220 File origFile = fileEntry.getValue().getFile(); in addAllFiles() 255 if (origFileConsidered.getFile().equals(build.getFile(name))) { in applyBuildProperties() 257 name, origFileConsidered.getFile(), origFileConsidered.getVersion()); in applyBuildProperties() 289 public File getFile(String name) { in getFile() method in BuildInfo 294 return fileRecords.get(0).getFile(); in getFile() 299 public File getFile(BuildInfoFileKey key) { in getFile() method in BuildInfo 300 return getFile(key.getFileKey()); in getFile() 405 FileUtil.recursiveDelete(fileRecord.getFile()); in cleanUp() 417 if (!doNotClean.contains(fileRecord.getFile())) { in cleanUp() 418 FileUtil.recursiveDelete(fileRecord.getFile()); in cleanUp() [all …]
|
D | DeviceBuildInfo.java | 76 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()
|
D | OtatoolsBuildInfo.java | 49 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/src/com/android/tradefed/targetprep/ |
D | GkiDeviceFlashPreparer.java | 157 if (buildInfo.getFile(VENDOR_BOOT_IMG) != null) { in flashGki() 162 buildInfo.getFile(VENDOR_BOOT_IMG).getAbsolutePath()); in flashGki() 164 if (buildInfo.getFile(DTBO_IMG) != null) { in flashGki() 166 device, "flash", "dtbo", buildInfo.getFile(DTBO_IMG).getAbsolutePath()); in flashGki() 204 if (buildInfo.getFile(GKI_BOOT_IMG) != null && mBootImageFileName != null) { in validateGkiBootImg() 207 device, mBootImageFileName, buildInfo.getFile(GKI_BOOT_IMG), tmpDir); in validateGkiBootImg() 210 if (buildInfo.getFile(KERNEL_IMAGE) == null) { in validateGkiBootImg() 215 if (buildInfo.getFile(RAMDISK_RECOVERY_IMG) == null) { in validateGkiBootImg() 220 if (buildInfo.getFile(OTATOOLS_ZIP) == null) { in validateGkiBootImg() 227 getRequestedFile(device, MKBOOTIMG, buildInfo.getFile(OTATOOLS_ZIP), tmpDir); in validateGkiBootImg() [all …]
|
D | GsiDeviceFlashPreparer.java | 233 if (buildInfo.getFile(GSI_SYSTEM_IMG) == null) { in validateGsiImg() 238 if (buildInfo.getFile(GSI_VBMETA_IMG) == null) { in validateGsiImg() 245 device, mSystemImageFileName, buildInfo.getFile(GSI_SYSTEM_IMG), tmpDir); in validateGsiImg() 248 device, mVbmetaImageFileName, buildInfo.getFile(GSI_VBMETA_IMG), tmpDir); in validateGsiImg() 250 if (buildInfo.getFile(GKI_BOOT_IMG) != null && mBootImageFileName != null) { in validateGsiImg() 253 device, mBootImageFileName, buildInfo.getFile(GKI_BOOT_IMG), tmpDir); in validateGsiImg()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | BuildInfoTest.java | 74 assertTrue(!mFile.getAbsolutePath().equals(copy.getFile(FILE_KEY).getAbsolutePath())); in testClone() 75 assertTrue(FileUtil.compareFileContents(mFile, copy.getFile(FILE_KEY))); in testClone() 78 FileUtil.deleteFile(copy.getFile(FILE_KEY)); in testClone() 85 assertTrue(mBuildInfo.getFile(FILE_KEY).exists()); in testCleanUp() 87 assertNull(mBuildInfo.getFile(FILE_KEY)); in testCleanUp() 139 assertNotNull(mBuildInfo.getFile("name")); in testCleanUpWithExemption() 140 assertNotNull(mBuildInfo.getFile("name2")); in testCleanUpWithExemption() 143 assertNull(mBuildInfo.getFile("name")); in testCleanUpWithExemption() 145 assertNotNull(mBuildInfo.getFile("name2")); in testCleanUpWithExemption() 174 assertNotNull(mBuildInfo.getFile(BuildInfoFileKey.PACKAGE_FILES)); in testListFiles()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | GsiDeviceFlashPreparerTest.java | 218 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success() 232 mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success() 309 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success_WithGkiBootImg() 323 mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success_WithGkiBootImg() 331 mBuildInfo.getFile("gki_boot.img").getAbsolutePath())) in testSetup_Success_WithGkiBootImg() 414 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success_Api28() 423 mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success_Api28() 452 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_GsiFlashFailure() 466 mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_GsiFlashFailure() 498 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetUp_BootFailure() [all …]
|
D | InstallAllTestZipAppsSetupTest.java | 105 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(file); in testGetZipFile() 116 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(null); in testGetZipFileDoesntExist() 139 mMockBuildInfo.getFile((String) EasyMock.anyObject()); in testSuccess() 161 mMockBuildInfo.getFile((String) EasyMock.anyObject()); in testForceQueryableSuccess() 183 mMockBuildInfo.getFile((String) EasyMock.anyObject()); in testSuccessNoTearDown() 249 mMockBuildInfo.getFile((String) EasyMock.anyObject()); in testUnzipFail() 274 mMockBuildInfo.getFile((String) EasyMock.anyObject()); in testAaptFail()
|
D | PythonVirtualenvPreparerTest.java | 59 assertTrue(buildInfo.getFile("PYTHONPATH") != null); in testInstallDeps_reqFile_success() 70 assertTrue(buildInfo.getFile("PYTHONPATH") != null); in testInstallDeps_depModule_success() 84 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_reqFile_failure() 99 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_depModule_failure() 106 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_noDeps()
|
D | PushFilePreparerTest.java | 321 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_noDeviceBuildInfo() 345 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo() 347 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo() 377 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip() 379 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
|
D | GkiDeviceFlashPreparerTest.java | 288 mBuildInfo.getFile("gki_boot.img").getAbsolutePath())) in testSetup_Success() 341 mBuildInfo.getFile("gki_boot.img").getAbsolutePath())) in testSetUp_GkiFlashFailure() 371 mBuildInfo.getFile("gki_boot.img").getAbsolutePath())) in testSetUp_BootFailure()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | ShardBuildCloner.java | 80 .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/tests/src/com/android/tradefed/targetprep/multi/ |
D | MergeMultiBuildTargetPreparerTest.java | 73 assertNotNull(mMockInfo1.getFile(EXAMPLE_KEY)); in testMergeFiles() 74 assertNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles() 78 assertNotNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles() 97 assertNotNull(mMockInfo1.getFile(EXAMPLE_KEY)); in testMergeFiles_collision() 98 assertNotNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles_collision() 102 assertNotNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles_collision() 103 assertEquals("/orig", mMockInfo2.getFile(EXAMPLE_KEY).getAbsolutePath()); in testMergeFiles_collision() 116 assertNull(mMockInfo2.getFile(EXAMPLE_KEY)); in testMergeFiles_keyNotFound()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | TestDescriptionsFileTest.java | 37 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/src/com/android/tradefed/invoker/sandbox/ |
D | SandboxedInvocationExecution.java | 83 File testsDir = primaryBuild.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in backFillTestInformation() 89 File targetDir = primaryBuild.getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in backFillTestInformation() 95 File hostDir = primaryBuild.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in backFillTestInformation() 104 && versionedFile.getFile().exists() in backFillTestInformation() 106 execFiles.put(key, versionedFile.getFile()); in backFillTestInformation()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | AppSetup.java | 116 AaptParser aaptParser = doAaptParse(apkFile.getFile()); in setUp() 121 apkFile.getFile().getName()), in setUp() 136 apkFile.getFile(), true, args.toArray(new String[args.size()])); in setUp() 144 apkFile.getFile().getName(), device.getSerialNumber(), result), in setUp() 149 addPackageNameToUninstall(apkFile.getFile(), device); in setUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollectorTest.java | 593 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo() 595 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo() 627 EasyMock.expect(buildInfo.getFile(differentFileName)).andReturn(null); in testUnableResolveRelativeFilePath_withDeviceBuildInfo() 629 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testUnableResolveRelativeFilePath_withDeviceBuildInfo() 660 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_fromModule() 662 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_fromModule()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/host/ |
D | CoverageMeasurementForwarderTest.java | 122 .getFile(ARTIFACT_NAME1); in setUp() 125 .getFile(ARTIFACT_NAME2); in setUp() 128 .getFile(ARTIFACT_NAME3); in setUp() 131 .getFile(ARTIFACT_NAME4); in setUp()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/ |
D | MixImageZipPreparer.java | 255 miscInfoFile = deviceBuildInfo.getFile(MISC_INFO_FILE_NAME); in setUp() 266 otaToolsZip = systemBuildInfo.getFile(OTATOOLS_ZIP_NAME); in setUp() 277 repackSuperImageFile = systemBuildInfo.getFile(REPACK_SUPER_IMAGE_FILE_NAME); in setUp() 424 final File file = buildInfo.getFile(fileName); in getBuildFiles()
|
/tools/tradefederation/contrib/src/com/android/monkey/ |
D | AppPkgInjector.java | 71 AaptParser aapt = AaptParser.parse(apkFile.getFile()); in setUp() 76 "aapt parse of %s failed", apkFile.getFile().getAbsolutePath()), in setUp() 85 apkFile.getFile().getAbsolutePath()), in setUp()
|
/tools/tradefederation/contrib/src/com/android/build/tests/ |
D | KernelImageCheck.java | 88 mKernelAbiFile = getBuild().getFile("abi.xml"); in setUp() 101 mKernelImageFile = getBuild().getFile(mKernelImageName); in setUp() 116 mKernelAbiWhitelist = getBuild().getFile("abi_whitelist"); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandFileParser.java | 91 public File getFile() { in getFile() method in CommandFileParser.CommandLine 104 Objects.equals(otherLine.getFile(), mFile) && in equals() 462 CommandLine expanded = new CommandLine(line.getFile(), in expandLongMacro()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/presubmit/ |
D | TestMappingsValidation.java | 122 TestMapping.extractTestMappingsZip(deviceBuildInfo.getFile(TEST_MAPPINGS_ZIP)); in setUp() 123 File file = deviceBuildInfo.getFile(MODULE_INFO); in setUp() 181 File configZip = deviceBuildInfo.getFile("general-tests_configs.zip"); in testValidTestConfigForParameterizedMainlineModules()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | ClangCodeCoverageListenerTest.java | 179 doReturn(createProfileToolZip()).when(mMockBuildInfo).getFile(anyString()); in testRun_logsCoverageFile() 216 doReturn(createProfileToolZip()).when(mMockBuildInfo).getFile(anyString()); in testOtherFileTypes_ignored() 325 doReturn(createProfileToolZip()).when(mMockBuildInfo).getFile(anyString()); in testProfileToolFailed_throwsException()
|