NativeBenchmarkTest

public class NativeBenchmarkTest
extends Object implements IDeviceTest, IRemoteTest

java.lang.Object
   ↳ com.android.tradefed.testtype.NativeBenchmarkTest


指定されたデバイスでネイティブ ベンチマーク テスト実行可能ファイルを実行するテスト。

NativeBenchmarkTestParser を使用して、オペレーション間の平均オペレーション時間と遅延を解析し、その結果を ITestInvocationListener に渡します。

概要

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

NativeBenchmarkTest()

パブリック メソッド

ITestDevice getDevice()

テスト対象デバイスを入手します。

String getModuleName()

実行する Android ネイティブ ベンチマーク テスト モジュールを取得します。

void run(TestInformation testInfo, ITestInvocationListener listener)

テストを実行し、結果をリスナーに報告します。

void setDevice(ITestDevice device)

テスト対象デバイスを挿入します。

void setModuleName(String moduleName)

実行する Android ネイティブ ベンチマーク テスト モジュールを設定します。

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

NativeBenchmarkTest

public NativeBenchmarkTest ()

パブリック メソッド

getDevice

public ITestDevice getDevice ()

テスト対象デバイスを入手します。

戻り値
ITestDevice ITestDevice

getModuleName

public String getModuleName ()

実行する Android ネイティブ ベンチマーク テスト モジュールを取得します。

戻り値
String 実行するネイティブ テスト モジュールの名前(設定されていない場合は null)

ホームラン

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

テストを実行し、結果をリスナーに報告します。

パラメータ
testInfo TestInformation: テストの実行に役立つ情報が含まれる TestInformation オブジェクト。

listener ITestInvocationListener: テスト結果の ITestInvocationListener

例外
DeviceNotAvailableException

setDevice

public void setDevice (ITestDevice device)

テスト対象デバイスを挿入します。

パラメータ
device ITestDevice: 使用する ITestDevice

setModuleName

public void setModuleName (String moduleName)

実行する Android ネイティブ ベンチマーク テスト モジュールを設定します。

パラメータ
moduleName String: 実行するネイティブ テスト モジュールの名前