Searched refs:foregroundUser (Results 1 – 2 of 2) sorted by relevance
206 int foregroundUser = ActivityManager.getCurrentUser(); in checkCaller() local207 ok = (foregroundUser == callingUser); in checkCaller()239 int foregroundUser = ActivityManager.getCurrentUser(); in checkCallerAllowManagedProfiles() local240 ok = (foregroundUser == callingUser) || in checkCallerAllowManagedProfiles()241 (foregroundUser == parentUser); in checkCallerAllowManagedProfiles()
1319 int foregroundUser = ActivityManager.getCurrentUser(); in checkIfCallerIsSelfOrForegroundUser() local1320 ok = (foregroundUser == callingUser); in checkIfCallerIsSelfOrForegroundUser()1322 log("checkIfCallerIsSelfOrForegoundUser: foregroundUser=" + foregroundUser in checkIfCallerIsSelfOrForegroundUser()