/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_unicode_file.py | 29 raise unittest.SkipTest("Cannot find a suiteable filename.") 32 raise unittest.SkipTest("Cannot find a suitable filename.") 34 def remove_if_exists(filename): 35 if os.path.exists(filename): 36 os.unlink(filename) 42 # Do all the tests we can given only a single filename. The file should 44 def _do_single(self, filename): 45 self.assertTrue(os.path.exists(filename)) 46 self.assertTrue(os.path.isfile(filename)) 47 self.assertTrue(os.access(filename, os.R_OK) [all...] |
/external/ImageMagick/coders/ |
html.c | 218 filename[MagickPathExtent], 246 image_info->filename); 259 Extract URL base from filename. 261 p=strrchr(image->filename,'/'); 267 url[strlen(url)+p-image->filename]='\0'; 268 (void) ConcatenateMagickString(url,image->filename, 269 p-image->filename+2); 270 (void) CopyMagickString(image->filename,p,MagickPathExtent); 276 (void) CopyMagickString(filename,image->filename,MagickPathExtent) 212 filename[MagickPathExtent], local [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
GrammarSerializerFoo.java | 47 protected String filename; field in class:GrammarSerializerFoo 58 public void open(String filename) throws IOException { 59 this.filename = filename; 60 FileOutputStream fos = new FileOutputStream(filename); 89 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); 99 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); 108 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); 118 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); 128 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_gzip.py | 26 filename = test_support.TESTFN
variable in class:TestGzip 29 test_support.unlink(self.filename)
32 test_support.unlink(self.filename)
36 with gzip.GzipFile(self.filename, 'wb') as f:
52 with gzip.GzipFile(self.filename, 'r') as f:
62 f = gzip.GzipFile(self.filename, 'r')
71 f = gzip.GzipFile(self.filename, 'w')
81 with gzip.GzipFile(self.filename, 'ab') as f:
84 with gzip.GzipFile(self.filename, 'rb') as f:
92 with gzip.open(self.filename, 'wb', 9) as f: [all...] |
/external/python/cpython3/Lib/idlelib/ |
runscript.py | 59 filename = self.getfilename() 60 if not filename: 62 if not self.checksyntax(filename): 64 if not self.tabnanny(filename): 67 def tabnanny(self, filename): 69 with tokenize.open(filename) as f: 85 def checksyntax(self, filename): 89 with open(filename, 'rb') as f: 101 return compile(source, filename, "exec") 137 filename = self.getfilename( [all...] |
/external/tensorflow/tensorflow/core/util/ |
events_writer_test.cc | 64 void VerifyFile(const string& filename) { 65 CHECK(env()->FileExists(filename).ok()); 67 TF_CHECK_OK(env()->NewRandomAccessFile(filename, &event_file)); 103 TF_CHECK_OK(env()->DeleteFile(filename)); 116 string filename = writer.FileName(); local 117 VerifyFile(filename); 125 string filename = writer.FileName(); local 126 VerifyFile(filename); 133 string filename = writer->FileName(); local 141 string filename = writer.FileName(); local 153 string filename = writer.FileName(); local 178 string filename = writer.FileName(); local 188 string filename = writer.FileName(); local [all...] |
memmapped_file_system.cc | 95 const string& filename, std::unique_ptr<RandomAccessFile>* result) { 99 const auto dir_element = directory_.find(filename); 101 return errors::NotFound("Region ", filename, " is not found"); 110 const string& filename, std::unique_ptr<ReadOnlyMemoryRegion>* result) { 114 const auto dir_element = directory_.find(filename); 116 return errors::NotFound("Region ", filename, " is not found"); 124 Status MemmappedFileSystem::GetFileSize(const string& filename, uint64* size) { 128 const auto dir_element = directory_.find(filename); 130 return errors::NotFound("Region ", filename, " is not found"); 145 Status MemmappedFileSystem::NewWritableFile(const string& filename, [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/idlelib/ |
ScriptBinding.py | 61 filename = self.getfilename() 62 if not filename: 64 if not self.checksyntax(filename): 66 if not self.tabnanny(filename): 69 def tabnanny(self, filename): 70 f = open(filename, 'r') 86 def checksyntax(self, filename): 90 f = open(filename, 'r') 103 return compile(source, filename, "exec") 108 err.args = msg, (filename, lineno, offset, line [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/idlelib/ |
ScriptBinding.py | 61 filename = self.getfilename() 62 if not filename: 64 if not self.checksyntax(filename): 66 if not self.tabnanny(filename): 69 def tabnanny(self, filename): 70 f = open(filename, 'r') 86 def checksyntax(self, filename): 90 f = open(filename, 'r') 103 return compile(source, filename, "exec") 108 err.args = msg, (filename, lineno, offset, line [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
ScriptBinding.py | 61 filename = self.getfilename() 62 if not filename: 64 if not self.checksyntax(filename): 66 if not self.tabnanny(filename): 69 def tabnanny(self, filename): 70 f = open(filename, 'r') 86 def checksyntax(self, filename): 90 f = open(filename, 'r') 103 return compile(source, filename, "exec") 108 err.args = msg, (filename, lineno, offset, line [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
ScriptBinding.py | 61 filename = self.getfilename() 62 if not filename: 64 if not self.checksyntax(filename): 66 if not self.tabnanny(filename): 69 def tabnanny(self, filename): 70 f = open(filename, 'r') 86 def checksyntax(self, filename): 90 f = open(filename, 'r') 103 return compile(source, filename, "exec") 108 err.args = msg, (filename, lineno, offset, line [all...] |
/art/test/071-dexfile-get-static-size/src/ |
Main.java | 20 private static long getDexFileSize(String filename) throws Exception { 28 Object dexFile = DexFile_loadDex.invoke(null, filename, null, 0); 33 String filename = System.getenv("DEX_LOCATION") + "/res/" + resource; local 34 long size = getDexFileSize(filename);
|
/bionic/libc/system_properties/include/system_properties/ |
contexts.h | 39 virtual bool Initialize(bool writable, const char* filename, bool* fsetxattr_failed) = 0;
|
/bootable/recovery/tests/unit/ |
sysutil_test.cpp | 55 std::string filename = std::string("@") + block_map_file.path; local 62 ASSERT_TRUE(mapping.MapFile(filename)); 70 ASSERT_TRUE(mapping.MapFile(filename)); 78 ASSERT_TRUE(mapping.MapFile(filename)); 86 ASSERT_TRUE(mapping.MapFile(filename)); 94 std::string filename = std::string("@") + temp_file.path; local 98 ASSERT_FALSE(mapping.MapFile(filename)); 101 ASSERT_FALSE(mapping.MapFile(filename)); 105 ASSERT_FALSE(mapping.MapFile(filename)); 108 ASSERT_FALSE(mapping.MapFile(filename)); [all...] |
/development/gsi/gsi_util/gsi_util/mounters/ |
folder_mounter.py | 36 filename = os.path.join(self._folder_dir, filename_in_storage) 37 logging.debug('Prepare file %s -> %s', filename_in_storage, filename) 38 if not os.path.isfile(filename): 41 return base_mounter.MounterFile(filename)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/ |
parsetok.c | 18 static void initerr(perrdetail *err_ret, const char* filename);
36 PyParser_ParseStringFlagsFilename(const char *s, const char *filename,
41 return PyParser_ParseStringFlagsFilenameEx(s, filename, g, start,
46 PyParser_ParseStringFlagsFilenameEx(const char *s, const char *filename,
52 initerr(err_ret, filename);
59 tok->filename = filename ? filename : "<string>";
61 tok->altwarning = (tok->filename != NULL);
72 PyParser_ParseFile(FILE *fp, const char *filename, grammar *g, int start, [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/ |
script.py | 19 filename = 'typescript'
variable 36 script = open(filename, mode)
38 sys.stdout.write('Script started, file is %s\n' % filename)
42 sys.stdout.write('Script done, file is %s\n' % filename)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/ |
parsetok.c | 27 static void initerr(perrdetail *err_ret, const char* filename);
45 PyParser_ParseStringFlagsFilename(const char *s, const char *filename,
50 return PyParser_ParseStringFlagsFilenameEx(s, filename, g, start,
55 PyParser_ParseStringFlagsFilenameEx(const char *s, const char *filename,
61 initerr(err_ret, filename);
68 tok->filename = filename ? filename : "<string>";
70 tok->altwarning = (tok->filename != NULL);
81 PyParser_ParseFile(FILE *fp, const char *filename, grammar *g, int start, [all...] |
/external/clang/utils/ |
find-unused-diagnostics.sh | 8 ALL_DIAGS=$(grep -E --only-matching --no-filename '(err_|warn_|ext_|note_)[a-z_]+' ./include/clang/Basic/Diagnostic*.td) 12 DIAGS_IN_SOURCES=$(grep -E --only-matching --no-filename '(err_|warn_|ext_|note_)[a-z_]+' $ALL_SOURCES)
|
/external/deqp/external/vulkancts/modules/vulkan/ |
vktShaderLibrary.hpp | 33 de::MovePtr<tcu::TestCaseGroup> createShaderLibraryGroup (tcu::TestContext& testCtx, const std::string& name, const std::string& description, const std::string& filename);
|
/external/flac/include/share/ |
windows_unicode_filenames.h | 51 FILE* flac_internal_fopen_utf8(const char *filename, const char *mode); 53 int flac_internal_chmod_utf8(const char *filename, int pmode); 54 int flac_internal_utime_utf8(const char *filename, struct utimbuf *times); 55 int flac_internal_unlink_utf8(const char *filename);
|
/external/icu/icu4c/source/tools/genrb/ |
genrb.h | 42 const char *filename,
|
parse.h | 33 const char *filename,
|
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/ |
run_parser.py | 20 print "usage: %s filename" % argv[0] 23 for filename in argv[1:]: 24 with open(filename) as f: 25 print "%s:" % filename 27 print Parse(f.read(), filename)
|
/external/ltp/testcases/kernel/syscalls/creat/ |
creat01.c | 36 static char filename[40]; variable 41 sprintf(filename, "creat01.%d", getpid()); 56 fd = SAFE_CREAT(filename, tcases[i].mode); 58 SAFE_STAT(filename, &buf);
|