Home
last modified time | relevance | path

Searched refs:profileUserId (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTimeoutPreferenceControllerTest.java102 final int profileUserId = UserHandle.myUserId(); in testUpdateStateWithAdminTimeouts() local
104 when(mUserManager.getProfiles(profileUserId)).thenReturn(Collections.emptyList()); in testUpdateStateWithAdminTimeouts()
105 ShadowDevicePolicyManager.getShadow().setMaximumTimeToLock(profileUserId, timeout); in testUpdateStateWithAdminTimeouts()
113 final int profileUserId = UserHandle.myUserId(); in testUpdateStateWithAdminTimeoutsAndRestriction() local
115 when(mUserManager.getProfiles(profileUserId)).thenReturn(Collections.emptyList()); in testUpdateStateWithAdminTimeoutsAndRestriction()
116 ShadowDevicePolicyManager.getShadow().setMaximumTimeToLock(profileUserId, timeout); in testUpdateStateWithAdminTimeoutsAndRestriction()
144 final int profileUserId = UserHandle.myUserId(); in updateState_selectedTimeoutLargerThanAdminMax_shouldSetSummaryToUpdatedPrefValue() local
146 when(mUserManager.getProfiles(profileUserId)).thenReturn(Collections.emptyList()); in updateState_selectedTimeoutLargerThanAdminMax_shouldSetSummaryToUpdatedPrefValue()
147 ShadowDevicePolicyManager.getShadow().setMaximumTimeToLock(profileUserId, allowedTimeout); in updateState_selectedTimeoutLargerThanAdminMax_shouldSetSummaryToUpdatedPrefValue()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationServicePreferenceController.java145 final int profileUserId = Utils.getManagedProfileId(mUserManager, UserHandle.myUserId()); in getLocationServices() local
148 (profileUserId != UserHandle.USER_NULL in getLocationServices()
149 && mLocationEnabler.getShareLocationEnforcedAdmin(profileUserId) != null) in getLocationServices()
/packages/apps/Settings/src/com/android/settings/location/
DLocationServicePreferenceController.java145 final int profileUserId = Utils.getManagedProfileId(mUserManager, UserHandle.myUserId()); in getLocationServices() local
148 (profileUserId != UserHandle.USER_NULL in getLocationServices()
149 && mLocationEnabler.getShareLocationEnforcedAdmin(profileUserId) != null) in getLocationServices()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRestrictedListPreference.java124 public void setProfileUserId(int profileUserId) { in setProfileUserId() argument
125 mProfileUserId = profileUserId; in setProfileUserId()
/packages/apps/Settings/src/com/android/settings/
DRestrictedListPreference.java124 public void setProfileUserId(int profileUserId) { in setProfileUserId() argument
125 mProfileUserId = profileUserId; in setProfileUserId()