Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/pm/
DPackageUserState.java86 public ArraySet<String> disabledComponents; field in PackageUserState
127 disabledComponents = ArrayUtils.cloneOrNull(o.disabledComponents); in PackageUserState()
333 if (ArrayUtils.contains(this.disabledComponents, componentName)) { in isEnabled()
433 if ((disabledComponents == null && oldState.disabledComponents != null) in equals()
434 || (disabledComponents != null && oldState.disabledComponents == null)) { in equals()
437 if (disabledComponents != null) { in equals()
438 if (disabledComponents.size() != oldState.disabledComponents.size()) { in equals()
441 for (int i = disabledComponents.size() - 1; i >=0; --i) { in equals()
442 if (!oldState.disabledComponents.contains(disabledComponents.valueAt(i))) { in equals()
488 hashCode = 31 * hashCode + Objects.hashCode(disabledComponents); in hashCode()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageUserStateTest.java120 testUserState01.disabledComponents = new ArraySet<>(); in testPackageUserState03()
125 oldUserState.disabledComponents = new ArraySet<>(); in testPackageUserState03()
130 testUserState03.disabledComponents = new ArraySet<>(); in testPackageUserState03()
133 testUserState03.disabledComponents.add("com.android.unit_test01"); in testPackageUserState03()
134 testUserState03.disabledComponents.add("com.android.unit_test02"); in testPackageUserState03()
135 testUserState03.disabledComponents.add("com.android.unit_test03"); in testPackageUserState03()
136 oldUserState.disabledComponents.add("com.android.unit_test03"); in testPackageUserState03()
137 oldUserState.disabledComponents.add("com.android.unit_test02"); in testPackageUserState03()
140 oldUserState.disabledComponents.add("com.android.unit_test01"); in testPackageUserState03()
143 oldUserState.disabledComponents.add("com.android.unit_test04"); in testPackageUserState03()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java490 ArraySet<String> enabledComponents, ArraySet<String> disabledComponents, in setUserState() argument
505 state.disabledComponents = disabledComponents; in setUserState()
521 otherState.enabledComponents, otherState.disabledComponents, in setUserState()
531 return readUserState(userId).disabledComponents; in getDisabledComponents()
539 modifyUserState(userId).disabledComponents = components; in setDisabledComponents()
548 modifyUserState(userId).disabledComponents = components != null in setDisabledComponentsCopy()
554 if (disabled && state.disabledComponents == null) { in modifyUserStateComponents()
555 state.disabledComponents = new ArraySet<String>(1); in modifyUserStateComponents()
564 modifyUserStateComponents(userId, true, false).disabledComponents.add(componentClassName); in addDisabledComponent()
573 boolean changed = state.disabledComponents != null in enableComponentLPw()
[all …]
DSettings.java1712 ArraySet<String> disabledComponents = null; in readPackageRestrictionsLPr() local
1731 disabledComponents = readComponentsLPr(parser); in readPackageRestrictionsLPr()
1782 enabledCaller, enabledComponents, disabledComponents, verifState, in readPackageRestrictionsLPr()
2145 if (!ArrayUtils.isEmpty(ustate.disabledComponents)) { in writePackageRestrictionsLPr()
2147 for (final String name : ustate.disabledComponents) { in writePackageRestrictionsLPr()
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java322 ArraySet<String> disabledComponents = in computeComponentStateHash()
324 numComponents = CollectionUtils.size(disabledComponents); in computeComponentStateHash()
326 out.write(disabledComponents.valueAt(i).getBytes()); in computeComponentStateHash()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java249 ArrayList<ComponentName> disabledComponents = in resetComponents() local
279 disabledComponents.add(currentComponent); in resetComponents()
297 changes.put(false, disabledComponents); in resetComponents()