Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 2302) sorted by relevance

12345678910>>...93

/external/libnfc-nci/halimpl/bcm2079x/adaptation/
DNonVolatileStore.cpp66 char filename[256]; in nfc_hal_nv_co_read() local
74 snprintf (filename, sizeof(filename), "%s%u", fn.c_str(), block); in nfc_hal_nv_co_read()
76 ALOGD ("%s: buffer len=%u; file=%s", __FUNCTION__, nbytes, filename); in nfc_hal_nv_co_read()
77 int fileStream = open (filename, O_RDONLY); in nfc_hal_nv_co_read()
124 char filename[256]; in nfc_hal_nv_co_write() local
133 snprintf (filename, sizeof(filename), "%s%u", fn.c_str(), block); in nfc_hal_nv_co_write()
134 ALOGD ("%s: bytes=%u; file=%s", __FUNCTION__, nbytes, filename); in nfc_hal_nv_co_write()
136 fileStream = open (filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in nfc_hal_nv_co_write()
199 char filename[256]; in delete_hal_non_volatile_store() local
215 snprintf (filename, sizeof(filename), "%s%u", fn.c_str(), DH_NV_BLOCK); in delete_hal_non_volatile_store()
[all …]
/external/libnfc-nci/src/adaptation/
Dlibmain.c89 char filename[256], filename2[256]; in nfa_nv_co_read() local
91 memset (filename, 0, sizeof(filename)); in nfa_nv_co_read()
100 sprintf (filename, "%s%u", filename2, block); in nfa_nv_co_read()
102 ALOGD ("%s: buffer len=%u; file=%s", __FUNCTION__, nbytes, filename); in nfa_nv_co_read()
103 int fileStream = open (filename, O_RDONLY); in nfa_nv_co_read()
148 char filename[256], filename2[256]; in nfa_nv_co_write() local
150 memset (filename, 0, sizeof(filename)); in nfa_nv_co_write()
159 sprintf (filename, "%s%u", filename2, block); in nfa_nv_co_write()
160 ALOGD ("%s: bytes=%u; file=%s", __FUNCTION__, nbytes, filename); in nfa_nv_co_write()
164 fileStream = open (filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in nfa_nv_co_write()
[all …]
/external/skia/tests/
DPathOpsSimplifyTest.cpp11 static void testLine1(skiatest::Reporter* reporter, const char* filename) { in testLine1() argument
17 testSimplify(reporter, path, filename); in testLine1()
20 static void testLine1x(skiatest::Reporter* reporter, const char* filename) { in testLine1x() argument
27 testSimplify(reporter, path, filename); in testLine1x()
58 static void testLine2(skiatest::Reporter* reporter, const char* filename) { in testLine2() argument
62 testSimplify(reporter, path, filename); in testLine2()
65 static void testLine2x(skiatest::Reporter* reporter, const char* filename) { in testLine2x() argument
70 testSimplify(reporter, path, filename); in testLine2x()
73 static void testLine3(skiatest::Reporter* reporter, const char* filename) { in testLine3() argument
77 testSimplify(reporter, path, filename); in testLine3()
[all …]
DPathOpsOpTest.cpp32 static void cubicOp1d(skiatest::Reporter* reporter, const char* filename) { in cubicOp1d() argument
42 testPathOp(reporter, path, pathB, kDifference_SkPathOp, filename); in cubicOp1d()
45 static void cubicOp2d(skiatest::Reporter* reporter, const char* filename) { in cubicOp2d() argument
55 testPathOp(reporter, path, pathB, kDifference_SkPathOp, filename); in cubicOp2d()
58 static void cubicOp3d(skiatest::Reporter* reporter, const char* filename) { in cubicOp3d() argument
68 testPathOp(reporter, path, pathB, kDifference_SkPathOp, filename); in cubicOp3d()
71 static void cubicOp5d(skiatest::Reporter* reporter, const char* filename) { in cubicOp5d() argument
81 testPathOp(reporter, path, pathB, kDifference_SkPathOp, filename); in cubicOp5d()
84 static void cubicOp6d(skiatest::Reporter* reporter, const char* filename) { in cubicOp6d() argument
94 testPathOp(reporter, path, pathB, kDifference_SkPathOp, filename); in cubicOp6d()
[all …]
DOSPathTest.cpp23 SkString filename) { in test_dir_with_file() argument
25 SkASSERT(!filename.contains(SkPATH_SEPARATOR)); in test_dir_with_file()
30 SkString fullName = SkOSPath::Join(dir.c_str(), filename.c_str()); in test_dir_with_file()
34 size_t expectedSize = dir.size() + filename.size(); in test_dir_with_file()
44 REPORTER_ASSERT(reporter, basename.equals(filename)); in test_dir_with_file()
61 basename = SkOSPath::Basename(filename.c_str()); in test_dir_with_file()
62 REPORTER_ASSERT(reporter, basename.equals(filename)); in test_dir_with_file()
67 SkString filename("file"); in DEF_TEST() local
68 test_dir_with_file(reporter, dir, filename); in DEF_TEST()
72 test_dir_with_file(reporter, dir, filename); in DEF_TEST()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/lang/
Dwpa_gui_de.ts7 <location filename="../addinterface.cpp" line="38"/>
12 <location filename="../addinterface.cpp" line="47"/>
17 <location filename="../addinterface.cpp" line="48"/>
22 <location filename="../addinterface.cpp" line="49"/>
27 <location filename="../addinterface.cpp" line="221"/>
32 <location filename="../addinterface.cpp" line="229"/>
37 <location filename="../addinterface.cpp" line="238"/>
45 <location filename="../wpagui.cpp" line="1621"/>
53 <location filename="../eventhistory.ui" line="13"/>
58 <location filename="../eventhistory.ui" line="48"/>
[all …]
/external/doclava/src/com/google/doclava/
DDocFile.java30 public static String readFile(String filename) { in readFile() argument
32 File f = new File(filename); in readFile()
57 public static String getPathRoot(String filename) { in getPathRoot() argument
61 int langStart = filename.indexOf("/" + t + "/"); in getPathRoot()
63 int langEnd = filename.indexOf("/", langStart + 1); in getPathRoot()
64 filename = filename.substring(langEnd + 1); in getPathRoot()
68 return filename; in getPathRoot()
182 String filename = outfile; in writePage() local
185 filename = getPathRoot(filename); in writePage()
186 if (filename.indexOf("design") == 0) { in writePage()
[all …]
/external/compiler-rt/lib/sanitizer_common/scripts/
Dcpplint.py360 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
385 error(filename, linenum, 'readability/nolint', 5,
700 def Check(self, error, filename, linenum): argument
719 error(filename, linenum, 'readability/fn_size', error_level,
742 def __init__(self, filename): argument
743 self._filename = filename
852 def Error(filename, linenum, category, confidence, message): argument
878 filename, linenum, message, category, confidence))
881 filename, linenum, message, category, confidence))
884 filename, linenum, message, category, confidence))
[all …]
/external/libvpx/libvpx/tools/
Dcpplint.py455 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
480 error(filename, linenum, 'readability/nolint', 5,
825 def Check(self, error, filename, linenum): argument
844 error(filename, linenum, 'readability/fn_size', error_level,
867 def __init__(self, filename): argument
868 self._filename = filename
977 def Error(filename, linenum, category, confidence, message): argument
1003 filename, linenum, message, category, confidence))
1006 filename, linenum, message, category, confidence))
1009 filename, linenum, message, category, confidence))
[all …]
/external/ppp/pppd/plugins/radius/
Dconfig.c53 static int set_option_str(char *filename, int line, OPTION *option, char *p) in set_option_str() argument
63 static int set_option_int(char *filename, int line, OPTION *option, char *p) in set_option_int() argument
68 error("%s: line %d: bogus option value", filename, line); in set_option_int()
83 static int set_option_srv(char *filename, int line, OPTION *option, char *p) in set_option_srv() argument
91 error("%s: line %d: bogus option value", filename, line); in set_option_srv()
120 error("%s: line %d: no default port for %s", filename, line, option->name); in set_option_srv()
133 static int set_option_auo(char *filename, int line, OPTION *option, char *p) in set_option_auo() argument
138 warn("%s: line %d: bogus option value", filename, line); in set_option_auo()
155 error("%s: auth_order: unknown keyword: %s", filename, p); in set_option_auo()
167 error("%s: auth_order: unknown or unexpected keyword: %s", filename, p); in set_option_auo()
[all …]
/external/chromium-trace/trace-viewer/third_party/Paste/paste/
Dreloader.py102 filename = module.__file__
105 if filename is not None:
106 filenames.append(filename)
107 for filename in filenames:
109 stat = os.stat(filename)
116 if filename.endswith('.pyc') and os.path.exists(filename[:-1]):
117 mtime = max(os.stat(filename[:-1]).st_mtime, mtime)
118 elif filename.endswith('$py.class') and \
119 os.path.exists(filename[:-9] + '.py'):
120 mtime = max(os.stat(filename[:-9] + '.py').st_mtime, mtime)
[all …]
Durlparser.py153 application, filename = self.find_application(environ)
163 if filename is None:
177 % filename)
181 % (filename, self.directory))
202 filename = self.find_file(environ, index_name)
203 if filename:
207 filename = None
209 filename = self.find_file(environ, name)
210 if filename is None:
211 return None, filename
[all …]
/external/antlr/antlr-3.4/runtime/Perl5/tools/
Dport.pl41 my ($filename) = @_;
43 open my $in, '<', $filename or croak "Can't open $filename: $!";
44 if (filetype($filename) =~ /^text\//xms) {
48 croak "Can't binmode $filename: $!";
54 close $in or warn "Can't close $filename: $!";
64 my ($filename) = @_;
67 if (-e $filename) {
68 $resolved_file = $filename;
73 map { File::Spec->catfile($_, $filename) }
114 my ($filename) = @_;
[all …]
/external/linux-tools-perf/src/tools/perf/
Dbuiltin-buildid-cache.c20 static int build_id_cache__add_file(const char *filename, const char *debugdir) in build_id_cache__add_file() argument
26 if (filename__read_build_id(filename, &build_id, sizeof(build_id)) < 0) { in build_id_cache__add_file()
27 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__add_file()
32 err = build_id_cache__add_s(sbuild_id, debugdir, filename, in build_id_cache__add_file()
35 pr_info("Adding %s %s: %s\n", sbuild_id, filename, in build_id_cache__add_file()
40 static int build_id_cache__remove_file(const char *filename, in build_id_cache__remove_file() argument
48 if (filename__read_build_id(filename, &build_id, sizeof(build_id)) < 0) { in build_id_cache__remove_file()
49 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__remove_file()
56 pr_info("Removing %s %s: %s\n", sbuild_id, filename, in build_id_cache__remove_file()
64 char filename[PATH_MAX]; in dso__missing_buildid_cache() local
[all …]
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/helper/
DAbbreviator.java40 public String abbreviate(String filename) { in abbreviate() argument
41 if (filename.length() <= desiredLength) { in abbreviate()
42 return filename; in abbreviate()
45 int firstIndex = filename.indexOf(folderSeparator, invariantPrefixLength); in abbreviate()
48 return filename; in abbreviate()
51 buf.append(filename.substring(0, firstIndex + 1)); in abbreviate()
53 int nextIndex = computeNextIndex(filename, firstIndex); in abbreviate()
55 buf.append(filename.substring(nextIndex)); in abbreviate()
58 return filename; in abbreviate()
61 if (buf.length() < filename.length()) { in abbreviate()
[all …]
/external/vboot_reference/host/lib/
Dhost_misc.c27 uint8_t* ReadFile(const char* filename, uint64_t* sizeptr) { in ReadFile() argument
32 f = fopen(filename, "rb"); in ReadFile()
34 VBDEBUG(("Unable to open file %s\n", filename)); in ReadFile()
49 VBDEBUG(("Unable to read from file %s\n", filename)); in ReadFile()
62 char* ReadFileString(char* dest, int size, const char* filename) { in ReadFileString() argument
66 f = fopen(filename, "rt"); in ReadFileString()
76 int ReadFileInt(const char* filename, unsigned* value) { in ReadFileInt() argument
80 if (!ReadFileString(buf, sizeof(buf), filename)) in ReadFileInt()
92 int ReadFileBit(const char* filename, int bitmask) { in ReadFileBit() argument
94 if (ReadFileInt(filename, &value) < 0) in ReadFileBit()
[all …]
Dhost_key.c23 VbPrivateKey* PrivateKeyReadPem(const char* filename, uint64_t algorithm) { in PrivateKeyReadPem() argument
35 f = fopen(filename, "r"); in PrivateKeyReadPem()
37 VBDEBUG(("%s(): Couldn't open key file: %s\n", __FUNCTION__, filename)); in PrivateKeyReadPem()
44 filename)); in PrivateKeyReadPem()
72 int PrivateKeyWrite(const char* filename, const VbPrivateKey* key) { in PrivateKeyWrite() argument
83 f = fopen(filename, "wb"); in PrivateKeyWrite()
85 VbExError("Unable to open file %s\n", filename); in PrivateKeyWrite()
91 VbExError("Unable to write to file %s\n", filename); in PrivateKeyWrite()
94 unlink(filename); /* Delete any partial file */ in PrivateKeyWrite()
98 VbExError("Unable to write to file %s\n", filename); in PrivateKeyWrite()
[all …]
/external/openfst/src/include/fst/extensions/far/
Dfar.h35 inline bool IsFst(const string &filename) { in IsFst() argument
36 ifstream strm(filename.c_str()); in IsFst()
39 return IsFstHeader(strm, filename); in IsFst()
48 bool Read(const string &filename) { in Read() argument
50 if (filename.empty()) { in Read()
55 } else if (IsSTTable(filename)) { // Check if STTable in Read()
56 ReadSTTableHeader(filename, &fsthdr); in Read()
60 } else if (IsSTList(filename)) { // Check if STList in Read()
61 ReadSTListHeader(filename, &fsthdr); in Read()
65 } else if (IsFst(filename)) { // Check if Fst in Read()
[all …]
/external/deqp/scripts/khr_util/
Dregistry_cache.py32 def __init__(self, filename, revision, checksum): argument
33 self.filename = filename
38 return hash((self.filename, self.revision, self.checksum))
41 …return (self.filename, self.revision, self.checksum) == (other.filename, other.revision, other.che…
44 return self.filename
47 return "r%d-%s" % (self.revision, self.filename)
56 …s.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/%s?r=%d" % (self.filename, self.revision)
67 def writeFile (filename, data): argument
68 f = open(filename, 'wb')
84 def checkFile (filename, checksum): argument
[all …]
/external/opencv/otherlibs/highgui/
Dloadsave.cpp64 static int Preprocess( const char* filename, char* buffer );
76 const char* Find( const char* filename, char* buffer ) const;
186 const char* CvFilePath::Find( const char* filename, char* buffer ) const
189 int len = Preprocess( filename, path0 );
224 filename = 0;
228 filename = (const char*)buffer;
232 return filename;
282 GrFmtReader* FindReader( const char* filename ) const;
283 GrFmtWriter* FindWriter( const char* filename ) const;
324 GrFmtReader* CvImageFilters::FindReader( const char* filename ) const in FindReader()
[all …]
/external/icu/icu4c/source/tools/gensprep/
Dgensprep.c56 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode);
59 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode);
138 char* filename = NULL; in main() local
204filename = (char* ) uprv_malloc(uprv_strlen(srcDir) + 300); /* hopefully this should be enough */ in main()
208 filename[0] = '.'; in main()
209 filename[1] = U_FILE_SEP_CHAR; in main()
210 uprv_strcpy(filename+2,srcDir); in main()
212 uprv_strcpy(filename, srcDir); in main()
215 basename=filename+uprv_strlen(filename); in main()
216 if(basename>filename && *(basename-1)!=U_FILE_SEP_CHAR) { in main()
[all …]
/external/bison/lib/
Dopen.c31 orig_open (const char *filename, int flags, mode_t mode) in orig_open() argument
33 return open (filename, flags, mode); in orig_open()
53 open (const char *filename, int flags, ...) in open() argument
81 if (strcmp (filename, "/dev/null") == 0) in open()
82 filename = "NUL"; in open()
109 size_t len = strlen (filename); in open()
110 if (len > 0 && filename[len - 1] == '/') in open()
118 fd = orig_open (filename, flags, mode); in open()
132 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) in open()
137 fd = _gl_register_fd (fd, filename); in open()
[all …]
/external/openssh/
Dauthfile.c57 sshkey_save_private_blob(struct sshbuf *keybuf, const char *filename) in sshkey_save_private_blob() argument
61 if ((fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0600)) < 0) in sshkey_save_private_blob()
67 unlink(filename); in sshkey_save_private_blob()
76 sshkey_save_private(struct sshkey *key, const char *filename, in sshkey_save_private() argument
88 if ((r = sshkey_save_private_blob(keyblob, filename)) != 0) in sshkey_save_private()
169 sshkey_perm_ok(int fd, const char *filename) in sshkey_perm_ok() argument
181 if (check_ntsec(filename)) in sshkey_perm_ok()
188 (u_int)st.st_mode & 0777, filename); in sshkey_perm_ok()
198 sshkey_load_private_type(int type, const char *filename, const char *passphrase, in sshkey_load_private_type() argument
207 if ((fd = open(filename, O_RDONLY)) < 0) { in sshkey_load_private_type()
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DGrammarSerializerFoo.java47 protected String filename; field in GrammarSerializerFoo
58 public void open(String filename) throws IOException { in open() argument
59 this.filename = filename; in open()
60 FileOutputStream fos = new FileOutputStream(filename); in open()
89 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in grammar()
99 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in rule()
108 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in endRule()
118 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in block()
128 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in alt()
144 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in endAlt()
[all …]
/external/chromium-trace/trace-viewer/third_party/WebOb/docs/
Dfile-example.txt31 ... def __init__(self, filename):
32 ... self.filename = filename
34 ... res = make_response(self.filename)
37 >>> def get_mimetype(filename):
38 ... type, encoding = mimetypes.guess_type(filename)
47 >>> def make_response(filename):
48 ... res = Response(content_type=get_mimetype(filename))
49 ... res.body = open(filename, 'rb').read()
75 ... def __init__(self, filename):
76 ... self.filename = filename
[all …]

12345678910>>...93