Home
last modified time | relevance | path

Searched refs:suspendingPackage (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java188 final String suspendingPackage = "com.test.suspending.package"; in testSuspendedPackage() local
189 final SuspendDialogInfo dialogInfo = suspendPackage(suspendingPackage); in testSuspendedPackage()
196 assertEquals(suspendingPackage, in testSuspendedPackage()
203 private SuspendDialogInfo suspendPackage(String suspendingPackage) { in suspendPackage() argument
210 .thenReturn(suspendingPackage); in suspendPackage()
211 when(mPackageManagerInternal.getSuspendedDialogInfo(TEST_PACKAGE_NAME, suspendingPackage, in suspendPackage()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java425 boolean isSuspendedBy(String suspendingPackage, int userId) { in isSuspendedBy() argument
427 return state.suspendParams != null && state.suspendParams.containsKey(suspendingPackage); in isSuspendedBy()
430 void addOrUpdateSuspension(String suspendingPackage, SuspendDialogInfo dialogInfo, in addOrUpdateSuspension() argument
439 existingUserState.suspendParams.put(suspendingPackage, newSuspendParams); in addOrUpdateSuspension()
443 void removeSuspension(String suspendingPackage, int userId) { in removeSuspension() argument
446 existingUserState.suspendParams.remove(suspendingPackage); in removeSuspension()
458 final String suspendingPackage = existingUserState.suspendParams.keyAt(i); in removeSuspension() local
459 if (suspendingPackagePredicate.test(suspendingPackage)) { in removeSuspension()
DSettings.java1743 final String suspendingPackage = parser.getAttributeValue(null, in readPackageRestrictionsLPr() local
1745 if (suspendingPackage == null) { in readPackageRestrictionsLPr()
1753 suspendParamsMap.put(suspendingPackage, in readPackageRestrictionsLPr()
2125 final String suspendingPackage = ustate.suspendParams.keyAt(i); in writePackageRestrictionsLPr() local
2127 serializer.attribute(null, ATTR_SUSPENDING_PACKAGE, suspendingPackage); in writePackageRestrictionsLPr()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java259 final String suspendingPackage = pmi.getSuspendingPackage(suspendedPackage, mUserId); in interceptSuspendedPackageIfNeeded() local
260 if (PLATFORM_PACKAGE_NAME.equals(suspendingPackage)) { in interceptSuspendedPackageIfNeeded()
264 suspendingPackage, mUserId); in interceptSuspendedPackageIfNeeded()
271 suspendingPackage, dialogInfo, crossProfileOptions, target, mUserId); in interceptSuspendedPackageIfNeeded()
/frameworks/base/services/core/java/android/content/pm/
DPackageManagerInternal.java290 String suspendingPackage, int userId); in getSuspendedDialogInfo() argument
995 public abstract void unsuspendForSuspendingPackage(String suspendingPackage, int userId); in unsuspendForSuspendingPackage() argument
1000 public abstract boolean isSuspendingAnyPackages(String suspendingPackage, int userId); in isSuspendingAnyPackages() argument
/frameworks/base/core/java/com/android/internal/app/
DSuspendedAppActivity.java290 String suspendingPackage, SuspendDialogInfo dialogInfo, Bundle options, in createSuspendedAppInterceptIntent() argument
296 .putExtra(EXTRA_SUSPENDING_PACKAGE, suspendingPackage) in createSuspendedAppInterceptIntent()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java635 final String suspendingPackage = mPackageManagerInternal.getSuspendingPackage( in maskWidgetsViewsLocked() local
637 if (PLATFORM_PACKAGE_NAME.equals(suspendingPackage)) { in maskWidgetsViewsLocked()
643 suspendingPackage, providerUserId); in maskWidgetsViewsLocked()
647 providerPackage, suspendingPackage, dialogInfo, null, null, in maskWidgetsViewsLocked()