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.py60 self.assertEqual(format_utils.BytesToHumanReadable(0x1000), '4 KiB')
61 self.assertEqual(format_utils.BytesToHumanReadable(0x400000), '4 MiB')
62 self.assertEqual(format_utils.BytesToHumanReadable(0x100000000), '4 GiB')
63 self.assertEqual(format_utils.BytesToHumanReadable(0x40000000000), '4 TiB')
66 self.assertEqual(format_utils.BytesToHumanReadable(5000, decimal=True),
68 self.assertEqual(format_utils.BytesToHumanReadable(5000000, decimal=True),
70 self.assertEqual(format_utils.BytesToHumanReadable(5000000000,
75 self.assertEqual(format_utils.BytesToHumanReadable(5000), '4.8 KiB')
76 self.assertEqual(format_utils.BytesToHumanReadable(500000), '488.2 KiB')
77 self.assertEqual(format_utils.BytesToHumanReadable(5000000), '4.7 MiB')
[all …]
Dformat_utils.py67 def BytesToHumanReadable(size, precision=1, decimal=False): function
Dhistogram_unittest.py31 fmt = format_utils.BytesToHumanReadable(size)
Dchecker.py107 return _AddFormat(format_utils.BytesToHumanReadable, size)