Searched refs:contextAsUser (Results 1 – 9 of 9) sorted by relevance
53 val contextAsUser = context.createContextAsUser(userHandle, 0 /* flags */) in create() constant60 AppPredictionContext.Builder(contextAsUser) in create()65 return contextAsUser in create()
34 val contextAsUser = context.createContextAsUser(userHandle, 0) in provideHealthConnectManager() constant35 return requireNotNull(contextAsUser.getSystemService(HealthConnectManager::class.java)) in provideHealthConnectManager()
61 Context contextAsUser = getContextAsUser(baseContext, userHandle); in getNotificationManagerForUser() local63 (contextAsUser != null) in getNotificationManagerForUser()64 ? contextAsUser.getSystemService(NotificationManager.class) in getNotificationManagerForUser()
86 Context contextAsUser = mContext.createContextAsUser(userHandle, 0); in getNotificationManagerForUser() local87 return contextAsUser.getSystemService(NotificationManager.class); in getNotificationManagerForUser()
184 Context contextAsUser = mContext.createContextAsUser(userHandle, 0); in getNotificationManagerForUser() local185 return Objects.requireNonNull(contextAsUser.getSystemService(NotificationManager.class)); in getNotificationManagerForUser()
218 final Context contextAsUser = context.createContextAsUser(userHandle, 0); in getSummary() local219 Locale appLocale = getAppDefaultLocale(contextAsUser, app.packageName); in getSummary()
233 Context contextAsUser = context.createContextAsUser(user, 0 /* flags */); in getPinnedShortcutsFromPackageAsUser() local234 List<ShortcutManager.ShareShortcutInfo> targets = contextAsUser.getSystemService( in getPinnedShortcutsFromPackageAsUser()
389 Context contextAsUser = mContext.createContextAsUser( in categoryAllowsForegroundPreference() local392 RoleManager roleManager = contextAsUser.getSystemService(RoleManager.class); in categoryAllowsForegroundPreference()401 contextAsUser.getContentResolver(), in categoryAllowsForegroundPreference()
1166 Context contextAsUser = mContext.createContextAsUser( in tryPeripheralHandover() local1168 contextAsUser.startService(intent); in tryPeripheralHandover()