Home
last modified time | relevance | path

Searched refs:BuildInfoFileKey (Results 1 – 25 of 34) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/build/
DDeviceBuildInfo.java19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
76 return getFile(BuildInfoFileKey.DEVICE_IMAGE); in getDeviceImageFile()
84 return getVersion(BuildInfoFileKey.DEVICE_IMAGE); in getDeviceImageVersion()
92 setFile(BuildInfoFileKey.DEVICE_IMAGE, deviceImageFile, version); in setDeviceImageFile()
100 return getFile(BuildInfoFileKey.USERDATA_IMAGE); in getUserDataImageFile()
108 return getVersion(BuildInfoFileKey.USERDATA_IMAGE); in getUserDataImageVersion()
116 setFile(BuildInfoFileKey.USERDATA_IMAGE, userDataFile, version); in setUserDataImageFile()
124 return getFile(BuildInfoFileKey.TESTDIR_IMAGE); in getTestsDir()
132 return getVersion(BuildInfoFileKey.TESTDIR_IMAGE); in getTestsDirVersion()
140 setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, version); in setTestsDir()
[all …]
DFolderBuildInfo.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
79 return getFile(BuildInfoFileKey.ROOT_DIRECTORY); in getRootDir()
88 BuildInfoFileKey.ROOT_DIRECTORY, in setRootDir()
90 BuildInfoFileKey.ROOT_DIRECTORY.getFileKey()); in setRootDir()
DDependenciesResolver.java19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
160 if (dependencies.containsKey(BuildInfoFileKey.DEVICE_IMAGE.getFileKey())) { in completeFlashingDependencies()
166 BuildInfoFileKey.DEVICE_IMAGE.getFileKey(), new File(baseLink + ".*-img-.*.zip")); in completeFlashingDependencies()
168 BuildInfoFileKey.BOOTLOADER_IMAGE.getFileKey(), in completeFlashingDependencies()
171 BuildInfoFileKey.BASEBAND_IMAGE.getFileKey(), new File(baseLink + ".*radio.img")); in completeFlashingDependencies()
173 BuildInfoFileKey.RAMDISK_IMAGE.getFileKey(), new File(baseLink + ".*ramdisk.img")); in completeFlashingDependencies()
DDeviceFolderBuildInfo.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
80 return getFile(BuildInfoFileKey.ROOT_DIRECTORY); in getRootDir()
89 BuildInfoFileKey.ROOT_DIRECTORY, in setRootDir()
91 BuildInfoFileKey.ROOT_DIRECTORY.getFileKey()); in setRootDir()
DBuildInfo.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
83 BuildInfoFileKey.TESTDIR_IMAGE.getFileKey(),
84 BuildInfoFileKey.HOST_LINKED_DIR.getFileKey(),
85 BuildInfoFileKey.TARGET_LINKED_DIR.getFileKey(),
288 if (origFileConsidered.equals(build.getVersionedFile(BuildInfoFileKey.DEVICE_IMAGE))) { in applyBuildProperties()
324 public File getFile(BuildInfoFileKey key) { in getFile()
340 public VersionedFile getVersionedFile(BuildInfoFileKey key) { in getVersionedFile()
346 public final List<VersionedFile> getVersionedFiles(BuildInfoFileKey key) { in getVersionedFiles()
376 public String getVersion(BuildInfoFileKey key) { in getVersion()
393 BuildInfoFileKey key = BuildInfoFileKey.fromString(name); in setFile()
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/build/
DBuildInfoKey.java28 public enum BuildInfoFileKey { enum in BuildInfoKey
53 private BuildInfoFileKey(String fileKey, boolean canBeList) { in BuildInfoFileKey() method in BuildInfoKey.BuildInfoFileKey
75 public static BuildInfoFileKey fromString(String keyName) { in fromString()
76 for (BuildInfoFileKey v : BuildInfoFileKey.values()) { in fromString()
89 public static final Set<BuildInfoFileKey> SHARED_KEY = new HashSet<>();
92 SHARED_KEY.add(BuildInfoFileKey.PACKAGE_FILES);
93 SHARED_KEY.add(BuildInfoFileKey.TESTDIR_IMAGE);
94 SHARED_KEY.add(BuildInfoFileKey.ROOT_DIRECTORY);
DIBuildInfo.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
176 public default File getFile(BuildInfoFileKey key) { in getFile()
210 public default VersionedFile getVersionedFile(BuildInfoFileKey key) { in getVersionedFile()
222 public default List<VersionedFile> getVersionedFiles(BuildInfoFileKey key) { in getVersionedFiles()
245 public default String getVersion(BuildInfoFileKey key) { in getVersion()
266 public default void setFile(BuildInfoFileKey key, File file, String version) { in setFile()
/tools/tradefederation/core/src/com/android/tradefed/util/
DFlashingResourceUtil.java57 File deviceImage = keyAndFiles.get(BuildInfoKey.BuildInfoFileKey.DEVICE_IMAGE.getFileKey()); in setUpFlashingResources()
77 info.setFile(BuildInfoKey.BuildInfoFileKey.DEVICE_IMAGE, deviceImage, buildId); in setUpFlashingResources()
80 .put(BuildInfoKey.BuildInfoFileKey.DEVICE_IMAGE.getFileKey(), deviceImage); in setUpFlashingResources()
82 keyAndFiles.remove(BuildInfoKey.BuildInfoFileKey.DEVICE_IMAGE.getFileKey()); in setUpFlashingResources()
85 keyAndFiles.get(BuildInfoKey.BuildInfoFileKey.BOOTLOADER_IMAGE.getFileKey()); in setUpFlashingResources()
87 keyAndFiles.remove(BuildInfoKey.BuildInfoFileKey.BOOTLOADER_IMAGE.getFileKey()); in setUpFlashingResources()
90 File baseband = keyAndFiles.get(BuildInfoKey.BuildInfoFileKey.BASEBAND_IMAGE.getFileKey()); in setUpFlashingResources()
92 keyAndFiles.remove(BuildInfoKey.BuildInfoFileKey.BASEBAND_IMAGE.getFileKey()); in setUpFlashingResources()
106 info.setFile(BuildInfoKey.BuildInfoFileKey.BASEBAND_IMAGE, baseband, buildId); in handleBaseband()
109 .put(BuildInfoKey.BuildInfoFileKey.BASEBAND_IMAGE.getFileKey(), baseband); in handleBaseband()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardBuildCloner.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
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()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DMixKernelTargetPreparer.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
154 } else if (BuildInfoFileKey.DEVICE_IMAGE.getFileKey().equals(fileKey)) { in setUp()
248 mMixKernelToolPath = buildInfo.getFile(BuildInfoFileKey.TESTDIR_IMAGE.getFileKey()); in findMixKernelTool()
254 BuildInfoFileKey.TESTDIR_IMAGE.getFileKey(), in findMixKernelTool()
255 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()
[all …]
DTestFilePushSetup.java19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
94 File testsDir = buildInfo.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in getLocalPathForFilename()
/tools/tradefederation/core/javatests/com/android/tradefed/build/
DBuildInfoTest.java25 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
167 mBuildInfo.getVersionedFiles(BuildInfoFileKey.TESTDIR_IMAGE); in testGetList_error()
180 mBuildInfo.setFile(BuildInfoFileKey.PACKAGE_FILES, testFile, "version"); in testListFiles()
181 mBuildInfo.setFile(BuildInfoFileKey.PACKAGE_FILES, testFile2, "version2"); in testListFiles()
182 assertNotNull(mBuildInfo.getFile(BuildInfoFileKey.PACKAGE_FILES)); in testListFiles()
184 mBuildInfo.getVersionedFiles(BuildInfoFileKey.PACKAGE_FILES); in testListFiles()
DDeviceBuildInfoTest.java24 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
101 mBuildInfo.setFile(BuildInfoFileKey.HOST_LINKED_DIR, mHostLinkedDir, "v1"); in testCloneWithProperties()
114 assertEquals(mHostLinkedDir, copy.getFile(BuildInfoFileKey.HOST_LINKED_DIR)); in testCloneWithProperties()
DDeviceFolderBuildInfoTest.java23 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
149 assertNull(info.getFile(BuildInfoFileKey.DEVICE_IMAGE)); in testProperty_skipCopy()
/tools/tradefederation/core/javatests/com/android/tradefed/build/content/
DTestContentAnalyzerTest.java23 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
66 mBuildInfo.setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, "P8888"); in testAnalyzeTestsDir_withChange()
96 mBuildInfo.setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, "P8888"); in testAnalyzeTestsDir_noChange()
132 mBuildInfo.setFile(BuildInfoFileKey.ROOT_DIRECTORY, rootDir, "P8888"); in testAnalyzeXtsSuite_withChange()
168 mBuildInfo.setFile(BuildInfoFileKey.ROOT_DIRECTORY, rootDir, "P8888"); in testAnalyzeXtsSuite_withDiscovery()
203 mBuildInfo.setFile(BuildInfoFileKey.ROOT_DIRECTORY, rootDir, "P8888"); in testAnalyzeXtsSuite_noChange()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DPushFilePreparerTest.java27 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
329 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
337 inOrder.verify(buildInfo).getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in testResolveRelativeFilePath_withDeviceBuildInfo()
363 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
373 inOrder.verify(buildInfo).getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
393 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_abiDirectory_noBitness()
426 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_abiDirectory_noBitness_withModule()
458 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_abiDirectory()
496 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_dirs()
537 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_files()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/
DSandboxedInvocationExecution.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
108 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()
/tools/tradefederation/core/src/com/android/tradefed/build/content/
DTestContentAnalyzer.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
152 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/core/javatests/com/android/tradefed/testtype/
DHostGTestTest.java196 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRunTest()
225 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRun_priority_get_testcase_from_hostlinked_folder()
291 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRun_withSuffix()
315 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testBeforeCmdError()
341 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testTestFailureHandledCorrectly()
360 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testBothStdoutAndStderrCollected()
392 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRunTest_hardlink()
DIsolatedHostTestTest.java25 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
128 doReturn(mMockTestDir).when(mMockBuildInfo).getFile(BuildInfoFileKey.HOST_LINKED_DIR); in testRobolectricResourcesPositive()
160 doReturn(mMockTestDir).when(mMockBuildInfo).getFile(BuildInfoFileKey.HOST_LINKED_DIR); in testRavenwoodResourcesPositive()
187 doReturn(mMockTestDir).when(mMockBuildInfo).getFile(BuildInfoFileKey.HOST_LINKED_DIR); in testRobolectricResourcesNegative()
203 doReturn(mMockTestDir).when(mMockBuildInfo).getFile(BuildInfoFileKey.HOST_LINKED_DIR); in testRavenwoodResourcesNegative()
221 doReturn(mMockTestDir).when(mMockBuildInfo).getFile(BuildInfoFileKey.HOST_LINKED_DIR); in testCoverageArgsAreAdded_whenCoverageIsTurnedOn()
263 doReturn(mMockTestDir).when(mMockBuildInfo).getFile(BuildInfoFileKey.HOST_LINKED_DIR); in setUpSimpleMockJarTest()
264 doReturn(mMockTestDir).when(mMockBuildInfo).getFile(BuildInfoFileKey.TESTDIR_IMAGE); in setUpSimpleMockJarTest()
/tools/tradefederation/core/src/com/android/tradefed/result/skipped/
DArtifactsAnalyzer.java18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
169 if (build.getFile(BuildInfoFileKey.TESTDIR_IMAGE) == null in analyzeArtifact()
170 && build.getFile(BuildInfoFileKey.ROOT_DIRECTORY) == null) { in analyzeArtifact()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java28 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
146 when(mBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in setUp()
242 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTestsWhenRemoteTestTimeoutIsSet()
336 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTests_testMappingsZip()
401 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
468 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTests_testMappingsZipFailWithKeywords()
514 when(mockBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR)).thenReturn(null); in testLoadTests_testMappingsZipHostTests()
557 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTests_shard()
601 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTests_shardNoTest()
690 when(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testLoadTestsWithModule()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DBaseDeviceMetricCollectorTest.java26 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
617 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
629 buildInfoOrder.verify(buildInfo).getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in testResolveRelativeFilePath_withDeviceBuildInfo()
653 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
664 buildInfoOrder.verify(buildInfo).getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
688 when(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).thenReturn(null); in testResolveRelativeFilePath_fromModule()
700 buildInfoOrder.verify(buildInfo).getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in testResolveRelativeFilePath_fromModule()
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/
DSandboxedInvocationExecutionTest.java32 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
394 info.setFile(BuildInfoFileKey.HOST_LINKED_DIR, buildFile, "1"); in testBackFill()
411 .containsKey(BuildInfoFileKey.HOST_LINKED_DIR.toString())); in testBackFill()
424 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, "tests"); in testBuildInfo_testTag()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/
DExecutableHostTest.java19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey;
84 File targetTestCases = deviceBuild.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in findBinary()

12