commit | b5f7db3c4afd86b894a47a7a387c369c5bea13dd | [log] [tgz] |
---|---|---|
author | jahinimtiaz <jahinimtiaz@google.com> | Thu Feb 23 00:43:24 2023 +0000 |
committer | Jahin Imtiaz <jahinimtiaz@google.com> | Fri Mar 03 20:01:35 2023 +0000 |
tree | 428933cd34036ed48ea5b8a64be4b1290a6a9888 | |
parent | d8e1a28b0ea211466398a221a7351a10cbfd5910 [diff] |
Handle device actions for metric collectors This change introduces two ITestDevice api methods that will allow metric collectors to register themselves to receive device events like reboot. It also introduces an Interface declaring all the device events that can be received. This change includes implementation to report reboot start and end events to all device event receivers. It also makes sure that these event callbacks don't enter a dead loop. This change also includes required changes to DeviceTraceCollector to enable this feature. Bug: 268512240 Test: Presubmit, "run host --class com.android.tradefed.presubmit.DeviceStateTransitionFuncTests --auto-collect DEVICE_TRACE" Change-Id: Ie1bf29a9c403f6b59fbd316080b4d52cd8f37050
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.
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 at: https://source.android.com/docs/core/tests/tradefed/
See more details about Tradefed Architecture at: https://source.android.com/docs/core/tests/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.