BaseModuleController

public abstract class BaseModuleController
extends Object implements IModuleController

java.lang.Object
   ↳ com.android.tradefed.testtype.suite.module.BaseModuleController


IModuleController 的基本實作,應實作此方法來檢查模組是否應執行。

摘要

公用建構函式

BaseModuleController()

公用方法

final IAbi getModuleAbi()

輔助方法,用於取得模組 ABI。

final String getModuleName()

輔助方法,用於取得模組名稱。

final boolean shouldCaptureBugreport()

傳回模組是否要在測試失敗時擷取錯誤報告。

final boolean shouldCaptureLogcat()

傳回模組是否要在測試失敗時擷取 logcat。

final boolean shouldCaptureScreenshot()

Returns whether of not the module wants to capture the screenshot on test failure.

abstract IModuleController.RunStrategy shouldRun(IInvocationContext context)

決定是否應執行模組的方法。

final IModuleController.RunStrategy shouldRunModule(IInvocationContext context)

判斷模組是否應執行的方法。

公用建構函式

BaseModuleController

public BaseModuleController ()

公用方法

getModuleAbi

public final IAbi getModuleAbi ()

取得模組 ABI 的輔助方法。

傳回
IAbi

getModuleName

public final String getModuleName ()

取得模組名稱的輔助方法。

傳回
String

shouldCaptureBugreport

public final boolean shouldCaptureBugreport ()

傳回模組是否要在測試失敗時擷取錯誤報告。

傳回
boolean

shouldCaptureLogcat

public final boolean shouldCaptureLogcat ()

傳回模組是否要在測試失敗時擷取 logcat。

傳回
boolean

shouldCaptureScreenshot

public final boolean shouldCaptureScreenshot ()

Returns whether of not the module wants to capture the screenshot on test failure.

傳回
boolean

shouldRun

public abstract IModuleController.RunStrategy shouldRun (IInvocationContext context)

決定是否應執行模組的方法。

參數
context IInvocationContext:模組的 IInvocationContext

傳回
IModuleController.RunStrategy 如果應執行模組,則為 True,否則為 False。

擲回
DeviceNotAvailableException

shouldRunModule

public final IModuleController.RunStrategy shouldRunModule (IInvocationContext context)

判斷模組是否應執行的相關方法。

參數
context IInvocationContext:模組的 IInvocationContext

傳回
IModuleController.RunStrategy 如果應執行模組,則為 True,否則為 False。

擲回
DeviceNotAvailableException