WaitForDeviceDatetimePreparer
public class WaitForDeviceDatetimePreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.WaitForDeviceDatetimePreparer |
datetime がデバイスに設定されるのを待機するITargetPreparer
オプションで、datetime がタイムアウト内に設定されていない場合、この準備ツールはTargetSetupError
強制するか、ホストの datetime をデバイスに強制することができます。
まとめ
パブリック コンストラクター | |
---|---|
WaitForDeviceDatetimePreparer () |
公開メソッド | |
---|---|
void | setDatetimeWaitTimeout (long datetimeWaitTimeout) 有効なデバイスの日時を待機するためのタイムアウトを設定します |
void | setForceDatetime (boolean forceDatetime) datetime をホストからデバイスに強制する必要があるかどうかを設定します |
void | setForceSetupError (boolean forceSetupError) 日時が正しく設定されていない場合に |
void | setUp ( TestInformation testInfo) |
保護されたメソッド | |
---|---|
IRunUtil | getRunUtil () |
パブリック コンストラクター
WaitForDeviceDatetimePreparer
public WaitForDeviceDatetimePreparer ()
公開メソッド
setDatetimeWaitTimeout
public void setDatetimeWaitTimeout (long datetimeWaitTimeout)
有効なデバイスの日時を待機するためのタイムアウトを設定します
パラメーター | |
---|---|
datetimeWaitTimeout | long |
setForceDatetime
public void setForceDatetime (boolean forceDatetime)
datetime をホストからデバイスに強制する必要があるかどうかを設定します
パラメーター | |
---|---|
forceDatetime | boolean |
setForceSetupError
public void setForceSetupError (boolean forceSetupError)
日時が正しく設定されていない場合にTargetSetupError
を強制するためのブール値を設定します。
パラメーター | |
---|---|
forceSetupError | boolean |
設定
public void setUp (TestInformation testInfo)
パラメーター | |
---|---|
testInfo | TestInformation |
スロー | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |