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 : 実行するネイティブ テスト モジュールの名前