Searched refs:getContextForUser (Results 1 – 3 of 3) sorted by relevance
49 return getContextForUser(-42); in getContextForOtherUser()52 static Context getContextForUser(int userId) { in getContextForUser() method in TestingUtils
21 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()
28 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()