Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/src/com/android/tradefed/build/
DDeviceBuildInfo.java69 return getFile(BuildInfoFileKey.DEVICE_IMAGE); in getDeviceImageFile()
93 return getFile(BuildInfoFileKey.USERDATA_IMAGE); in getUserDataImageFile()
117 return getFile(BuildInfoFileKey.TESTDIR_IMAGE); in getTestsDir()
139 return getFile(BuildInfoFileKey.SHARED_RESOURCE_DIR); in getResourcesDir()
153 return getFile(BuildInfoFileKey.BASEBAND_IMAGE); in getBasebandImageFile()
177 return getFile(BuildInfoFileKey.BOOTLOADER_IMAGE); in getBootloaderImageFile()
201 return getFile(BuildInfoFileKey.OTA_IMAGE); in getOtaPackageFile()
225 return getFile(BuildInfoFileKey.MKBOOTIMG_IMAGE); in getMkbootimgFile()
249 return getFile(BuildInfoFileKey.RAMDISK_IMAGE); in getRamdiskFile()
DBuildInfo.java231 File origFile = fileEntry.getValue().getFile(); in addAllFiles()
266 if (origFileConsidered.getFile().equals(build.getFile(name))) { in applyBuildProperties()
268 name, origFileConsidered.getFile(), origFileConsidered.getVersion()); in applyBuildProperties()
300 public File getFile(String name) { in getFile() method in BuildInfo
305 return fileRecords.get(0).getFile(); in getFile()
310 public File getFile(BuildInfoFileKey key) { in getFile() method in BuildInfo
311 return getFile(key.getFileKey()); in getFile()
399 FileUtil.recursiveDelete(fileRecord.getFile()); in cleanUp()
411 if (!doNotClean.contains(fileRecord.getFile())) { in cleanUp()
412 FileUtil.recursiveDelete(fileRecord.getFile()); in cleanUp()
[all …]
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()
DIBuildInfo.java162 public default File getFile(BuildInfoFileKey key) { in getFile() method
177 public File getFile(String name); in getFile() method
DOtaDeviceBuildInfo.java182 public File getFile(String name) { in getFile() method in OtaDeviceBuildInfo
183 return mBaselineBuild.getFile(name); in getFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBuildInfoTest.java75 assertTrue(!mFile.getAbsolutePath().equals(copy.getFile(FILE_KEY).getAbsolutePath())); in testClone()
76 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()
DGCSTestResourceProviderTest.java77 File file1 = buildInfo.getFile("key1"); in testGetBuild()
78 File file2 = buildInfo.getFile("key2"); in testGetBuild()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/multi/
DMergeMultiBuildTargetPreparerTest.java73 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/testtype/suite/
DTestMappingSuiteRunnerTest.java78 EasyMock.expect(mBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in setUp()
161 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZip()
164 EasyMock.expect(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).andReturn(zipFile); in testLoadTests_testMappingsZip()
248 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZipFoundTestsWithKeywords()
251 EasyMock.expect(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).andReturn(zipFile); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
320 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_testMappingsZipFailWithKeywords()
323 EasyMock.expect(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).andReturn(zipFile); in testLoadTests_testMappingsZipFailWithKeywords()
369 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR)) in testLoadTests_testMappingsZipHostTests()
372 EasyMock.expect(mockBuildInfo.getFile(TEST_MAPPINGS_ZIP)).andReturn(zipFile); in testLoadTests_testMappingsZipHostTests()
417 EasyMock.expect(mockBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)) in testLoadTests_shard()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPythonVirtualenvPreparerTest.java59 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()
DInstallAllTestZipAppsSetupTest.java104 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(file); in testGetZipFile()
115 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(null); in testGetZipFileDoesntExist()
138 mMockBuildInfo.getFile((String) EasyMock.anyObject()); in testSuccess()
160 mMockBuildInfo.getFile((String) EasyMock.anyObject()); in testSuccessNoTearDown()
227 mMockBuildInfo.getFile((String) EasyMock.anyObject()); in testUnzipFail()
252 mMockBuildInfo.getFile((String) EasyMock.anyObject()); in testAaptFail()
DPreloadedClassesPreparerTest.java73 when(mMockBuildInfo.getFile(PRELOAD_TOOL_NAME)).thenReturn(tool); in testSetUp_RemoteSuccess()
90 when(mMockBuildInfo.getFile(PRELOAD_TOOL_NAME)).thenReturn(null); in testSetUp_RemoteNoTool()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DAppSetup.java108 AaptParser aaptParser = doAaptParse(apkFile.getFile()); in setUp()
112 apkFile.getFile().getName()), device.getDeviceDescriptor()); in setUp()
125 apkFile.getFile(), true, args.toArray(new String[args.size()])); in setUp()
132 apkFile.getFile().getName(), device.getSerialNumber(), result), in setUp()
136 addPackageNameToUninstall(apkFile.getFile(), device); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/host/
DCoverageMeasurementForwarderTest.java113 .getFile(ARTIFACT_NAME1); in setUp()
116 .getFile(ARTIFACT_NAME2); in setUp()
119 .getFile(ARTIFACT_NAME3); in setUp()
122 .getFile(ARTIFACT_NAME4); in setUp()
/tools/tradefederation/contrib/src/com/android/monkey/
DAppPkgInjector.java71 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/core/tests/src/com/android/tradefed/host/gcs/
DGCSHostResourceManagerTest.java92 File file1 = mHostResourceManager.getFile("key1"); in testSetUpHostResources()
93 File file2 = mHostResourceManager.getFile("key2"); in testSetUpHostResources()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceFromRAFTest.java43 File f = ((TmpFileCloseable) c.getCloseable()).getFile(); in testFileSizeChangesVisible()
97 File getFile() { in getFile() method in DataSourceFromRAFTest.TmpFileCloseable
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DVersionedTfLauncherTest.java153 EasyMock.expect(mMockBuildInfo.getFile("general-tests.zip")) in testRun_singleDevice()
217 EasyMock.expect(mMockBuildInfo.getFile("general-tests.zip")).andReturn(null); in testRun_nullDevice()
276 EasyMock.expect(mMockBuildInfo.getFile("general-tests.zip")) in testRun_DeviceNoPreSetup()
362 EasyMock.expect(mMockBuildInfo.getFile("general-tests.zip")).andReturn(null); in testGetTestShard()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstaller.java89 File sharedDir = buildInfo.getFile(BuildInfoFileKey.SHARED_RESOURCE_DIR); in getApkFromBuildSharedDir()
115 apkFile = buildInfo.getFile(apkFileName); in getLocalPathForFilename()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java91 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/contrib/src/com/android/app/tests/
DAppLaunchTest.java88 File appApkFile = appBuild.getAppPackageFiles().get(0).getFile(); in run()
98 final File apkFile = apkVersionedFile.getFile(); in run()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparer.java93 if (adb == null && buildInfo.getFile("adb") != null) { in setUp()
94 adb = buildInfo.getFile("adb"); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DPythonUnitTestRunner.java143 if (getBuild().getFile(PYTHONPATH) != null) { in setPythonPath()
145 sb.append(getBuild().getFile(PYTHONPATH).getAbsolutePath()); in setPythonPath()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatLfnDirectoryEntry.java289 public FatFile getFile() throws IOException { in getFile() method in FatLfnDirectoryEntry
290 return parent.getFile(realEntry); in getFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java254 Mockito.doReturn(tmpApk).when(mMockBuildInfo).getFile("foo.apk"); in testGetLocalPathForFileName_inBuildKey()
275 Mockito.doReturn(tmpDir).when(mMockBuildInfo).getFile(BuildInfoFileKey.SHARED_RESOURCE_DIR); in testGetLocalPathForFileName_inSharedDir()

123