Home
last modified time | relevance | path

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

12345678910>>...20

/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/toolchain-utils/user_activity_benchmarks/
Dutils.py37 def MakeCWPAndPprofFileNamesConsistent(file_name): argument
50 file_name = file_name.replace(', ', '; ')
52 file_name = file_name.replace(replacing_pair_string[0],
55 return file_name
93 function_name, file_name = \
95 file_name = \
96 MakeCWPAndPprofFileNamesConsistent(os.path.normpath("/" + file_name))
97 return ','.join([function_name, file_name])
194 def ParsePprofTopOutput(file_name): argument
211 with open(file_name) as input_file:
[all …]
/external/pdfium/core/fpdfdoc/
Dcpdf_filespec_unittest.cpp73 CFX_WideString file_name; in TEST() local
74 EXPECT_TRUE(file_spec.GetFileName(&file_name)); in TEST()
75 EXPECT_TRUE(file_name == test_data.expected); in TEST()
104 CFX_WideString file_name; in TEST() local
107 EXPECT_TRUE(file_spec.GetFileName(&file_name)); in TEST()
108 EXPECT_TRUE(file_name == test_data[i].expected); in TEST()
113 EXPECT_TRUE(file_spec.GetFileName(&file_name)); in TEST()
115 EXPECT_TRUE(file_name == test_data[4].input); in TEST()
121 CFX_WideString file_name; in TEST() local
122 EXPECT_FALSE(file_spec.GetFileName(&file_name)); in TEST()
[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/libtextclassifier/util/base/
Dlogging.cc32 const char *JumpToBasename(const char *file_name) { in JumpToBasename() argument
33 if (file_name == nullptr) { in JumpToBasename()
38 const char *last_token_start = file_name; in JumpToBasename()
39 while (*file_name != '\0') { in JumpToBasename()
40 if (*file_name == '/') { in JumpToBasename()
45 last_token_start = file_name + 1; in JumpToBasename()
47 file_name++; in JumpToBasename()
53 LogMessage::LogMessage(LogSeverity severity, const char *file_name, in LogMessage() argument
56 stream_ << JumpToBasename(file_name) << ":" << line_number << ": "; in LogMessage()
/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/curl/src/
Dtool_doswin.c92 static SANITIZEcode msdosify(char **const sanitized, const char *file_name,
96 const char *file_name,
135 SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name, in sanitize_file_name() argument
148 if(!file_name) in sanitize_file_name()
153 if(file_name[0] == '\\' && file_name[1] == '\\') in sanitize_file_name()
166 len = strlen(file_name); in sanitize_file_name()
169 truncate_dryrun(file_name, max_sanitized_len)) in sanitize_file_name()
179 strncpy(target, file_name, len); in sanitize_file_name()
335 SANITIZEcode msdosify(char **const sanitized, const char *file_name, in msdosify() argument
343 const char *s = file_name; in msdosify()
[all …]
/external/compiler-rt/lib/asan/scripts/
Dsymbolize.py35 def postprocess_file_name(file_name, paths_to_cut): argument
37 file_name = re.sub(".*" + path_to_cut, "", file_name)
38 file_name = re.sub(".*asan_[a-z_]*.(cc|h):[0-9]*", "[asan_rtl]", file_name)
39 file_name = re.sub(".*crtstuff.c:0", "???:0", file_name)
40 return file_name
76 file_name = p.stdout.readline().rstrip()
79 file_name = postprocess_file_name(file_name, paths_to_cut)
80 frames.append((function_name, file_name))
/external/libmojo/third_party/catapult/devil/devil/android/
Ddevice_list.py12 def GetPersistentDeviceList(file_name): argument
20 if not os.path.isfile(file_name):
21 logging.warning('Device file %s doesn\'t exist.', file_name)
25 with open(file_name) as f:
34 'Error reading device file %s. Falling back to old format.', file_name)
37 with open(file_name) as f:
41 def WritePersistentDeviceList(file_name, device_list): argument
42 path = os.path.dirname(file_name)
49 with open(file_name, 'w') as f:
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_list.py14 def GetPersistentDeviceList(file_name): argument
22 if not os.path.isfile(file_name):
23 logger.warning("Device file %s doesn't exist.", file_name)
27 with open(file_name) as f:
36 'Error reading device file %s. Falling back to old format.', file_name)
39 with open(file_name) as f:
43 def WritePersistentDeviceList(file_name, device_list): argument
44 path = os.path.dirname(file_name)
51 with open(file_name, 'w') as f:
/external/ltp/testcases/kernel/fs/fs_perms/
Dfs_perms.c68 static void testsetup(const char *file_name, int flag, mode_t mode, in testsetup() argument
73 file = fopen(file_name, "w"); in testsetup()
77 "Could not create test file %s.", file_name); in testsetup()
94 if (chmod(file_name, mode)) in testsetup()
96 "Could not chmod test file %s.", file_name); in testsetup()
98 if (chown(file_name, user_id, group_id)) in testsetup()
100 "Could not chown test file %s.", file_name); in testsetup()
106 static int testfperm(const char *file_name, int flag, int user_id, in testfperm() argument
130 execl(file_name, file_name, NULL); in testfperm()
132 execlp(file_name, "test", NULL); in testfperm()
[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/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/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/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/protobuf/src/google/protobuf/
Dsource_context.pb.cc200 this->file_name().data(), this->file_name().length(), in MergePartialFromCodedStream()
235 if (this->file_name().size() > 0) { in SerializeWithCachedSizes()
237 this->file_name().data(), this->file_name().length(), in SerializeWithCachedSizes()
241 1, this->file_name(), output); in SerializeWithCachedSizes()
251 if (this->file_name().size() > 0) { in SerializeWithCachedSizesToArray()
253 this->file_name().data(), this->file_name().length(), in SerializeWithCachedSizesToArray()
258 1, this->file_name(), target); in SerializeWithCachedSizesToArray()
270 if (this->file_name().size() > 0) { in ByteSize()
273 this->file_name()); in ByteSize()
300 if (from.file_name().size() > 0) { in MergeFrom()
[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/ltp/testcases/kernel/syscalls/chown/
Dchown02.c122 char *file_name; /* ptr. for test file name */ in main() local
134 file_name = test_cases[i].pathname; in main()
143 TEST(CHOWN(cleanup, file_name, user_id, group_id)); in main()
147 "chown(%s, ..) failed", file_name); in main()
154 if (stat(file_name, &stat_buf) < 0) { in main()
157 file_name, TEST_ERRNO); in main()
168 "%d", file_name, in main()
182 "%#o", file_name, NEW_PERMS1, in main()
189 "%#o", file_name, in main()
194 file_name); in main()
/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/autotest/utils/
Dunittest_suite.py174 for file_name in file_names:
175 if file_name.endswith('.pyc'):
176 os.unlink(os.path.join(dir_path, file_name))
184 for file_name in file_names:
185 if (file_name.endswith('_unittest.py') or
186 file_name.endswith('_test.py')):
187 file_path = os.path.join(dir_path, file_name)
189 (file_name in LONG_TESTS or
192 if (file_name in skip_tests or
195 path_no_py = os.path.join(dir_path, 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)

12345678910>>...20