/external/opencv/otherlibs/highgui/ |
grfmt_base.cpp | 48 GrFmtReader::GrFmtReader( const char* filename ) 50 strncpy( m_filename, filename, sizeof(m_filename) - 1 ); 73 GrFmtWriter::GrFmtWriter( const char* filename ) 75 strncpy( m_filename, filename, sizeof(m_filename) - 1 ); 93 bool GrFmtFilterFactory::CheckFile( const char* filename ) 100 if( !filename ) return false; 103 f = fopen( filename, "rb" ); 263 GrFmtReader* GrFmtFactoriesList::FindReader( const char* filename ) 265 if( !filename ) return 0; 273 if( tempFactory->CheckFile( filename ) ) [all...] |
/external/python/cpython2/Tools/scripts/ |
objgraph.py | 91 for filename in flist: 92 print filename + ':' 93 elist = file2undef[filename] 110 for filename in files: 112 for label in file2def[filename]: 117 print filename + ':' 124 print filename + ': unused' 130 for filename in file2undef.keys(): 131 for ext in file2undef[filename]: 133 store(undefs, ext, filename) [all...] |
/external/python/cpython3/Tools/scripts/ |
objgraph.py | 90 for filename in flist: 91 print(filename + ':') 92 elist = file2undef[filename] 108 for filename in files: 110 for label in file2def[filename]: 115 print(filename + ':') 122 print(filename + ': unused') 128 for filename in list(file2undef.keys()): 129 for ext in file2undef[filename]: 131 store(undefs, ext, filename) [all...] |
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/ |
AbbreviatorTest.java | 116 String filename = rh.buildRandomFileName(averageLen, maxLen); local 119 String result = abb.abbreviate(filename); 120 assertTheory0(averageLen, filename, result, fixedLen, targetLen); 121 assertUsefulness(averageLen, filename, result, fixedLen, targetLen); 122 assertTheory1(filename, result, fixedLen, targetLen); 123 assertTheory2(filename, result, fixedLen, targetLen); 128 void assertTheory0(int averageLen, String filename, String result, int fixedLen, int targetLength) { 129 assertTrue("filename=[" + filename + "] result=[" + result + "]", result.length() <= filename.length()) [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/libcxx/sym_check/ |
util.py | 25 def read_syms_from_file(filename): 29 with open(filename, 'r') as f: 34 def read_blacklist(filename): 35 with open(filename, 'r') as f: 73 def is_elf(filename): 74 with open(filename, 'rb') as f: 79 def is_mach_o(filename): 80 with open(filename, 'rb') as f: 92 def is_library_file(filename): 94 return is_mach_o(filename) [all...] |
/external/python/cpython2/Lib/test/ |
test_gzip.py | 25 filename = test_support.TESTFN variable in class:TestGzip 28 test_support.unlink(self.filename) 31 test_support.unlink(self.filename) 35 with gzip.GzipFile(self.filename, 'w'+mode) as f: 38 with gzip.GzipFile(self.filename, 'r'+mode) as f: 48 self.filename = unicode_filename 59 with gzip.GzipFile(self.filename, 'wb') as f: 82 with gzip.GzipFile(self.filename, 'wb') as f: 88 with gzip.GzipFile(self.filename, 'rb') as f: 94 with gzip.GzipFile(self.filename, 'r') as f [all...] |
/external/ltp/testcases/kernel/io/direct_io/ |
diotest2.c | 37 * diotest2 [-b bufsize] [-o offset] [-i iterations] [-f filename] 73 char filename[LEN]; variable 129 "Usage: diotest2 [-b bufsize] [-o offset] [-i iterations] [-f filename]\n"); 144 sprintf(filename, "testdata-2.%ld", syscall(__NR_gettid)); 171 strcpy(filename, optarg); 182 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) 184 "open(%s, O_WRONLY..) failed", filename); 185 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) 187 "open(%s, O_DIRECT|O_RDONLY..) failed", filename); 196 unlink(filename); [all...] |
diotest3.c | 38 * [-i iterations [-f filename] 75 static char filename[LEN]; variable 80 "Usage: diotest3 [-b bufsize] [-o offset] [-n numchild] [-i iterations] [-f filename]\n"); 154 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) { 157 filename); 160 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) { 163 filename); 177 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { 178 tst_resm(TFAIL, "fd_w open failed for %s: %s", filename, 182 if ((fd_r = open(filename, O_RDONLY, 0666)) < 0) [all...] |
/art/libartbase/base/ |
scoped_flock.cc | 31 /* static */ ScopedFlock LockedFile::Open(const char* filename, std::string* error_msg) { 32 return Open(filename, O_CREAT | O_RDWR, true, error_msg); 35 /* static */ ScopedFlock LockedFile::Open(const char* filename, int flags, bool block, 43 std::unique_ptr<File> file(OS::OpenFileWithFlags(filename, flags, false /* check_usage */)); 45 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno)); 56 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno)); 62 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno)); 66 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat)); 68 PLOG(WARNING) << "Failed to stat, will retry: " << filename; 80 LOG(WARNING) << "File changed while locking, will retry: " << filename; [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
toaiff.py | 6 Returned filename is either the input filename or a temporary filename;
64 def toaiff(filename):
68 ret = _toaiff(filename, temps)
79 def _toaiff(filename, temps):
80 if filename[-2:] == '.Z':
84 sts = uncompress.copy(filename, fname)
86 raise error, filename + ': uncompress failed'
88 fname = filename
[all...] |
/external/ant-glob/src/org/apache/tools/ant/util/ |
FileUtils.java | 107 * Verifies that the specified filename represents an absolute path. 108 * Differs from new java.io.File("filename").isAbsolute() in that a path 111 * @param filename the filename to be checked. 112 * @return true if the filename represents an absolute path. 113 * @throws java.lang.NullPointerException if filename is null. 116 public static boolean isAbsolutePath(String filename) { 117 int len = filename.length(); 122 filename = filename.replace('/', sep).replace('\\', sep) [all...] |
/external/autotest/client/site_tests/touch_WakeupSource/ |
touch_WakeupSource.py | 43 filename = os.path.join(device_dir, 'power', 'wakeup') 44 if not os.path.isfile(filename): 45 logging.info('%s not found for %s', filename, input_type) 65 filename = os.path.join(parent, 'power', 'wakeup') 66 if not os.path.isfile(filename): 67 logging.info('%s not found either.', filename) 70 return filename 83 filename = self._find_wakeup_file(input_type) 84 if filename is None: 87 result = utils.run('cat %s' % filename).stdout.strip( [all...] |
/external/iproute2/rdma/ |
rdma.c | 24 help(rd->filename); 41 static int rd_init(struct rd *rd, int argc, char **argv, char *filename) 46 rd->filename = filename; 94 char *filename; local 99 filename = basename(argv[0]); 106 filename, SNAPSHOT); 118 help(filename); 122 help(filename); 134 err = rd_init(&rd, argc, argv, filename); [all...] |
/external/libpng/contrib/examples/ |
iccfrompng.c | 91 extract_one_file(const char *filename) 94 FILE *fp = fopen(filename, "rb"); 107 const char *ep = strrchr(filename, '.'); 110 len = ep-filename; 113 len = strlen(filename); 121 memcpy(output, filename, len); 132 printf("%s -> %s\n", filename, output); 152 fprintf(stderr, "%s: OOM allocating string!\n", filename); 158 printf("%s has no profile\n", filename); 162 fprintf(stderr, "%s: could not open file\n", filename); [all...] |
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
dio_truncate.c | 68 int dio_read(char *filename) 80 while ((fd = open(filename, O_DIRECT | O_RDONLY)) < 0) { 105 void dio_append(char *filename, int fill) 112 fd = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666); 138 char filename[PATH_MAX]; local 143 snprintf(filename, sizeof(filename), "%s/aiodio/file", 149 return dio_read(filename); 166 dio_append(filename, 0); 167 truncate(filename, 0) [all...] |
/external/ltp/testcases/kernel/syscalls/mmap/ |
mmap001.c | 35 static char *filename = NULL; variable 41 free(filename); 61 if ((filename = strdup(buf)) == NULL) { 116 fd = open(filename, O_RDWR | O_CREAT, 0666); 119 "opening %s failed", filename); 131 "writing to %s failed", filename); 139 "mmapping %s failed", filename); 171 "munmapping %s failed", filename); 173 tst_resm(TPASS, "munmapping %s successful", filename); 177 unlink(filename); [all...] |
/external/python/cpython2/Lib/plat-irix5/ |
torgb.py | 5 # Returned filename is either the input filename or a temporary filename; 59 def torgb(filename): 63 ret = _torgb(filename, temps) 74 def _torgb(filename, temps): 75 if filename[-2:] == '.Z': 79 sts = uncompress.copy(filename, fname) 81 raise error, filename + ': uncompress failed' 83 fname = filename [all...] |
/external/python/cpython2/Lib/plat-irix6/ |
torgb.py | 5 # Returned filename is either the input filename or a temporary filename; 59 def torgb(filename): 63 ret = _torgb(filename, temps) 74 def _torgb(filename, temps): 75 if filename[-2:] == '.Z': 79 sts = uncompress.copy(filename, fname) 81 raise error, filename + ': uncompress failed' 83 fname = filename [all...] |
/external/python/cpython2/Lib/ |
toaiff.py | 6 Returned filename is either the input filename or a temporary filename; 64 def toaiff(filename): 68 ret = _toaiff(filename, temps) 79 def _toaiff(filename, temps): 80 if filename[-2:] == '.Z': 84 sts = uncompress.copy(filename, fname) 86 raise error, filename + ': uncompress failed' 88 fname = filename [all...] |
/external/tensorflow/tensorflow/contrib/lite/ |
allocation.cc | 33 MMAPAllocation::MMAPAllocation(const char* filename, 36 mmap_fd_ = open(filename, O_RDONLY); 38 error_reporter_->Report("Could not open '%s'.", filename); 47 error_reporter_->Report("Mmap of '%s' failed.", filename); 65 FileCopyAllocation::FileCopyAllocation(const char* filename, 70 std::unique_ptr<FILE, decltype(&fclose)> file(fopen(filename, "rb"), fclose); 72 error_reporter_->Report("Could not open '%s'.", filename); 79 error_reporter_->Report("Failed to get file size of '%s'.", filename); 86 filename); 93 filename); [all...] |
/frameworks/base/tools/validatekeymaps/ |
Main.cpp | 69 static FileType getFileType(const char* filename) { 70 const char *extension = strrchr(filename, '.'); 83 if (strstr(filename, "virtualkeys.")) { 90 static bool validateFile(const char* filename) { 91 log("Validating file '%s'...\n", filename); 93 FileType fileType = getFileType(filename); 101 status_t status = KeyLayoutMap::load(String8(filename), &map); 111 status_t status = KeyCharacterMap::load(String8(filename), 122 status_t status = PropertyMap::load(String8(filename), &map); 133 status_t status = VirtualKeyMap::load(String8(filename), &map) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
toaiff.py | 6 Returned filename is either the input filename or a temporary filename; 64 def toaiff(filename): 68 ret = _toaiff(filename, temps) 79 def _toaiff(filename, temps): 80 if filename[-2:] == '.Z': 84 sts = uncompress.copy(filename, fname) 86 raise error, filename + ': uncompress failed' 88 fname = filename [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
toaiff.py | 6 Returned filename is either the input filename or a temporary filename; 64 def toaiff(filename): 68 ret = _toaiff(filename, temps) 79 def _toaiff(filename, temps): 80 if filename[-2:] == '.Z': 84 sts = uncompress.copy(filename, fname) 86 raise error, filename + ': uncompress failed' 88 fname = filename [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
toaiff.py | 6 Returned filename is either the input filename or a temporary filename; 64 def toaiff(filename): 68 ret = _toaiff(filename, temps) 79 def _toaiff(filename, temps): 80 if filename[-2:] == '.Z': 84 sts = uncompress.copy(filename, fname) 86 raise error, filename + ': uncompress failed' 88 fname = filename [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
toaiff.py | 6 Returned filename is either the input filename or a temporary filename; 64 def toaiff(filename): 68 ret = _toaiff(filename, temps) 79 def _toaiff(filename, temps): 80 if filename[-2:] == '.Z': 84 sts = uncompress.copy(filename, fname) 86 raise error, filename + ': uncompress failed' 88 fname = filename [all...] |