/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/logging/ |
D | DailyLoggingServiceTest.java | 206 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/ |
D | UserUtil.java | 45 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()
|
D | RingtoneFactory.java | 151 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/ |
D | PaymentBackend.java | 95 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()
|
D | NfcPaymentPreferenceController.java | 131 UserManager um = mContext.createContextAsUser( in getSummary() 225 UserManager um = mContext.createContextAsUser( in getView()
|
D | DefaultPaymentSettings.java | 151 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/ |
D | FrameworkAppSearchEnvironment.java | 57 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/ |
D | AvailableVirtualKeyboardFragment.java | 84 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/ |
D | UserUtils.java | 102 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/ |
D | TetheringNotificationUpdater.java | 143 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/ |
D | PreferredServices.java | 205 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/ |
D | ShortcutLoader.kt | 207 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>()
|
D | AppPredictorFactory.kt | 53 val contextAsUser = context.createContextAsUser(userHandle, 0 /* flags */) in create()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/testutils/ |
D | ContextTestUtil.kt | 26 doReturn(this).whenever(this).createContextAsUser(any(), eq(0)) in Context()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | CarBluetoothServiceTest.java | 111 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/ |
D | ServicesModule.kt | 34 val contextAsUser = context.createContextAsUser(userHandle, 0) in provideHealthConnectManager()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/ |
D | AppLauncherUtils.java | 500 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/ |
D | ExemptRestrictedPermission.kt | 20 val userContext = context.createContextAsUser(UserHandle.of(userId), 0) in onReceive()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/ |
D | UserScopedService.kt | 63 context.createContextAsUser(user, 0) in forUser()
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | AppSearchEnvironment.java | 42 Context createContextAsUser(@NonNull Context context, @NonNull UserHandle userHandle); in createContextAsUser() method
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringNotificationUpdaterTest.kt | 110 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/ |
D | ContextUtils.kt | 54 }.`when`(context).createContextAsUser(any(UserHandle::class.java), anyInt() /* flags */) in mockContextAsUser()
|
/packages/modules/Permission/service/java/com/android/permission/util/ |
D | PackageUtils.java | 41 final Context userContext = context.createContextAsUser(UserHandle.of(userId), 0); in canCallingOrSelfPackageQuery()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | UserHandleHelper.java | 114 Context userContext = mContext.createContextAsUser(UserHandle.of(userId), /* flags= */ 0); in getUserContextAwareUserManager()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/communal/ |
D | CommunalPreferenceControllerTest.java | 52 doReturn(context).when(context).createContextAsUser(any(UserHandle.class), anyInt()); in setup()
|