用戶助理

public final class UserHelper
extends Object

java.lang.Object
com.android.tradefed.targetprep.UserHelper


概括

領域

public static final String RUN_TESTS_AS_USER_KEY

系統屬性用於指示哪個 Android 用戶正在執行測試。

公共方法

static int createUser ( ITestDevice device, boolean reuseTestUser)

領域

RUN_TESTS_AS_USER_KEY

public static final String RUN_TESTS_AS_USER_KEY

系統屬性用於指示哪個 Android 用戶正在執行測試。

公共方法

創建用戶

public static int createUser (ITestDevice device, 
                boolean reuseTestUser)

參數
device ITestDevice

reuseTestUser boolean

退貨
int

投擲
DeviceNotAvailableException
TargetSetupError