/external/chromium_org/chrome/browser/sessions/ |
base_session_service.cc | 9 #include "base/pickle.h" 30 // |pickle|, if and only if |str| fits within (|max_bytes| - |*bytes_written|). 32 void WriteStringToPickle(Pickle& pickle, int* bytes_written, int max_bytes, 37 pickle.WriteString(str); 39 pickle.WriteString(std::string()); 145 // Use pickle to handle marshalling. 146 Pickle pickle; local 147 pickle.WriteInt(tab_id) 161 Pickle pickle; local 180 Pickle pickle; local 201 Pickle pickle; local [all...] |
/external/chromium_org/media/base/ |
test_helpers.cc | 10 #include "base/pickle.h" 252 Pickle pickle; local 253 pickle.WriteString(kFakeVideoBufferHeader); 254 pickle.WriteInt(config.coded_size().width()); 255 pickle.WriteInt(config.coded_size().height()); 256 pickle.WriteInt64(timestamp.InMilliseconds()); 259 static_cast<const uint8*>(pickle.data()), 260 static_cast<int>(pickle.size())); 271 PickleIterator pickle(Pickle(reinterpret_cast<const char*>(buffer->data()) [all...] |
/external/chromium_org/media/tools/layout_tests/ |
layouttest_analyzer_helpers.py | 12 import pickle namespace 273 """Load the object from |file_path| using pickle library. 282 analyzer_result_map = pickle.load(file_object) 287 """Save the object to |file_path| using pickle library. 293 pickle.dump(self, file_object)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
data.py | 5 from coverage.backward import pickle, sorted # pylint: disable=W0622 namespace 65 self.pickle = pickle 127 # Write the pickle to the file. 130 self.pickle.dump(data, fdata, 2) 142 data = pickle.load(fdata)
|
html.py | 6 from coverage.backward import pickle, write_encoded namespace 249 status = pickle.load(open(status_file, "rb")) 276 pickle.dump(status, fout)
|
/external/chromium_org/third_party/jinja2/ |
_compat.py | 30 import pickle namespace 59 import cPickle as pickle namespace
|
bccache.py | 24 from jinja2._compat import BytesIO, pickle, PY2, text_type namespace 53 pickle.dumps(bc_version, 2) + \ 54 pickle.dumps((sys.version_info[0] << 24) | sys.version_info[1]) 84 checksum = pickle.load(f) 95 pickle.dump(self.checksum, f, 2)
|
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/ |
message_test.py | 49 import pickle namespace 119 pickled_message = pickle.dumps(golden_message) 121 unpickled_message = pickle.loads(pickled_message) 126 pickled_message = pickle.dumps(golden_message) 128 unpickled_message = pickle.loads(pickled_message)
|
/external/chromium_org/ui/base/dragdrop/ |
gtk_dnd_util.cc | 10 #include "base/pickle.h" 180 Pickle pickle; local 181 pickle.WriteString(UTF16ToUTF8(title)); 182 pickle.WriteString(url.spec()); 187 reinterpret_cast<const guchar*>(pickle.data()), 188 pickle.size()); 215 Pickle data(
|
/external/chromium_org/webkit/browser/fileapi/ |
sandbox_prioritized_origin_database.cc | 11 #include "base/pickle.h" 39 Pickle pickle; local 40 pickle.WriteString(origin); 41 base::WritePlatformFile(file, 0, static_cast<const char*>(pickle.data()), 42 pickle.size()); 52 Pickle pickle(buffer.data(), buffer.size()); 53 PickleIterator iter(pickle); 54 return pickle.ReadString(&iter, origin) && !origin->empty() [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_dbtables.py | 28 pickle = cPickle variable 30 import pickle namespace 32 import pickle namespace 71 self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159, 1)}) 73 self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159, 84 colval = pickle.loads(values[0][colname]) 86 colval = pickle.loads(bytes(values[0][colname], "iso8859-1")) 100 {col0: pickle.dumps(8, 1), col1: 'no', col2: 'Penguin'}, 101 {col0: pickle.dumps(-1, 1), col1: 'no', col2: 'Turkey'}, 102 {col0: pickle.dumps(9, 1), col1: 'yes', col2: 'SR-71A Blackbird' [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_bool.py | 307 import pickle namespace 308 self.assertIs(pickle.loads(pickle.dumps(True)), True) 309 self.assertIs(pickle.loads(pickle.dumps(False)), False) 310 self.assertIs(pickle.loads(pickle.dumps(True, True)), True) 311 self.assertIs(pickle.loads(pickle.dumps(False, True)), False) 321 import pickle, cPickl namespace 333 import pickle, cPickle namespace [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_dbtables.py | 28 pickle = cPickle variable 30 import pickle namespace 32 import pickle namespace 71 self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159, 1)}) 73 self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159, 84 colval = pickle.loads(values[0][colname]) 86 colval = pickle.loads(bytes(values[0][colname], "iso8859-1")) 100 {col0: pickle.dumps(8, 1), col1: 'no', col2: 'Penguin'}, 101 {col0: pickle.dumps(-1, 1), col1: 'no', col2: 'Turkey'}, 102 {col0: pickle.dumps(9, 1), col1: 'yes', col2: 'SR-71A Blackbird' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_bool.py | 307 import pickle namespace 308 self.assertIs(pickle.loads(pickle.dumps(True)), True) 309 self.assertIs(pickle.loads(pickle.dumps(False)), False) 310 self.assertIs(pickle.loads(pickle.dumps(True, True)), True) 311 self.assertIs(pickle.loads(pickle.dumps(False, True)), False) 321 import pickle, cPickl namespace 333 import pickle, cPickle namespace [all...] |
/external/chromium/chrome/browser/bookmarks/ |
bookmark_node_data.cc | 10 #include "base/pickle.h" 43 void BookmarkNodeData::Element::WriteToPickle(Pickle* pickle) const { 44 pickle->WriteBool(is_url); 45 pickle->WriteString(url.spec()); 46 pickle->WriteString16(title); 47 pickle->WriteInt64(id_); 49 pickle->WriteSize(children.size()); 52 i->WriteToPickle(pickle); 57 bool BookmarkNodeData::Element::ReadFromPickle(Pickle* pickle 162 Pickle pickle; local [all...] |
/external/chromium/chrome/browser/safe_browsing/ |
malware_details_unittest.cc | 7 #include "base/pickle.h" 61 Pickle pickle; local 62 responseinfo.Persist(&pickle, false, false); 65 reinterpret_cast<const char*>(pickle.data()))); 66 int len = static_cast<int>(pickle.size());
|
/external/chromium/chrome/common/extensions/ |
extension_unpacker.cc | 214 IPC::Message pickle; // We use a Message so we can use WriteParam. local 215 IPC::WriteParam(&pickle, decoded_images_); 219 if (!file_util::WriteFile(path, static_cast<const char*>(pickle.data()), 220 pickle.size())) { 229 IPC::Message pickle; local 230 IPC::WriteParam(&pickle, *parsed_catalogs_.get()); 234 if (!file_util::WriteFile(path, static_cast<const char*>(pickle.data()), 235 pickle.size())) { 251 IPC::Message pickle(file_str.data(), file_str.size()); 253 return IPC::ReadParam(&pickle, &iter, images) [all...] |
/external/chromium/net/http/ |
http_response_headers_unittest.cc | 8 #include "base/pickle.h" 450 Pickle pickle; local 451 parsed1->Persist(&pickle, tests[i].options); 455 new net::HttpResponseHeaders(pickle, &iter)); [all...] |
/external/chromium/webkit/glue/ |
glue_serialize.cc | 9 #include "base/pickle.h" 35 SerializeObject(const char* data, int len) : pickle(data, len), iter(NULL) {} 38 return std::string(static_cast<const char*>(pickle.data()), pickle.size()); 41 Pickle pickle; member in struct:webkit_glue::SerializeObject 62 // NOTE: If the version is -1, then the pickle contains only a URL string. 71 obj->pickle.WriteData(static_cast<const char*>(data), length); 77 obj->pickle.ReadData(&obj->iter, &tmp, length); 84 if (!obj->pickle.ReadBytes(&obj->iter, &tmp, length) [all...] |
/external/chromium_org/base/ |
pickle_unittest.cc | 9 #include "base/pickle.h" 29 void VerifyResult(const Pickle& pickle) { 30 PickleIterator iter(pickle); 33 EXPECT_TRUE(pickle.ReadInt(&iter, &outint)); 37 EXPECT_TRUE(pickle.ReadString(&iter, &outstr)); 41 EXPECT_TRUE(pickle.ReadWString(&iter, &outwstr)); 45 EXPECT_TRUE(pickle.ReadBool(&iter, &outbool)); 47 EXPECT_TRUE(pickle.ReadBool(&iter, &outbool)); 51 EXPECT_TRUE(pickle.ReadUInt16(&iter, &outuint16)) 71 Pickle pickle; local 127 Pickle pickle; local 137 Pickle pickle; local 147 Pickle pickle; local 156 Pickle pickle; local 165 Pickle pickle; local 220 Pickle pickle; local 248 Pickle pickle; local 340 Pickle pickle; local 353 Pickle pickle; local [all...] |
/external/chromium_org/chrome/browser/extensions/api/messaging/ |
native_message_process_host_unittest.cc | 151 Pickle pickle; local 152 pickle.WriteString(message); 153 return std::string(const_cast<const Pickle*>(&pickle)->payload(), 154 pickle.payload_size());
|
/external/chromium_org/chrome/browser/extensions/ |
user_script_master.cc | 14 #include "base/pickle.h" 265 // Pickle user scripts and return pointer to the shared memory. 267 Pickle pickle; local 268 pickle.WriteUInt64(scripts.size()); 274 script.Pickle(&pickle); 279 pickle.WriteData(contents.data(), contents.length()); 283 pickle.WriteData(contents.data(), contents.length()); 290 if (!shared_memory.CreateAndMapAnonymous(pickle.size()) [all...] |
/external/chromium_org/chrome/browser/safe_browsing/ |
malware_details_unittest.cc | 8 #include "base/pickle.h" 71 Pickle pickle; local 72 responseinfo.Persist(&pickle, false, false); 75 reinterpret_cast<const char*>(pickle.data()))); 76 int len = static_cast<int>(pickle.size());
|
/external/chromium_org/chrome/utility/extensions/ |
unpacker.cc | 89 bool WritePickle(const IPC::Message& pickle, const base::FilePath& dest_path) { 90 int size = base::checked_numeric_cast<int>(pickle.size()); 91 const char* data = static_cast<const char*>(pickle.data()); 234 IPC::Message pickle; // We use a Message so we can use WriteParam. local 235 IPC::WriteParam(&pickle, internal_data_->decoded_images); 239 if (!WritePickle(pickle, path)) { 248 IPC::Message pickle; local 249 IPC::WriteParam(&pickle, *parsed_catalogs_.get()); 253 if (!WritePickle(pickle, path)) {
|
/external/chromium_org/content/browser/web_contents/ |
web_contents_drag_win.cc | 15 #include "base/pickle.h" 339 Pickle pickle; local 340 ui::WriteCustomDataToPickle(drop_data.custom_data, &pickle); 341 data.SetPickledData(ui::Clipboard::GetWebCustomDataFormatType(), pickle); local
|