Home
last modified time | relevance | path

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

/cts/tests/tests/multiuser/src/android/multiuser/cts/
DTestingUtils.java49 return getContextForUser(-42); in getContextForOtherUser()
52 static Context getContextForUser(int userId) { in getContextForUser() method in TestingUtils
DUserVisibilityTest.java21 import static android.multiuser.cts.TestingUtils.getContextForUser;
119 Context context = getContextForUser(profile.userHandle().getIdentifier()); in testIsUserVisible_stoppedProfileOfCurrentUser()
183 Context context = getContextForUser(profile.userHandle().getIdentifier()); in testGetVisibleUsers_stoppedProfileOfCurrentUser()
DUserManagerTest.java28 import static android.multiuser.cts.TestingUtils.getContextForUser;
180 userContext = getContextForUser(additionalUser.id()); in testIsAdminUserForOtherUserContextFailsWithoutPermission()
206 userContext = getContextForUser(additionalUser.id()); in testIsAdminUserForOtherUserContextWithPermission()
328 additionalUserContext = getContextForUser(additionalUserRef.id()); in testIsForegroundUserAdminUser_withAdditionalUser()
357 Context context = getContextForUser(profile.userHandle().getIdentifier()); in testIsUserRunning_stoppedProfileOfCurrentUser()
1012 final Context userContext = getContextForUser(user.getIdentifier()); in testIsMainUser_trueForAtMostOneUser()
1029 final Context mainUserContext = getContextForUser(mainUser.getIdentifier()); in testGetMainUser_returnsMainUser()