Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryManagerTest.java103 UserInfo userProfile = new UserInfo(); in setUp() local
104 userProfile.id = mProfileId; in setUp()
105 mUsers.add(userProfile); in setUp()
108 mProfiles = new int[] {userSystem.id, userProfile.id}; in setUp()
112 when(mUserManager.getProfileIds(userProfile.id, true)) in setUp()
113 .thenReturn(new int[] {userProfile.id}); in setUp()
115 when(mUserManager.getProfileParent(userProfile.id)).thenReturn(userSystem); in setUp()
200 UserInfo userProfile = new UserInfo(); in testAddProfile_historyEnabledInPrimary() local
201 userProfile.id = newProfileId; in testAddProfile_historyEnabledInPrimary()
202 mUsers.add(userProfile); in testAddProfile_historyEnabledInPrimary()
[all …]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipHelper.java211 public ClientTransaction sendRegister(SipProfile userProfile, String tag, in sendRegister() argument
214 Request request = createRequest(Request.REGISTER, userProfile, tag); in sendRegister()
220 request.addHeader(createContactHeader(userProfile)); in sendRegister()
233 private Request createRequest(String requestType, SipProfile userProfile, in createRequest() argument
235 FromHeader fromHeader = createFromHeader(userProfile, tag); in createRequest()
236 ToHeader toHeader = createToHeader(userProfile); in createRequest()
238 String replaceStr = Pattern.quote(userProfile.getUserName() + "@"); in createRequest()
240 userProfile.getUriString().replaceFirst(replaceStr, "")); in createRequest()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java1608 UserInfo userProfile = createProfileForUser("Managed 1", in testCreateProfile_withContextUserId() local
1610 assertThat(userProfile).isNotNull(); in testCreateProfile_withContextUserId()
1618 assertThat(profiles.get(0).equals(userProfile.getUserHandle()) in testCreateProfile_withContextUserId()
1619 || profiles.get(1).equals(userProfile.getUserHandle())).isTrue(); in testCreateProfile_withContextUserId()