Home
last modified time | relevance | path

Searched refs:BytesToHumanReadable (Results 1 – 4 of 4) sorted by relevance

/system/update_engine/scripts/update_payload/
Dformat_utils_unittest.py65 self.assertEqual(format_utils.BytesToHumanReadable(0x1000), '4 KiB')
66 self.assertEqual(format_utils.BytesToHumanReadable(0x400000), '4 MiB')
67 self.assertEqual(format_utils.BytesToHumanReadable(0x100000000), '4 GiB')
68 self.assertEqual(format_utils.BytesToHumanReadable(0x40000000000), '4 TiB')
71 self.assertEqual(format_utils.BytesToHumanReadable(5000, decimal=True),
73 self.assertEqual(format_utils.BytesToHumanReadable(5000000, decimal=True),
75 self.assertEqual(format_utils.BytesToHumanReadable(5000000000,
80 self.assertEqual(format_utils.BytesToHumanReadable(5000), '4.8 KiB')
81 self.assertEqual(format_utils.BytesToHumanReadable(500000), '488.2 KiB')
82 self.assertEqual(format_utils.BytesToHumanReadable(5000000), '4.7 MiB')
[all …]
Dformat_utils.py69 def BytesToHumanReadable(size, precision=1, decimal=False): function
Dhistogram_unittest.py36 fmt = format_utils.BytesToHumanReadable(size)
Dchecker.py107 return _AddFormat(format_utils.BytesToHumanReadable, size)