Searched refs:PackageOverride (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/core/java/android/app/compat/ |
D | PackageOverride.java | 38 public final class PackageOverride { class 73 private PackageOverride(long minVersionCode, in PackageOverride() method in PackageOverride 136 public static PackageOverride createFromParcel(Parcel in) { in createFromParcel() 137 return new PackageOverride(in.readLong(), in.readLong(), in.readBoolean()); in createFromParcel() 201 public PackageOverride build() { in build() 206 return new PackageOverride(mMinVersionCode, mMaxVersionCode, mEnabled); in build()
|
D | CompatChanges.java | 117 @NonNull Map<Long, PackageOverride> overrides) { 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 Map<String, PackageOverride> mRawOverrides; 165 void addPackageOverride(String packageName, PackageOverride override, in addPackageOverride() 323 new PackageOverride.Builder().setEnabled( in loadOverrides() 333 new PackageOverride.Builder().setEnabled( in loadOverrides() 341 PackageOverride packageOverride = new PackageOverride.Builder() in loadOverrides() 359 for (Map.Entry<String, PackageOverride> entry : mRawOverrides.entrySet()) { in saveOverrides()
|
D | PlatformCompat.java | 29 import android.app.compat.PackageOverride; 200 Map<Long, PackageOverride> overridesMap = new HashMap<>(); in setOverrides() 202 overridesMap.put(change, new PackageOverride.Builder().setEnabled(true).build()); in setOverrides() 205 overridesMap.put(change, new PackageOverride.Builder().setEnabled(false) in setOverrides() 215 Map<Long, PackageOverride> overridesMap = new HashMap<>(); in setOverridesForTest() 217 overridesMap.put(change, new PackageOverride.Builder().setEnabled(true).build()); in setOverridesForTest() 220 overridesMap.put(change, new PackageOverride.Builder().setEnabled(false) in setOverridesForTest()
|
D | CompatConfig.java | 23 import android.app.compat.PackageOverride; 244 new PackageOverride.Builder().setEnabled(enabled).build()); in addOverride() 267 PackageOverride overrides) { in addOverrideUnsafe() 484 new PackageOverride.Builder().setEnabled(true).build()); in enableTargetSdkChangesForPackage() 501 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; 290 new PackageOverride.Builder() in testInstallerCanSetOverrides() 322 Map<Long, PackageOverride> overrides = new HashMap<>(); in testPreventInstallerSetNonOverridable() 323 overrides.put(disabledChangeId1, new PackageOverride.Builder().setEnabled(true).build()); in testPreventInstallerSetNonOverridable() 324 overrides.put(disabledChangeId2, new PackageOverride.Builder().setEnabled(true).build()); in testPreventInstallerSetNonOverridable() 325 overrides.put(disabledChangeId3, new PackageOverride.Builder().setEnabled(true).build()); in testPreventInstallerSetNonOverridable() 376 new PackageOverride.Builder() in testOverrideWithAppVersion() 386 new PackageOverride.Builder() in testOverrideWithAppVersion() 410 Collections.singletonMap(1234L, new PackageOverride.Builder() in testApplyDeferredOverridesAfterInstallingAppVersion() 804 new PackageOverride.Builder().setEnabled(true).build())), in testSaveOverrides() [all …]
|
/frameworks/base/services/core/java/com/android/server/app/ |
D | GameManagerService.java | 46 import android.app.compat.PackageOverride; 99 static final PackageOverride COMPAT_ENABLED = new PackageOverride.Builder().setEnabled(true) 101 static final PackageOverride COMPAT_DISABLED = new PackageOverride.Builder().setEnabled(false) 694 final ArrayMap<Long, PackageOverride> overrides = new ArrayMap<>(); in disableCompatScale() 712 final ArrayMap<Long, PackageOverride> overrides = new ArrayMap<>(); in enableCompatScale()
|
/frameworks/base/core/api/ |
D | system-current.txt | 1249 …rrides(@NonNull String, @NonNull java.util.Map<java.lang.Long,android.app.compat.PackageOverride>); 1253 public final class PackageOverride { 1259 public static final class PackageOverride.Builder { 1260 ctor public PackageOverride.Builder(); 1261 method @NonNull public android.app.compat.PackageOverride build(); 1262 method @NonNull public android.app.compat.PackageOverride.Builder setEnabled(boolean); 1263 method @NonNull public android.app.compat.PackageOverride.Builder setMaxVersionCode(long); 1264 method @NonNull public android.app.compat.PackageOverride.Builder setMinVersionCode(long);
|
/frameworks/base/services/ |
D | art-profile | 14999 …patChange;->addPackageOverride(Ljava/lang/String;Landroid/app/compat/PackageOverride;Lcom/android/… 15007 …rrides/ChangeOverrides;)V+]Landroid/app/compat/PackageOverride$Builder;Landroid/app/compat/Package… 15009 …lowedState;Ljava/lang/Long;)Z+]Landroid/app/compat/PackageOverride;Landroid/app/compat/PackageOver… 15012 …Entry;Ljava/util/HashMap$Node;]Landroid/app/compat/PackageOverride;Landroid/app/compat/PackageOver… 15017 …patConfig;->addOverrideUnsafe(JLjava/lang/String;Landroid/app/compat/PackageOverride;)Z+]Lcom/andr…
|