Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/app/
DSuspendedAppActivity.java62 private Intent getMoreDetailsActivity(String suspendingPackage, String suspendedPackage, in getMoreDetailsActivity() argument
65 .setPackage(suspendingPackage); in getMoreDetailsActivity()
150 final String suspendingPackage = intent.getStringExtra(EXTRA_SUSPENDING_PACKAGE); in onCreate() local
154 mSuspendingAppResources = mPm.getResourcesForApplicationAsUser(suspendingPackage, in onCreate()
157 Slog.e(TAG, "Could not find resources for " + suspendingPackage, ne); in onCreate()
164 ap.mMessage = resolveDialogMessage(suspendingPackage, suspendedPackage); in onCreate()
166 mMoreDetailsIntent = getMoreDetailsActivity(suspendingPackage, suspendedPackage, mUserId); in onCreate()
186 String suspendingPackage, SuspendDialogInfo dialogInfo, int userId) { in createSuspendedAppInterceptIntent() argument
191 .putExtra(EXTRA_SUSPENDING_PACKAGE, suspendingPackage) in createSuspendedAppInterceptIntent()
/frameworks/base/core/java/android/content/pm/
DPackageUserState.java59 public String suspendingPackage; field in PackageUserState
98 suspendingPackage = o.suspendingPackage; in PackageUserState()
234 if (suspendingPackage == null in equals()
235 || !suspendingPackage.equals(oldState.suspendingPackage)) { in equals()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java407 void setSuspended(boolean suspended, String suspendingPackage, SuspendDialogInfo dialogInfo, in setSuspended() argument
411 existingUserState.suspendingPackage = suspended ? suspendingPackage : null; in setSuspended()
435 String suspendingPackage, in setUserState() argument
451 state.suspendingPackage = suspendingPackage; in setUserState()
623 proto.write(PackageProto.UserInfoProto.SUSPENDING_PACKAGE, state.suspendingPackage); in writeUsersInfoToProto()
DSettings.java1629 String suspendingPackage = parser.getAttributeValue(null, in readPackageRestrictionsLPr() local
1633 if (suspended && suspendingPackage == null) { in readPackageRestrictionsLPr()
1634 suspendingPackage = PLATFORM_PACKAGE_NAME; in readPackageRestrictionsLPr()
1705 hidden, distractionFlags, suspended, suspendingPackage, in readPackageRestrictionsLPr()
2007 if (ustate.suspendingPackage != null) { in writePackageRestrictionsLPr()
2009 ustate.suspendingPackage); in writePackageRestrictionsLPr()
4754 pw.print(pus.suspendingPackage); in dumpPackageLPr()
DPackageManagerService.java13873 (suspendingPackage) -> !PLATFORM_PACKAGE_NAME.equals(suspendingPackage),
13884 if (pus.suspended && packagePredicate.test(pus.suspendingPackage)) {
24447 return (ps != null) ? ps.readUserState(userId).suspendingPackage : null;
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java171 final String suspendingPackage = "com.test.suspending.package"; in testSuspendedPackage() local
177 .thenReturn(suspendingPackage); in testSuspendedPackage()
186 assertEquals(suspendingPackage, in testSuspendedPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageUserStateTest.java201 testUserState1.suspendingPackage = suspendingPackage1; in testPackageUserState05()
206 testUserState2.suspendingPackage = suspendingPackage2; in testPackageUserState05()
224 testUserState2.suspendingPackage = suspendingPackage2; in testPackageUserState05()
DPackageManagerSettingsTests.java185 assertThat("android".equals(packageUserState1.suspendingPackage), is(true)); in testReadPackageRestrictions_oldSuspendInfo()
190 assertThat(packageUserState2.suspendingPackage, is(nullValue())); in testReadPackageRestrictions_oldSuspendInfo()
233 assertThat(readPus1.suspendingPackage, equalTo("suspendingPackage1")); in testReadWritePackageRestrictions_newSuspendInfo()
242 assertThat(readPus2.suspendingPackage, equalTo("suspendingPackage2")); in testReadWritePackageRestrictions_newSuspendInfo()
250 assertThat(readPus3.suspendingPackage, is(nullValue())); in testReadWritePackageRestrictions_newSuspendInfo()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java248 final String suspendingPackage = pmi.getSuspendingPackage(suspendedPackage, mUserId); in interceptSuspendedPackageIfNeeded() local
249 if (PLATFORM_PACKAGE_NAME.equals(suspendingPackage)) { in interceptSuspendedPackageIfNeeded()
254 suspendingPackage, dialogInfo, mUserId); in interceptSuspendedPackageIfNeeded()