Home
last modified time | relevance | path

Searched refs:createContextAsUser (Results 1 – 25 of 235) sorted by relevance

12345678910

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/logging/
DDailyLoggingServiceTest.java206 when(mContext.createContextAsUser(mCurrentUser, 0) in testDailyUsageStatsLogs_oneConnected_oneAvailable_oneNotAvailableApp()
229 when(mContext.createContextAsUser(mCurrentUser, 0) in testDailyUsageStatsLogs_oneConnected_oneAvailableApp()
250 when(mContext.createContextAsUser(mCurrentUser, 0) in testDailyUsageStatsLogs_zeroConnected_twoAvailableApps()
271 when(mContext.createContextAsUser(mCurrentUser, 0) in testDailyUsageStatsLogs_zeroConnected_zeroAvailableApps()
306 when(mContext.createContextAsUser(mCurrentUser, 0) in testDailyUsageStatsLogs_healthConnectAccessed31DaysAgo_userNotMonthlyActive()
/packages/services/Telecomm/src/com/android/server/telecom/
DUserUtil.java45 UserManager userManager = context.createContextAsUser(userHandle, 0) in isManagedProfile()
54 UserManager um = context.createContextAsUser(userHandle, 0).getSystemService( in isPrivateProfile()
61 UserManager userManager = context.createContextAsUser(userHandle, 0) in isProfile()
DRingtoneFactory.java151 Context userContext = mContext.createContextAsUser(userHandle, 0); in getWorkProfileContextForUser()
162 UserManager userManager = mContext.createContextAsUser(profileUser, 0) in getWorkProfileContextForUser()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentBackend.java95 UserManager um = mContext.createContextAsUser( in refresh()
181 UserManager um = mContext.createContextAsUser( in setForegroundMode()
192 UserManager um = mContext.createContextAsUser( in getDefaultPaymentApp()
226 UserManager um = mContext.createContextAsUser( in setDefaultPaymentApp()
DNfcPaymentPreferenceController.java131 UserManager um = mContext.createContextAsUser( in getSummary()
225 UserManager um = mContext.createContextAsUser( in getView()
DDefaultPaymentSettings.java151 UserManager um = getContext().createContextAsUser( in getCandidates()
212 UserManager um = getContext().createContextAsUser(UserHandle.of(paymentInfo.mUserId), in getConfirmationMessage()
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DFrameworkAppSearchEnvironment.java57 public Context createContextAsUser(@NonNull Context context, @NonNull UserHandle userHandle) { in createContextAsUser() method in FrameworkAppSearchEnvironment
60 return context.createContextAsUser(userHandle, /* flags= */ 0); in createContextAsUser()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java84 newUserAwareContext = context.createContextAsUser(UserHandle.of(newUserId), 0); in onAttach()
94 newUserAwareContext = context.createContextAsUser(UserHandle.of(newUserId), 0); in onAttach()
103 newUserAwareContext = context.createContextAsUser(userProfileParent, 0); in onAttach()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DUserUtils.java102 Context userContext = context.createContextAsUser(userHandle, /* flags= */ 0); in isPrivateProfile()
119 return context.createContextAsUser(user, 0); in getUserContext()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringNotificationUpdater.java143 mNotificationManager = (NotificationManager) context.createContextAsUser(UserHandle.ALL, 0) in TetheringNotificationUpdater()
273 mContext.createContextAsUser(UserHandle.CURRENT, 0 /* flags */), in notifyTetheringDisabledByRestriction()
296 mContext.createContextAsUser(UserHandle.CURRENT, 0 /* flags */), in notifyTetheringNoUpstream()
318 mContext.createContextAsUser(UserHandle.CURRENT, 0 /* flags */), in setupRoamingNotification()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java205 UserManager um = mContext.createContextAsUser(currentUser, /*flags=*/0) in loadDefaultsFromSettings()
216 mContext.createContextAsUser(uh, 0).getContentResolver(), in loadDefaultsFromSettings()
246 .createContextAsUser(currentUser, 0).getContentResolver(), in loadDefaultsFromSettings()
540 UserManager um = mContext.createContextAsUser( in getUserName()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/shortcuts/
DShortcutLoader.kt207 val selectedProfileContext = context.createContextAsUser(userHandle, 0 /* flags */) in <lambda>()
210 val pm = context.createContextAsUser(userHandle, 0 /* flags */).packageManager in <lambda>()
226 val pm = context.createContextAsUser(userHandle, 0).packageManager in <lambda>()
DAppPredictorFactory.kt53 val contextAsUser = context.createContextAsUser(userHandle, 0 /* flags */) in create()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/testutils/
DContextTestUtil.kt26 doReturn(this).whenever(this).createContextAsUser(any(), eq(0)) in Context()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DCarBluetoothServiceTest.java111 when(mMockContext.createContextAsUser(any(), anyInt())).thenReturn(mMockContext); in setUp()
113 when(mMockContext.createContextAsUser(any(), anyInt())).thenReturn(mMockContext); in setUp()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/service/
DServicesModule.kt34 val contextAsUser = context.createContextAsUser(userHandle, 0) in provideHealthConnectManager()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/
DAppLauncherUtils.java500 ContentResolver contentResolverForUser = context.createContextAsUser( in getActivitiesFromSystemPreferences()
619 ContentResolver contentResolverForUser = context.createContextAsUser( in getTosDisabledPackages()
648 ContentResolver contentResolverForUser = context.createContextAsUser( in tosAccepted()
665 ContentResolver contentResolverForUser = context.createContextAsUser( in tosStatusUninitialized()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DExemptRestrictedPermission.kt20 val userContext = context.createContextAsUser(UserHandle.of(userId), 0) in onReceive()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/
DUserScopedService.kt63 context.createContextAsUser(user, 0) in forUser()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DAppSearchEnvironment.java42 Context createContextAsUser(@NonNull Context context, @NonNull UserHandle userHandle); in createContextAsUser() method
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringNotificationUpdaterTest.kt110 override fun createContextAsUser(user: UserHandle, flags: Int) = in createContextAsUser() method in com.android.networkstack.tethering.TetheringNotificationUpdaterTest
167 context.createContextAsUser(UserHandle.CURRENT, 0 /* flags */), in verifyActivityPendingIntent()
180 context.createContextAsUser(UserHandle.CURRENT, 0 /* flags */), in verifyBroadcastPendingIntent()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DContextUtils.kt54 }.`when`(context).createContextAsUser(any(UserHandle::class.java), anyInt() /* flags */) in mockContextAsUser()
/packages/modules/Permission/service/java/com/android/permission/util/
DPackageUtils.java41 final Context userContext = context.createContextAsUser(UserHandle.of(userId), 0); in canCallingOrSelfPackageQuery()
/packages/services/Car/service/src/com/android/car/user/
DUserHandleHelper.java114 Context userContext = mContext.createContextAsUser(UserHandle.of(userId), /* flags= */ 0); in getUserContextAwareUserManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/communal/
DCommunalPreferenceControllerTest.java52 doReturn(context).when(context).createContextAsUser(any(UserHandle.class), anyInt()); in setup()

12345678910