Searched defs:pickle (Results 1 - 25 of 180) sorted by relevance

12345678

/external/autotest/client/site_tests/firmware_TouchMTB/tools/
H A Dprint_log.py13 import pickle namespace
17 # Need to have this line because pickle needs firmware_log module to load logs.
26 fw, date, glogs = pickle.load(open(filename))
/external/python/cpython3/Lib/test/
H A Dtest_sndhdr.py2 import pickle namespace
31 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
32 dump = pickle.dumps(what, proto)
33 self.assertEqual(pickle.loads(dump), what)
H A Dtest_pickletools.py1 import pickle namespace
11 return pickletools.optimize(pickle.dumps(arg, proto))
14 return pickle.loads(buf, **kwds)
22 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
23 pickled = pickle.dumps(data, proto)
24 unpickled = pickle.loads(pickled)
29 unpickled2 = pickle.loads(pickled2)
32 self.assertNotIn(pickle.LONG_BINGET, pickled2)
33 self.assertNotIn(pickle.LONG_BINPUT, pickled2)
50 self.assertIn(pickle
[all...]
/external/toolchain-utils/automation/clients/
H A Dnightly.py6 import pickle namespace
47 server.ExecuteJobGroup(pickle.dumps(group))
H A Dpwd_test.py5 import pickle namespace
23 server.ExecuteJobGroup(pickle.dumps(group))
H A Doutput_test.py6 import pickle namespace
25 server.ExecuteJobGroup(pickle.dumps(group))
H A Dandroid.py17 import pickle namespace
39 server.ExecuteJobGroup(pickle.dumps(self.CreateJobGroup()))
H A Dcrosstool.py9 import pickle namespace
35 server.ExecuteJobGroup(pickle.dumps(self.CreateJobGroup()))
/external/python/cpython2/Tools/scripts/
H A Ddb2pickle.py6 Convert the database file given on the command line to a pickle
16 The default is hash. If a pickle file is named it is opened for write
17 access (deleting any existing data). If no pickle file is named, the pickle
41 import cPickle as pickle namespace
43 import pickle namespace
127 pickle.dump((k, db[k]), pfile, 1==1)
H A Dpickle2db.py17 The default is hash. If a pickle file is named it is opened for read
18 access. If no pickle file is named, the pickle input is read from standard
46 import cPickle as pickle namespace
48 import pickle namespace
136 (key, val) = pickle.load(pfile)
/external/python/cpython3/Tools/scripts/
H A Ddb2pickle.py6 Convert the database file given on the command line to a pickle
16 The default is hash. If a pickle file is named it is opened for write
17 access (deleting any existing data). If no pickle file is named, the pickle
41 import pickle as pickle namespace
43 import pickle namespace
127 pickle.dump((k, db[k]), pfile, 1==1)
H A Dpickle2db.py17 The default is hash. If a pickle file is named it is opened for read
18 access. If no pickle file is named, the pickle input is read from standard
46 import pickle as pickle namespace
48 import pickle namespace
136 (key, val) = pickle.load(pfile)
/external/autotest/client/bin/
H A Dparallel.py5 import sys, logging, os, pickle, traceback, gc, time namespace
38 pickle.dump(detail, open(ename, "w"))
60 e = pickle.load(file(ename, 'r'))
H A Dsetup_job.py5 import logging, os, pickle, re, sys namespace
148 pickle.dump(client_test.version, open(versionfile, 'w'))
/external/chromium-trace/catapult/devil/devil/android/
H A Ddevice_errors_test.py6 import pickle namespace
16 pickled = pickle.dumps(original)
17 reconstructed = pickle.loads(pickled)
/external/libchrome/base/metrics/
H A Dhistogram_base_unittest.cc11 #include "base/pickle.h"
52 Pickle pickle; local
53 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
55 PickleIterator iter(pickle);
61 PickleIterator iter2(pickle);
77 Pickle pickle; local
78 ASSERT_TRUE(histogram->SerializeInfo(&pickle));
80 PickleIterator iter(pickle);
86 PickleIterator iter2(pickle);
99 Pickle pickle; local
126 Pickle pickle; local
148 Pickle pickle; local
[all...]
/external/libmojo/mojo/public/cpp/bindings/lib/
H A Dnative_enum_serialization.h14 #include "base/pickle.h"
33 base::Pickle pickle; local
34 Traits::Write(&pickle, input);
36 CHECK_GE(sizeof(int32_t), pickle.payload_size());
38 memcpy(reinterpret_cast<char*>(output), pickle.payload(),
39 pickle.payload_size());
H A Dnative_struct_serialization.h14 #include "base/pickle.h"
44 base::Pickle pickle; local
45 Traits::Write(&pickle, value);
50 DCHECK_EQ(sizer.payload_size(), pickle.payload_size());
53 size_t total_size = pickle.payload_size() + sizeof(ArrayHeader);
60 header->num_elements = static_cast<uint32_t>(pickle.payload_size());
62 pickle.payload(), pickle.payload_size());
/external/python/cpython2/Lib/lib2to3/pgen2/
H A Dgrammar.py17 import pickle namespace
32 The load() method reads the tables from a pickle file, which is
33 much faster than the other ways offered by subclasses. The pickle
89 """Dump the grammar tables to a pickle file.
103 pickle.dump(d, f, 2)
106 """Load the grammar tables from a pickle file."""
108 d = pickle.load(f)
/external/python/cpython2/Lib/test/
H A Dtest_buffer.py8 import pickle namespace
48 ## for proto in range(pickle.HIGHEST_PROTOCOL + 1):
50 ## pickle.dumps(buf, proto)
H A Dtest_pickletools.py1 import pickle namespace
10 return pickletools.optimize(pickle.dumps(arg, proto))
13 return pickle.loads(buf)
15 module = pickle
/external/python/cpython3/Doc/includes/
H A Ddbpickle.py1 # Simple example presenting how persistent ID can be used to pickle
4 import pickle namespace
11 class DBPickler(pickle.Pickler):
26 class DBUnpickler(pickle.Unpickler):
46 raise pickle.UnpicklingError("unsupported persistent object")
78 # Load the records from the pickle data stream.
/external/python/cpython3/Lib/lib2to3/pgen2/
H A Dgrammar.py17 import pickle namespace
32 The load() method reads the tables from a pickle file, which is
33 much faster than the other ways offered by subclasses. The pickle
89 """Dump the grammar tables to a pickle file.
103 pickle.dump(d, f, 2)
106 """Load the grammar tables from a pickle file."""
108 d = pickle.load(f)
/external/toolchain-utils/
H A Dget_common_image_version.py18 import pickle namespace
57 pickle.dump(all_betas, f)
/external/autotest/client/cros/cellular/
H A Dlabconfig.py7 import pickle namespace
160 return pickle.dumps(self)

Completed in 704 milliseconds

12345678