/external/skia/gm/ |
gm_json.py | 76 def LoadFromString(file_contents): 83 json_dict = json.loads(file_contents) 90 file_contents = open(file_path, 'r').read() 91 return LoadFromString(file_contents)
|
/external/chromium/googleurl/ |
PRESUBMIT_unittest.py | 46 self.file_contents = '' 49 return self.file_contents 65 self.file_contents = 'file with \n\terror\nhere\r\nyes there' 69 self.file_contents = 'file\twith\ttabs' 73 self.file_contents = 'file\rusing\rCRs' 79 self.file_contents = 'both\ttabs and\r\nCRLF' 83 self.file_contents = 'file with\nzero \\t errors \\r\\n'
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
example_zipper.py | 25 file_contents = self._file_system.ReadSingle(file_path, binary=True) 26 if isinstance(file_contents, unicode): 28 file_contents = file_contents.encode('utf8') 33 zip_file.writestr(file_path[len(redundant_prefix):], file_contents)
|
test_file_system.py | 79 file_contents = Resolve(parts) 80 if not isinstance(file_contents, basestring): 83 (path, parts, file_contents)) 84 return file_contents
|
/external/chromium_org/tools/gn/ |
function_read_file.cc | 62 std::string file_contents; local 63 if (!file_util::ReadFileToString(file_path, &file_contents)) { 69 return ConvertInputToValue(file_contents, function, args[1], err);
|
/external/chromium_org/v8/tools/testrunner/server/ |
signatures.py | 36 file_contents = base64.b64encode(f.read()) 47 return [file_contents, signature] 50 def VerifySignature(filename, file_contents, signature, pubkeyfile): 52 f.write(base64.b64decode(file_contents))
|
/external/chromium/webkit/glue/ |
webdropdata.cc | 35 file_contents.assign(contents.data(), contents.size()); 55 result.setFileContent(WebData(file_contents.data(), file_contents.size()));
|
webdropdata.h | 56 std::string file_contents; member in struct:WebDropData
|
webdropdata_win.cc | 32 &drop_data->file_description_filename, &drop_data->file_contents);
|
/external/chromium_org/chrome/browser/extensions/api/push_messaging/ |
sync_setup_helper.cc | 52 std::string file_contents; local 53 bool success = file_util::ReadFileToString(password_file, &file_contents); 62 Tokenize(file_contents, delimiters, &tokens);
|
/external/chromium_org/net/tools/quic/ |
quic_in_memory_cache.cc | 142 string file_contents; local 143 file_util::ReadFileToString(file, &file_contents); 151 while (processed < file_contents.length() && 153 processed += framer.ProcessInput(file_contents.c_str() + processed, 154 file_contents.length() - processed); 161 << " (" << processed << " of " << file_contents.length() 164 if (processed < file_contents.length()) { 168 caching_visitor.AppendToBody(file_contents.c_str() + processed, 169 file_contents.length() - processed); 170 processed += file_contents.length() [all...] |
/external/chromium_org/tools/grit/grit/format/ |
rc_unittest.py | 215 file_contents = util.ReadFile(output_file, util.RAW_TEXT) 218 self.failUnless(file_contents.find('Hello Include!') != -1) 220 self.failUnless(file_contents.find('should be removed') == -1) 222 self.failUnless(file_contents.find('should be kept') != -1) 223 self.failUnless(file_contents.find('in the middle...') != -1) 224 self.failUnless(file_contents.find('at the end...') != -1) 226 self.failUnless(file_contents.find('nested true should be kept') != -1) 227 self.failUnless(file_contents.find('silbing true should be kept') != -1) 229 self.failUnless(file_contents.find('<if expr=') == -1) 230 self.failUnless(file_contents.find('</if>') == -1 [all...] |
/external/chromium/chrome/browser/extensions/ |
file_reader_unittest.cc | 61 std::string file_contents; local 62 bool file_exists = file_util::ReadFileToString(path, &file_contents); 73 EXPECT_EQ(file_contents, receiver.data());
|
/external/chromium_org/extensions/browser/ |
file_reader_unittest.cc | 63 std::string file_contents; local 64 ASSERT_TRUE(file_util::ReadFileToString(path, &file_contents)); 75 EXPECT_EQ(file_contents, receiver.data());
|
/external/chromium_org/content/common/ |
drag_traits.h | 32 IPC_STRUCT_TRAITS_MEMBER(file_contents)
|
/external/chromium_org/net/ocsp/ |
nss_ocsp_unittest.cc | 80 std::string file_contents; local 83 &file_contents)); 84 ASSERT_FALSE(file_contents.empty()); 89 new AiaResponseHandler(kAiaHeaders, file_contents));
|
/external/chromium_org/build/ |
gyp_helper.py | 19 file_contents = f.read() 21 file_data = eval(file_contents, {'__builtins__': None}, None)
|
/external/chromium_org/content/browser/tracing/ |
tracing_ui.cc | 92 void LoadTraceFileComplete(string16* file_contents, 125 void LoadTraceFileCompleteProxy(string16* file_contents, 128 handler_->LoadTraceFileComplete(file_contents, path); 129 delete file_contents; 227 std::string file_contents; local 228 if (!file_util::ReadFileToString(path, &file_contents)) 242 size_t size = file_contents.size(); 246 char c = file_contents[i]; 255 file_contents.clear();
|
/external/skia/tools/copyright/ |
fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): 79 return self._comment_pattern.findall(file_contents)
|
/external/chromium_org/content/public/common/ |
drop_data.h | 66 std::string file_contents; member in struct:content::DropData
|
/external/chromium_org/ui/base/dragdrop/ |
os_exchange_data.cc | 107 if ((formats & FILE_CONTENTS) != 0 && !provider_->HasFileContents()) 132 if ((formats & FILE_CONTENTS) != 0 && provider_->HasFileContents()) 151 const std::string& file_contents) { 152 provider_->SetFileContents(filename, file_contents); 156 std::string* file_contents) const { 157 return provider_->GetFileContents(filename, file_contents);
|
os_exchange_data.h | 64 FILE_CONTENTS = 1 << 4, 124 const std::string& file_contents) = 0; 126 std::string* file_contents) const = 0; 213 const std::string& file_contents); 215 std::string* file_contents) const;
|
/external/chromium_org/native_client_sdk/src/examples/api/file_io/ |
file_io.cc | 155 const std::string& file_contents) { 174 // file_contents is non-empty. 175 if (!file_contents.empty()) { 176 if (file_contents.length() > INT32_MAX) { 184 file_contents.data() + offset, 185 file_contents.length(), 193 } while (bytes_written < static_cast<int64_t>(file_contents.length()));
|
/external/chromium_org/third_party/WebKit/Source/bindings/scripts/ |
compute_dependencies.py | 97 def get_partial_interface_name_from_idl(file_contents): 98 match = re.search(r'partial\s+interface\s+(\w+)', file_contents) 106 def get_implemented_interfaces_from_idl(file_contents, interface_name): 108 for match in re.finditer(r'^\s*(\w+)\s+implements\s+(\w+)\s*;', file_contents, re.MULTILINE): 116 def is_callback_interface_from_idl(file_contents): 117 match = re.search(r'callback\s+interface\s+\w+', file_contents) 121 def get_parent_interface(file_contents): 122 match = re.search(r'interface\s+\w+\s*:\s*(\w+)\s*', file_contents) 128 def get_interface_extended_attributes_from_idl(file_contents): 131 file_contents, flags=re.DOTALL [all...] |
/external/chromium_org/tools/gyp/test/lib/ |
TestCommon.py | 240 file_contents = self.read(file, mode) 241 contains = (string.find(file_contents, required) != -1) 247 print file_contents 326 file_contents = self.read(file, mode) 328 self.fail_test(not self.match(file_contents, expect)) 333 self.diff(expect, file_contents, 'contents ') 339 file_contents = self.read(file, mode) 340 contains = (string.find(file_contents, banned) != -1) 346 print file_contents
|