WaitForDeviceDatetimePreparer
public
class
WaitForDeviceDatetimePreparer
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.WaitForDeviceDatetimePreparer | |
ITargetPreparer ينتظر ضبط التاريخ والوقت على الجهاز
يمكن لمسؤول الإعداد هذا فرض TargetSetupError اختياريًا في حال عدم ضبط التاريخ والوقت في مهلة.
ملخّص
وظائف الإنشاء العامة | |
|---|---|
WaitForDeviceDatetimePreparer()
|
|
الطرق العامة | |
|---|---|
void
|
setDatetimeWaitTimeout(long datetimeWaitTimeout)
لضبط مهلة الانتظار للحصول على تاريخ ووقت صالحَين على الجهاز |
void
|
setForceDatetime(boolean forceDatetime)
لضبط ما إذا كان يجب فرض التاريخ والوقت من المضيف إلى الجهاز |
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)
لضبط ما إذا كان يجب فرض التاريخ والوقت من المضيف إلى الجهاز
| المعلمات | |
|---|---|
forceDatetime |
boolean |
setForceSetupError
public void setForceSetupError (boolean forceSetupError)
تُستخدَم لضبط قيمة منطقية لإجبار القيمة على TargetSetupError في حال عدم ضبط التاريخ والوقت بشكل صحيح.
| المعلمات | |
|---|---|
forceSetupError |
boolean |
setUp
public void setUp (TestInformation testInfo)
| المعلمات | |
|---|---|
testInfo |
TestInformation |
| عمليات الرمي | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|