Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
DANTLRFileStream.pm20 my $file_name = $args->{file_name};
21 if (!defined $file_name) {
28 open $fh, "<:encoding($encoding)", $file_name
29 or croak "Can't open $file_name: $!";
32 open $fh, '<', $file_name
33 or croak "Can't open $file_name: $!";
49 my ($self, $file_name, $encoding) = @_;
51 if (!defined $file_name) {
57 open $fh, "<:encoding($encoding)", $file_name
58 or croak "Can't open $file_name: $!";
[all …]
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_params.h76 bool has_java_package(const string& file_name) const { in has_java_package() argument
77 return java_packages_.find(file_name) in has_java_package()
80 void set_java_package(const string& file_name, in set_java_package() argument
82 java_packages_[file_name] = java_package; in set_java_package()
84 const string& java_package(const string& file_name) const { in java_package() argument
87 itr = java_packages_.find(file_name); in java_package()
98 bool has_java_outer_classname(const string& file_name) const { in has_java_outer_classname() argument
99 return java_outer_classnames_.find(file_name) in has_java_outer_classname()
102 void set_java_outer_classname(const string& file_name, in set_java_outer_classname() argument
104 java_outer_classnames_[file_name] = java_outer_classname; in set_java_outer_classname()
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_params.h97 bool has_java_package(const string& file_name) const { in has_java_package() argument
98 return java_packages_.find(file_name) in has_java_package()
101 void set_java_package(const string& file_name, in set_java_package() argument
103 java_packages_[file_name] = java_package; in set_java_package()
105 const string& java_package(const string& file_name) const { in java_package() argument
108 itr = java_packages_.find(file_name); in java_package()
119 bool has_java_outer_classname(const string& file_name) const { in has_java_outer_classname() argument
120 return java_outer_classnames_.find(file_name) in has_java_outer_classname()
123 void set_java_outer_classname(const string& file_name, in set_java_outer_classname() argument
125 java_outer_classnames_[file_name] = java_outer_classname; in set_java_outer_classname()
[all …]
/external/curl/src/
Dtool_doswin.c88 static const char *msdosify (const char *file_name);
89 static char *rename_if_dos_device_name (char *file_name);
101 char *sanitize_dos_name(char *file_name) in sanitize_dos_name() argument
105 if(!file_name) in sanitize_dos_name()
108 if(strlen(file_name) >= PATH_MAX) in sanitize_dos_name()
109 file_name[PATH_MAX-1] = '\0'; /* truncate it */ in sanitize_dos_name()
111 strcpy(new_name, msdosify(file_name)); in sanitize_dos_name()
113 Curl_safefree(file_name); in sanitize_dos_name()
121 static const char *msdosify (const char *file_name) in msdosify() argument
128 const char *s = file_name; in msdosify()
[all …]
/external/elfutils/libdwfl/
Ddwfl_build_id_find_elf.c37 __libdwfl_open_by_build_id (Dwfl_Module *mod, bool debug, char **file_name, in __libdwfl_open_by_build_id() argument
95 if (*file_name != NULL) in __libdwfl_open_by_build_id()
96 free (*file_name); in __libdwfl_open_by_build_id()
97 *file_name = canonicalize_file_name (name); in __libdwfl_open_by_build_id()
98 if (*file_name == NULL) in __libdwfl_open_by_build_id()
100 *file_name = name; in __libdwfl_open_by_build_id()
121 __libdwfl_open_mod_by_build_id (Dwfl_Module *mod, bool debug, char **file_name) in __libdwfl_open_mod_by_build_id() argument
132 return __libdwfl_open_by_build_id (mod, debug, file_name, id_len, id); in __libdwfl_open_mod_by_build_id()
140 char **file_name, Elf **elfp) in dwfl_build_id_find_elf() argument
155 *file_name = strdup (executable); in dwfl_build_id_find_elf()
[all …]
Doffline.c97 const char *file_name, int fd, Elf *elf);
99 const char *file_name, int fd, Elf *elf,
106 process_file (Dwfl *dwfl, const char *name, const char *file_name, int fd, in process_file() argument
118 return process_elf (dwfl, name, file_name, fd, elf); in process_file()
121 return process_archive (dwfl, name, file_name, fd, elf, predicate); in process_file()
127 process_elf (Dwfl *dwfl, const char *name, const char *file_name, int fd, in process_elf() argument
130 Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name, fd, elf, in process_elf()
160 process_archive_member (Dwfl *dwfl, const char *name, const char *file_name, in process_archive_member() argument
185 if (unlikely (asprintf (&member_name, "%s(%s)", file_name, h->ar_name) < 0)) in process_archive_member()
238 process_archive (Dwfl *dwfl, const char *name, const char *file_name, int fd, in process_archive() argument
[all …]
Dfind-debuginfo.c158 find_debuginfo_in_path (Dwfl_Module *mod, const char *file_name, in find_debuginfo_in_path() argument
164 const char *file_basename = file_name == NULL ? NULL : basename (file_name); in find_debuginfo_in_path()
210 : file_name != NULL ? stat (file_name, &main_stat) in find_debuginfo_in_path()
217 char *file_dirname = (file_basename == file_name ? NULL in find_debuginfo_in_path()
218 : strndup (file_name, file_basename - 1 - file_name)); in find_debuginfo_in_path()
219 if (file_basename != file_name && file_dirname == NULL) in find_debuginfo_in_path()
336 const char *file_name, in dwfl_standard_find_debuginfo() argument
366 int fd = find_debuginfo_in_path (mod, file_name, in dwfl_standard_find_debuginfo()
370 if (fd < 0 && errno == 0 && file_name != NULL) in dwfl_standard_find_debuginfo()
375 char *canon = canonicalize_file_name (file_name); in dwfl_standard_find_debuginfo()
[all …]
/external/compiler-rt/lib/asan/scripts/
Dsymbolize.py53 def postprocess_file_name(file_name, paths_to_cut): argument
55 file_name = re.sub(".*" + path_to_cut, "", file_name)
56 file_name = re.sub(".*asan_[a-z_]*.(cc|h):[0-9]*", "[asan_rtl]", file_name)
57 file_name = re.sub(".*crtstuff.c:0", "???:0", file_name)
58 return file_name
95 file_name = p.stdout.readline().rstrip()
98 file_name = postprocess_file_name(file_name, paths_to_cut)
99 frames.append((function_name, file_name))
Dasan_symbolize.py29 def fix_filename(file_name): argument
32 file_name = re.sub('.*' + path_to_cut, '', file_name)
33 file_name = re.sub('.*asan_[a-z_]*.cc:[0-9]*', '_asan_rtl_', file_name)
34 file_name = re.sub('.*crtstuff.c:0', '???:0', file_name)
35 return file_name
109 file_name = self.pipe.stdout.readline().rstrip()
110 file_name = fix_filename(file_name)
112 not file_name.startswith('??')):
115 file_name))
164 file_name = self.pipe.stdout.readline().rstrip()
[all …]
/external/chromium-trace/catapult/perf_insights/perf_insights/
Dgce_instance_map_job.py25 file_handle, file_name = tempfile.mkstemp()
27 cloud_storage.Copy(url, file_name)
31 os.unlink(file_name)
32 file_name = None
33 return file_name
37 file_handle, file_name = tempfile.mkstemp()
40 cloud_storage.Copy(url, file_name)
41 with open(file_name, 'r') as f:
47 os.unlink(file_name)
79 _, file_name = tempfile.mkstemp()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Drtp_file_source.cc29 RtpFileSource* RtpFileSource::Create(const std::string& file_name) { in Create() argument
31 RTC_CHECK(source->OpenFile(file_name)); in Create()
35 bool RtpFileSource::ValidRtpDump(const std::string& file_name) { in ValidRtpDump() argument
37 RtpFileReader::Create(RtpFileReader::kRtpDump, file_name)); in ValidRtpDump()
41 bool RtpFileSource::ValidPcap(const std::string& file_name) { in ValidPcap() argument
43 RtpFileReader::Create(RtpFileReader::kPcap, file_name)); in ValidPcap()
89 bool RtpFileSource::OpenFile(const std::string& file_name) { in OpenFile() argument
90 rtp_reader_.reset(RtpFileReader::Create(RtpFileReader::kRtpDump, file_name)); in OpenFile()
93 rtp_reader_.reset(RtpFileReader::Create(RtpFileReader::kPcap, file_name)); in OpenFile()
/external/fio/engines/
Dglusterfs.c111 dprint(FD_FILE, "get file size %s\n", f->file_name); in fio_gf_get_file_size()
119 ret = glfs_lstat(g->fs, f->file_name, &buf); in fio_gf_get_file_size()
155 dprint(FD_FILE, "fio file %s open mode %s td rw %s\n", f->file_name, in fio_gf_open_file()
157 g->fd = glfs_creat(g->fs, f->file_name, flags, 0644); in fio_gf_open_file()
165 if (glfs_lstat(g->fs, f->file_name, &sb) in fio_gf_open_file()
168 f->file_name, sb.st_size, f->real_file_size); in fio_gf_open_file()
172 f->file_name, f->real_file_size); in fio_gf_open_file()
194 f->file_name); in fio_gf_open_file()
228 f->file_name); in fio_gf_open_file()
229 glfs_unlink(g->fs, f->file_name); in fio_gf_open_file()
[all …]
/external/autotest/server/cros/chaos_lib/
Dchaos_analyzer.py37 for file_name in file_names:
38 if file_name.endswith('.trc'):
39 basename = os.path.basename(file_name)
42 self._traces.append(os.path.join(dir_name, file_name))
49 for file_name in file_names:
50 if file_name == self.MESSAGES_FILE_NAME:
51 self._message_log = os.path.join(root, file_name)
53 for file_name in file_names:
54 if file_name == self.NET_LOG_FILE_NAME:
55 self._net_log = os.path.join(root, file_name)
[all …]
/external/fio/
Dfilesetup.c61 dprint(FD_FILE, "layout unlink %s\n", f->file_name); in extend_file()
76 dprint(FD_FILE, "open file %s, flags %x\n", f->file_name, flags); in extend_file()
77 f->fd = open(f->file_name, flags, 0644); in extend_file()
90 f->file_name, in extend_file()
103 "file %s size %llu\n", f->file_name, in extend_file()
129 dprint(FD_FILE, "truncate file %s, size %llu\n", f->file_name, in extend_file()
174 dprint(FD_FILE, "terminate unlink %s\n", f->file_name); in extend_file()
276 if (stat(f->file_name, &st) == -1) { in file_size()
292 f->file_name); in bdev_size()
303 log_err("%s: zero sized block device?\n", f->file_name); in bdev_size()
[all …]
/external/vboot_reference/tests/
Drsa_verify_benchmark.c22 char file_name[FILE_NAME_SIZE]; in SpeedTestAlgorithm() local
37 snprintf(file_name, FILE_NAME_SIZE, "testkeys/key_rsa%d.keyb", key_size); in SpeedTestAlgorithm()
38 key = RSAPublicKeyFromFile(file_name); in SpeedTestAlgorithm()
40 VBDEBUG(("Couldn't read RSA Public key from file: %s\n", file_name)); in SpeedTestAlgorithm()
46 snprintf(file_name, FILE_NAME_SIZE, "testcases/test_file.%s.digest", in SpeedTestAlgorithm()
48 digest = BufferFromFile(file_name, &digest_len); in SpeedTestAlgorithm()
56 snprintf(file_name, FILE_NAME_SIZE, "testcases/test_file.rsa%d_%s.sig", in SpeedTestAlgorithm()
58 signature = BufferFromFile(file_name, &sig_len); in SpeedTestAlgorithm()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/bin/
Dsdbadmin54 def dump_db(domain, file_name, use_json=False, sort_attributes=False): argument
58 f = open(file_name, "w")
177 if options.file_name:
178 file_name = options.file_name variable
180 file_name = "%s.db" % domain.name variable
181 dump_db(domain, file_name, options.json, options.sort_attributes)
186 if options.file_name:
187 file_name = options.file_name variable
189 file_name = "%s.db" % domain.name variable
190 load_db(domain, open(file_name, "rb"), options.json)
/external/webrtc/webrtc/tools/barcode_tools/
Dbarcode_encoder.py86 def _convert_to_yuv_and_delete(output_directory, file_name, pattern): argument
98 if not pattern in file_name:
100 pattern_position = file_name.rfind(pattern)
103 yuv_file_name = file_name[pattern_position:-3] + 'yuv'
106 command = ['ffmpeg', '-i', '%s' % (file_name), '-pix_fmt', 'yuv420p',
111 file_name))
112 os.remove(file_name)
140 def _add_to_file_and_delete(output_file, file_name): argument
150 input_file = open(file_name, "rb")
155 os.remove(file_name)
[all …]
/external/autotest/client/cros/cellular/wardmodem/state_machines/
D__init__.py4 for file_name in os.listdir(os.path.dirname(__file__)):
5 if (file_name.endswith('.py') and
6 file_name not in ['common.py', '__init__.py'] and
7 file_name.find('unittest') == -1):
8 module_name = file_name.rstrip('.py')
/external/chromium-trace/catapult/telemetry/third_party/altgraph/altgraph/
DDot.py263 def save_dot(self, file_name=None): argument
268 if not file_name:
270 file_name = self.temp_dot
272 fp = open(file_name, "w")
279 def save_img(self, file_name=None, file_type="gif", mode='dot'): argument
284 if not file_name:
286 file_name = "out"
297 file_name = "%s.%s" % (file_name, file_type)
298 create_cmd = "%s -T%s %s -o %s" % (plot_cmd, file_type, self.temp_dot, file_name)
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_list.py13 def GetPersistentDeviceList(file_name): argument
21 with open(file_name) as f:
25 def WritePersistentDeviceList(file_name, device_list): argument
26 path = os.path.dirname(file_name)
29 with open(file_name, 'w') as f:
/external/v8/test/mjsunit/
Dmirror-script.js31 function testScriptMirror(f, file_name, file_lines, type, compilation_type, argument
48 assertEquals(file_name, name.substring(name.length - file_name.length));
50 assertTrue(file_name === null);
71 assertEquals(file_name, name.substring(name.length - file_name.length));
73 assertTrue(file_name === null);
/external/autotest/utils/
Dunittest_suite.py175 for file_name in file_names:
176 if file_name.endswith('.pyc'):
177 os.unlink(os.path.join(dir_path, file_name))
185 for file_name in file_names:
186 if (file_name.endswith('_unittest.py') or
187 file_name.endswith('_test.py')):
188 file_path = os.path.join(dir_path, file_name)
190 (file_name in LONG_TESTS or
193 if (file_name in skip_tests or
196 path_no_py = os.path.join(dir_path, file_name).rstrip('.py')
/external/bison/src/
Dfiles.c204 file_name_split (const char *file_name, in file_name_split() argument
207 *base = last_component (file_name); in file_name_split()
347 output_file_name_check (char **file_name) in output_file_name_check() argument
350 if (0 == strcmp (*file_name, grammar_file)) in output_file_name_check()
353 quote (*file_name)); in output_file_name_check()
360 if (0 == strcmp (file_names[i], *file_name)) in output_file_name_check()
363 quote (*file_name)); in output_file_name_check()
369 free (*file_name); in output_file_name_check()
370 *file_name = strdup ("/dev/null"); in output_file_name_check()
376 file_names[file_names_count-1] = xstrdup (*file_name); in output_file_name_check()
/external/e2fsprogs/intl/
Dlocalcharset.c121 char *file_name; in get_charset_aliases() local
128 file_name = (char *) malloc (dir_len + add_slash + base_len + 1); in get_charset_aliases()
129 if (file_name != NULL) in get_charset_aliases()
131 memcpy (file_name, dir, dir_len); in get_charset_aliases()
133 file_name[dir_len] = DIRECTORY_SEPARATOR; in get_charset_aliases()
134 memcpy (file_name + dir_len + add_slash, base, base_len + 1); in get_charset_aliases()
138 if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) in get_charset_aliases()
202 free (file_name); in get_charset_aliases()
/external/blktrace/btreplay/
Dbtrecord.c56 char *devnm, *file_name; member
92 char *file_name, *vfn; member
231 stream->file_name, in write_file_hdr()
240 fatal(stream->file_name, ERR_SYSCALL, "Hdr write failed\n"); in write_file_hdr()
296 free(iip->file_name); in rem_input_file()
307 static void __add_input_file(int cpu, char *devnm, char *file_name) in __add_input_file() argument
315 iip->file_name = strdup(file_name); in __add_input_file()
316 iip->ifd = open(file_name, O_RDONLY); in __add_input_file()
318 fatal(file_name, ERR_ARGS, "Unable to open\n"); in __add_input_file()
496 fatal(iip->file_name, ERR_SYSCALL, "Read failed\n"); in next_io()
[all …]

12345678910>>...18