/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.GetPath().Append("policy")); 35 base::FilePath file1(temp_dir.GetPath().Append("policy.12")); 36 base::FilePath file2(temp_dir.GetPath().Append("policy.2")); 37 base::FilePath file3(temp_dir.GetPath().Append("policy.30")); 38 base::FilePath invalid(temp_dir.GetPath().Append("policy_4")); 46 temp_dir.GetPath().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.GetPath().Append("policy")); 24 base::FilePath inexistent_file(temp_dir.GetPath().Append("policy.1")); 25 base::FilePath good_policy_data_path(temp_dir.GetPath().Append("policy.2"));
|
/external/deqp-deps/SPIRV-Tools/test/scripts/ |
test_compact_ids.py | 23 def test_spirv_file(path, temp_dir): 24 optimized_spv_path = os.path.join(temp_dir, 'optimized.spv') 25 optimized_dis_path = os.path.join(temp_dir, 'optimized.dis') 26 converted_spv_path = os.path.join(temp_dir, 'converted.spv') 27 converted_dis_path = os.path.join(temp_dir, 'converted.dis') 84 temp_dir = tempfile.mkdtemp() 87 success = test_spirv_file(path, temp_dir)
|
/external/swiftshader/third_party/SPIRV-Tools/test/scripts/ |
test_compact_ids.py | 23 def test_spirv_file(path, temp_dir): 24 optimized_spv_path = os.path.join(temp_dir, 'optimized.spv') 25 optimized_dis_path = os.path.join(temp_dir, 'optimized.dis') 26 converted_spv_path = os.path.join(temp_dir, 'converted.spv') 27 converted_dis_path = os.path.join(temp_dir, 'converted.dis') 84 temp_dir = tempfile.mkdtemp() 87 success = test_spirv_file(path, temp_dir)
|
/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__()
|
/external/libchrome/base/files/ |
file_enumerator_unittest.cc | 63 ScopedTempDir temp_dir; local 64 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 68 RunEnumerator(temp_dir.GetPath(), true, 76 ScopedTempDir temp_dir; local 77 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 79 const FilePath& path = temp_dir.GetPath(); 85 temp_dir.GetPath(), true, FileEnumerator::FILES, kEmptyPattern, policy); 91 ScopedTempDir temp_dir; local 92 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 94 const FilePath& path = temp_dir.GetPath() 105 ScopedTempDir temp_dir; local 124 ScopedTempDir temp_dir; local 153 ScopedTempDir temp_dir; local 169 ScopedTempDir temp_dir; local 185 ScopedTempDir temp_dir; local 207 ScopedTempDir temp_dir; local 234 ScopedTempDir temp_dir; local 254 ScopedTempDir temp_dir; local 275 ScopedTempDir temp_dir; local [all...] |
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"); 98 file_path = temp_dir.GetPath().AppendASCII("create_file_2"); 111 base::ScopedTempDir temp_dir; local 112 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 113 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); 121 base::ScopedTempDir temp_dir; local 122 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 123 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file") 139 base::ScopedTempDir temp_dir; local 166 base::ScopedTempDir temp_dir; local 249 base::ScopedTempDir temp_dir; local 261 base::ScopedTempDir temp_dir; local 313 base::ScopedTempDir temp_dir; local 372 base::ScopedTempDir temp_dir; local 435 base::ScopedTempDir temp_dir; local 460 base::ScopedTempDir temp_dir; local 484 base::ScopedTempDir temp_dir; local 501 base::ScopedTempDir temp_dir; local 528 base::ScopedTempDir temp_dir; local 550 base::ScopedTempDir temp_dir; local 572 base::ScopedTempDir temp_dir; local 596 base::ScopedTempDir temp_dir; local 610 base::ScopedTempDir temp_dir; local 626 base::ScopedTempDir temp_dir; local 643 base::ScopedTempDir temp_dir; local 665 base::ScopedTempDir temp_dir; local 691 base::ScopedTempDir temp_dir; local 706 base::ScopedTempDir temp_dir; local 726 base::ScopedTempDir temp_dir; local 751 base::ScopedTempDir temp_dir; local [all...] |
/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/libchrome/mojo/public/cpp/base/ |
file_unittest.cc | 15 base::ScopedTempDir temp_dir; local 16 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 19 temp_dir.GetPath().AppendASCII("test_file.txt"), 40 base::ScopedTempDir temp_dir; local 41 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 42 base::FilePath path = temp_dir.GetPath().AppendASCII("async_test_file.txt"); 59 base::ScopedTempDir temp_dir; local 60 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 63 temp_dir.GetPath().AppendASCII("test_file.txt"),
|
/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 | 78 TempDir temp_dir; local 79 temp_dir.path_.assign(kSysTmpPath); 80 temp_dir.path_.append("/perfetto-XXXXXXXX"); 81 PERFETTO_CHECK(mkdtemp(&temp_dir.path_[0])); 82 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)
|
/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/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/grpc-grpc/tools/internal_ci/linux/ |
grpc_bazel_on_foundry_base.sh | 24 temp_dir=$(mktemp -d) 25 ln -f "${KOKORO_GFILE_DIR}/bazel-latest-release" ${temp_dir}/bazel 27 export PATH="${temp_dir}:${PATH}" 28 # This should show ${temp_dir}/bazel
|
/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/tensorflow/tensorflow/python/keras/ |
callbacks_v1_test.py | 50 temp_dir = self.get_temp_dir() 51 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 91 log_dir=temp_dir, 151 assert os.path.exists(temp_dir) 359 temp_dir = self.get_temp_dir() 360 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True) 378 callbacks_v1.TensorBoard(log_dir=temp_dir) 390 assert os.path.exists(temp_dir) 415 temp_dir = self.get_temp_dir() 416 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True [all...] |
/build/make/tools/releasetools/ |
merge_target_files.py | 410 def process_file_contexts_bin(temp_dir, output_target_files_temp_dir): 414 expected to already be extracted in temp_dir, to produce a merged 415 file_contexts.bin that will land in temp_dir at META/file_contexts.bin. 418 temp_dir: The name of a scratch directory that this function can use for 460 merged_file_contexts_txt = os.path.join(temp_dir, 'merged_file_contexts.txt') 467 sorted_file_contexts_txt = os.path.join(temp_dir, 'sorted_file_contexts.txt') 487 temp_dir, 500 temp_dir: The name of a scratch directory that this function can use for 537 temp_dir=temp_dir, [all...] |
/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/fonttools/Tests/varLib/ |
interpolatable_test.py | 54 self.temp_dir() 59 def temp_dir(self): member in class:InterpolatableTest 63 def compile_font(self, path, suffix, temp_dir): 65 savepath = os.path.join(temp_dir, ttx_filename.replace('.ttx', suffix)) 79 self.temp_dir() 92 self.temp_dir()
|