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