summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorAnna Trostanetski <atrost@google.com>2019-11-18 14:51:32 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-11-18 14:51:32 +0000
commit688b3aea7c9da43afcf5db087e64877d56eadcf8 (patch)
treeee7dfa0e7ab1af8dbc4cbd57d7b832ce30fb9578 /core/java
parent2cc5a8521302910234fb8f097919a30a603360b2 (diff)
parentf69bbe1a45f9d11037c1ad8f84e8537c70531158 (diff)
Merge "Make CompatConfig be package private."
Diffstat (limited to 'core/java')
-rw-r--r--core/java/com/android/internal/compat/IPlatformCompat.aidl25
1 files changed, 23 insertions, 2 deletions
diff --git a/core/java/com/android/internal/compat/IPlatformCompat.aidl b/core/java/com/android/internal/compat/IPlatformCompat.aidl
index 5857642cbd4e..045a6800bb13 100644
--- a/core/java/com/android/internal/compat/IPlatformCompat.aidl
+++ b/core/java/com/android/internal/compat/IPlatformCompat.aidl
@@ -133,7 +133,7 @@ interface IPlatformCompat
boolean isChangeEnabledByUid(long changeId, int uid);
/**
- * Add overrides to compatibility changes.
+ * Add overrides to compatibility changes. Kills the app to allow the changes to take effect.
*
* @param overrides Parcelable containing the compat change overrides to be applied.
* @param packageName The package name of the app whose changes will be overridden.
@@ -142,7 +142,28 @@ interface IPlatformCompat
void setOverrides(in CompatibilityChangeConfig overrides, in String packageName);
/**
- * Revert overrides to compatibility changes.
+ * Add overrides to compatibility changes. Doesn't kill the app, to be only used in tests.
+ *
+ * @param overrides Parcelable containing the compat change overrides to be applied.
+ * @param packageName The package name of the app whose changes will be overridden.
+ *
+ */
+ void setOverridesForTest(in CompatibilityChangeConfig overrides, in String packageName);
+
+ /**
+ * Removes an override previously added via {@link #setOverrides(CompatibilityChangeConfig,
+ * String)}. This restores the default behaviour for the given change and app, once any app
+ * processes have been restarted.
+ * Kills the app to allow the changes to take effect.
+ *
+ * @param changeId The ID of the change that was overridden.
+ * @param packageName The app package name that was overridden.
+ * @return {@code true} if an override existed;
+ */
+ boolean clearOverride(long changeId, String packageName);
+
+ /**
+ * Revert overrides to compatibility changes. Kills the app to allow the changes to take effect.
*
* @param packageName The package name of the app whose overrides will be cleared.
*