Add tests for get, create, getOrCreate

We didn't have any test coverage for getOrCreate, which is bad.

We also didn't have tests for the important property that you always
get the same VirtualMachine instance from these functions; nor did we
document that.

Also some light refactoring.

Test: atest MicrodroidTests
Bug: 261089825
Bug: 261037705
Change-Id: I84bdb4427c20ae774e1d0dc887cf67a241cddb89
2 files changed
tree: dbaef05d215e93172d28ad48b7336125f9e50dcb
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. avmd/
  5. compos/
  6. demo/
  7. docs/
  8. encryptedstore/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  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.