test: Use INFINITY & NaN for intermediate metrics

As MIN_VALUE is the smallest positive value IEEE 754 allows,
computeStats() returns an incorrect maximum value when it receives a set
of metrics that are all 0 so replace MIN_VALUE with NEGATIVE_INFINITY.

For consistency and clarity, use the corresponding POSITIVE_INFINITY and
NaN to respectively initialize the minimum value and median value; as
the function assumes that it received at least one item by dividing by
(values.size() - 1), these values should never be returned by the
function.

Test: atest MicrodroidBenchmarks#testMicrodroidDebugBootTime
Change-Id: I9368a7d3de59d20f7b55b03520e07d2509ab13b7
1 file changed
tree: cb5419ceb39875d6a289cf677b040bff68f2c8b4
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. compos/
  5. demo/
  6. docs/
  7. encryptedstore/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. rialto/
  15. tests/
  16. virtualizationmanager/
  17. virtualizationservice/
  18. vm/
  19. vm_payload/
  20. vmbase/
  21. vmclient/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.