/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | GkiDeviceFlashPreparerTest.java | 73 private File mTmpDir; field in GkiDeviceFlashPreparerTest 135 FileUtil.createTempDir("system_dlkm_staging", mTmpDir); in setUp() 171 mTmpDir = FileUtil.createTempDir("tmp"); in setUp() 188 FileUtil.recursiveDelete(mTmpDir); in tearDown() 196 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoBuildInfoFiles() 206 File kernelImage = new File(mTmpDir, "Image.gz"); in testValidateGkiBootImg_NoRamdiskRecoveryImg() 210 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoRamdiskRecoveryImg() 220 File kernelImage = new File(mTmpDir, "Image.gz"); in testValidateGkiBootImg_NoOtatoolsZip() 222 File ramdiskRecoveryImage = new File(mTmpDir, "ramdisk-recovery.img"); in testValidateGkiBootImg_NoOtatoolsZip() 226 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoOtatoolsZip() [all …]
|
D | GsiDeviceFlashPreparerTest.java | 63 private File mTmpDir; field in GsiDeviceFlashPreparerTest 102 mTmpDir = FileUtil.createTempDir("tmp"); in setUp() 119 FileUtil.recursiveDelete(mTmpDir); in tearDown() 171 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetUp_NoSystemImageInGsiZip() 173 File gsiZip = FileUtil.createTempFile("gsi_image", ".zip", mTmpDir); in testSetUp_NoSystemImageInGsiZip() 188 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetUp_Success_NoVbmetaImage() 220 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_Success() 262 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_Success_FromZipFile() 267 File gsiZip = FileUtil.createTempFile("gsi_image", ".zip", mTmpDir); in testSetup_Success_FromZipFile() 306 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_Success_WithGkiBootImg() [all …]
|
D | DeviceFlashPreparerTest.java | 70 private File mTmpDir; field in DeviceFlashPreparerTest 121 mTmpDir = FileUtil.createTempDir("tmp"); in setUp() 130 FileUtil.recursiveDelete(mTmpDir); in tearDown()
|
D | FeatureFlagTargetPreparerTest.java | 51 @Rule public final TemporaryFolder mTmpDir = new TemporaryFolder(); field in FeatureFlagTargetPreparerTest 326 File file = mTmpDir.newFile(); in addFlagFile()
|
D | DeviceSetupTest.java | 71 private File mTmpDir; field in DeviceSetupTest 88 mTmpDir = FileUtil.createTempDir("tmp"); in setUp() 97 FileUtil.recursiveDelete(mTmpDir); in tearDown() 1570 mDeviceSetup.setLocalDataPath(mTmpDir); in doSyncDataExpectations() 1574 when(mMockDevice.syncFiles(mTmpDir, mntPoint)).thenReturn(result); in doSyncDataExpectations()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | DeviceActionUtilTest.java | 54 private File mTmpDir; field in DeviceActionUtilTest 65 mTmpDir = tempFolder.newFolder("tmp-dir"); in setUp() 76 mTmpDir, in setUp() 109 mTmpDir.getAbsolutePath(), in execute_installMainline() 144 mTmpDir.getAbsolutePath(), in execute_reset()
|
/tools/tradefederation/core/javatests/com/android/tradefed/build/ |
D | LocalDeviceBuildProviderTest.java | 49 private File mTmpDir = null; field in LocalDeviceBuildProviderTest 60 mTmpDir = FileUtil.createTempDir("tmp"); in setUp() 79 FileUtil.recursiveDelete(mTmpDir); in tearDown() 104 File buildImageZip = new File(mTmpDir, "image.zip"); in testGetBuild_noImage() 125 ZipUtil2.extractZip(zip, mTmpDir); in testCreateBuildImageZip() 126 File extractedFile1 = new File(mTmpDir, mAndroidInfo.getName()); in testCreateBuildImageZip() 127 File extractedFile2 = new File(mTmpDir, mBootImg.getName()); in testCreateBuildImageZip() 128 File extractedFile3 = new File(mTmpDir, mSystemImg.getName()); in testCreateBuildImageZip()
|
D | FileDownloadCacheFuncTest.java | 60 private File mTmpDir; field in FileDownloadCacheFuncTest 67 mTmpDir = FileUtil.createTempDir("functest"); in setUp() 68 mCache = new FileDownloadCache(mTmpDir); in setUp() 77 FileUtil.recursiveDelete(mTmpDir); in tearDown()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/adb/ |
D | AdbStopServerPreparer.java | 63 private File mTmpDir; field in AdbStopServerPreparer 126 FileUtil.recursiveDelete(mTmpDir); in tearDown() 172 mTmpDir = FileUtil.createTempDir("adb"); in renameAdbBinary() 175 FileUtil.recursiveDelete(mTmpDir); in renameAdbBinary() 178 File renamedAdbBinary = new File(mTmpDir, "adb"); in renameAdbBinary()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | SubprocessTfLauncher.java | 186 protected File mTmpDir = null; field in SubprocessTfLauncher 254 mTmpDir = FileUtil.createTempDir("subprocess-" + tfBuild.getBuildId()); in preRun() 255 mCmdArgs.add(String.format("-Djava.io.tmpdir=%s", mTmpDir.getAbsolutePath())); in preRun() 475 if (mTmpDir != null) { in run() 476 FileUtil.recursiveDelete(mTmpDir); in run()
|
D | TfTestLauncher.java | 194 if (mTmpDir != null) { in postRun() 195 testTmpDirClean(mTmpDir, listener); in postRun()
|