Wifi準備器
public class WifiPreparer
extends BaseTargetPreparer
implements IExternalDependency
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.WifiPreparer |
如有必要,可在裝置上設定 wifi 的ITargetPreparer
。
與DeviceSetup
不同,此準備器在 adb 不是 root(即使用者建置)時運作。
概括
公共構造函數 | |
---|---|
WifiPreparer () |
公共方法 | |
---|---|
getDependencies () | |
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e)
|
公共構造函數
Wifi準備器
public WifiPreparer ()
公共方法
獲取依賴關係
publicgetDependencies ()
退貨 | |
---|---|
設定
public void setUp (TestInformation testInfo)
參數 | |
---|---|
testInfo | TestInformation |
投擲 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
參數 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投擲 | |
---|---|
DeviceNotAvailableException |