Searched refs:foregroundUser (Results 1 – 2 of 2) sorted by relevance
227 int foregroundUser = ActivityManager.getCurrentUser(); in checkCaller() local228 ok = (foregroundUser == callingUser); in checkCaller()261 int foregroundUser = ActivityManager.getCurrentUser(); in checkCallerAllowManagedProfiles() local262 ok = (foregroundUser == callingUser) || in checkCallerAllowManagedProfiles()263 (foregroundUser == parentUser); in checkCallerAllowManagedProfiles()
1826 int foregroundUser = ActivityManager.getCurrentUser(); in checkIfCallerIsSelfOrForegroundUser() local1827 ok = (foregroundUser == callingUser); in checkIfCallerIsSelfOrForegroundUser()1829 log("checkIfCallerIsSelfOrForegoundUser: foregroundUser=" + foregroundUser in checkIfCallerIsSelfOrForegroundUser()