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 ()
公用方法
getModuleName
public String getModuleName ()
取得要執行的 Android 原生基準測試模組。
傳回 | |
---|---|
String |
要執行的原生測試模組名稱,如果未設定,則為空值 |
得分
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 :要執行的原生測試模組名稱 |