Annotate blocking methods

For all of our API methods which may block (due to lock contention,
I/O, binder calls or, well, starting a VM) add the @WorkerThread
annotation and a note in the javadoc.

This includes some apparently trivial methods - but since in some
cases we do significant work while holding mLock, anything that
acquires it may also block. OTOH there's really no reason to call any
of these on a UI thread anyway.

There is one substantive change here - I moved deleting the VM
directory outside of mLock, now that we have mWasDeleted. (And
sCreateLock means the delete can't race with a create.)

Bug: 261037705
Test: atest MicrodroidTests
Change-Id: I9029c90c5cbd52dd0947d7f68fb9214b63174474
3 files changed
tree: f2bd0b11a17d771eace47b29d7cb2372f3159b5c
  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.