Home
last modified time | relevance | path

Searched refs:suspendParams (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java455 return state.suspendParams != null && state.suspendParams.containsKey(suspendingPackage); in isSuspendedBy()
464 if (existingUserState.suspendParams == null) { in addOrUpdateSuspension()
465 existingUserState.suspendParams = new ArrayMap<>(); in addOrUpdateSuspension()
467 existingUserState.suspendParams.put(suspendingPackage, newSuspendParams); in addOrUpdateSuspension()
474 if (existingUserState.suspendParams != null) { in removeSuspension()
475 existingUserState.suspendParams.remove(suspendingPackage); in removeSuspension()
476 if (existingUserState.suspendParams.size() == 0) { in removeSuspension()
477 existingUserState.suspendParams = null; in removeSuspension()
480 existingUserState.suspended = (existingUserState.suspendParams != null); in removeSuspension()
486 if (existingUserState.suspendParams != null) { in removeSuspension()
[all …]
DSettings.java1764 final PackageUserState.SuspendParams suspendParams =
1770 suspendParamsMap.put(oldSuspendingPackage, suspendParams);
2042 for (int i = 0; i < ustate.suspendParams.size(); i++) {
2043 final String suspendingPackage = ustate.suspendParams.keyAt(i);
2047 ustate.suspendParams.valueAt(i);
4753 for (int i = 0; i < pus.suspendParams.size(); i++) {
4756 pw.print(pus.suspendParams.keyAt(i));
4757 final PackageUserState.SuspendParams params = pus.suspendParams.valueAt(i);
DPackageManagerService.java16481 for (int i = 0; i < pus.suspendParams.size(); i++) { in getSuspendedPackageAppExtrasInternal()
16482 final PackageUserState.SuspendParams params = pus.suspendParams.valueAt(i); in getSuspendedPackageAppExtrasInternal()
27296 for (int i = 0; i < pus.suspendParams.size(); i++) {
27298 pus.suspendParams.valueAt(i);
27363 for (int i = 0; i < pus.suspendParams.size(); i++) {
27364 suspendingPackage = pus.suspendParams.keyAt(i);
27384 final PackageUserState.SuspendParams suspendParams =
27385 pus.suspendParams.get(suspendingPackage);
27386 return (suspendParams != null) ? suspendParams.dialogInfo : null;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java213 assertThat(packageUserState1.suspendParams.size(), is(1)); in testReadPackageRestrictions_noSuspendingPackage()
214 assertThat(packageUserState1.suspendParams.keyAt(0), is("android")); in testReadPackageRestrictions_noSuspendingPackage()
215 assertThat(packageUserState1.suspendParams.valueAt(0), is(nullValue())); in testReadPackageRestrictions_noSuspendingPackage()
221 assertThat(packageUserState1.suspendParams.size(), is(1)); in testReadPackageRestrictions_noSuspendingPackage()
222 assertThat(packageUserState1.suspendParams.keyAt(0), is("android")); in testReadPackageRestrictions_noSuspendingPackage()
223 assertThat(packageUserState1.suspendParams.valueAt(0), is(nullValue())); in testReadPackageRestrictions_noSuspendingPackage()
228 assertThat(packageUserState2.suspendParams, is(nullValue())); in testReadPackageRestrictions_noSuspendingPackage()
252 assertThat(packageUserState1.suspendParams.size(), is(1)); in testReadPackageRestrictions_noSuspendParamsMap()
253 assertThat(packageUserState1.suspendParams.keyAt(0), is(PACKAGE_NAME_3)); in testReadPackageRestrictions_noSuspendParamsMap()
254 final PackageUserState.SuspendParams params = packageUserState1.suspendParams.valueAt(0); in testReadPackageRestrictions_noSuspendParamsMap()
[all …]
DPackageUserStateTest.java235 testUserState1.suspendParams = paramsMap1; in testPackageUserState05()
239 testUserState2.suspendParams = paramsMap2; in testPackageUserState05()
/frameworks/base/core/java/android/content/pm/
DPackageUserState.java75 public ArrayMap<String, SuspendParams> suspendParams; // Suspending package to suspend params field in PackageUserState
116 suspendParams = new ArrayMap<>(o.suspendParams); in PackageUserState()
428 if (!Objects.equals(suspendParams, oldState.suspendParams)) { in equals()
504 hashCode = 31 * hashCode + Objects.hashCode(suspendParams); in hashCode()