Searched refs:BytesToHumanReadable (Results 1 – 4 of 4) sorted by relevance
/system/update_engine/scripts/update_payload/ |
D | format_utils_unittest.py | 60 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 …]
|
D | format_utils.py | 67 def BytesToHumanReadable(size, precision=1, decimal=False): function
|
D | histogram_unittest.py | 31 fmt = format_utils.BytesToHumanReadable(size)
|
D | checker.py | 107 return _AddFormat(format_utils.BytesToHumanReadable, size)
|