Home
last modified time | relevance | path

Searched refs:disabledComponents (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/content/pm/
DPackageUserState.java56 public ArraySet<String> disabledComponents; field in PackageUserState
86 disabledComponents = ArrayUtils.cloneOrNull(o.disabledComponents); in PackageUserState()
165 if (ArrayUtils.contains(this.disabledComponents, componentInfo.name)) { in isEnabled()
222 if ((disabledComponents == null && oldState.disabledComponents != null) in equals()
223 || (disabledComponents != null && oldState.disabledComponents == null)) { in equals()
226 if (disabledComponents != null) { in equals()
227 if (disabledComponents.size() != oldState.disabledComponents.size()) { in equals()
230 for (int i = disabledComponents.size() - 1; i >=0; --i) { in equals()
231 if (!oldState.disabledComponents.contains(disabledComponents.valueAt(i))) { in equals()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageUserStateTest.java108 testUserState01.disabledComponents = new ArraySet<>(); in testPackageUserState03()
113 oldUserState.disabledComponents = new ArraySet<>(); in testPackageUserState03()
118 testUserState03.disabledComponents = new ArraySet<>(); in testPackageUserState03()
121 testUserState03.disabledComponents.add("com.android.unit_test01"); in testPackageUserState03()
122 testUserState03.disabledComponents.add("com.android.unit_test02"); in testPackageUserState03()
123 testUserState03.disabledComponents.add("com.android.unit_test03"); in testPackageUserState03()
124 oldUserState.disabledComponents.add("com.android.unit_test03"); in testPackageUserState03()
125 oldUserState.disabledComponents.add("com.android.unit_test02"); in testPackageUserState03()
128 oldUserState.disabledComponents.add("com.android.unit_test01"); in testPackageUserState03()
131 oldUserState.disabledComponents.add("com.android.unit_test04"); in testPackageUserState03()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java434 ArraySet<String> enabledComponents, ArraySet<String> disabledComponents, in setUserState() argument
446 state.disabledComponents = disabledComponents; in setUserState()
459 return readUserState(userId).disabledComponents; in getDisabledComponents()
467 modifyUserState(userId).disabledComponents = components; in setDisabledComponents()
476 modifyUserState(userId).disabledComponents = components != null in setDisabledComponentsCopy()
482 if (disabled && state.disabledComponents == null) { in modifyUserStateComponents()
483 state.disabledComponents = new ArraySet<String>(1); in modifyUserStateComponents()
492 modifyUserStateComponents(userId, true, false).disabledComponents.add(componentClassName); in addDisabledComponent()
501 boolean changed = state.disabledComponents != null in enableComponentLPw()
502 ? state.disabledComponents.remove(componentClassName) : false; in enableComponentLPw()
[all …]
DSettings.java1796 ArraySet<String> disabledComponents = null; in readPackageRestrictionsLPr() local
1810 disabledComponents = readComponentsLPr(parser); in readPackageRestrictionsLPr()
1819 enabledComponents, disabledComponents, verifState, linkGeneration, in readPackageRestrictionsLPr()
2163 if (!ArrayUtils.isEmpty(ustate.disabledComponents)) { in writePackageRestrictionsLPr()
2165 for (final String name : ustate.disabledComponents) { in writePackageRestrictionsLPr()