Home
last modified time | relevance | path

Searched refs:createPackageContextAsUser (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
DAuthenticatorHelper.java107 Context authContext = context.createPackageContextAsUser(desc.packageName, 0, in getDrawableForType()
133 Context authContext = context.createPackageContextAsUser(desc.packageName, 0, in getLabelForType()
/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/
DWorkPolicyUtils.java118 mContext.createPackageContextAsUser( in getManagedProfileOwnerComponent()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java491 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in DpmMockContext
493 return mMockSystemServices.createPackageContextAsUser(packageName, flags, user); in createPackageContextAsUser()
499 return mMockSystemServices.createPackageContextAsUser(packageName, flags, user); in createContextAsUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java192 final Context profileUserContest = mContext.createPackageContextAsUser("system", 0, in testCloneUser()
272 final UserManager umCommunal = (UserManager) mContext.createPackageContextAsUser( in testCommunalProfile()
340 mContext.createPackageContextAsUser("android", 0, in testPrivateProfile()
993 mContext.createPackageContextAsUser("android", 0, in testProfileTypeInformation()
1019 final UserManager userManagerForUser = UserManager.get(mContext.createPackageContextAsUser( in testProfileTypeInformation()
1612 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testCreateProfile_withContextUserId()
1631 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testSetUserName_withContextUserId()
1651 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testGetUserName_withContextUserId()
1663 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testGetUserName_shouldReturnTranslatedTextForNullNamedGuestUser()
1680 UserManager um = (UserManager) mContext.createPackageContextAsUser( in testGetUserIcon_withContextUserId()
/frameworks/base/core/java/com/android/internal/policy/
DAttributeCache.java175 context = mContext.createPackageContextAsUser(packageName, 0, in get()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java98 when(mContext.createPackageContextAsUser(any(), eq(0), in checkIfRestrictionEnforced_deviceOwner()
122 when(mContext.createPackageContextAsUser(any(), eq(0), in checkIfRestrictionEnforced_profileOwner()
/frameworks/base/telephony/common/com/android/internal/telephony/
DCarrierAppUtils.java200 context.createPackageContextAsUser(callingPackage, 0, UserHandle.of(userId)) in disableCarrierAppsUntilPrivileged()
236 context.createPackageContextAsUser( in disableCarrierAppsUntilPrivileged()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
DEnableAdbPreferenceControllerTest.java76 doReturn(mContext).when(mContext).createPackageContextAsUser( in setUp()
/frameworks/base/media/java/android/media/
DRingtoneManager.java456 final Context parentContext = createPackageContextAsUser(mContext, parentInfo.id); in getParentProfileRingtones()
1192 private static Context createPackageContextAsUser(Context context, int userId) { in createPackageContextAsUser() method in RingtoneManager
1194 return context.createPackageContextAsUser(context.getPackageName(), 0 /* flags */, in createPackageContextAsUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationModeController.java188 return mContext.createPackageContextAsUser(mContext.getPackageName(), in getCurrentUserContext()
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java64 userContext = context.createPackageContextAsUser(context.getPackageName(), 0, user); in getProfileOrDeviceOwner()
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java135 InstrumentationRegistry.getContext().createPackageContextAsUser( in testRegisterContentObserver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DCentralSurfaces.java175 context.createPackageContextAsUser(context.getPackageName(), in getPackageManagerForUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserInfoControllerImpl.java130 currentUserContext = mContext.createPackageContextAsUser("android", 0, in queryForUserInformation()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbUserSettingsManager.java67 mUserContext = context.createPackageContextAsUser("android", 0, user); in UsbUserSettingsManager()
/frameworks/base/tests/UsbManagerTests/src/com/android/server/usbtest/
DUsbProfileGroupSettingsManagerTest.java125 when(mContext.createPackageContextAsUser(anyString(), anyInt(), any(UserHandle.class))) in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DRingtonePlayer.java246 return mContext.createPackageContextAsUser(mContext.getPackageName(), 0, user); in getContextForUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java151 when(mMockContext.createPackageContextAsUser( in setUp()
1737 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenFromInternal()
1774 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenSuccess()
1807 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenCachedSuccess()
1857 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenReturnWithInvalidIntent()
1890 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenReturnWithValidIntent()
1925 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenError()
3701 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in AccountManagerServiceTest.MyMockContext
3703 return mMockContext.createPackageContextAsUser(packageName, flags, user); in createPackageContextAsUser()
/frameworks/base/services/core/java/com/android/server/notification/
DEventConditionProvider.java318 return context.createPackageContextAsUser(context.getPackageName(), 0, user); in getContextForUser()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java952 private static Context createPackageContextAsUser(int uid, Context context) { in createPackageContextAsUser() method in Utils
955 userContext = context.createPackageContextAsUser(context.getPackageName(), 0, in createPackageContextAsUser()
966 Context userContext = createPackageContextAsUser(uid, context); in retrieveDevicePolicyManagerFromUserContext()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenWindowCreator.java253 windowContext = mContext.createPackageContextAsUser( in estimateTaskBackgroundColor()
/frameworks/base/telecomm/java/android/telecom/
DCallerInfoAsyncQuery.java122 otherContext = context.createPackageContextAsUser(context.getPackageName(), in getCurrentProfileContentResolver()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierServiceBindHelper.java173 Context contextAsUser = mContext.createPackageContextAsUser(mContext.getPackageName(), in CarrierServiceBindHelper()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/
DStartingSurfaceDrawerTests.java115 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in StartingSurfaceDrawerTests.TestContext
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPolicyEnforcerCallbacks.java143 return context.createPackageContextAsUser(context.getPackageName(), /* flags= */ 0,

123