MetricUtils

public final class MetricUtils
extends Object

java.lang.Object
com.google.android.tradefed.result.teststorage.MetricUtils


指標形式の変換を処理するためのヘルパー メソッドを保持するクラス。

概要

パブリック コンストラクタ

MetricUtils()

パブリック メソッド

static HashMap<String, Double> convertValueToDouble(HashMap<String, MetricMeasurement.Metric> tfMetrics)

Map<string, metricmeasurement.metric=""> から Map<string, double=""> への変換。 </string,></string,>

static Metrics toMetrics(HashMap<String, MetricMeasurement.Metric> tfMetrics)

指標キーから Tradefed 指標マッピングへの HashMap を Android Build API 指標 モデルに変換します。

パブリック コンストラクタ

MetricUtils

public MetricUtils ()

パブリック メソッド

convertValueToDouble

public static HashMap<String, Double> convertValueToDouble (HashMap<String, MetricMeasurement.Metric> tfMetrics)

Map<string, metricmeasurement.metric=""> から Map<string, double=""> への変換。 int と double の単一の値は保持されますが、値のリストは変換されず、失われます。</string,></string,>

パラメータ
tfMetrics HashMap: 指標キーから Tradefed 指標への HashMap

戻り値
HashMap<String, Double> 指標キーから double 値への HashMap

toMetrics

public static Metrics toMetrics (HashMap<String, MetricMeasurement.Metric> tfMetrics)

指標キーから Tradefed 指標マッピングへの HashMap を Android Build API 指標 モデルに変換します。

パラメータ
tfMetrics HashMap: 指標キーから Tradefed 指標への HashMap

戻り値
Metrics 指標モデル