Report device resource to TFC as well.

Report extra device info to TFC:
1. TFC will have more information about device.
2. it's easier to add extra infro than add to DeviceDescription.
3. This is also a way to know the host has device monitor enabled or not
on TFC side.

This is short term solution, long term we need to refactor the
gRPC server out of LabResourceMonitor and LabResourceMonitor will only
do refresh resource logic.

Bug: 178141849
Test: unit test.
Change-Id: I2f5280365589839aff4fef22b6e8634d4a89d30f
4 files changed
tree: bc7459b133eb89eaf5d4cac63a179cb7d66dfffd
  1. clearcut_client/
  2. common_util/
  3. device_build_interfaces/
  4. global_configuration/
  5. invocation_interfaces/
  6. isolation/
  7. lite/
  8. proto/
  9. reference_tests/
  10. remote/
  11. res/
  12. src/
  13. test_framework/
  14. test_result_interfaces/
  15. tests/
  16. util-apps/
  17. .classpath
  18. .gitignore
  19. .project
  20. Android.bp
  21. Android.mk
  22. aosp_sha.sh
  23. atest_tradefed.sh
  24. CleanSpec.mk
  25. error_prone_rules.mk
  26. MANIFEST.mf
  27. OWNERS
  28. PREUPLOAD.cfg
  29. pylintrc
  30. README.md
  31. run_tf_cmd.sh
  32. script_help.sh
  33. TEST_MAPPING
  34. tradefed.sh
  35. tradefed_win.bat
README.md

Trade Federation (TF / Tradefed)

TF is a test harness used to drive Android automated testing. It runs on test hosts and monitors the connected devices, handling test scheduling & execution and device management.

Other test harnesses like Compatibility Test Suite (CTS) and Vendor Test Suite (VTS) use TF as a basis and extend it for their particular needs.

Building TF:

  • source build/envsetup.sh
  • tapas tradefed-all
  • make -j8

Getting Code Reviewed

1. Create your change in Gerrit
2. Add the reviewer named "Tradefed Codereview" (email: tradefed-codereview@tradefederation.google.com.iam.gserviceaccount.com)
3. Review the code review guidance at go/tf-guidelines and go/tradefed-code-reviews
4. GWSQ should add a couple of people from the team to review your code and give feedback.

More information

More information at: https://source.android.com/devices/tech/test_infra/tradefed/

See more details about Tradefed Architecture at: https://source.android.com/devices/tech/test_infra/tradefed/architecture

If you are a tests writer you should start looking in the test_framework/ component which contains everything needed to write a tests in Tradefed.