/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | DeviceBuildInfo.java | 19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 69 return getFile(BuildInfoFileKey.DEVICE_IMAGE); in getDeviceImageFile() 77 return getVersion(BuildInfoFileKey.DEVICE_IMAGE); in getDeviceImageVersion() 85 setFile(BuildInfoFileKey.DEVICE_IMAGE, deviceImageFile, version); in setDeviceImageFile() 93 return getFile(BuildInfoFileKey.USERDATA_IMAGE); in getUserDataImageFile() 101 return getVersion(BuildInfoFileKey.USERDATA_IMAGE); in getUserDataImageVersion() 109 setFile(BuildInfoFileKey.USERDATA_IMAGE, userDataFile, version); in setUserDataImageFile() 117 return getFile(BuildInfoFileKey.TESTDIR_IMAGE); in getTestsDir() 125 return getVersion(BuildInfoFileKey.TESTDIR_IMAGE); in getTestsDirVersion() 133 setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, version); in setTestsDir() [all …]
|
D | BuildInfoKey.java | 28 public enum BuildInfoFileKey { enum in BuildInfoKey 56 private BuildInfoFileKey(String fileKey, boolean canBeList) { in BuildInfoFileKey() method in BuildInfoKey.BuildInfoFileKey 78 public static BuildInfoFileKey fromString(String keyName) { in fromString() 79 for (BuildInfoFileKey v : BuildInfoFileKey.values()) { in fromString() 92 public static final Set<BuildInfoFileKey> SHARED_KEY = new HashSet<>(); 95 SHARED_KEY.add(BuildInfoFileKey.PACKAGE_FILES); 96 SHARED_KEY.add(BuildInfoFileKey.TESTDIR_IMAGE); 97 SHARED_KEY.add(BuildInfoFileKey.ROOT_DIRECTORY);
|
D | IBuildInfo.java | 18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 162 public default File getFile(BuildInfoFileKey key) { in getFile() 196 public default VersionedFile getVersionedFile(BuildInfoFileKey key) { in getVersionedFile() 208 public default List<VersionedFile> getVersionedFiles(BuildInfoFileKey key) { in getVersionedFiles() 231 public default String getVersion(BuildInfoFileKey key) { in getVersion() 252 public default void setFile(BuildInfoFileKey key, File file, String version) { in setFile()
|
D | BuildInfo.java | 18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 71 BuildInfoFileKey.TESTDIR_IMAGE.getFileKey(), 72 BuildInfoFileKey.HOST_LINKED_DIR.getFileKey(), 73 BuildInfoFileKey.TARGET_LINKED_DIR.getFileKey(), 274 if (origFileConsidered.equals(build.getVersionedFile(BuildInfoFileKey.DEVICE_IMAGE))) { in applyBuildProperties() 310 public File getFile(BuildInfoFileKey key) { in getFile() 326 public VersionedFile getVersionedFile(BuildInfoFileKey key) { in getVersionedFile() 332 public final List<VersionedFile> getVersionedFiles(BuildInfoFileKey key) { in getVersionedFiles() 362 public String getVersion(BuildInfoFileKey key) { in getVersion() 375 BuildInfoFileKey key = BuildInfoFileKey.fromString(name); in setFile() [all …]
|
D | FolderBuildInfo.java | 18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 53 return getFile(BuildInfoFileKey.ROOT_DIRECTORY); in getRootDir() 62 BuildInfoFileKey.ROOT_DIRECTORY, in setRootDir() 64 BuildInfoFileKey.ROOT_DIRECTORY.getFileKey()); in setRootDir()
|
D | DeviceFolderBuildInfo.java | 18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 50 return getFile(BuildInfoFileKey.ROOT_DIRECTORY); in getRootDir() 59 BuildInfoFileKey.ROOT_DIRECTORY, in setRootDir() 61 BuildInfoFileKey.ROOT_DIRECTORY.getFileKey()); in setRootDir()
|
D | AppBuildInfo.java | 19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 54 List<VersionedFile> origList = getVersionedFiles(BuildInfoFileKey.PACKAGE_FILES); in getAppPackageFiles() 67 setFile(BuildInfoFileKey.PACKAGE_FILES, appPackageFile, version); in addAppPackageFile()
|
D | AppDeviceBuildInfo.java | 19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 42 setFile(BuildInfoFileKey.PACKAGE_FILES, appPackageFile, version); in addAppPackageFile() 50 List<VersionedFile> origList = getVersionedFiles(BuildInfoFileKey.PACKAGE_FILES); in getAppPackageFiles()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | PushFilePreparerTest.java | 26 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 282 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo() 308 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_abiDirectory_noBitness() 344 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_abiDirectory_noBitness_withModule() 380 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_abiDirectory() 420 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_dirs() 463 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_files() 493 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_ignored() 535 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_multiAbi() 576 info.setFile(BuildInfoFileKey.TESTDIR_IMAGE, tmpFolder, "v1"); in testPush_moduleName_multiabi_files() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | BuildInfoTest.java | 25 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 159 mBuildInfo.getVersionedFiles(BuildInfoFileKey.TESTDIR_IMAGE); in testGetList_error() 172 mBuildInfo.setFile(BuildInfoFileKey.PACKAGE_FILES, testFile, "version"); in testListFiles() 173 mBuildInfo.setFile(BuildInfoFileKey.PACKAGE_FILES, testFile2, "version2"); in testListFiles() 174 assertNotNull(mBuildInfo.getFile(BuildInfoFileKey.PACKAGE_FILES)); in testListFiles() 176 mBuildInfo.getVersionedFiles(BuildInfoFileKey.PACKAGE_FILES); in testListFiles()
|
D | DeviceBuildInfoTest.java | 24 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()
|
D | DeviceFolderBuildInfoTest.java | 23 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 131 assertNull(info.getFile(BuildInfoFileKey.DEVICE_IMAGE)); in testProperty_skipCopy()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | HostGTestTest.java | 194 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRunTest() 223 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRun_priority_get_testcase_from_hostlinked_folder() 289 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRun_withSuffix() 313 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testBeforeCmdError() 339 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testTestFailureHandledCorrectly() 360 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testAbnormalTestCmdExitHandled() 383 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testBothStdoutAndStderrCollected()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 21 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 78 EasyMock.expect(mBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in setUp() 161 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZip() 248 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZipFoundTestsWithKeywords() 320 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZipFailWithKeywords() 369 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR)) in testLoadTests_testMappingsZipHostTests() 417 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_shard()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | InvocationExecution.java | 22 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 631 BuildInfoFileKey.TARGET_LINKED_DIR.getFileKey()); in updateBuild() 636 BuildInfoFileKey.HOST_LINKED_DIR.getFileKey()); in updateBuild() 697 for (BuildInfoFileKey key : BuildInfoKey.SHARED_KEY) { in createSharedResources() 714 info.setFile(BuildInfoFileKey.SHARED_RESOURCE_DIR, resourcesDir, "v1"); in createSharedResources()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | BaseTestSuite.java | 18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 200 File hostSubDir = getBuildInfo().getFile(BuildInfoFileKey.HOST_LINKED_DIR); in loadTests() 205 File targetSubDir = getBuildInfo().getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in loadTests()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstaller.java | 18 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 89 File sharedDir = buildInfo.getFile(BuildInfoFileKey.SHARED_RESOURCE_DIR); in getApkFromBuildSharedDir()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTest.java | 19 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 76 File targetTestCases = deviceBuild.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in findBinary()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | HostGTest.java | 20 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 204 File hostLinkedDir = mBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 25 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 275 Mockito.doReturn(tmpDir).when(mMockBuildInfo).getFile(BuildInfoFileKey.SHARED_RESOURCE_DIR); in testGetLocalPathForFileName_inSharedDir()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | InvocationExecutionTest.java | 26 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 434 File shared = realBuild.getFile(BuildInfoFileKey.SHARED_RESOURCE_DIR); in testFetchBuild_createSharedFolder() 438 assertNull(fakeBuild.getFile(BuildInfoFileKey.SHARED_RESOURCE_DIR)); in testFetchBuild_createSharedFolder()
|
D | TestInvocationTest.java | 24 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 1695 EasyMock.contains(BuildInfoFileKey.TARGET_LINKED_DIR.getFileKey()), in testInvoke_deviceInfoBuild_withEnv() 1718 .startsWith(BuildInfoFileKey.TARGET_LINKED_DIR.getFileKey())); in testInvoke_deviceInfoBuild_withEnv()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | PushFilePreparer.java | 21 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 166 File targetTestCases = deviceBuild.getFile(BuildInfoFileKey.TARGET_LINKED_DIR); in resolveRelativeFilePath()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/ |
D | BaseHostJUnit4TestTest.java | 23 import com.android.tradefed.build.BuildInfoKey.BuildInfoFileKey; 369 EasyMock.expect(mMockBuild.getFile(BuildInfoFileKey.SHARED_RESOURCE_DIR))
|