Searched refs:suspendParams (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSettingBase.java | 427 return state.suspendParams != null && state.suspendParams.containsKey(suspendingPackage); in isSuspendedBy() 436 if (existingUserState.suspendParams == null) { in addOrUpdateSuspension() 437 existingUserState.suspendParams = new ArrayMap<>(); in addOrUpdateSuspension() 439 existingUserState.suspendParams.put(suspendingPackage, newSuspendParams); in addOrUpdateSuspension() 445 if (existingUserState.suspendParams != null) { in removeSuspension() 446 existingUserState.suspendParams.remove(suspendingPackage); in removeSuspension() 447 if (existingUserState.suspendParams.size() == 0) { in removeSuspension() 448 existingUserState.suspendParams = null; in removeSuspension() 451 existingUserState.suspended = (existingUserState.suspendParams != null); in removeSuspension() 456 if (existingUserState.suspendParams != null) { in removeSuspension() [all …]
|
D | Settings.java | 1767 final PackageUserState.SuspendParams suspendParams = in readPackageRestrictionsLPr() local 1773 suspendParamsMap.put(oldSuspendingPackage, suspendParams); in readPackageRestrictionsLPr() 2124 for (int i = 0; i < ustate.suspendParams.size(); i++) { in writePackageRestrictionsLPr() 2125 final String suspendingPackage = ustate.suspendParams.keyAt(i); in writePackageRestrictionsLPr() 2129 ustate.suspendParams.valueAt(i); in writePackageRestrictionsLPr() 4911 for (int i = 0; i < pus.suspendParams.size(); i++) { in dumpPackageLPr() 4914 pw.print(pus.suspendParams.keyAt(i)); in dumpPackageLPr() 4915 final PackageUserState.SuspendParams params = pus.suspendParams.valueAt(i); in dumpPackageLPr()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerSettingsTests.java | 194 assertThat(packageUserState1.suspendParams.size(), is(1)); in testReadPackageRestrictions_noSuspendingPackage() 195 assertThat(packageUserState1.suspendParams.keyAt(0), is("android")); in testReadPackageRestrictions_noSuspendingPackage() 196 assertThat(packageUserState1.suspendParams.valueAt(0), is(nullValue())); in testReadPackageRestrictions_noSuspendingPackage() 201 assertThat(packageUserState2.suspendParams, is(nullValue())); in testReadPackageRestrictions_noSuspendingPackage() 216 assertThat(packageUserState1.suspendParams.size(), is(1)); in testReadPackageRestrictions_noSuspendParamsMap() 217 assertThat(packageUserState1.suspendParams.keyAt(0), is(PACKAGE_NAME_3)); in testReadPackageRestrictions_noSuspendParamsMap() 218 final PackageUserState.SuspendParams params = packageUserState1.suspendParams.valueAt(0); in testReadPackageRestrictions_noSuspendParamsMap() 289 assertThat(readPus1.suspendParams.size(), is(2)); in testReadWritePackageRestrictions_suspendInfo() 291 assertThat(readPus1.suspendParams.keyAt(0), is("suspendingPackage1")); in testReadWritePackageRestrictions_suspendInfo() 292 final PackageUserState.SuspendParams params11 = readPus1.suspendParams.valueAt(0); in testReadWritePackageRestrictions_suspendInfo() [all …]
|
D | PackageUserStateTest.java | 240 testUserState1.suspendParams = paramsMap1; in testPackageUserState05() 244 testUserState2.suspendParams = paramsMap2; in testPackageUserState05()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageUserState.java | 74 public ArrayMap<String, SuspendParams> suspendParams; // Suspending package to suspend params field in PackageUserState 117 suspendParams = new ArrayMap<>(o.suspendParams); in PackageUserState() 400 if (!Objects.equals(suspendParams, oldState.suspendParams)) { in equals() 478 hashCode = 31 * hashCode + Objects.hashCode(suspendParams); in hashCode()
|