/external/libbrillo/policy/tests/ |
resilient_policy_util_unittest.cc | 31 base::ScopedTempDir temp_dir; local 32 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 34 base::FilePath file0(temp_dir.path().Append("policy")); 35 base::FilePath file1(temp_dir.path().Append("policy.12")); 36 base::FilePath file2(temp_dir.path().Append("policy.2")); 37 base::FilePath file3(temp_dir.path().Append("policy.30")); 38 base::FilePath invalid(temp_dir.path().Append("policy_4")); 46 temp_dir.path().Append(kDefaultResilientPolicyFilePath));
|
policy_util_unittest.cc | 20 base::ScopedTempDir temp_dir; local 21 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 23 base::FilePath invalid_policy_data_path(temp_dir.path().Append("policy")); 24 base::FilePath inexistent_file(temp_dir.path().Append("policy.1")); 25 base::FilePath good_policy_data_path(temp_dir.path().Append("policy.2"));
|
/external/autotest/client/common_lib/ |
autotemp_unittest.py | 35 temp_dir = autotemp.tempdir(unique_id='dir') 36 self.assertTrue(os.path.exists(temp_dir.name)) 37 self.assertTrue(os.path.isdir(temp_dir.name)) 41 temp_dir = autotemp.tempdir(unique_id='clean') 42 name = temp_dir.name 44 temp_dir.clean() 49 temp_dir = autotemp.tempdir(unique_id='del') 50 name = temp_dir.name 52 temp_dir.__del__()
|
/art/test/968-default-partial-compile-gen/util-src/ |
generate_java.py | 58 def __init__(self, sources, javac, temp_dir, classes_dir): 60 self.temp_dir = temp_dir 83 JavaConverter(f.get_specific_version(base.InterfaceType.default)).dump(self.temp_dir) 85 JavaConverter(f).dump(self.temp_dir) 86 self.compile_files("-d {}".format(self.classes_dir), self.temp_dir.glob("*.java")) 97 out.dump(self.temp_dir) 98 files.append(self.temp_dir / out.get_file_name()) 103 out.dump(self.temp_dir) 104 files.append(self.temp_dir / out.get_file_name() [all...] |
/external/ltp/testcases/kernel/syscalls/fchdir/ |
fchdir01.c | 73 char *temp_dir; variable 92 if ((temp_dir = (getcwd(temp_dir, 0))) == NULL) 132 free(temp_dir); 133 temp_dir = NULL;
|
/external/perfetto/src/base/ |
temp_file.cc | 72 TempDir temp_dir; local 73 temp_dir.path_.assign(kSysTmpPath); 74 temp_dir.path_.append("/perfetto-XXXXXXXX"); 75 PERFETTO_CHECK(mkdtemp(&temp_dir.path_[0])); 76 return temp_dir;
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
shell_util.py | 26 temp_dir = _tempfile.mkdtemp() 28 with ScopedChangeDir(temp_dir): 31 _shutil.rmtree(temp_dir)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_cmd_line_script.py | 8 temp_dir, make_script, compile_script, 101 with temp_dir() as script_dir: 106 with temp_dir() as script_dir: 113 with temp_dir() as script_dir: 118 with temp_dir() as script_dir: 125 with temp_dir() as script_dir: 130 with temp_dir() as script_dir: 136 with temp_dir() as script_dir: 143 with temp_dir() as script_dir: 150 with temp_dir() as script_dir [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_cmd_line_script.py | 8 temp_dir, make_script, compile_script, 101 with temp_dir() as script_dir: 106 with temp_dir() as script_dir: 113 with temp_dir() as script_dir: 118 with temp_dir() as script_dir: 125 with temp_dir() as script_dir: 130 with temp_dir() as script_dir: 136 with temp_dir() as script_dir: 143 with temp_dir() as script_dir: 150 with temp_dir() as script_dir [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_cmd_line_script.py | 8 temp_dir, make_script, compile_script, 101 with temp_dir() as script_dir: 106 with temp_dir() as script_dir: 113 with temp_dir() as script_dir: 118 with temp_dir() as script_dir: 125 with temp_dir() as script_dir: 130 with temp_dir() as script_dir: 136 with temp_dir() as script_dir: 143 with temp_dir() as script_dir: 150 with temp_dir() as script_dir [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_cmd_line_script.py | 8 temp_dir, make_script, compile_script, 101 with temp_dir() as script_dir: 106 with temp_dir() as script_dir: 113 with temp_dir() as script_dir: 118 with temp_dir() as script_dir: 125 with temp_dir() as script_dir: 130 with temp_dir() as script_dir: 136 with temp_dir() as script_dir: 143 with temp_dir() as script_dir: 150 with temp_dir() as script_dir [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_cmd_line_script.py | 8 temp_dir, make_script, compile_script,
98 with temp_dir() as script_dir:
103 with temp_dir() as script_dir:
110 with temp_dir() as script_dir:
115 with temp_dir() as script_dir:
122 with temp_dir() as script_dir:
127 with temp_dir() as script_dir:
133 with temp_dir() as script_dir:
140 with temp_dir() as script_dir:
147 with temp_dir() as script_dir: [all...] |
/external/libchrome/base/files/ |
file_unittest.cc | 22 base::ScopedTempDir temp_dir; local 23 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 24 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); 96 file_path = temp_dir.GetPath().AppendASCII("create_file_2"); 109 base::ScopedTempDir temp_dir; local 110 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 111 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file"); 127 base::ScopedTempDir temp_dir; local 128 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 129 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1") 154 base::ScopedTempDir temp_dir; local 226 base::ScopedTempDir temp_dir; local 274 base::ScopedTempDir temp_dir; local 326 base::ScopedTempDir temp_dir; local 389 base::ScopedTempDir temp_dir; local 414 base::ScopedTempDir temp_dir; local 438 base::ScopedTempDir temp_dir; local 455 base::ScopedTempDir temp_dir; local 482 base::ScopedTempDir temp_dir; local 499 base::ScopedTempDir temp_dir; local 523 base::ScopedTempDir temp_dir; local 537 base::ScopedTempDir temp_dir; local 553 base::ScopedTempDir temp_dir; local 570 base::ScopedTempDir temp_dir; local 592 base::ScopedTempDir temp_dir; local 618 base::ScopedTempDir temp_dir; local 633 base::ScopedTempDir temp_dir; local 653 base::ScopedTempDir temp_dir; local [all...] |
dir_reader_posix_unittest.cc | 30 base::ScopedTempDir temp_dir; 31 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 32 const char* dir = temp_dir.GetPath().value().c_str();
|
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/ |
fileutil_unittest.py | 34 temp_dir = tempfile.mkdtemp() 36 self.assertTrue(os.path.exists(temp_dir)) 39 full = os.path.join(temp_dir, "foo", "bar") 55 shutil.rmtree(temp_dir)
|
/external/tensorflow/tensorflow/contrib/tensorboard/plugins/projector/ |
projector_api_test.py | 44 temp_dir = self.get_temp_dir() 45 self.addCleanup(shutil.rmtree, temp_dir) 46 writer = writer_lib.FileWriter(temp_dir) 50 with gfile.GFile(os.path.join(temp_dir, 'projector_config.pbtxt')) as f:
|
/art/test/971-iface-super/util-src/ |
generate_java.py | 58 def __init__(self, sources, javac, temp_dir, classes_dir): 60 self.temp_dir = temp_dir 83 JavaConverter(f.get_specific_version(base.InterfaceType.default)).dump(self.temp_dir) 85 JavaConverter(f).dump(self.temp_dir) 86 self.compile_files("-d {}".format(self.classes_dir), self.temp_dir.glob("*.java")) 101 out.dump(self.temp_dir) 102 files.append(self.temp_dir / out.get_file_name()) 107 out.dump(self.temp_dir) 108 files.append(self.temp_dir / out.get_file_name() [all...] |
/external/google-breakpad/src/client/linux/handler/ |
exception_handler_unittest.cc | 165 AutoTempDir temp_dir; local 167 MinidumpDescriptor(temp_dir.path()), NULL, NULL, NULL, true, -1); 168 EXPECT_EQ(temp_dir.path(), handler.minidump_descriptor().directory()); 169 string temp_subdir = temp_dir.path() + "/subdir"; 175 AutoTempDir temp_dir; local 177 const int fd = CreateTMPFile(temp_dir.path(), &path); 215 AutoTempDir temp_dir; local 220 minidump_fd = CreateTMPFile(temp_dir.path(), &minidump_path); 235 handler.reset(new ExceptionHandler(MinidumpDescriptor(temp_dir.path()), 320 AutoTempDir temp_dir; local 332 AutoTempDir temp_dir; local 344 AutoTempDir temp_dir; local 356 AutoTempDir temp_dir; local 368 AutoTempDir temp_dir; local 385 AutoTempDir temp_dir; local 414 AutoTempDir temp_dir; local 430 AutoTempDir temp_dir; local 446 AutoTempDir temp_dir; local 462 AutoTempDir temp_dir; local 492 AutoTempDir temp_dir; local 584 AutoTempDir temp_dir; local 672 AutoTempDir temp_dir; local 765 AutoTempDir temp_dir; local 844 AutoTempDir temp_dir; local 986 AutoTempDir temp_dir; local 1005 AutoTempDir temp_dir; local 1024 AutoTempDir temp_dir; local 1041 AutoTempDir temp_dir; local 1085 AutoTempDir temp_dir; local 1124 AutoTempDir temp_dir; local 1172 AutoTempDir temp_dir; local [all...] |
/external/python/cpython2/Lib/test/ |
test_cmd_line_script.py | 9 temp_dir, make_script, compile_script, 102 with temp_dir() as script_dir: 107 with temp_dir() as script_dir: 114 with temp_dir() as script_dir: 119 with temp_dir() as script_dir: 126 with temp_dir() as script_dir: 131 with temp_dir() as script_dir: 137 with temp_dir() as script_dir: 144 with temp_dir() as script_dir: 151 with temp_dir() as script_dir [all...] |
/external/autotest/server/site_tests/brillo_ADBDirectoryTransfer/ |
brillo_ADBDirectoryTransfer.py | 32 self.temp_dir = tempfile.mkdtemp() 33 self.test_dir = os.path.join(self.temp_dir, 'test_dir') 52 return_dir = os.path.join(self.temp_dir, 'return_dir') 67 shutil.rmtree(self.temp_dir)
|
/external/google-breakpad/src/common/tests/ |
auto_tempdir.h | 55 char temp_dir[] = TEMPDIR "/breakpad.XXXXXX"; local 56 EXPECT_TRUE(mkdtemp(temp_dir) != NULL); 57 path_.assign(temp_dir);
|
/external/autotest/utils/ |
packager.py | 163 temp_dir = tempfile.mkdtemp() 166 packages.check_diskspace(temp_dir) 169 "enough space available: %s" % (temp_dir, e)) 180 temp_dir, 191 shutil.rmtree(temp_dir) 197 def tar_packages(pkgmgr, pkg_type, pkg_names, src_dir, temp_dir): 229 temp_dir, exclude_string_tar) 239 temp_dir = tempfile.mkdtemp() 241 packages.check_diskspace(temp_dir) 244 % (temp_dir, e) [all...] |
/external/libmojo/mojo/edk/system/ |
platform_handle_dispatcher_unittest.cc | 24 base::ScopedTempDir temp_dir; local 25 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 31 CreateAndOpenTemporaryFileInDir(temp_dir.GetPath(), &unused)); 66 base::ScopedTempDir temp_dir; local 67 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 73 CreateAndOpenTemporaryFileInDir(temp_dir.GetPath(), &unused));
|
/external/python/cpython3/Lib/test/ |
test_cgitb.py | 1 from test.support import temp_dir 40 with temp_dir() as tracedir: 54 with temp_dir() as tracedir:
|
/external/google-breakpad/src/common/linux/ |
memory_mapped_file_unittest.cc | 85 AutoTempDir temp_dir; local 86 string test_file = temp_dir.path() + "/empty_file"; 107 AutoTempDir temp_dir; local 108 string test_file = temp_dir.path() + "/test_file"; 141 AutoTempDir temp_dir; local 142 string test_file1 = temp_dir.path() + "/test_file1"; 143 string test_file2 = temp_dir.path() + "/test_file2"; 186 AutoTempDir temp_dir; local 187 string test_file1 = temp_dir.path() + "/test_file1";
|