/cts/hostsidetests/aadb/src/android/aadb/cts/ |
TestDeviceStressTest.java | 47 File tmpDir = null; 50 tmpDir = FileUtil.createTempDir("testDir"); 54 tmpFile = FileUtil.createTempFile(String.format("tmp_%d", i), ".txt", tmpDir); 57 return tmpDir; 66 File tmpDir = null; 76 tmpDir = createTempTestFiles(); 81 assertTrue(mTestDevice.pushDir(tmpDir, deviceFilePath)); 85 FileUtil.recursiveDelete(tmpDir);
|
TestDeviceFuncTest.java | 254 File tmpDir = FileUtil.createTempDir("tmp"); 256 File tmpFile = createTempTestFile(tmpDir); 262 tmpDir.getName(), tmpFile.getName()); 264 assertTrue(mTestDevice.syncFiles(tmpDir, externalStorePath)); 271 File tmpFile2 = createTempTestFile(tmpDir); 273 assertTrue(mTestDevice.syncFiles(tmpDir, externalStorePath)); 275 tmpDir.getName(), tmpFile2.getName()); 291 assertTrue(mTestDevice.syncFiles(tmpDir, externalStorePath)); 300 FileUtil.recursiveDelete(tmpDir); 313 File tmpDir = FileUtil.createTempDir("tmp", rootDir) [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
TestDeviceStressTest.java | 59 File tmpDir = null; 62 tmpDir = FileUtil.createTempDir("testDir"); 66 tmpFile = FileUtil.createTempFile(String.format("tmp_%d", i), ".txt", tmpDir); 69 return tmpDir; 111 File tmpDir = null; 121 tmpDir = createTempTestFiles(); 126 assertTrue(mTestDevice.pushDir(tmpDir, deviceFilePath)); 130 if (tmpDir != null) { 131 FileUtil.recursiveDelete(tmpDir); 143 File tmpDir = null [all...] |
/external/skia/tests/ |
Test.cpp | 14 DEFINE_string2(tmpDir, t, nullptr, "Temp directory to use."); 35 const char* tmpDir = FLAGS_tmpDir.isEmpty() ? nullptr : FLAGS_tmpDir[0]; 36 return SkString(tmpDir);
|
StreamBufferTest.cpp | 72 SkString tmpDir = skiatest::GetTmpDir(); 76 if (!tmpDir.isEmpty()) { 77 path = SkOSPath::Join(tmpDir.c_str(), subdir); 92 if (tmpDir.isEmpty() && f.skipIfNoTmpDir) {
|
PDFDocumentTest.cpp | 44 SkString tmpDir = skiatest::GetTmpDir(); 46 if (tmpDir.isEmpty()) { 52 SkString path = SkOSPath::Join(tmpDir.c_str(), "aborted.pdf"); 73 SkString tmpDir = skiatest::GetTmpDir(); 74 if (tmpDir.isEmpty()) { 80 SkString path = SkOSPath::Join(tmpDir.c_str(), "file.pdf");
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
ConfigurationUtilTest.java | 81 File tmpDir = null; 83 tmpDir = FileUtil.createTempDir("test_configs_dir"); 85 File config1 = FileUtil.createTempFile("config", ".config", tmpDir); 87 File subDir = FileUtil.getFileForPath(tmpDir, "sub"); 93 ConfigurationUtil.getConfigNamesFromDirs("sub", Arrays.asList(tmpDir)); 98 configs = ConfigurationUtil.getConfigNamesFromDirs("", Arrays.asList(tmpDir)); 103 FileUtil.recursiveDelete(tmpDir);
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
SuiteApkInstallerTest.java | 88 File tmpDir = FileUtil.createTempDir("suite-apk-installer"); 91 attributes.put("ROOT_DIR", tmpDir.getAbsolutePath()); 95 assertEquals(tmpDir.getAbsolutePath(), res.getAbsolutePath()); 97 FileUtil.recursiveDelete(tmpDir); 134 File tmpDir = FileUtil.createTempDir("suite-apk-installer"); 135 File apkFile = FileUtil.createTempFile("apk-test", ".apk", tmpDir); 146 attributes.put("ROOT_DIR", tmpDir.getAbsolutePath()); 155 FileUtil.recursiveDelete(tmpDir); 221 File tmpDir = null; 223 tmpDir = FileUtil.createTempDir("test") [all...] |
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
FileClientSessionCacheTest.java | 27 String tmpDir = System.getProperty("java.io.tmpdir"); 28 if (tmpDir == null) { 29 fail("Please set 'java.io.tmpdir' system property."); 31 File cacheDir = new File(tmpDir
|
/hardware/libhardware/tests/input/evdev/ |
TestHelpers.cpp | 75 auto tmpDir = opendir(mName); 76 while (auto entry = readdir(tmpDir)) { 84 closedir(tmpDir);
|
/libcore/luni/src/test/java/libcore/java/sql/ |
ConnectionTest.java | 51 String tmp = System.getProperty("java.io.tmpdir"); 52 File tmpDir = new File(tmp); 53 if (tmpDir.isDirectory()) { 55 dbFile = File.createTempFile("OldJDBCDriverTest", ".db", tmpDir); 61 System.err.println("java.io.tmpdir does not exist");
|
OldSQLTest.java | 38 String tmp = System.getProperty("java.io.tmpdir"); 39 File tmpDir = new File(tmp); 40 if (tmpDir.isDirectory()) { 41 dbFile = File.createTempFile("sqliteTest", ".db", tmpDir); 44 System.err.println("java.io.tmpdir does not exist");
|
/prebuilts/go/darwin-x86/src/path/filepath/ |
match_test.go | 180 tmpDir, err := ioutil.TempDir("", "globsymlink") 184 defer os.RemoveAll(tmpDir) 187 path := Join(tmpDir, tt.path) 188 dest := Join(tmpDir, tt.dest) 266 tmpDir, err := ioutil.TempDir("", "TestWindowsGlob") 270 defer os.RemoveAll(tmpDir) 273 tmpDir, err = EvalSymlinks(tmpDir) 278 if len(tmpDir) < 3 { 279 t.Fatalf("tmpDir path %q is too short", tmpDir [all...] |
/prebuilts/go/linux-x86/src/path/filepath/ |
match_test.go | 180 tmpDir, err := ioutil.TempDir("", "globsymlink") 184 defer os.RemoveAll(tmpDir) 187 path := Join(tmpDir, tt.path) 188 dest := Join(tmpDir, tt.dest) 266 tmpDir, err := ioutil.TempDir("", "TestWindowsGlob") 270 defer os.RemoveAll(tmpDir) 273 tmpDir, err = EvalSymlinks(tmpDir) 278 if len(tmpDir) < 3 { 279 t.Fatalf("tmpDir path %q is too short", tmpDir [all...] |
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/verifier/ |
DatabaseVerifier.kt | 43 val tmpDir = System.getProperty("java.io.tmpdir") 44 if (tmpDir == null) { 49 val outDir = File(tmpDir, "room-${UUID.randomUUID()}") 52 System.setProperty("org.sqlite.tmpdir", outDir.absolutePath)
|
/external/vogar/src/vogar/target/ |
TestEnvironment.java | 68 private final String tmpDir; 71 this.tmpDir = System.getProperty("java.io.tmpdir"); 72 if (tmpDir == null || tmpDir.length() == 0) { 73 throw new AssertionError("tmpDir is null or empty: " + tmpDir); 77 // On android, behaviour around clearing "java.io.tmpdir" is inconsistent. 81 // should be correct on the host and on the jvm too, since tmpdir is assumed 83 System.setProperty("java.io.tmpdir", tmpDir) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldFileTest.java | 36 File tempDir = new File(System.getProperty("java.io.tmpdir")); 64 String tmpDirName = System.getProperty("java.io.tmpdir"); 94 String tmpDir = System.getProperty("java.io.tmpdir"); 95 if (!tmpDir.endsWith(File.separator)) { 96 tmpDir += File.separator; 99 String dirName = tmpDir; 101 File f = new File(tmpDir, fileName); 102 tmpDir += "input.tst"; 103 assertEquals(tmpDir, f.getAbsolutePath()) [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
FileUtilTest.java | 336 File tmpDir = FileUtil.createTempDir("find_files_test"); 338 File matchFile1 = FileUtil.createTempFile("test", ".config", tmpDir); 339 File subDir = new File(tmpDir, "subfolder"); 343 Set<String> matchFiles = FileUtil.findFiles(tmpDir, ".*.config"); 348 FileUtil.recursiveDelete(tmpDir); 357 File tmpDir = FileUtil.createTempDir("find_files_test"); 359 FileUtil.createTempFile("test", ".config", tmpDir); 360 File subDir = new File(tmpDir, "subfolder"); 363 Set<String> matchFiles = FileUtil.findFiles(tmpDir, ".*.config_x"); 366 FileUtil.recursiveDelete(tmpDir); [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaScannerNotificationTest.java | 91 File tmpDir = new File(externalPath, "" + System.nanoTime()); 92 String tmpPath = tmpDir.getAbsolutePath(); 93 assertFalse(tmpPath + " already exists", tmpDir.exists()); 94 assertTrue("failed to create " + tmpDir, tmpDir.mkdirs());
|
/external/deqp/scripts/ |
check_build_sanity.py | 31 def __init__ (self, srcDir, tmpDir): 33 self.tmpDir = tmpDir 109 buildDir = os.path.join(env.tmpDir, self.buildDir) 186 lambda env: ["--build-dir", os.path.join(env.tmpDir, "android-mustpass")]), 190 lambda env: ["--build-dir", os.path.join(env.tmpDir, "vulkan-mustpass")]), 232 dest="tmpDir", 255 env = Environment(args.srcDir, args.tmpDir)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
TfTestLauncherTest.java | 148 File tmpDir = Mockito.mock(File.class); 149 Mockito.when(tmpDir.list()) 153 mTfTestLauncher.testTmpDirClean(tmpDir, mMockListener); 171 File tmpDir = Mockito.mock(File.class); 172 Mockito.when(tmpDir.list()).thenReturn(new String[] {"extra_file"}); 174 mTfTestLauncher.testTmpDirClean(tmpDir, mMockListener); 192 File tmpDir = Mockito.mock(File.class); 193 Mockito.when(tmpDir.list()).thenReturn(new String[] {"inv_1", "inv_2"}); 195 mTfTestLauncher.testTmpDirClean(tmpDir, mMockListener);
|
/libcore/luni/src/test/java/tests/support/ |
Support_SQL.java | 56 String tmp = System.getProperty("java.io.tmpdir"); 57 File tmpDir = new File(tmp); 58 if (tmpDir.isDirectory()) { 59 dbFile = File.createTempFile("sqliteTest", ".db", tmpDir); 62 System.err.println("java.io.tmpdir does not exist");
|
/external/testng/src/test/java/test/failures/ |
BaseFailuresTest.java | 87 File tmpDir = new File(outputDir); 88 tmpDir.delete();
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
OldFilePreferencesImplTest.java | 34 File tmpDir = IoUtils.createTemporaryDirectory("OldFilePreferencesImplTest"); 36 new PreferencesTest.TestPreferencesFactory(tmpDir.getAbsolutePath()));
|
/prebuilts/go/darwin-x86/src/os/ |
path_test.go | 20 tmpDir := TempDir() 21 path := tmpDir + "/_TestMkdirAll_/dir/./dir2" 26 defer RemoveAll(tmpDir + "/_TestMkdirAll_") 70 path := tmpDir + `\_TestMkdirAll_\dir\.\dir2\` 79 tmpDir := TempDir() 81 path := tmpDir + "/_TestRemoveAll_" 175 tmpDir, err := ioutil.TempDir("", "TestMkdirAllWithSymlink-") 179 defer RemoveAll(tmpDir) 181 dir := tmpDir + "/dir" 187 link := tmpDir + "/link [all...] |