MetricUtils

public final class MetricUtils
extends Object

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


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

概要

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

MetricUtils()

パブリック メソッド

static convertValueToDouble( tfMetrics)

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

static Metrics toMetrics( tfMetrics)

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

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

MetricUtils

public MetricUtils ()

パブリック メソッド

convertValueToDouble

public static  convertValueToDouble ( tfMetrics)

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

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

戻り値
指標キーと double 値の HashMap

toMetrics

public static Metrics toMetrics ( tfMetrics)

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

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

戻り値
Metrics 指標モデル