diff options
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/pm/PackageInstaller.java | 7 | ||||
| -rw-r--r-- | core/java/android/content/pm/PackageManager.java | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/core/java/android/content/pm/PackageInstaller.java b/core/java/android/content/pm/PackageInstaller.java index f9980bc63d92..34a8d025fd93 100644 --- a/core/java/android/content/pm/PackageInstaller.java +++ b/core/java/android/content/pm/PackageInstaller.java @@ -2065,6 +2065,13 @@ public class PackageInstaller { this.forceQueryableOverride = true; } + /** + * Sets the install scenario for this session, which describes the expected user journey. + */ + public void setInstallScenario(@InstallScenario int installScenario) { + this.installScenario = installScenario; + } + /** {@hide} */ public void dump(IndentingPrintWriter pw) { pw.printPair("mode", mode); diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index a3c3500f742f..13b6b1d1235a 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -1356,15 +1356,11 @@ public abstract class PackageManager { /** * A value to indicate the lack of CUJ information, disabling all installation scenario logic. - * - * @hide */ public static final int INSTALL_SCENARIO_DEFAULT = 0; /** * Installation scenario providing the fastest “install button to launch" experience possible. - * - * @hide */ public static final int INSTALL_SCENARIO_FAST = 1; @@ -1381,8 +1377,6 @@ public abstract class PackageManager { * less optimized applications. The device state (e.g. memory usage or battery status) should * not be considered when making this decision as those factors are taken into account by the * Package Manager when acting on the installation scenario. - * - * @hide */ public static final int INSTALL_SCENARIO_BULK = 2; @@ -1393,8 +1387,6 @@ public abstract class PackageManager { * operation that are marked BULK_SECONDARY, the faster the entire bulk operation will be. * * See the comments for INSTALL_SCENARIO_BULK for more information. - * - * @hide */ public static final int INSTALL_SCENARIO_BULK_SECONDARY = 3; |
