ClangCodeCoverageCollector
public
final
class
ClangCodeCoverageCollector
extends BaseDeviceMetricCollector
implements
IConfigurationReceiver
| java.lang.Object | ||
| ↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
| ↳ | com.android.tradefed.device.metric.ClangCodeCoverageCollector | |
A BaseDeviceMetricCollector that will pull Clang
coverage measurements off of the device and log them as test artifacts.
Summary
Public constructors | |
|---|---|
ClangCodeCoverageCollector()
|
|
Public methods | |
|---|---|
void
|
extraInit(IInvocationContext context, ITestInvocationListener listener)
|
void
|
onTestRunEnd(DeviceMetricData runData,
Callback when a test run is ended. |
void
|
rebootEnded(ITestDevice device)
Gets notification when the reboot ended in device. |
void
|
setConfiguration(IConfiguration configuration)
Injects the |
void
|
setRunUtil(IRunUtil runUtil)
|
Public constructors
ClangCodeCoverageCollector
public ClangCodeCoverageCollector ()
Public methods
extraInit
public void extraInit (IInvocationContext context, ITestInvocationListener listener)
| Throws | |
|---|---|
DeviceNotAvailableException |
|
onTestRunEnd
public void onTestRunEnd (DeviceMetricData runData,currentRunMetrics)
Callback when a test run is ended. This should be the time for clean up.
| Parameters | |
|---|---|
runData |
DeviceMetricData: the DeviceMetricData holding the data for the run. Will be the same
object as during BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData). |
currentRunMetrics |
: the current map of metrics passed to ERROR(/#testRunEnded(long,Map)). |
| Throws | |
|---|---|
DeviceNotAvailableException |
|
rebootEnded
public void rebootEnded (ITestDevice device)
Gets notification when the reboot ended in device.
NOTE: Receivers should avoid rebooting during this callback. Any reboot attempt will be ignored.
| Parameters | |
|---|---|
device |
ITestDevice: ITestDevice where the reboot ended. |
| Throws | |
|---|---|
DeviceNotAvailableException |
|
setConfiguration
public void setConfiguration (IConfiguration configuration)
Injects the IConfiguration in use.
| Parameters | |
|---|---|
configuration |
IConfiguration |