Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/external/tensorflow/tensorflow/python/lib/io/
Dfile_io_test.py44 file_path = os.path.join(self._base_dir, "temp_file")
45 self.assertFalse(file_io.file_exists(file_path))
47 _ = file_io.read_file_to_string(file_path)
50 file_path = os.path.join(self._base_dir, "temp_file")
51 file_io.write_string_to_file(file_path, "testing")
52 self.assertTrue(file_io.file_exists(file_path))
53 file_contents = file_io.read_file_to_string(file_path)
57 file_path = os.path.join(self._base_dir, "temp_file")
58 file_io.atomic_write_string_to_file(file_path, "testing")
59 self.assertTrue(file_io.file_exists(file_path))
[all …]
/external/tensorflow/tensorflow/python/debug/lib/
Dsource_utils.py38 def _norm_abs_path(file_path): argument
39 return os.path.normpath(os.path.abspath(file_path))
42 def is_extension_uncompiled_python_source(file_path): argument
43 _, extension = os.path.splitext(file_path)
47 def is_extension_compiled_python_source(file_path): argument
48 _, extension = os.path.splitext(file_path)
133 for file_path, line_number, _, _ in reversed(dump.node_traceback(op.name)):
138 if _norm_abs_path(file_path) != source_file_path:
214 for file_path, line_number, _, _ in dump.node_traceback(op.name):
215 file_path = _norm_abs_path(file_path)
[all …]
Dsource_remote.py35 def _load_debugged_source_file(file_path, source_file_proto): argument
36 file_stat = gfile.Stat(file_path)
38 source_file_proto.file_path = file_path
42 with gfile.Open(file_path, "r") as f:
65 file_path, lineno, func_name, line_text = frame
67 file_id=_string_to_id(file_path, string_to_id),
165 for file_path in source_file_paths:
168 file_path, source_files.source_files.add())
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dcloud_storage_unittest.py175 file_path = os.path.join(dir_path, 'file1')
176 file_path_sha = file_path + '.sha1'
179 os.remove(file_path + '.fetchts')
181 self.CreateFiles([file_path, file_path_sha])
187 cloud_storage.Get('bucket', 'foo', file_path)
189 cloud_storage.GetIfChanged(file_path, 'foo')
191 cloud_storage.GetIfHashChanged('bar', file_path, 'bucket', 'hash1234')
193 cloud_storage.Insert('bucket', 'foo', file_path)
217 file_path = 'test-file-path.wpr'
221 self.assertFalse(cloud_storage.GetIfChanged(file_path,
[all …]
/external/libchrome/base/files/
Dfile_unittest.cc24 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST() local
39 File file(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ); in TEST()
47 File file(file_path, base::File::FLAG_OPEN_ALWAYS | base::File::FLAG_READ); in TEST()
55 File file(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ); in TEST()
68 file.Initialize(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ); in TEST()
80 File file(file_path, base::File::FLAG_CREATE | base::File::FLAG_READ); in TEST()
89 File file(file_path, in TEST()
98 file_path = temp_dir.GetPath().AppendASCII("create_file_2"); in TEST()
99 File file(file_path, in TEST()
107 EXPECT_FALSE(base::PathExists(file_path)); in TEST()
[all …]
/external/skqp/tools/
Dsanitize_source_files.py85 def TrailingWhitespaceRemover(line, file_path, line_number): argument
89 print 'Removing trailing whitespace in %s:%s' % (file_path, line_number)
93 def CrlfReplacer(line, file_path, line_number): argument
96 print 'Replacing CRLF with LF in %s:%s' % (file_path, line_number)
100 def TabReplacer(line, file_path, line_number): argument
103 print 'Replacing Tab with whitespace in %s:%s' % (file_path, line_number)
117 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path): argument
122 print 'Added exactly one newline to %s' % file_path
126 def SvnEOLChecker(file_content, file_path): argument
129 'svn propget svn:eol-style %s' % file_path)
[all …]
/external/skia/tools/
Dsanitize_source_files.py85 def TrailingWhitespaceRemover(line, file_path, line_number): argument
89 print 'Removing trailing whitespace in %s:%s' % (file_path, line_number)
93 def CrlfReplacer(line, file_path, line_number): argument
96 print 'Replacing CRLF with LF in %s:%s' % (file_path, line_number)
100 def TabReplacer(line, file_path, line_number): argument
103 print 'Replacing Tab with whitespace in %s:%s' % (file_path, line_number)
117 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path): argument
122 print 'Added exactly one newline to %s' % file_path
126 def SvnEOLChecker(file_content, file_path): argument
129 'svn propget svn:eol-style %s' % file_path)
[all …]
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Dbase_config_unittest.py60 self.file_path = os.path.abspath(os.path.join(
159 config = dependency_manager.BaseConfig(self.file_path, writable=True)
162 for line in file_module(self.file_path):
164 self.fs.CloseOpenFile(file_module(self.file_path))
166 self.assertEqual(self.file_path, config._config_path)
170 dependency_manager.BaseConfig, self.file_path)
201 self.assertFalse(os.path.exists(self.file_path))
202 dependency_manager.BaseConfig._WriteConfigToFile(self.file_path)
203 self.assertTrue(os.path.exists(self.file_path))
205 for line in file_module(self.file_path):
[all …]
Dbase_config.py74 def __init__(self, file_path, writable=False): argument
94 self._config_path = file_path
101 raise exceptions.EmptyConfigError(file_path)
105 with open(file_path, 'r') as f:
108 raise exceptions.EmptyConfigError(file_path)
113 '%s' % (config_type, self.GetConfigType(), file_path))
386 def _FormatPath(cls, file_path): argument
392 if not file_path:
393 return file_path
395 return file_path.replace('\\', os.path.sep)
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/docker/scripts/llvm_checksum/
Dllvm_checksum.py86 def read_and_collapse_svn_subsitutions(file_path): argument
87 with open(file_path, "rb") as f:
91 logging.debug("Replaced svn keyword substitutions in %s", file_path)
106 def add_file_hash(file_path): argument
107 if os.path.islink(file_path) and not os.path.exists(file_path):
108 content = os.readlink(file_path)
110 content = read_and_collapse_svn_subsitutions(file_path)
114 logging.debug("Checksum %s for file %s", file_digest, file_path)
115 files.append((file_path, file_digest))
123 for file_path, file_digest in files:
[all …]
/external/autotest/client/cros/multimedia/
Daudio_facade_native.py194 def playback(self, file_path, data_format, blocking=False): argument
213 file_path, data_format)
220 self._player.start(file_path, blocking)
269 if file_contains_all_zeros(self._recorder.file_path):
273 return self._recorder.file_path
315 if file_contains_all_zeros(self._listener.file_path):
319 return self._listener.file_path
376 def dump_diagnostics(self, file_path): argument
384 with open(file_path, 'w') as f:
438 _, file_path = tempfile.mkstemp(prefix='capture_', suffix='.amr-nb')
[all …]
/external/tensorflow/tensorflow/python/tools/api/generator/
Doutput_init_files_test.py97 file_path.strip().strip('"') for file_path in contents.split(',')]
98 return set(file_path for file_path in file_paths if file_path)
161 file_path = (
164 file_path, '# BEGIN GENERATED FILES', '# END GENERATED FILES')
168 paths, module_paths, file_to_update_on_error=file_path)
173 file_path = (
177 file_path, '# BEGIN GENERATED FILES', '# END GENERATED FILES')
181 paths, module_paths, file_to_update_on_error=file_path)
/external/adhd/cras/src/common/
Dcras_file_wait.c26 const char *file_path; member
116 if (strcmp(file_wait->watch_path, file_wait->file_path) == 0) { in cras_file_wait_process_event()
186 strcpy(file_wait->watch_dir, file_wait->file_path); in cras_file_wait_dispatch()
250 if (strcmp(file_wait->watch_path, file_wait->file_path) == 0) { in cras_file_wait_dispatch()
262 strcpy(file_wait->watch_dir, file_wait->file_path); in cras_file_wait_dispatch()
270 int cras_file_wait_create(const char *file_path, in cras_file_wait_create() argument
280 if (!file_path || !*file_path || !callback || !file_wait_out) in cras_file_wait_create()
285 file_path_len = strlen(file_path); in cras_file_wait_create()
300 file_wait->file_path = (const char *)file_wait + sizeof(*file_wait); in cras_file_wait_create()
301 file_wait->watch_path = (char *)file_wait->file_path + in cras_file_wait_create()
[all …]
/external/u-boot/lib/efi_loader/
Defi_bootmgr.c49 struct efi_device_path *file_path; member
65 lo->file_path = ptr; in parse_load_option()
101 struct efi_device_path **file_path) in try_load_entry() argument
124 __func__, lo.label, lo.file_path); in try_load_entry()
126 ret = efi_load_image_from_path(lo.file_path, &image); in try_load_entry()
132 efi_dp_split_file_path(lo.file_path, device_path, file_path); in try_load_entry()
147 struct efi_device_path **file_path) in efi_bootmgr_load() argument
166 image = try_load_entry(bootorder[i], device_path, file_path); in efi_bootmgr_load()
/external/autotest/utils/
Drun_pylint.py203 def should_check_file(file_path): argument
210 file_path = os.path.abspath(file_path)
211 if file_path.endswith('.py'):
212 return all(not fnmatch.fnmatch(file_path, '*' + pattern)
217 def check_file(file_path, base_opts): argument
226 if not isinstance(file_path, basestring):
228 type(file_path))
230 if should_check_file(file_path):
231 pylint_runner = pylint.lint.Run(base_opts + [file_path], exit=False)
350 temp_files = [os.path.join(tempdir.name, file_path.split('/')[-1:][0])
[all …]
/external/v8/gypfiles/
Dgyp_environment.py19 def apply_gyp_environment(file_path=None): argument
23 if not file_path or not os.path.exists(file_path):
25 file_contents = open(file_path).read()
29 e.filename = os.path.abspath(file_path)
42 var, os.path.abspath(file_path)
/external/adhd/cras/src/tests/
Dfile_wait_unittest.cc51 static void SimpleFileWait(const char *file_path) { in SimpleFileWait() argument
59 stat_rc = stat(file_path, &stat_buf); in SimpleFileWait()
64 EXPECT_EQ(0, cras_file_wait_create(file_path, CRAS_FILE_WAIT_FLAG_NONE, in SimpleFileWait()
79 EXPECT_EQ(0, RmRF(file_path)); in SimpleFileWait()
81 EXPECT_EQ(0, mknod(file_path, S_IFREG | 0600, 0)); in SimpleFileWait()
106 std::string file_path; in TEST() local
111 file_path = subdir_path + "/does_not_exist"; in TEST()
148 EXPECT_EQ(0, cras_file_wait_create(file_path.c_str(), in TEST()
189 EXPECT_EQ(0, mknod(file_path.c_str(), S_IFREG | 0600, 0)); in TEST()
200 EXPECT_EQ(0, unlink(file_path.c_str())); in TEST()
[all …]
/external/tensorflow/tensorflow/examples/speech_commands/
Dinput_data_test.py52 file_path = os.path.join(dir_name, "some_audio_%d.wav" % i)
53 self._saveTestWavFile(file_path, wav_data)
75 file_path = os.path.join(background_dir, "background_audio_%d.wav" % i)
76 self._saveTestWavFile(file_path, wav_data)
137 file_path = os.path.join(background_dir, "background_audio_%d.wav" % i)
138 self._saveTestWavFile(file_path, wav_data)
147 file_path = os.path.join(tmp_dir, "load_test.wav")
149 self._saveTestWavFile(file_path, wav_data)
150 sample_data = input_data.load_wav_file(file_path)
155 file_path = os.path.join(tmp_dir, "load_test.wav")
[all …]
/external/perfetto/tools/trace_to_text/
Dmain.cc57 const char* file_path = argv[2]; in main() local
58 file_istream.open(file_path, std::ios_base::in | std::ios_base::binary); in main()
60 PERFETTO_FATAL("Could not open %s", file_path); in main()
75 const char* file_path = argv[3]; in main() local
76 file_ostream.open(file_path, std::ios_base::out | std::ios_base::trunc); in main()
78 PERFETTO_FATAL("Could not open %s", file_path); in main()
/external/libxcam/xcore/
Dcalibration_parser.cpp190 CalibrationParser::parse_intrinsic_file(const char *file_path, IntrinsicParameter &intrinsic_param) in parse_intrinsic_file() argument
192 XCAM_ASSERT (file_path); in parse_intrinsic_file()
200 WARNING, xcam_ret_is_ok (ret = file_reader.open (file_path, "r")), ret, in parse_intrinsic_file()
201 "open intrinsic file(%s) failed.", file_path); in parse_intrinsic_file()
204 "read intrinsic file(%s) failed to get file size.", file_path); in parse_intrinsic_file()
208 "read intrinsic file(%s) failed, file size:%d.", file_path, (int)file_size); in parse_intrinsic_file()
216 CalibrationParser::parse_extrinsic_file(const char *file_path, ExtrinsicParameter &extrinsic_param) in parse_extrinsic_file() argument
218 XCAM_ASSERT (file_path); in parse_extrinsic_file()
226 WARNING, xcam_ret_is_ok (ret = file_reader.open (file_path, "r")), ret, in parse_extrinsic_file()
227 "open extrinsic file(%s) failed.", file_path); in parse_extrinsic_file()
[all …]
/external/autotest/client/common_lib/cros/
Dsmbprovider.py233 def open_file(self, mount_id, file_path, writeable): argument
245 logging.info("Opening file: %s", file_path)
251 proto.file_path = file_path
316 def create_file(self, mount_id, file_path): argument
327 logging.info("Creating file: %s", file_path)
333 proto.file_path = file_path
391 def truncate(self, mount_id, file_path, length): argument
403 logging.info("Truncating file: %s", file_path)
409 proto.file_path = file_path
/external/skia/infra/bots/
Dutils.py135 file_path = os.path.join(*path)
136 if not os.path.exists(file_path):
141 file_path = os.path.normcase(file_path)
144 ['cmd.exe', '/c', 'rd', '/q', '/s', file_path]))
145 if not subprocess.call(['cmd.exe', '/c', 'rd', '/q', '/s', file_path]):
191 for root, dirs, files in os.walk(file_path, topdown=False):
201 remove_with_retry(os.rmdir, file_path)
/external/skqp/infra/bots/
Dutils.py135 file_path = os.path.join(*path)
136 if not os.path.exists(file_path):
141 file_path = os.path.normcase(file_path)
144 ['cmd.exe', '/c', 'rd', '/q', '/s', file_path]))
145 if not subprocess.call(['cmd.exe', '/c', 'rd', '/q', '/s', file_path]):
191 for root, dirs, files in os.walk(file_path, topdown=False):
201 remove_with_retry(os.rmdir, file_path)
/external/owasp/sanitizer/tools/
Dgooglecode_upload.py110 def encode_upload_request(fields, file_path): argument
134 file_name = os.path.basename(file_path)
135 f = open(file_path, 'rb')
155 def upload_find_auth(file_path, project_name, summary, labels=None, argument
194 status, reason, url = upload(file_path, project_name, user_name, password,
235 file_path = args[0]
242 status, reason, url = upload_find_auth(file_path, options.project,
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py35 EXTENSIONS.file_path = None
43 file_path = os.path.join(path, filename)
44 if os.path.exists(file_path):
48 EXTENSIONS.file_path = file_path
356 file_path = temp_dir
358 file_path = os.path.join(file_path, directory)
359 if not os.path.exists(file_path):
360 os.mkdir(file_path)
361 created_paths.append(file_path)
362 file_path = os.path.join(file_path, name_parts[-1] + '.py')
[all …]

12345678910>>...12