to top
public class

DeviceBuildInfoInjector

extends Object
implements ITargetPreparer @OptionClass(alias = "device-build-injector")
java.lang.Object
   ↳ com.android.tradefed.targetprep.DeviceBuildInfoInjector

Class Overview

A ITargetPreparer that inserts DeviceBuildDescriptor metadata into the IBuildInfo.

Intended to be used for "unbundled" build types that want test reporters to use metadata about what device platform test was run on.

Summary

Fields
private String mOverrideDeviceBuildAlias @Option(name = "override-device-build-alias", description = "the device buid alias to inject.")
private String mOverrideDeviceBuildFlavor @Option(name = "override-device-build-flavor", description = "the device build flavor to inject.")
private String mOverrideDeviceBuildId @Option(name = "override-device-build-id", description = "the device buid id to inject.")
Public Constructors
DeviceBuildInfoInjector()
Public Methods
void setUp(ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.targetprep.ITargetPreparer

Fields

private String mOverrideDeviceBuildAlias

private String mOverrideDeviceBuildFlavor

private String mOverrideDeviceBuildId

Public Constructors

public DeviceBuildInfoInjector ()

Public Methods

public void setUp (ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device the ITestDevice to prepare.
buildInfo data about the build under test.