/external/tensorflow/tensorflow/examples/speech_commands/ |
D | input_data_test.py | 67 tmp_dir = self.get_temp_dir() 68 wav_dir = os.path.join(tmp_dir, "wavs") 81 "", wav_dir, 10, 10, ["a", "b"], 10, 10, model_settings, tmp_dir) 102 tmp_dir = self.get_temp_dir() 103 self._saveWavFolders(tmp_dir, ["a", "b", "c"], 100) 104 audio_processor = input_data.AudioProcessor("", tmp_dir, 10, 10, 106 self._model_settings(), tmp_dir) 115 tmp_dir = self.get_temp_dir() 116 self._saveWavFolders(tmp_dir, ["a", "b", "c"], 0) 118 _ = input_data.AudioProcessor("", tmp_dir, 10, 10, ["a", "b"], 10, 10, [all …]
|
D | wav_to_features_test.py | 55 tmp_dir = self.get_temp_dir() 56 wav_dir = os.path.join(tmp_dir, "wavs") 59 input_file_path = os.path.join(tmp_dir, "input.wav") 60 output_file_path = os.path.join(tmp_dir, "output.c") 71 tmp_dir = self.get_temp_dir() 72 wav_dir = os.path.join(tmp_dir, "wavs") 75 input_file_path = os.path.join(tmp_dir, "input.wav") 76 output_file_path = os.path.join(tmp_dir, "output.c")
|
/external/python/cpython2/Lib/distutils/tests/ |
D | test_sdist.py | 65 os.mkdir(join(self.tmp_dir, 'somecode')) 66 os.mkdir(join(self.tmp_dir, 'dist')) 68 self.write_file((self.tmp_dir, 'README'), 'xxx') 69 self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#') 70 self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY) 71 os.chdir(self.tmp_dir) 98 os.mkdir(join(self.tmp_dir, 'somecode', '.svn')) 99 self.write_file((self.tmp_dir, 'somecode', '.svn', 'ok.py'), 'xxx') 101 os.mkdir(join(self.tmp_dir, 'somecode', '.hg')) 102 self.write_file((self.tmp_dir, 'somecode', '.hg', [all …]
|
D | test_spawn.py | 60 with test_support.temp_dir() as tmp_dir: 67 filename = os.path.join(tmp_dir, program) 73 rv = find_executable(program, path=tmp_dir) 78 rv = find_executable(program_noeext, path=tmp_dir) 82 with test_support.change_cwd(tmp_dir): 88 rv = find_executable(dont_exist_program , path=tmp_dir) 94 with test_support.swap_attr(spawn.os, 'defpath', tmp_dir):
|
D | test_build_ext.py | 27 self.tmp_dir = self.mkdtemp() 29 sys.path.append(self.tmp_dir) 30 self.addCleanup(sys.path.remove, self.tmp_dir) 47 support.copy_xxmodule_c(self.tmp_dir) 49 xx_c = os.path.join(self.tmp_dir, 'xxmodule.c') 52 dist.package_dir = self.tmp_dir 55 cmd.build_lib = self.tmp_dir 56 cmd.build_temp = self.tmp_dir 272 tmp_dir = self.mkdtemp() 273 c_file = os.path.join(tmp_dir, 'foo.c') [all …]
|
D | test_bdist_rpm.py | 59 tmp_dir = self.mkdtemp() 60 os.environ['HOME'] = tmp_dir # to confine dir '.rpmdb' creation 61 pkg_dir = os.path.join(tmp_dir, 'foo') 103 tmp_dir = self.mkdtemp() 104 os.environ['HOME'] = tmp_dir # to confine dir '.rpmdb' creation 105 pkg_dir = os.path.join(tmp_dir, 'foo')
|
/external/tensorflow/tensorflow/python/data/kernel_tests/ |
D | list_files_test.py | 37 self.tmp_dir = tempfile.mkdtemp() 40 shutil.rmtree(self.tmp_dir, ignore_errors=True) 44 open(path.join(self.tmp_dir, filename), 'a').close() 49 dataset = dataset_ops.Dataset.list_files(path.join(self.tmp_dir, '*')) 56 dataset = dataset_ops.Dataset.list_files(path.join(self.tmp_dir, '*')) 60 compat.as_bytes(path.join(self.tmp_dir, filename)) 70 path.join(self.tmp_dir, '*'), shuffle=False) 74 compat.as_bytes(path.join(self.tmp_dir, filename)) 83 path.join(self.tmp_dir, '*'), shuffle=True, seed=37) 86 compat.as_bytes(path.join(self.tmp_dir, filename)) [all …]
|
/external/bcc/tests/python/ |
D | test_usdt3.py | 81 self.tmp_dir = tempfile.mkdtemp() 82 print("temp directory: " + self.tmp_dir) 83 _create_file(self.tmp_dir + "/common.h", common_h) 84 _create_file(self.tmp_dir + "/a.c", a_c) 85 _create_file(self.tmp_dir + "/b.c", b_c) 86 _create_file(self.tmp_dir + "/m.c", m_c) 91 a_src = self.tmp_dir + "/a.c" 92 a_obj = self.tmp_dir + "/a.o" 93 a_lib = self.tmp_dir + "/liba.so" 94 b_src = self.tmp_dir + "/b.c" [all …]
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_sdist.py | 63 os.mkdir(join(self.tmp_dir, 'somecode')) 64 os.mkdir(join(self.tmp_dir, 'dist')) 66 self.write_file((self.tmp_dir, 'README'), 'xxx') 67 self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#') 68 self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY) 69 os.chdir(self.tmp_dir) 96 os.mkdir(join(self.tmp_dir, 'somecode', '.svn')) 97 self.write_file((self.tmp_dir, 'somecode', '.svn', 'ok.py'), 'xxx') 99 os.mkdir(join(self.tmp_dir, 'somecode', '.hg')) 100 self.write_file((self.tmp_dir, 'somecode', '.hg', [all …]
|
D | test_spawn.py | 59 with test_support.temp_dir() as tmp_dir: 66 filename = os.path.join(tmp_dir, program) 72 rv = find_executable(program, path=tmp_dir) 77 rv = find_executable(program_noeext, path=tmp_dir) 81 with test_support.change_cwd(tmp_dir): 87 rv = find_executable(dont_exist_program , path=tmp_dir) 92 with mock.patch('distutils.spawn.os.defpath', tmp_dir):
|
D | test_bdist_rpm.py | 54 tmp_dir = self.mkdtemp() 55 os.environ['HOME'] = tmp_dir # to confine dir '.rpmdb' creation 56 pkg_dir = os.path.join(tmp_dir, 'foo') 98 tmp_dir = self.mkdtemp() 99 os.environ['HOME'] = tmp_dir # to confine dir '.rpmdb' creation 100 pkg_dir = os.path.join(tmp_dir, 'foo')
|
D | test_build_ext.py | 31 self.tmp_dir = self.mkdtemp() 33 sys.path.append(self.tmp_dir) 66 copy_xxmodule_c(self.tmp_dir) 67 xx_c = os.path.join(self.tmp_dir, 'xxmodule.c') 70 dist.package_dir = self.tmp_dir 73 cmd.build_lib = self.tmp_dir 74 cmd.build_temp = self.tmp_dir 313 tmp_dir = self.mkdtemp() 314 c_file = os.path.join(tmp_dir, 'foo.c') 324 cmd.build_lib = os.path.join(self.tmp_dir, 'build') [all …]
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | matching_files_test.py | 36 self.tmp_dir = tempfile.mkdtemp() 39 shutil.rmtree(self.tmp_dir, ignore_errors=True) 43 open(os.path.join(self.tmp_dir, filename), 'a').close() 48 self.tmp_dir = os.path.join(self.tmp_dir, 'nonexistingdir') 50 os.path.join(self.tmp_dir, '*')) 58 os.path.join(self.tmp_dir, '*')) 69 os.path.join(self.tmp_dir, '*')) 73 compat.as_bytes(os.path.join(self.tmp_dir, filename)) 85 os.path.join(self.tmp_dir, '*.py')) 89 compat.as_bytes(os.path.join(self.tmp_dir, filename)) [all …]
|
/external/tensorflow/tensorflow/tools/ci_build/builds/ |
D | libtensorflow.sh | 117 local tmp_dir 118 tmp_dir=$(mktemp -d) 119 cp "${src_jar}" "${tmp_dir}/orig.jar" 120 pushd "${tmp_dir}" 122 jar -xf "${tmp_dir}/orig.jar" src/ 124 (mkdir -p src/main/java && cd src/main/java && jar -xf "${tmp_dir}/orig.jar" org/) 126 jar -cMf "${tmp_dir}/new.jar" src 128 cp "${tmp_dir}/new.jar" "${dest_jar}" 129 rm -rf "${tmp_dir}"
|
/external/toolchain-utils/ |
D | verify_compiler.py | 58 def VerifyArgs(compiler, filename, tmp_dir, root_dir, options, parser): argument 81 if not os.path.exists(tmp_dir): 82 os.makedirs(tmp_dir) 85 def CheckFile(filename, compiler, tmp_dir, options, cmd_executer): argument 98 dwarf_file = os.path.join(tmp_dir, tmp_name) 179 tmp_dir = '/tmp' 180 if options.tmp_dir: 181 tmp_dir = os.path.realpath(os.path.expanduser(options.tmp_dir)) 186 VerifyArgs(compiler, filename, tmp_dir, root_dir, options, parser) 198 result = CheckFile(f, compiler, tmp_dir, options, cmd_executer)
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
D | dependency_manager_util_unittest.py | 24 self.tmp_dir = os.path.abspath(tempfile.mkdtemp(prefix='telemetry')) 25 self.sub_dir = os.path.join(self.tmp_dir, 'sub_dir') 28 self.read_only_path = (os.path.join(self.tmp_dir, 'read_only')) 33 self.writable_path = (os.path.join(self.tmp_dir, 'writable')) 38 self.executable_path = (os.path.join(self.tmp_dir, 'executable')) 58 self.AssertExpectedDirFiles(self.tmp_dir) 59 self.archive_path = self.CreateZipArchiveFromDir(self.tmp_dir) 62 if os.path.isdir(self.tmp_dir): 63 dependency_manager_util.RemoveDir(self.tmp_dir) 119 dependency_manager_util.RemoveDir(self.tmp_dir) [all …]
|
/external/skqp/infra/bots/recipe_modules/flavor/ |
D | api.py | 132 def _copy_dir(self, host_version, version_file, tmp_dir, argument 134 actual_version_file = self.m.path.join(tmp_dir, version_file) 137 self.device_dirs.tmp_dir, version_file) 157 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SK_IMAGE), 162 self.m.vars.tmp_dir, 171 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_LOTTIE), 176 self.m.vars.tmp_dir, 185 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SKP), 190 self.m.vars.tmp_dir, 199 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SVG), [all …]
|
/external/skia/infra/bots/recipe_modules/flavor/ |
D | api.py | 132 def _copy_dir(self, host_version, version_file, tmp_dir, argument 134 actual_version_file = self.m.path.join(tmp_dir, version_file) 137 self.device_dirs.tmp_dir, version_file) 157 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SK_IMAGE), 162 self.m.vars.tmp_dir, 171 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_LOTTIE), 176 self.m.vars.tmp_dir, 185 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SKP), 190 self.m.vars.tmp_dir, 199 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SVG), [all …]
|
/external/ltp/lib/tests/ |
D | tst_tmpdir_test.c | 51 char *tmp_dir; in main() local 58 tmp_dir = tst_get_tmpdir(); in main() 61 if (strcmp(tmp_dir, changed_dir) == 0 && in main() 62 strcmp(tmp_dir, start_dir) != 0) { in main() 71 if (chdir(tmp_dir) == -1 && errno == ENOENT) { in main()
|
/external/grpc-grpc/src/ruby/spec/pb/codegen/ |
D | package_option_spec.rb | 32 Dir.mktmpdir(nil, File.dirname(__FILE__)) do |tmp_dir| 36 "--grpc_out=#{tmp_dir}", # generate the service 37 "--ruby_out=#{tmp_dir}", # generate the definitions 44 $LOAD_PATH.push(tmp_dir) 49 $LOAD_PATH.delete(tmp_dir)
|
/external/lz4/tests/ |
D | test-lz4-versions.py | 58 tmp_dir = base_dir + '/' + tmp_dir_name # /path/to/lz4/tests/versionsTest variable 59 clone_dir = tmp_dir + '/' + 'lz4' # /path/to/lz4/tests/versionsTest/lz4 61 os.makedirs(tmp_dir, exist_ok=True) 67 shutil.copy2(base_dir + '/' + test_dat_src, tmp_dir + '/' + test_dat) 78 dst_lz4c = '{}/lz4c.{}' .format(tmp_dir, tag) # /path/to/lz4/test/lz4test/lz4c.<TAG> 79 dst_lz4c32 = '{}/lz4c32.{}'.format(tmp_dir, tag) # /path/to/lz4/test/lz4test/lz4c32.<TAG> 82 r_dir = '{}/{}'.format(tmp_dir, tag) # /path/to/lz4/test/lz4test/<TAG> 96 os.chdir(tmp_dir)
|
/external/autotest/site_utils/sponge_lib/ |
D | sponge_utils_functional_test.py | 72 self.tmp_dir = tempfile.mkdtemp() 73 self.resultsdir = os.path.join(self.tmp_dir, 76 with open(os.path.join(self.tmp_dir, '123-debug_user/host1', 86 shutil.rmtree(self.tmp_dir) 93 test.resultsdir = os.path.join(self.tmp_dir, 131 job.dir = os.path.join(self.tmp_dir, '123-debug_user/host1')
|
/external/autotest/client/bin/ |
D | setup_job_unittest.py | 208 tmp_dir = 'bar' 211 os.path.exists.expect_call(tmp_dir).and_return(True) 212 os.path.isdir.expect_call(tmp_dir).and_return(False) 215 self.assertRaises(ValueError, self.job.setup_dirs, results_dir, tmp_dir) 226 tmp_dir = 'bar' 229 os.path.exists.expect_call(tmp_dir).and_return(False) 230 os.mkdir.expect_call(tmp_dir) 231 os.path.isdir.expect_call(tmp_dir).and_return(True) 239 self.assertEqual(self.job.setup_dirs(None, tmp_dir), 240 (results_dir3, tmp_dir))
|
/external/autotest/site_utils/ |
D | hwid_lib_unittest.py | 24 self.tmp_dir = tempfile.mkdtemp(prefix='hwid_test') 26 self.dummy_key_file = os.path.join(self.tmp_dir, 'dummy_key') 29 self.dummy_key_file_spaces = os.path.join(self.tmp_dir, 33 self.dummy_key_file_newline = os.path.join(self.tmp_dir, 37 self.invalid_dummy_key_file = os.path.join(self.tmp_dir, 43 if os.path.exists(self.tmp_dir): 44 shutil.rmtree(self.tmp_dir)
|
/external/swiftshader/third_party/subzero/pydir/ |
D | sz_driver.py | 53 tmp_dir = '' 57 tmp_dir = tempfile.mkdtemp() 65 dest_name = os.path.join(tmp_dir, src) 86 if tmp_dir != '': 87 shutil.rmtree(tmp_dir)
|