/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | directory_zipper.py | 35 file_contents = future.Get() 36 if isinstance(file_contents, unicode): 38 file_contents = file_contents.encode('utf8') 43 zip_file.writestr(posixpath.join(dir_name, file_name), file_contents)
|
/external/chromium_org/third_party/WebKit/Source/bindings/scripts/ |
H A D | utilities.py | 77 def get_partial_interface_name_from_idl(file_contents): 78 match = re.search(r'partial\s+interface\s+(\w+)\s*{', file_contents) 82 def get_implements_from_idl(file_contents, interface_name): 98 implements_matches = re.finditer(implements_re, file_contents, re.MULTILINE) 117 def is_callback_interface_from_idl(file_contents): 118 match = re.search(r'callback\s+interface\s+\w+\s*{', file_contents) 122 def get_parent_interface(file_contents): 127 file_contents) 131 def get_interface_extended_attributes_from_idl(file_contents): 136 file_contents [all...] |
/external/chromium_org/tools/gn/ |
H A D | function_read_file.cc | 64 std::string file_contents; local 65 if (!base::ReadFileToString(file_path, &file_contents)) { 71 return ConvertInputToValue(scope->settings(), file_contents, function,
|
/external/chromium_org/net/disk_cache/simple/ |
H A D | simple_version_upgrade.cc | 37 disk_cache::FakeIndexData file_contents; 38 file_contents.initial_magic_number = 40 file_contents.version = disk_cache::kSimpleVersion; 41 int bytes_written = file.Write(0, reinterpret_cast<char*>(&file_contents), 42 sizeof(file_contents)); 43 if (bytes_written != sizeof(file_contents)) {
|
H A D | simple_version_upgrade_unittest.cc | 69 const std::string file_contents("incorrectly serialized data"); 71 ASSERT_EQ(implicit_cast<int>(file_contents.size()), 73 index_file, file_contents.data(), file_contents.size())); 96 const std::string file_contents("incorrectly serialized data"); 98 ASSERT_EQ(implicit_cast<int>(file_contents.size()), 100 index_file, file_contents.data(), file_contents.size())); 109 file_contents + 128 file_contents [all...] |
/external/chromium_org/third_party/skia/gm/ |
H A D | gm_json.py | 164 def LoadFromString(file_contents): 171 json_dict = json.loads(file_contents) 179 file_contents = open(file_path, 'r').read() 180 return LoadFromString(file_contents)
|
/external/chromium_org/v8/tools/testrunner/server/ |
H A D | 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/skia/gm/ |
H A D | gm_json.py | 164 def LoadFromString(file_contents): 171 json_dict = json.loads(file_contents) 179 file_contents = open(file_path, 'r').read() 180 return LoadFromString(file_contents)
|
/external/chromium_org/tools/grit/grit/format/ |
H A D | 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 [all...] |
/external/chromium_org/build/ |
H A D | gyp_helper.py | 19 file_contents = f.read() 21 file_data = eval(file_contents, {'__builtins__': None}, None)
|
/external/chromium_org/chrome/browser/extensions/api/push_messaging/ |
H A D | sync_setup_helper.cc | 53 std::string file_contents; local 54 bool success = base::ReadFileToString(password_file, &file_contents); 63 Tokenize(file_contents, delimiters, &tokens);
|
/external/chromium_org/net/url_request/ |
H A D | url_fetcher_response_writer_unittest.cc | 84 std::string file_contents; local 85 EXPECT_TRUE(base::ReadFileToString(writer_->file_path(), &file_contents)); 86 EXPECT_EQ(kData, file_contents); 106 std::string file_contents; local 107 EXPECT_TRUE(base::ReadFileToString(writer_->file_path(), &file_contents)); 108 EXPECT_EQ(kData, file_contents); 122 file_contents.clear(); 123 EXPECT_TRUE(base::ReadFileToString(writer_->file_path(), &file_contents)); 124 EXPECT_EQ(data2, file_contents); 169 std::string file_contents; local [all...] |
/external/chromium_org/net/quic/ |
H A D | quic_in_memory_cache.cc | 157 string file_contents; local 158 base::ReadFileToString(file, &file_contents); 166 while (processed < file_contents.length() && 168 processed += framer.ProcessInput(file_contents.c_str() + processed, 169 file_contents.length() - processed); 176 << " (" << processed << " of " << file_contents.length() 179 if (processed < file_contents.length()) { 183 caching_visitor.AppendToBody(file_contents.c_str() + processed, 184 file_contents.length() - processed); 185 processed += file_contents [all...] |
/external/chromium_org/net/tools/quic/ |
H A D | quic_in_memory_cache.cc | 158 string file_contents; local 159 base::ReadFileToString(file, &file_contents); 167 while (processed < file_contents.length() && 169 processed += framer.ProcessInput(file_contents.c_str() + processed, 170 file_contents.length() - processed); 177 << " (" << processed << " of " << file_contents.length() 180 if (processed < file_contents.length()) { 184 caching_visitor.AppendToBody(file_contents.c_str() + processed, 185 file_contents.length() - processed); 186 processed += file_contents [all...] |
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/ |
H A D | removable_storage_provider_linux.cc | 32 std::string file_contents; local 35 if (!base::ReadFileToString(info_file_path, &file_contents)) { 39 base::StringToInt(file_contents, &blk_size);
|
/external/chromium_org/extensions/browser/ |
H A D | file_reader_unittest.cc | 63 std::string file_contents; local 64 ASSERT_TRUE(base::ReadFileToString(path, &file_contents)); 75 EXPECT_EQ(file_contents, receiver.data());
|
/external/chromium_org/build/android/pylib/ |
H A D | flag_changer.py | 108 file_contents = self._device.old_interface.GetProtectedFileContents( 112 file_contents = self._device.old_interface.GetFileContents( 114 assert len(file_contents) == 1 and file_contents[0] == cmd_line, (
|
/external/chromium_org/net/ocsp/ |
H A D | nss_ocsp_unittest.cc | 81 std::string file_contents; local 84 &file_contents)); 85 ASSERT_FALSE(file_contents.empty()); 90 new AiaResponseHandler(kAiaHeaders, file_contents));
|
/external/chromium_org/third_party/skia/tools/copyright/ |
H A D | fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): 79 return self._comment_pattern.findall(file_contents)
|
/external/skia/tools/copyright/ |
H A D | fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): 79 return self._comment_pattern.findall(file_contents)
|
/external/chromium_org/content/common/ |
H A D | drag_traits.h | 35 IPC_STRUCT_TRAITS_MEMBER(file_contents)
|
/external/chromium_org/content/public/common/ |
H A D | drop_data.h | 72 std::string file_contents; member in struct:content::DropData
|
/external/chromium_org/ui/base/dragdrop/ |
H A D | os_exchange_data.cc | 127 const std::string& file_contents) { 128 provider_->SetFileContents(filename, file_contents); 132 std::string* file_contents) const { 133 return provider_->GetFileContents(filename, file_contents); 126 SetFileContents(const base::FilePath& filename, const std::string& file_contents) argument
|
H A D | os_exchange_data.h | 122 const std::string& file_contents) = 0; 126 std::string* file_contents) const = 0; 216 const std::string& file_contents); 218 std::string* file_contents) const;
|
/external/chromium_org/native_client_sdk/src/examples/api/file_io/ |
H A D | 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())); 153 Save(int32_t , const std::string& file_name, const std::string& file_contents) argument
|