Home
last modified time | relevance | path

Searched refs:halfsize (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_mmap.py458 def make_mmap_file (self, f, halfsize): argument
460 f.write ('\0' * halfsize)
462 f.write ('\0' * (halfsize - 3))
479 halfsize = mmap.ALLOCATIONGRANULARITY
480 m = self.make_mmap_file (f, halfsize)
484 mapsize = halfsize * 2
499 m = mmap.mmap(f.fileno(), mapsize - halfsize, offset=halfsize)
519 self.assertEqual(f.tell(), halfsize + 512)
521 self.assertEqual(m.size(), halfsize + 512)
/external/python/cpython3/Lib/test/
Dtest_mmap.py483 def make_mmap_file (self, f, halfsize): argument
485 f.write (b'\0' * halfsize)
487 f.write (b'\0' * (halfsize - 3))
504 halfsize = mmap.ALLOCATIONGRANULARITY
505 m = self.make_mmap_file (f, halfsize)
509 mapsize = halfsize * 2
524 m = mmap.mmap(f.fileno(), mapsize - halfsize, offset=halfsize)
544 self.assertEqual(f.tell(), halfsize + 512)
546 self.assertEqual(m.size(), halfsize + 512)
/external/libmtp/src/
Dptp-pack.c1666 uint32_t halfsize = dtoh16a( (*data) + 4); in ptp_unpack_EOS_FocusInfoEx() local
1694 if (halfsize != size-4) { in ptp_unpack_EOS_FocusInfoEx()
1695 ptp_error(params, "halfsize %d is not expected %d", halfsize, size-4); in ptp_unpack_EOS_FocusInfoEx()