Home
last modified time | relevance | path

Searched refs:setstate (Results 1 – 25 of 74) sorted by relevance

123

/external/libcxx/test/std/input.output/iostreams.base/ios/iostate.flags/
Dsetstate.pass.cpp28 ios.setstate(std::ios::goodbit); in main()
41 ios.setstate(std::ios::goodbit); in main()
50 ios.setstate(std::ios::eofbit); in main()
62 ios.setstate(std::ios::goodbit); in main()
64 ios.setstate(std::ios::eofbit); in main()
66 ios.setstate(std::ios::failbit); in main()
Dbad.pass.cpp27 ios.setstate(std::ios::eofbit); in main()
34 ios.setstate(std::ios::eofbit); in main()
36 ios.setstate(std::ios::failbit); in main()
38 ios.setstate(std::ios::badbit); in main()
Dfail.pass.cpp27 ios.setstate(std::ios::eofbit); in main()
34 ios.setstate(std::ios::eofbit); in main()
36 ios.setstate(std::ios::badbit); in main()
38 ios.setstate(std::ios::failbit); in main()
Deof.pass.cpp27 ios.setstate(std::ios::eofbit); in main()
34 ios.setstate(std::ios::eofbit); in main()
Dnot.pass.cpp23 ios.setstate(std::ios::failbit); in main()
Drdstate.pass.cpp23 ios.setstate(std::ios::failbit); in main()
Dgood.pass.cpp32 ios.setstate(std::ios::eofbit); in main()
Dbool.pass.cpp26 ios.setstate(std::ios::failbit); in main()
/external/libcxx/include/
Dostream282 __os_.setstate(ios_base::badbit);
345 this->setstate(ios_base::failbit);
355 this->setstate(ios_base::badbit);
381 this->setstate(ios_base::badbit | ios_base::failbit);
411 this->setstate(ios_base::badbit | ios_base::failbit);
437 this->setstate(ios_base::badbit | ios_base::failbit);
467 this->setstate(ios_base::badbit | ios_base::failbit);
493 this->setstate(ios_base::badbit | ios_base::failbit);
519 this->setstate(ios_base::badbit | ios_base::failbit);
545 this->setstate(ios_base::badbit | ios_base::failbit);
[all …]
Distream329 __is.setstate(ios_base::failbit | ios_base::eofbit);
334 __is.setstate(ios_base::failbit);
377 __is.setstate(__err);
494 __is.setstate(__err);
553 __is.setstate(__err);
638 __is.setstate(ios_base::eofbit | ios_base::failbit);
704 this->setstate(__err);
715 this->setstate(ios_base::failbit);
742 this->setstate(ios_base::failbit | ios_base::eofbit);
788 this->setstate(__err);
[all …]
Dfstream1212 this->setstate(ios_base::failbit);
1222 this->setstate(ios_base::failbit);
1232 this->setstate(ios_base::failbit);
1300 this->setstate(ios_base::failbit);
1311 this->setstate(ios_base::failbit);
1322 this->setstate(ios_base::failbit);
1331 this->setstate(ios_base::failbit);
1341 this->setstate(ios_base::failbit);
1425 this->setstate(ios_base::failbit);
1435 this->setstate(ios_base::failbit);
[all …]
/external/zlib/src/contrib/iostream3/
Dzfstream.cc402 this->setstate(std::ios_base::failbit); in open()
413 this->setstate(std::ios_base::failbit); in attach()
423 this->setstate(std::ios_base::failbit); in close()
457 this->setstate(std::ios_base::failbit); in open()
468 this->setstate(std::ios_base::failbit); in attach()
478 this->setstate(std::ios_base::failbit); in close()
/external/python/cpython2/Lib/test/
Dtest_random.py32 self.gen.setstate(state) # should regenerate the same sequence
167 self.assertRaises(ValueError, self.gen.setstate, (2, None, None))
176 self.gen.setstate(s)
214 self.assertRaises(NotImplementedError, self.gen.setstate, None)
327 self.assertRaises(ValueError, self.gen.setstate, (1, None, None))
332 self.assertRaises(TypeError, self.gen.setstate, (2, None, None))
334 self.assertRaises(ValueError, self.gen.setstate, (2, (1,2,3), None))
336 self.assertRaises(TypeError, self.gen.setstate, (2, ('a',)*625, None))
338 self.assertRaises(TypeError, self.gen.setstate, (2, (0,)*624+('a',), None))
341 self.gen.setstate((2, (1,)*624+(625,), None))
[all …]
/external/python/cpython2/Lib/
Drandom.py127 def setstate(self, state): member in Random
132 super(Random, self).setstate(internalstate)
143 super(Random, self).setstate(internalstate)
170 self.setstate(state)
727 def setstate(self, state): member in WichmannHill
837 getstate = setstate = _notimplemented
907 setstate = _inst.setstate variable
/external/python/cpython3/Lib/encodings/
Dutf_8_sig.py46 def setstate(self, state): member in IncrementalEncoder
80 def setstate(self, state): member in IncrementalDecoder
82 codecs.BufferedIncrementalDecoder.setstate(self, state)
Dutf_32.py39 def setstate(self, state): member in IncrementalEncoder
84 def setstate(self, state): member in IncrementalDecoder
86 codecs.BufferedIncrementalDecoder.setstate(self, state)
Dutf_16.py44 def setstate(self, state): member in IncrementalEncoder
89 def setstate(self, state): member in IncrementalDecoder
91 codecs.BufferedIncrementalDecoder.setstate(self, state)
/external/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/
Dset_rdbuf.pass.cpp42 ios.setstate(std::ios::badbit); in main()
55 ios.setstate(std::ios::badbit); in main()
/external/python/cpython3/Lib/
Drandom.py133 def setstate(self, state): member in Random
138 super().setstate(internalstate)
149 super().setstate(internalstate)
167 self.setstate(state)
698 getstate = setstate = _notimplemented
769 setstate = _inst.setstate variable
/external/python/cpython2/Lib/encodings/
Dutf_32.py39 def setstate(self, state): member in IncrementalEncoder
84 def setstate(self, state): member in IncrementalDecoder
86 codecs.BufferedIncrementalDecoder.setstate(self, state)
/external/python/cpython3/Lib/test/
Dtest_random.py36 self.gen.setstate(state) # should regenerate the same sequence
301 self.assertRaises(NotImplementedError, self.gen.setstate, None)
480 self.assertRaises(ValueError, self.gen.setstate, (1, None, None))
485 self.assertRaises(TypeError, self.gen.setstate, (2, None, None))
487 self.assertRaises(ValueError, self.gen.setstate, (2, (1,2,3), None))
489 self.assertRaises(TypeError, self.gen.setstate, (2, ('a',)*625, None))
491 self.assertRaises(TypeError, self.gen.setstate, (2, (0,)*624+('a',), None))
494 self.gen.setstate((2, (1,)*624+(625,), None))
496 self.gen.setstate((2, (1,)*624+(-1,), None))
499 self.gen.setstate(start_state)
[all …]
/external/libcxx/src/
Dios.cpp188 setstate(badbit); in iword()
212 setstate(badbit); in pword()
237 setstate(badbit); in register_callback()
241 setstate(badbit); in register_callback()
/external/deqp-deps/glslang/SPIRV/
Dhex_float.h751 is.setstate(std::ios_base::failbit);
789 is.setstate(std::ios_base::failbit);
823 is.setstate(std::ios_base::failbit);
932 is.setstate(std::ios::failbit);
963 is.setstate(std::ios::failbit);
976 is.setstate(std::ios::failbit);
/external/ImageMagick/PerlMagick/demo/
DTurtle.pm43 sub setstate subroutine
/external/python/cpython2/Doc/library/
Drandom.rst40 :meth:`~Random.seed`, :meth:`~Random.getstate`, :meth:`~Random.setstate` and
92 object can be passed to :func:`setstate` to restore the state.
100 .. function:: setstate(state)
103 :func:`setstate` restores the internal state of the generator to what it was at
115 :meth:`setstate` or :meth:`seed` can be used to force all instances into the
314 The :meth:`getstate` and :meth:`setstate` methods raise

123