/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
D | AuthenticatorHelper.java | 107 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/ |
D | WorkPolicyUtils.java | 118 mContext.createPackageContextAsUser( in getManagedProfileOwnerComponent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 491 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/ |
D | UserManagerTest.java | 192 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/ |
D | AttributeCache.java | 175 context = mContext.createPackageContextAsUser(packageName, 0, in get()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 98 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/ |
D | CarrierAppUtils.java | 200 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/ |
D | EnableAdbPreferenceControllerTest.java | 76 doReturn(mContext).when(mContext).createPackageContextAsUser( in setUp()
|
/frameworks/base/media/java/android/media/ |
D | RingtoneManager.java | 456 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/ |
D | NavigationModeController.java | 188 return mContext.createPackageContextAsUser(mContext.getPackageName(), in getCurrentUserContext()
|
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 64 userContext = context.createPackageContextAsUser(context.getPackageName(), 0, user); in getProfileOrDeviceOwner()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | AbstractCrossUserContentResolverTest.java | 135 InstrumentationRegistry.getContext().createPackageContextAsUser( in testRegisterContentObserver()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | CentralSurfaces.java | 175 context.createPackageContextAsUser(context.getPackageName(), in getPackageManagerForUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserInfoControllerImpl.java | 130 currentUserContext = mContext.createPackageContextAsUser("android", 0, in queryForUserInformation()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbUserSettingsManager.java | 67 mUserContext = context.createPackageContextAsUser("android", 0, user); in UsbUserSettingsManager()
|
/frameworks/base/tests/UsbManagerTests/src/com/android/server/usbtest/ |
D | UsbProfileGroupSettingsManagerTest.java | 125 when(mContext.createPackageContextAsUser(anyString(), anyInt(), any(UserHandle.class))) in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | RingtonePlayer.java | 246 return mContext.createPackageContextAsUser(mContext.getPackageName(), 0, user); in getContextForUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 151 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/ |
D | EventConditionProvider.java | 318 return context.createPackageContextAsUser(context.getPackageName(), 0, user); in getContextForUser()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | Utils.java | 952 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/ |
D | SplashscreenWindowCreator.java | 253 windowContext = mContext.createPackageContextAsUser( in estimateTaskBackgroundColor()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | CallerInfoAsyncQuery.java | 122 otherContext = context.createPackageContextAsUser(context.getPackageName(), in getCurrentProfileContentResolver()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierServiceBindHelper.java | 173 Context contextAsUser = mContext.createPackageContextAsUser(mContext.getPackageName(), in CarrierServiceBindHelper()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/ |
D | StartingSurfaceDrawerTests.java | 115 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in StartingSurfaceDrawerTests.TestContext
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | PolicyEnforcerCallbacks.java | 143 return context.createPackageContextAsUser(context.getPackageName(), /* flags= */ 0,
|