Home
last modified time | relevance | path

Searched refs:FLAG_PRIMARY (Results 1 – 4 of 4) sorted by relevance

/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DUserInfo.java27 public static final int FLAG_PRIMARY = 0x00000001; field in UserInfo
38 FLAG_PRIMARY | FLAG_MANAGED_PROFILE | FLAG_GUEST | FLAG_RESTRICTED;
155 return (mFlag & FLAG_PRIMARY) == FLAG_PRIMARY; in isPrimary()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DSwitchUserTargetPreparerTest.java75 /* flags= */ new Integer[] {0, UserInfo.FLAG_PRIMARY}); in testSetUpRunAsPrimary_ifAlreadyInPrimary_noSwitch()
93 /* flags= */ new Integer[] {0, UserInfo.FLAG_PRIMARY}); in testSetUpRunAsSystem_ifAlreadyInSystem_noSwitch()
112 UserInfo.FLAG_PRIMARY, UserInfo.FLAG_MAIN, UserInfo.FLAG_GUEST in testSetUpRunAsSystem_ifSystemSwitchIsNotAllowed_switchToMain()
137 UserInfo.FLAG_PRIMARY, UserInfo.FLAG_MAIN, UserInfo.FLAG_GUEST in testSetUpRunAsSystem_ifSystemSwitchIsNotAllowed_noSwitchIfAlreadyOnMainUser()
159 /* flags= */ new Integer[] {0, UserInfo.FLAG_PRIMARY, 0}); in testSetUpRunAsPrimary_ifNotInPrimary_switchToPrimary()
255 /* flags= */ new Integer[] {UserInfo.FLAG_PRIMARY, 0}); in testSetUp_ifSwitchFails_throwsTargetSetupError()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java145 private static final int FLAG_PRIMARY = 1; // From the UserInfo class field in TestDevice
2012 return getUserIdByFlag(FLAG_PRIMARY); in getPrimaryUserId()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceTest.java3949 UserInfo.FLAG_PRIMARY, in testIsUserSecondary()