RunOnSystemUserTargetPreparer

public class RunOnSystemUserTargetPreparer
extends BaseTargetPreparer

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


テストを(現在のユーザーではなく)ユーザーに対して実行する必要があることを示す ITargetPreparer

デフォルトでは、ユーザーが切り替わり、システム ユーザーがフォアグラウンドになります。

ヘッドレス システム ユーザーが設定されたデバイスで実行する場合、デフォルトではユーザーは切り替わりません。ただし、テストは引き続きそのユーザーで実行されます。

概要

パブリック コンストラクタ

RunOnSystemUserTargetPreparer()

パブリック メソッド

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

パブリック コンストラクタ

RunOnSystemUserTargetPreparer

public RunOnSystemUserTargetPreparer ()

パブリック メソッド

setUp

public void setUp (TestInformation testInfo)

パラメータ
testInfo TestInformation

例外
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

パラメータ
testInfo TestInformation

e Throwable

例外
DeviceNotAvailableException