Home
last modified time | relevance | path

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

/frameworks/base/packages/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()
/frameworks/base/core/java/android/telephony/
DCellBroadcastIntents.java93 context.createContextAsUser(user, 0).sendOrderedBroadcast(backgroundIntent, in sendSmsCbReceivedBroadcast()
/frameworks/base/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/
DSmsApplicationTest.java116 when(mContext.createContextAsUser(isNotNull(), anyInt())).thenReturn(mContext); in setUp()
166 verify(mContext).createContextAsUser(eq(UserHandle.ALL), anyInt()); in testPackageChanged()
/frameworks/base/telephony/common/com/android/internal/telephony/
DPackageChangeReceiver.java62 mRegisteredContext = user == null ? context : context.createContextAsUser(user, 0); in register()
DCarrierAppUtils.java125 Context userContext = context.createContextAsUser(UserHandle.getUserHandleForUid(userId), in getContentResolverForUser()
DSmsApplication.java636 context.createContextAsUser(userHandle, 0).getPackageManager(); in setDefaultApplicationInternal()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DCertificateMonitor.java173 userContext = mInjector.createContextAsUser(userHandle); in buildNotification()
DDevicePolicyManagerService.java1875 Context createContextAsUser(UserHandle user) throws PackageManager.NameNotFoundException { in createContextAsUser() method in DevicePolicyManagerService.Injector
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierServiceBindHelper.java280 if (mContext.createContextAsUser(Process.myUserHandle(), 0) in rebind()
DSMSDispatcher.java1270 PackageManager pm = mContext.createContextAsUser(userHandle, 0).getPackageManager(); in sendRawPdu()
1872 PackageManager pm = mContext.createContextAsUser(callingUser, 0).getPackageManager(); in getSmsTracker()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringNotificationUpdaterTest.kt98 override fun createContextAsUser(user: UserHandle, flags: Int) = in createContextAsUser() method in com.android.networkstack.tethering.TetheringNotificationUpdaterTest
/frameworks/base/core/java/android/content/
DContextWrapper.java921 public Context createContextAsUser(UserHandle user, @CreatePackageOptions int flags) { in createContextAsUser() method in ContextWrapper
922 return mBase.createContextAsUser(user, flags); in createContextAsUser()
DContext.java5435 public Context createContextAsUser(@NonNull UserHandle user, @CreatePackageOptions int flags) { in createContextAsUser() method in Context
/frameworks/base/test-mock/src/android/test/mock/
DMockContext.java784 public Context createContextAsUser(UserHandle user, @CreatePackageOptions int flags) { in createContextAsUser() method in MockContext
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java419 public Context createContextAsUser(UserHandle user, int flags) { in createContextAsUser() method in ContextFixture.FakeContext
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DImsResolver.java528 mReceiverContext = context.createContextAsUser(UserHandle.ALL, 0 /*flags*/); in ImsResolver()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsResolverTest.java1643 when(mMockContext.createContextAsUser(any(), eq(0))).thenReturn(mMockContext); in setupResolver()
/frameworks/base/core/java/android/app/
DContextImpl.java2253 public Context createContextAsUser(UserHandle user, @CreatePackageOptions int flags) { in createContextAsUser() method in ContextImpl
/frameworks/base/api/
Dtest-current.txt649 …method @NonNull public android.content.Context createContextAsUser(@NonNull android.os.UserHandle,…
Dsystem-current.txt1512 …method @NonNull public android.content.Context createContextAsUser(@NonNull android.os.UserHandle,…
/frameworks/base/non-updatable-api/
Dsystem-current.txt1512 …method @NonNull public android.content.Context createContextAsUser(@NonNull android.os.UserHandle,…