SwitchUserTargetPreparer

public class SwitchUserTargetPreparer
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.SwitchUserTargetPreparer


ITargetPreparer ที่เปลี่ยนไปใช้ประเภทผู้ใช้ที่ระบุใน setUp โดยค่าเริ่มต้น สิทธิ์จะยังคงอยู่ในผู้ใช้ปัจจุบันและไม่มีการสลับ

พยายามกู้คืนสถานะผู้ใช้อุปกรณ์โดยเปลี่ยนกลับไปเป็นผู้ใช้ปัจจุบันก่อนการดําเนินการ

สรุป

ตัวสร้างแบบสาธารณะ

SwitchUserTargetPreparer()

เมธอดสาธารณะ

void setUp(TestInformation testInformation)
void tearDown(TestInformation testInformation, Throwable e)

ตัวสร้างแบบสาธารณะ

SwitchUserTargetPreparer

public SwitchUserTargetPreparer ()

เมธอดสาธารณะ

setUp

public void setUp (TestInformation testInformation)

พารามิเตอร์
testInformation TestInformation

การโยน
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInformation, 
                Throwable e)

พารามิเตอร์
testInformation TestInformation

e Throwable

การโยน
DeviceNotAvailableException