Home
last modified time | relevance | path

Searched refs:FLAG_MAIN (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/content/pm/
DUserInfo.java187 public static final int FLAG_MAIN = 0x00004000; field in UserInfo
217 FLAG_MAIN,
443 return (flags & FLAG_MAIN) == FLAG_MAIN; in isMain()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/panels/domain/interactor/
DIconLabelVisibilityInteractorTest.kt86 private val PRIMARY_USER = UserInfo(0, "user 0", UserInfo.FLAG_MAIN)
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileDataInteractorTest.kt233 val TEST_USER_1 = UserInfo(1, "first user", UserInfo.FLAG_MAIN)
234 val TEST_USER_2 = UserInfo(2, "second user", UserInfo.FLAG_MAIN)
DCustomTileUserActionInteractorTest.kt281 val TEST_USER_1 = UserInfo(1, "first user", UserInfo.FLAG_MAIN)
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/user/data/repository/
DFakeUserRepository.kt53 /* flags= */ UserInfo.FLAG_MAIN,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/panels/data/
DQSPreferencesRepositoryTest.kt125 private val PRIMARY_USER = UserInfo(PRIMARY_USER_ID, "user 0", UserInfo.FLAG_MAIN)
/frameworks/base/services/java/com/android/server/
DHsumBootUserInitializer.java120 UserInfo.FLAG_ADMIN | UserInfo.FLAG_MAIN, in createMainUserIfNeeded()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalTutorialRepositoryImplTest.kt149 UserInfo(/* id= */ 0, /* name= */ "primary", /* flags= */ UserInfo.FLAG_MAIN)
DCommunalSettingsRepositoryImplTest.kt259 UserInfo(/* id= */ 0, /* name= */ "primary user", /* flags= */ UserInfo.FLAG_MAIN)
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/domain/interactor/
DPackageChangeInteractorTest.kt171 val MAIN_USER = UserInfo(MAIN_USER_HANDLE.identifier, "main", UserInfo.FLAG_MAIN)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
DObservableServiceConnectionTest.java107 mUserTracker.set(List.of(new UserInfo(MAIN_USER_ID, "main", UserInfo.FLAG_MAIN)), 0); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepositoryImplTest.kt206 UserInfo(/* id= */ 0, /* name= */ "primary user", /* flags= */ UserInfo.FLAG_MAIN)
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserInfoTest.java25 import static android.content.pm.UserInfo.FLAG_MAIN;
277 UserInfo userInfo = createUser(100, FLAG_MAIN, null); in testCanHaveProfile()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/widgets/
DCommunalAppWidgetHostStartableTest.kt289 val MAIN_USER_INFO = UserInfo(0, "primary", UserInfo.FLAG_MAIN) in createPendingWidgetForUser()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/wmshell/
DWMShellTest.kt202 val MAIN_USER_INFO = UserInfo(0, "primary", UserInfo.FLAG_MAIN)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/settings/
DUserSettingsProxyTest.kt54 listOf(UserInfo(MAIN_USER_ID, "main", UserInfo.FLAG_MAIN)), in setUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/view/viewmodel/
DCommunalEditModeViewModelTest.kt316 val MAIN_USER_INFO = UserInfo(0, "primary", UserInfo.FLAG_MAIN)
DCommunalViewModelTest.kt752 val MAIN_USER_INFO = UserInfo(0, "primary", UserInfo.FLAG_MAIN) in <lambda>()
/frameworks/base/services/core/java/com/android/server/pm/
DUserTypeFactory.java24 import static android.content.pm.UserInfo.FLAG_MAIN;
401 .setDefaultUserInfoPropertyFlags(FLAG_PRIMARY | FLAG_ADMIN | FLAG_MAIN) in getDefaultTypeFullSystem()
DUserTypeDetails.java652 ((mDefaultUserInfoPropertyFlags & UserInfo.FLAG_MAIN) == 0) || mMaxAllowed == 1, in checkSystemAndMainUserPreconditions()
DUserManagerService.java4170 newSysFlags = oldSysFlags & ~UserInfo.FLAG_FULL & ~UserInfo.FLAG_MAIN; in emulateSystemUserModeIfNeeded()
4173 newSysFlags = oldSysFlags | UserInfo.FLAG_FULL | UserInfo.FLAG_MAIN; in emulateSystemUserModeIfNeeded()
4201 newMainUser.flags |= UserInfo.FLAG_MAIN; in emulateSystemUserModeIfNeeded()
4212 oldMain.info.flags &= ~UserInfo.FLAG_MAIN; in emulateSystemUserModeIfNeeded()
4530 earliestCreatedUser.flags |= UserInfo.FLAG_MAIN; in upgradeIfNecessaryLP()
4537 userData.info.flags |= UserInfo.FLAG_MAIN; in upgradeIfNecessaryLP()
5459 final boolean isMainUser = (flags & UserInfo.FLAG_MAIN) != 0;
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DSyntheticPasswordTests.java20 import static android.content.pm.UserInfo.FLAG_MAIN;
278 mSecondaryUserInfo.flags |= FLAG_MAIN; in setupHeadlessTest()
DBaseLockSettingsServiceTests.java184 | UserInfo.FLAG_MAIN in setUp_baseServices()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java241 UserInfo.FLAG_PRIMARY | UserInfo.FLAG_MAIN, in MockSystemServices()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
DNoteTaskControllerTest.kt986 UserInfo(/* id= */ 0, /* name= */ "primary", /* flags= */ UserInfo.FLAG_MAIN) in <lambda>()

12