Searched refs:contextAsUser (Results 1 – 7 of 7) 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()
92 Context contextAsUser = mContext.createContextAsUser(userHandle, 0); in getNotificationManagerForUser() local93 return contextAsUser.getSystemService(NotificationManager.class); in getNotificationManagerForUser()
210 final Context contextAsUser = context.createContextAsUser(userHandle, 0); in getSummary() local211 Locale appLocale = getAppDefaultLocale(contextAsUser, app.packageName); in getSummary()
232 Context contextAsUser = context.createContextAsUser(user, 0 /* flags */); in getPinnedShortcutsFromPackageAsUser() local233 List<ShortcutManager.ShareShortcutInfo> targets = contextAsUser.getSystemService( in getPinnedShortcutsFromPackageAsUser()
997 Context contextAsUser = mContext.createContextAsUser(UserHandle.CURRENT, /* flags= */ 0); in tryPeripheralHandover() local998 contextAsUser.startService(intent); in tryPeripheralHandover()