/cts/tests/tests/security/jni/ |
android_security_cts_MMapExecutableTest.cpp | 41 ScopedUtfChars filename(env, jfilename); 42 int fd = open(filename.c_str(), O_RDONLY); 44 ALOGE("open %s: %s", filename.c_str(), strerror(errno)); 50 ALOGE("fstat %s: %s", filename.c_str(), strerror(errno)); 55 ALOGE("file %s is too small", filename.c_str()); 63 ALOGE("mmap %s: %s", filename.c_str(), strerror(errno)); 68 ALOGE("munmap %s: %s", filename.c_str(), strerror(errno));
|
/external/ceres-solver/internal/ceres/ |
file.cc | 43 void WriteStringToFileOrDie(const string &data, const string &filename) { 44 FILE* file_descriptor = fopen(filename.c_str(), "wb"); 46 LOG(FATAL) << "Couldn't write to file: " << filename; 52 void ReadFileToStringOrDie(const string &filename, string *data) { 53 FILE* file_descriptor = fopen(filename.c_str(), "r"); 56 LOG(FATAL) << "Couldn't read file: " << filename; 71 LOG(FATAL) << "Couldn't read all of " << filename
|
/external/chromium_org/media/filters/ |
pipeline_integration_perftest.cc | 14 static void RunPlaybackBenchmark(const std::string& filename, 23 ASSERT_TRUE(pipeline.Start(GetTestDataFilePath(filename), 44 filename, 50 static void RunVideoPlaybackBenchmark(const std::string& filename, 52 RunPlaybackBenchmark(filename, name, kBenchmarkIterationsVideo, false); 55 static void RunAudioPlaybackBenchmark(const std::string& filename, 57 RunPlaybackBenchmark(filename, name, kBenchmarkIterationsAudio, true);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_flush.c | 60 char filename[256]; local 64 util_snprintf(filename, sizeof(filename), "cbuf%u_%u", i, frame_no); 65 debug_dump_surface_bmp(&llvmpipe->pipe, filename, llvmpipe->framebuffer.cbufs[i]); 69 util_snprintf(filename, sizeof(filename), "zsbuf_%u", frame_no); 70 debug_dump_surface_bmp(&llvmpipe->pipe, filename, llvmpipe->framebuffer.zsbuf);
|
/external/chromium_org/third_party/mesa/src/src/gallium/targets/graw-null/ |
graw_util.c | 80 const char *filename) 82 if (!filename || !*filename) { 83 filename = out_filename; 84 if (!filename || !*filename) { 91 debug_dump_surface_bmp(pipe, filename, surface);
|
/external/chromium_org/tools/find_runtime_symbols/ |
reduce_debugline.py | 24 filename = '' 33 if not started and filename: 35 starting_dict[int(unpacked[2], 16)] = filename 41 filename = matched.group(2) 60 for address, filename in starting_list: 62 print '%016x %s' % (address, filename) 64 print '%08x %s' % (address, filename)
|
/external/chromium_org/tools/gyp/tools/emacs/ |
gyp-tests.el | 17 (defun fontify (filename) 19 (insert-file-contents-literally filename) 24 (defun read-golden-sample (filename) 26 (insert-file-contents-literally (concat filename ".fontified")) 54 (defun create-golden-sample (filename) 55 "Create a golden sample by fontifying filename and writing out the printable 57 FILENAME.fontified" 58 (with-temp-file (concat filename ".fontified") 59 (print (fontify filename) (current-buffer))))
|
/external/chromium_org/tools/json_schema_compiler/ |
json_schema.py | 39 def Load(filename): 40 with open(filename, 'r') as handle: 45 # A dictionary mapping |filename| to the object resulting from loading the JSON 46 # at |filename|. 50 def CachedLoad(filename): 51 """Equivalent to Load(filename), but caches results for subsequent calls""" 52 if filename not in _cache: 53 _cache[filename] = Load(filename) 56 return copy.deepcopy(_cache[filename]) [all...] |
/external/libvorbis/test/ |
test.c | 50 char filename [64] ; local 51 snprintf (filename, sizeof (filename), "vorbis_%dch_q%.1f_%u.ogg", ch,q*10,sample_rates [k]); 53 printf (" %-20s : ", filename); 59 write_vorbis_data_or_die (filename, sample_rates [k], q, data_out, ARRAY_LEN (data_out),ch); 60 read_vorbis_data_or_die (filename, sample_rates [k], data_in, ARRAY_LEN (data_in)); 66 remove (filename);
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_flush.c | 60 char filename[256]; local 64 util_snprintf(filename, sizeof(filename), "cbuf%u_%u", i, frame_no); 65 debug_dump_surface_bmp(&llvmpipe->pipe, filename, llvmpipe->framebuffer.cbufs[i]); 69 util_snprintf(filename, sizeof(filename), "zsbuf_%u", frame_no); 70 debug_dump_surface_bmp(&llvmpipe->pipe, filename, llvmpipe->framebuffer.zsbuf);
|
/external/mesa3d/src/gallium/targets/graw-null/ |
graw_util.c | 80 const char *filename) 82 if (!filename || !*filename) { 83 filename = out_filename; 84 if (!filename || !*filename) { 91 debug_dump_surface_bmp(pipe, filename, surface);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/net/ |
file_uploader.py | 36 def get_mime_type(filename): 37 return mimetypes.guess_type(filename)[0] or 'application/octet-stream' 46 files: A sequence of (name, filename, value) elements for data to be 66 for key, filename, value in files: 68 lines.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename)) 69 lines.append('Content-Type: %s' % get_mime_type(filename)) 87 def upload_single_text_file(self, filesystem, content_type, filename): 88 return self._upload_data(content_type, filesystem.read_text_file(filename)) 92 for filename, path in files [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/java/ |
java_plugin_unittest.cc | 61 string filename = "Test.java"; local 62 TryInsert(filename, "outer_class_scope", context); 63 TryInsert(filename, "class_scope:foo.Bar", context); 64 TryInsert(filename, "class_scope:foo.Bar.Baz", context); 65 TryInsert(filename, "builder_scope:foo.Bar", context); 66 TryInsert(filename, "builder_scope:foo.Bar.Baz", context); 67 TryInsert(filename, "enum_scope:foo.Qux", context); 71 void TryInsert(const string& filename, const string& insertion_point, 74 context->OpenForInsert(filename, insertion_point));
|
/external/chromium_org/tools/idl_parser/ |
idl_lexer_test.py | 16 def FileToTokens(lexer, filename): 17 with open(filename, 'rb') as srcfile: 18 lexer.Tokenize(srcfile.read(), filename) 48 for filename in self.filenames: 49 tokens1 = FileToTokens(self.lexer, filename) 59 tokens2[i].value, tokens1[i].value, tokens1[i].lineno, filename) 73 for filename in self.filenames: 74 tokens = FileToTokens(self.lexer, filename) 84 actual_type, expect_type, tokens[index].lineno, filename)
|
/external/llvm/utils/lint/ |
cpp_lint.py | 13 def VerifyIncludes(filename, lines): 18 filename: the file under consideration as string 46 lint.append((filename, line_num, 57 lint.append((filename, line_num, 62 lint.append((filename, line_num, 76 def RunOnFile(self, filename, lines): 78 lint.extend(VerifyIncludes(filename, lines)) 79 lint.extend(common_lint.VerifyLineLength(filename, lines, 81 lint.extend(common_lint.VerifyTabs(filename, lines)) 82 lint.extend(common_lint.VerifyTrailingWhitespace(filename, lines) [all...] |
/external/chromium_org/chrome/browser/extensions/api/downloads_internal/ |
downloads_internal_api.cc | 26 base::FilePath::StringType filename; local 27 EXTENSION_FUNCTION_VALIDATE(args_->GetString(1, &filename)); 33 base::FilePath(filename),
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
DownloadController.java | 68 String filename, long contentLength) { 80 .setFileName(filename) 92 * @param filename File name of the downloaded file. 96 public void onDownloadStarted(ContentViewCore view, String filename, String mimeType) { 100 downloadDelegate.onDownloadStarted(filename, mimeType); 110 String filename, String path, long contentLength, boolean successful, int downloadId) { 115 .setFileName(filename) 119 .setDescription(filename) 133 String filename, String path, long contentLength, boolean successful, int downloadId, 139 .setFileName(filename) [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/test/ |
invalid_file_test.cc | 30 const char *filename; member in struct:__anon17618::DecodeParam 34 return os << "threads: " << dp.threads << " file: " << dp.filename; 50 ASSERT_TRUE(res_file_ != NULL) << "Result file open failed. Filename: " 78 const std::string filename = input.filename; local 81 if (filename.substr(filename.length() - 3, 3) == "ivf") { 82 video = new libvpx_test::IVFVideoSource(filename); 83 } else if (filename.substr(filename.length() - 4, 4) == "webm") [all...] |
/external/chromium_org/third_party/skia/tools/ |
skdiff_utils.h | 34 /** Given an image filename, returns the name of the file containing 37 SkString filename_to_diff_filename(const SkString& filename); 39 /** Given an image filename, returns the name of the file containing 42 SkString filename_to_white_filename(const SkString& filename); 51 const SkString& filename);
|
/external/chromium_org/tools/grit/grit/format/ |
resource_map.py | 27 if our header filename is theme_resources.h, we name our resource map 37 raise Exception('unable to find resource header filename') 38 filename = os.path.splitext(os.path.split(rc_header_file)[1])[0] 39 filename = filename[0].upper() + filename[1:] 40 while filename.find('_') != -1: 41 pos = filename.find('_') 42 if pos >= len(filename): 44 filename = filename[:pos] + filename[pos + 1].upper() + filename[pos + 2: [all...] |
/external/eigen/bench/btl/generic_bench/static/ |
bench_static.hh | 42 string filename = "bench_" + Action<Interface<REAL_TYPE,10> >::name() + ".dat"; 44 INFOS("starting " << filename); 53 dump_xy_file(tab_sizes,tab_mflops,filename);
|
/external/chromium_org/ppapi/generators/ |
idl_outfile.py | 29 def __init__(self, filename, always_write = False, create_dir = True): 30 self.filename = filename 70 # // From FILENAME.idl modified DAY MON DATE TIME YEAR. 71 # /* From FILENAME.idl modified DAY MON DATE TIME YEAR. */ 84 def Filename(self): 85 return self.filename 90 raise RuntimeError('Could not write to closed file %s.' % self.filename) 95 filename = os.path.realpath(self.filename) [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...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/w3c/ |
test_parser.py | 42 def __init__(self, options, filename): 44 self.filename = filename 50 self.load_file(filename) 52 def load_file(self, filename): 53 if self.filesystem.isfile(filename): 55 self.test_doc = Parser(self.filesystem.read_binary_file(filename)) 58 _log.error("Failed to parse %s", filename) 61 if self.filesystem.isdir(filename): 63 _log.error("Trying to load %s, which is a directory", filename) [all...] |
/external/chromium_org/tools/ |
sort-headers.py | 6 """Given a filename as an argument, sort the #include/#imports in that file. 42 Returns the filename without the #include/#import/import prefix. 102 def FixFileWithConfirmFunction(filename, confirm_function, 107 |confirm_function| takes two parameters, the original filename and 108 the fixed-up filename, and returns True to use the fixed-up file, 115 if perform_safety_checks and IsUnsafeToReorderHeaders(filename): 118 % (filename)) 120 fixfilename = filename + '.new' 121 infile = open(filename, 'rb') 128 if confirm_function(filename, fixfilename) [all...] |