Searched refs:ownedChangeIds (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/core/java/com/android/server/compat/overrides/ |
D | AppCompatOverridesService.java | 137 private void applyAllOverrides(String namespace, Set<Long> ownedChangeIds, in applyAllOverrides() argument 139 applyOverrides(DeviceConfig.getProperties(namespace), ownedChangeIds, in applyAllOverrides() local 152 private void applyOverrides(Properties properties, Set<Long> ownedChangeIds, in applyOverrides() argument 178 for (Long changeId : ownedChangeIds) { in applyOverrides() 205 Set<Long> ownedChangeIds = getOwnedChangeIds(namespace); in addAllPackageOverrides() local 209 getOverridesToRemove(namespace, ownedChangeIds).getOrDefault(packageName, in addAllPackageOverrides() 253 Set<Long> ownedChangeIds) { in getOverridesToRemove() argument 256 ownedChangeIds); in getOverridesToRemove() 387 Set<Long> ownedChangeIds = getOwnedChangeIds(mNamespace); in onPropertiesChanged() local 389 ownedChangeIds); in onPropertiesChanged() [all …]
|
D | AppCompatOverridesParser.java | 101 Map<String, Set<Long>> parseRemoveOverrides(String configStr, Set<Long> ownedChangeIds) { in parseRemoveOverrides() argument 108 if (ownedChangeIds.isEmpty()) { in parseRemoveOverrides() 115 result.put(appInfo.packageName, ownedChangeIds); in parseRemoveOverrides() 133 if (ownedChangeIds.isEmpty()) { in parseRemoveOverrides() 137 result.put(packageName, ownedChangeIds); in parseRemoveOverrides()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/compat/overrides/ |
D | AppCompatOverridesParserTest.java | 75 Set<Long> ownedChangeIds = new ArraySet<>(Arrays.asList(123L, 456L)); in parseRemoveOverrides_emptyConfig_returnsEmpty() local 77 assertThat(mParser.parseRemoveOverrides("", ownedChangeIds)).isEmpty(); in parseRemoveOverrides_emptyConfig_returnsEmpty() 90 Set<Long> ownedChangeIds = new ArraySet<>(Arrays.asList(123L, 456L)); in parseRemoveOverrides_configHasWildcard_returnsAllInstalledPackagesToAllOwnedIds() local 95 Map<String, Set<Long>> result = mParser.parseRemoveOverrides("*", ownedChangeIds); in parseRemoveOverrides_configHasWildcard_returnsAllInstalledPackagesToAllOwnedIds() 105 Set<Long> ownedChangeIds = new ArraySet<>(Arrays.asList(123L, 456L)); in parseRemoveOverrides_configHasInvalidWildcardSymbol_returnsEmpty() local 109 assertThat(mParser.parseRemoveOverrides("**", ownedChangeIds)).isEmpty(); in parseRemoveOverrides_configHasInvalidWildcardSymbol_returnsEmpty() 123 Set<Long> ownedChangeIds = new ArraySet<>(Arrays.asList(12L, 34L, 56L, 78L)); in parseRemoveOverrides_configHasMultipleEntries_returnsPackagesToChangeIds() local 127 + "=", ownedChangeIds); in parseRemoveOverrides_configHasMultipleEntries_returnsPackagesToChangeIds() 146 Set<Long> ownedChangeIds = new ArraySet<>(Arrays.asList(12L, 34L)); in parseRemoveOverrides_configHasInvalidKeyValueListFormat_returnsEmpty() local 149 PACKAGE_1 + "=12," + PACKAGE_2 + ">34", ownedChangeIds)).isEmpty(); in parseRemoveOverrides_configHasInvalidKeyValueListFormat_returnsEmpty()
|