HomeSort by relevance Sort by last modified time
    Searched refs:pickle (Results 1 - 25 of 319) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium/base/
pickle_unittest.cc 9 #include "base/pickle.h"
25 void VerifyResult(const Pickle& pickle) {
29 EXPECT_TRUE(pickle.ReadInt(&iter, &outint));
33 EXPECT_TRUE(pickle.ReadString(&iter, &outstr));
37 EXPECT_TRUE(pickle.ReadWString(&iter, &outwstr));
41 EXPECT_TRUE(pickle.ReadBool(&iter, &outbool));
43 EXPECT_TRUE(pickle.ReadBool(&iter, &outbool));
47 EXPECT_TRUE(pickle.ReadUInt16(&iter, &outuint16));
52 EXPECT_TRUE(pickle.ReadData(&iter, &outdata, &outdatalen))
67 Pickle pickle; local
130 Pickle pickle; local
140 Pickle pickle; local
150 Pickle pickle; local
159 Pickle pickle; local
168 Pickle pickle; local
192 Pickle pickle; local
216 Pickle pickle; local
301 Pickle pickle; local
314 Pickle pickle; local
    [all...]
  /external/chromium_org/content/common/
ssl_status_serialization.cc 8 #include "base/pickle.h"
19 Pickle pickle; local
20 pickle.WriteInt(cert_id);
21 pickle.WriteUInt32(cert_status);
22 pickle.WriteInt(security_bits);
23 pickle.WriteInt(ssl_connection_status);
24 pickle.WriteInt(signed_certificate_timestamp_ids.size());
28 pickle.WriteInt(iter->id);
29 pickle.WriteUInt16(iter->status)
    [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/webkit/glue/
npruntime_util.cc 7 #include "base/pickle.h"
14 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle) {
20 if (!pickle->WriteBool(is_string))
24 return pickle->WriteData(string, strlen(string) + 1);
26 return pickle->WriteInt(number);
29 bool DeserializeNPIdentifier(const Pickle& pickle, void** pickle_iter,
32 if (!pickle.ReadBool(pickle_iter, &is_string))
38 if (!pickle.ReadData(pickle_iter, &data, &data_len)
    [all...]
npruntime_util.h 10 class Pickle;
15 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle);
16 bool DeserializeNPIdentifier(const Pickle& pickle, void** pickle_iter,
  /external/chromium_org/skia/ext/
skia_utils_base.h 8 #include "base/pickle.h"
13 // Return true if the pickle/iterator contains a string. If so, and if str
15 SK_API bool ReadSkString(const Pickle& pickle, PickleIterator* iter,
18 // Return true if the pickle/iterator contains a FontIdentity. If so, and if
20 SK_API bool ReadSkFontIdentity(const Pickle& pickle, PickleIterator* iter,
23 // Return true if str can be written into the request pickle.
24 SK_API bool WriteSkString(Pickle* pickle, const SkString& str)
    [all...]
skia_utils_base.cc 9 bool ReadSkString(const Pickle& pickle, PickleIterator* iter, SkString* str) {
13 if (!pickle.ReadData(iter, &reply_text, &reply_length))
21 bool ReadSkFontIdentity(const Pickle& pickle, PickleIterator* iter,
28 if (!pickle.ReadUInt32(iter, &reply_id) ||
29 !pickle.ReadUInt32(iter, &reply_ttcIndex) ||
30 !pickle.ReadData(iter, &reply_text, &reply_length))
41 bool WriteSkString(Pickle* pickle, const SkString& str)
    [all...]
  /external/chromium_org/extensions/common/
user_script.cc 8 #include "base/pickle.h"
111 void UserScript::File::Pickle(::Pickle* pickle) const {
112 pickle->WriteString(url_.spec());
117 void UserScript::File::Unpickle(const ::Pickle& pickle, PickleIterator* iter) {
118 // Read the url from the pickle.
120 CHECK(pickle.ReadString(iter, &url));
124 void UserScript::Pickle(::Pickle* pickle) const
    [all...]
  /external/chromium/chrome/browser/sessions/
session_command.cc 9 #include "base/pickle.h"
16 SessionCommand::SessionCommand(id_type id, const Pickle& pickle)
18 contents_(pickle.size(), 0) {
19 DCHECK(pickle.size() < std::numeric_limits<size_type>::max());
20 memcpy(contents(), pickle.data(), pickle.size());
30 Pickle* SessionCommand::PayloadAsPickle() const {
31 return new Pickle(contents(), static_cast<int>(size()));
base_session_service.cc 7 #include "base/pickle.h"
28 // |pickle|, if and only if |str| fits within (|max_bytes| - |*bytes_written|).
30 void WriteStringToPickle(Pickle& pickle, int* bytes_written, int max_bytes,
35 pickle.WriteString(str);
37 pickle.WriteString(std::string());
42 void WriteString16ToPickle(Pickle& pickle, int* bytes_written, int max_bytes,
47 pickle.WriteString16(str);
49 pickle.WriteString16(string16())
143 Pickle pickle; local
188 Pickle pickle; local
    [all...]
  /external/chromium_org/chrome/browser/sessions/
session_command.cc 9 #include "base/pickle.h"
16 SessionCommand::SessionCommand(id_type id, const Pickle& pickle)
18 contents_(pickle.size(), 0) {
19 DCHECK(pickle.size() < std::numeric_limits<size_type>::max());
20 memcpy(contents(), pickle.data(), pickle.size());
30 Pickle* SessionCommand::PayloadAsPickle() const {
31 return new Pickle(contents(), static_cast<int>(size()));
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/ui/base/clipboard/
custom_data_helper.cc 13 #include "base/pickle.h"
19 class SkippablePickle : public Pickle {
26 : Pickle(reinterpret_cast<const char*>(data), data_len) {
43 SkippablePickle pickle(data, data_length);
44 PickleIterator iter(pickle);
47 if (!pickle.ReadUInt64(&iter, &size))
57 if (!pickle.ReadString16(&iter, &types->back()) ||
58 !pickle.SkipString16(&iter)) {
69 SkippablePickle pickle(data, data_length);
70 PickleIterator iter(pickle);
    [all...]
custom_data_helper_unittest.cc 9 #include "base/pickle.h"
17 void PrepareEmptyTestData(Pickle* pickle) {
19 WriteCustomDataToPickle(data, pickle);
22 void PrepareTestData(Pickle* pickle) {
27 WriteCustomDataToPickle(data, pickle);
31 Pickle pickle; local
32 PrepareEmptyTestData(&pickle);
40 Pickle pickle; local
52 Pickle pickle; local
61 Pickle pickle; local
75 Pickle pickle; local
99 Pickle pickle; local
    [all...]
  /external/chromium_org/ui/base/dragdrop/
gtk_dnd_util_unittest.cc 8 #include "base/pickle.h"
19 Pickle pickle; local
20 pickle.WriteString(kTitle);
21 pickle.WriteString(kUrl);
24 scoped_ptr<guchar[]> test_data(new guchar[pickle.size()]);
25 memcpy(test_data.get(), pickle.data(), pickle.size());
27 data.length = pickle.size();
39 Pickle pickle local
70 Pickle pickle; local
    [all...]
  /external/chromium/chrome/common/extensions/
user_script.cc 7 #include "base/pickle.h"
93 void UserScript::File::Pickle(::Pickle* pickle) const {
94 pickle->WriteString(url_.spec());
99 void UserScript::File::Unpickle(const ::Pickle& pickle, void** iter) {
102 CHECK(pickle.ReadString(iter, &url));
106 void UserScript::Pickle(::Pickle* pickle) const
    [all...]
  /external/chromium_org/chrome/browser/ui/views/extensions/
browser_action_drag_data.cc 8 #include "base/pickle.h"
33 Pickle data_pickle;
42 Pickle drag_data_pickle;
65 Profile* profile, Pickle* pickle) const {
66 pickle->WriteBytes(&profile, sizeof(profile));
67 pickle->WriteString(id_);
68 pickle->WriteUInt64(index_);
71 bool BrowserActionDragData::ReadFromPickle(Pickle* pickle) {
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_pickletools.py 1 import pickle namespace
10 return pickletools.optimize(pickle.dumps(arg, proto))
13 return pickle.loads(buf)
15 module = pickle
test_pickle.py 1 import pickle namespace
16 return pickle.dumps(arg, proto)
20 return pickle.loads(buf)
22 module = pickle
31 p = pickle.Pickler(f, proto)
40 u = pickle.Unpickler(f)
46 class PersPickler(pickle.Pickler):
58 class PersUnpickler(pickle.Unpickler):
67 pickler_class = pickle.Pickler
68 unpickler_class = pickle.Unpickle
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_pickletools.py 1 import pickle namespace
10 return pickletools.optimize(pickle.dumps(arg, proto))
13 return pickle.loads(buf)
15 module = pickle
test_pickle.py 1 import pickle namespace
16 return pickle.dumps(arg, proto)
20 return pickle.loads(buf)
22 module = pickle
31 p = pickle.Pickler(f, proto)
40 u = pickle.Unpickler(f)
46 class PersPickler(pickle.Pickler):
58 class PersUnpickler(pickle.Unpickler):
67 pickler_class = pickle.Pickler
68 unpickler_class = pickle.Unpickle
    [all...]
  /external/chromium/chrome/browser/ui/views/extensions/
browser_action_drag_data.cc 8 #include "base/pickle.h"
32 Pickle data_pickle;
41 Pickle drag_data_pickle;
67 Profile* profile, Pickle* pickle) const {
69 pickle->WriteBytes(&profile_id, sizeof(profile_id));
70 pickle->WriteString(id_);
71 pickle->WriteSize(index_);
74 bool BrowserActionDragData::ReadFromPickle(Pickle* pickle) {
    [all...]
  /external/chromium_org/base/metrics/
histogram_base_unittest.cc 11 #include "base/pickle.h"
44 Pickle pickle; local
45 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
47 PickleIterator iter(pickle);
53 PickleIterator iter2(pickle);
69 Pickle pickle; local
70 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
72 PickleIterator iter(pickle);
91 Pickle pickle; local
118 Pickle pickle; local
140 Pickle pickle; local
    [all...]
  /external/chromium_org/components/nacl/browser/
nacl_validation_cache.cc 7 #include "base/pickle.h"
55 void NaClValidationCache::Serialize(Pickle* pickle) const {
57 pickle->WriteString(kValidationCacheBeginMagic);
58 pickle->WriteString(validation_cache_key_);
59 pickle->WriteInt(validation_cache_.size());
67 pickle->WriteString(iter->first);
71 pickle->WriteString(kValidationCacheEndMagic);
79 bool NaClValidationCache::Deserialize(const Pickle* pickle) {
    [all...]
  /external/chromium_org/components/autofill/core/common/
form_field_data.cc 7 #include "base/pickle.h"
16 Pickle* pickle) {
17 pickle->WriteInt(static_cast<int>(strings.size()));
19 pickle->WriteString16(strings[i]);
97 Pickle* pickle) {
98 pickle->WriteInt(kPickleVersion);
99 pickle->WriteString16(field_data.label);
100 pickle->WriteString16(field_data.name)
    [all...]

Completed in 434 milliseconds

1 2 3 4 5 6 7 8 91011>>