DeviceFeatureFlag

public class DeviceFeatureFlag
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.flag.DeviceFeatureFlag


Summary

Public constructors

DeviceFeatureFlag(String flagString)

Constructor to create a new DeviceFeatureFlag object.

Public methods

String getFlagName()

Get the flag name of the DeviceFeatureFlag.

String getFlagValue()

Get the flag value of the DeviceFeatureFlag.

String getNamespace()

Get the namespace of the DeviceFeatureFlag.

String toString()

Convert the DeviceFeatureFlag object to a flag string in the format of "namespace/flagName=flagValue"

Public constructors

DeviceFeatureFlag

public DeviceFeatureFlag (String flagString)

Constructor to create a new DeviceFeatureFlag object.

Parameters
flagString String: A device config flag string in the format of "namespace/flagName=flagValue"

Throws
IllegalArgumentException if the flagString parameter cannot be parsed

Public methods

getFlagName

public String getFlagName ()

Get the flag name of the DeviceFeatureFlag. E.g. "flagName" in flag string "namespace/flagName=flagValue".

Returns
String flag name string

getFlagValue

public String getFlagValue ()

Get the flag value of the DeviceFeatureFlag. E.g. "flagValue" in flag string "namespace/flagName=flagValue".

Returns
String flag value string

getNamespace

public String getNamespace ()

Get the namespace of the DeviceFeatureFlag. E.g. "namespace" in flag string "namespace/flagName=flagValue".

Returns
String namespace string

toString

public String toString ()

Convert the DeviceFeatureFlag object to a flag string in the format of "namespace/flagName=flagValue"

Returns
String formatted flag string