/frameworks/base/services/tests/mockingservicestests/src/com/android/server/compat/overrides/ |
D | AppCompatOverridesParserTest.java | 28 import android.app.compat.PackageOverride; 189 Map<Long, PackageOverride> result = mParser.parsePackageOverrides( in parsePackageOverrides_emptyConfigNoOwnedChangeIds_returnsEmpty() 198 Map<Long, PackageOverride> result = mParser.parsePackageOverrides( in parsePackageOverrides_configWithSingleOverride_returnsOverride() 205 new PackageOverride.Builder().setEnabled(true).build()); in parsePackageOverrides_configWithSingleOverride_returnsOverride() 210 Map<Long, PackageOverride> result = mParser.parsePackageOverrides( in parsePackageOverrides_configWithMultipleOverrides_returnsOverrides() 218 new PackageOverride.Builder().setEnabled(false).build()); in parsePackageOverrides_configWithMultipleOverrides_returnsOverrides() 220 new PackageOverride.Builder().setMinVersionCode(4).setMaxVersionCode(8).setEnabled( in parsePackageOverrides_configWithMultipleOverrides_returnsOverrides() 223 new PackageOverride.Builder().setMinVersionCode(3).setMaxVersionCode(4).setEnabled( in parsePackageOverrides_configWithMultipleOverrides_returnsOverrides() 226 new PackageOverride.Builder().setMinVersionCode(6).setMaxVersionCode(7).setEnabled( in parsePackageOverrides_configWithMultipleOverrides_returnsOverrides() 229 new PackageOverride.Builder().setMinVersionCode(5).setEnabled(true).build()); in parsePackageOverrides_configWithMultipleOverrides_returnsOverrides() [all …]
|
D | AppCompatOverridesServiceTest.java | 41 import android.app.compat.PackageOverride; 184 Map<Long, PackageOverride> addedOverrides; in onPropertiesChanged_removeOverridesFlagNotSet_appliesPackageOverrides() 192 new PackageOverride.Builder().setEnabled(true).build()); in onPropertiesChanged_removeOverridesFlagNotSet_appliesPackageOverrides() 194 new PackageOverride.Builder().setMinVersionCode(2).setEnabled(true).build()); in onPropertiesChanged_removeOverridesFlagNotSet_appliesPackageOverrides() 196 new PackageOverride.Builder().setEnabled(false).build()); in onPropertiesChanged_removeOverridesFlagNotSet_appliesPackageOverrides() 204 new PackageOverride.Builder().setMinVersionCode(10).setMaxVersionCode( in onPropertiesChanged_removeOverridesFlagNotSet_appliesPackageOverrides()
|
/frameworks/base/core/java/android/app/compat/ |
D | PackageOverride.java | 39 public final class PackageOverride { class 74 private PackageOverride(long minVersionCode, in PackageOverride() method in PackageOverride 137 public static PackageOverride createFromParcel(Parcel in) { in createFromParcel() 138 return new PackageOverride(in.readLong(), in.readLong(), in.readBoolean()); in createFromParcel() 146 PackageOverride that = (PackageOverride) o; in equals() 218 public PackageOverride build() { in build() 223 return new PackageOverride(mMinVersionCode, mMaxVersionCode, mEnabled); in build()
|
D | CompatChanges.java | 113 @NonNull Map<String, Map<Long, PackageOverride>> packageNameToOverrides) { in putAllPackageOverrides() 143 @NonNull Map<Long, PackageOverride> overrides) { in putPackageOverrides()
|
/frameworks/base/services/core/java/com/android/server/compat/overrides/ |
D | AppCompatOverridesParser.java | 26 import android.app.compat.PackageOverride; 197 Map<Long, PackageOverride> parsePackageOverrides(String configStr, String packageName, in parsePackageOverrides() 204 Map<Long, PackageOverride> overridesToAdd = new ArrayMap<>(); in parsePackageOverrides() 244 PackageOverride.Builder overrideBuilder = new PackageOverride.Builder().setEnabled( in parsePackageOverrides() 261 PackageOverride override = overrideBuilder.build(); in parsePackageOverrides() 331 private static final class PackageOverrideComparator implements Comparator<PackageOverride> { 339 public int compare(PackageOverride o1, PackageOverride o2) { in compare() 364 private static boolean isVersionInRange(PackageOverride override, long versionCode) { in isVersionInRange() 373 private static boolean isVersionAfterRange(PackageOverride override, long versionCode) { in isVersionAfterRange() 381 private static boolean isVersionBeforeRange(PackageOverride override, long versionCode) { in isVersionBeforeRange() [all …]
|
D | AppCompatOverridesService.java | 33 import android.app.compat.PackageOverride; 164 Map<Long, PackageOverride> overridesToAdd = emptyMap(); in applyOverrides() 283 Map<Long, PackageOverride> overridesToAdd) { in putPackageOverrides()
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | CompatChange.java | 19 import static android.app.compat.PackageOverride.VALUE_DISABLED; 20 import static android.app.compat.PackageOverride.VALUE_ENABLED; 21 import static android.app.compat.PackageOverride.VALUE_UNDEFINED; 24 import android.app.compat.PackageOverride; 86 private ConcurrentHashMap<String, PackageOverride> mRawOverrides; 161 synchronized void addPackageOverride(String packageName, PackageOverride override, in addPackageOverride() 270 final PackageOverride override = mRawOverrides.get(packageName); in willBeEnabled() 303 new PackageOverride.Builder().setEnabled( in loadOverrides() 313 new PackageOverride.Builder().setEnabled( in loadOverrides() 321 PackageOverride packageOverride = new PackageOverride.Builder() in loadOverrides() [all …]
|
D | PlatformCompat.java | 29 import android.app.compat.PackageOverride; 263 Map<Long, PackageOverride> overridesMap = new HashMap<>(); in setOverrides() 265 overridesMap.put(change, new PackageOverride.Builder().setEnabled(true).build()); in setOverrides() 268 overridesMap.put(change, new PackageOverride.Builder().setEnabled(false) in setOverrides() 281 Map<Long, PackageOverride> overridesMap = new HashMap<>(); in setOverridesForTest() 283 overridesMap.put(change, new PackageOverride.Builder().setEnabled(true).build()); in setOverridesForTest() 286 overridesMap.put(change, new PackageOverride.Builder().setEnabled(false) in setOverridesForTest()
|
D | CompatConfig.java | 23 import android.app.compat.PackageOverride; 280 new PackageOverride.Builder().setEnabled(enabled).build()); in addOverride() 339 PackageOverride overrides) { in addOverrideUnsafe() 576 new PackageOverride.Builder().setEnabled(true).build()); in enableTargetSdkChangesForPackage() 596 new PackageOverride.Builder().setEnabled(false).build()); in disableTargetSdkChangesForPackage()
|
/frameworks/base/core/java/com/android/internal/compat/ |
D | CompatibilityOverrideConfig.java | 20 import android.app.compat.PackageOverride; 32 public final Map<Long, PackageOverride> overrides; 34 public CompatibilityOverrideConfig(Map<Long, PackageOverride> overrides) { in CompatibilityOverrideConfig() 43 overrides.put(key, PackageOverride.createFromParcel(in)); in CompatibilityOverrideConfig()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 29 import android.app.compat.PackageOverride; 309 Map<Long, PackageOverride> overrides = new HashMap<>(); in testInstallerCanAddOverrides() 310 overrides.put(disabledChangeId1, new PackageOverride.Builder() in testInstallerCanAddOverrides() 315 overrides.put(unknownChangeId, new PackageOverride.Builder().setEnabled(false).build()); in testInstallerCanAddOverrides() 353 Map<Long, PackageOverride> overrides1 = new HashMap<>(); in testInstallerCanAddOverridesForMultiplePackages() 354 overrides1.put(disabledChangeId1, new PackageOverride.Builder().setEnabled(true).build()); in testInstallerCanAddOverridesForMultiplePackages() 355 Map<Long, PackageOverride> overrides2 = new HashMap<>(); in testInstallerCanAddOverridesForMultiplePackages() 356 overrides2.put(disabledChangeId1, new PackageOverride.Builder().setEnabled(true).build()); in testInstallerCanAddOverridesForMultiplePackages() 357 overrides2.put(disabledChangeId2, new PackageOverride.Builder().setEnabled(true).build()); in testInstallerCanAddOverridesForMultiplePackages() 395 Map<Long, PackageOverride> overrides = new HashMap<>(); in testPreventInstallerSetNonOverridable() [all …]
|
/frameworks/base/core/api/ |
D | system-current.txt | 2086 … java.util.Map<java.lang.String,java.util.Map<java.lang.Long,android.app.compat.PackageOverride>>); 2087 …rrides(@NonNull String, @NonNull java.util.Map<java.lang.Long,android.app.compat.PackageOverride>); 2092 public final class PackageOverride { 2098 public static final class PackageOverride.Builder { 2099 ctor public PackageOverride.Builder(); 2100 method @NonNull public android.app.compat.PackageOverride build(); 2101 method @NonNull public android.app.compat.PackageOverride.Builder setEnabled(boolean); 2102 method @NonNull public android.app.compat.PackageOverride.Builder setMaxVersionCode(long); 2103 method @NonNull public android.app.compat.PackageOverride.Builder setMinVersionCode(long);
|