Home
last modified time | relevance | path

Searched refs:communalProfile (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/java/com/android/server/
DCommunalProfileInitializer.java54 final int communalProfile = mUmi.getCommunalProfileId(); in createCommunalProfileIfNeeded() local
55 if (communalProfile != UserHandle.USER_NULL) { in createCommunalProfileIfNeeded()
56 Slogf.d(TAG, "Found existing Communal Profile, userId=%d", communalProfile); in createCommunalProfileIfNeeded()
75 final int communalProfile = umi.getCommunalProfileId(); in removeCommunalProfileIfPresent() local
76 if (communalProfile == UserHandle.USER_NULL) { in removeCommunalProfileIfPresent()
79 Slogf.d(TAG, "Removing existing Communal Profile, userId=%d", communalProfile); in removeCommunalProfileIfPresent()
80 final boolean removeSucceeded = umi.removeUserEvenWhenDisallowed(communalProfile); in removeCommunalProfileIfPresent()
82 Slogf.e(TAG, "Failed to remove Communal Profile, userId=%d", communalProfile); in removeCommunalProfileIfPresent()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java129 UserHandle communalProfile = mUserManager.getCommunalProfile(); in removeExistingUsers() local
130 int communalProfileId = communalProfile != null in removeExistingUsers()
131 ? communalProfile.getIdentifier() : UserHandle.USER_NULL; in removeExistingUsers()
294 final UserHandle communalProfile = mUserManager.getCommunalProfile(); in testGetProfilesIncludingCommunal() local
302 if (communalProfile != null) mainsExpected.add(communalProfile.getIdentifier()); in testGetProfilesIncludingCommunal()
309 if (communalProfile != null) othersExpected.add(communalProfile.getIdentifier()); in testGetProfilesIncludingCommunal()
/frameworks/base/core/java/android/os/
DUserManager.java5299 final UserHandle communalProfile = getCommunalProfile(); in getProfilesIncludingCommunal() local
5300 if (communalProfile != null) { in getProfilesIncludingCommunal()
5301 final UserInfo communalInfo = getUserInfo(communalProfile.getIdentifier()); in getProfilesIncludingCommunal()