用户助手
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 |