/**
* Internal non-parcelable wrapper for UserInfo that is not exposed to other system apps.
* 未公开给其他系统应用程序的UserInfo的内部不可分组包装。
*/@VisibleForTestingstaticclassUserData{// Basic user information and properties 基本用户信息和属性UserInfo info;// Account name used when there is a strong association between a user and an account// 当用户和帐户之间存在强关联时使用的帐户名String account;// Account information for seeding into a newly created user. This could also be// used for login validation for an existing user, for updating their credentials.// In the latter case, data may not need to be persisted as it is only valid for the// current login session./*
用于种子设定到新创建的用户的帐户信息。这也可以用于现有用户的登录验证,用于更新他们的凭据。
在后一种情况下,数据可能不需要持久化,因为它只对当前登录会话有效。
*/String seedAccountName;String seedAccountType;PersistableBundle seedAccountOptions;// Whether to perist the seed account information to be available after a boot// 是否在引导后销毁可用的种子帐户信息boolean persistSeedData;/** Elapsed realtime since boot when the user started. *//**自用户启动后实时运行的时间*/long startRealtime;/** Elapsed realtime since boot when the user was unlocked. *//**自用户解锁时启动以来实时运行的时间*/long unlockRealtime;privatelong mLastRequestQuietModeEnabledMillis;/**
* {@code true} if the system should ignore errors when preparing the
* storage directories for this user. This is {@code false} for all new
* users; it will only be {@code true} for users that already existed
* on-disk from an older version of Android.
*//**
/**
如果系统在准备此用户的存储目录时应忽略错误。这对所有新用户来说都是错误的;
这只适用于已经存在于旧版本Android磁盘上的用户。
*/privateboolean mIgnorePrepareStorageErrors;voidsetLastRequestQuietModeEnabledMillis(long millis){
mLastRequestQuietModeEnabledMillis = millis;}longgetLastRequestQuietModeEnabledMillis(){return mLastRequestQuietModeEnabledMillis;}booleangetIgnorePrepareStorageErrors(){return mIgnorePrepareStorageErrors;}voidsetIgnorePrepareStorageErrors(){
mIgnorePrepareStorageErrors =true;}voidclearSeedAccountData(){
seedAccountName =null;
seedAccountType =null;
seedAccountOptions =null;
persistSeedData =false;}}