Searched refs:profileUserId (Results 1 – 5 of 5) sorted by relevance
102 final int profileUserId = UserHandle.myUserId(); in testUpdateStateWithAdminTimeouts() local104 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() local115 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() local146 when(mUserManager.getProfiles(profileUserId)).thenReturn(Collections.emptyList()); in updateState_selectedTimeoutLargerThanAdminMax_shouldSetSummaryToUpdatedPrefValue()147 ShadowDevicePolicyManager.getShadow().setMaximumTimeToLock(profileUserId, allowedTimeout); in updateState_selectedTimeoutLargerThanAdminMax_shouldSetSummaryToUpdatedPrefValue()
145 final int profileUserId = Utils.getManagedProfileId(mUserManager, UserHandle.myUserId()); in getLocationServices() local148 (profileUserId != UserHandle.USER_NULL in getLocationServices()149 && mLocationEnabler.getShareLocationEnforcedAdmin(profileUserId) != null) in getLocationServices()
124 public void setProfileUserId(int profileUserId) { in setProfileUserId() argument125 mProfileUserId = profileUserId; in setProfileUserId()