Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -6992,6 +6992,7 @@ package android.app.job { method public android.app.job.JobInfo.Builder setEstimatedNetworkBytes(long); method public android.app.job.JobInfo.Builder setExtras(android.os.PersistableBundle); method public android.app.job.JobInfo.Builder setImportantWhileForeground(boolean); method public android.app.job.JobInfo.Builder setIsPrefetch(boolean); method public android.app.job.JobInfo.Builder setMinimumLatency(long); method public android.app.job.JobInfo.Builder setOverrideDeadline(long); method public android.app.job.JobInfo.Builder setPeriodic(long); api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -4381,6 +4381,8 @@ package android.telephony { public class SubscriptionManager { method public java.util.List<android.telephony.SubscriptionPlan> getSubscriptionPlans(int); method public void setSubscriptionOverrideCongested(int, boolean, long); method public void setSubscriptionOverrideUnmetered(int, boolean, long); method public void setSubscriptionPlans(int, java.util.List<android.telephony.SubscriptionPlan>); field public static final java.lang.String ACTION_MANAGE_SUBSCRIPTION_PLANS = "android.telephony.action.MANAGE_SUBSCRIPTION_PLANS"; field public static final java.lang.String ACTION_REFRESH_SUBSCRIPTION_PLANS = "android.telephony.action.REFRESH_SUBSCRIPTION_PLANS"; Loading core/java/android/app/job/JobInfo.java +27 −0 Original line number Diff line number Diff line Loading @@ -250,6 +250,11 @@ public class JobInfo implements Parcelable { */ public static final int FLAG_IMPORTANT_WHILE_FOREGROUND = 1 << 1; /** * @hide */ public static final int FLAG_IS_PREFETCH = 1 << 2; /** * @hide */ Loading Loading @@ -1363,6 +1368,28 @@ public class JobInfo implements Parcelable { return this; } /** * Setting this to true indicates that this job is designed to prefetch * content that will make a material improvement to the experience of * the specific user of this device. For example, fetching top headlines * of interest to the current user. * <p> * The system may use this signal to relax the network constraints you * originally requested, such as allowing a * {@link JobInfo#NETWORK_TYPE_UNMETERED} job to run over a metered * network when there is a surplus of metered data available. The system * may also use this signal in combination with end user usage patterns * to ensure data is prefetched before the user launches your app. */ public Builder setIsPrefetch(boolean isPrefetch) { if (isPrefetch) { mFlags |= FLAG_IS_PREFETCH; } else { mFlags &= (~FLAG_IS_PREFETCH); } return this; } /** * Set whether or not to persist this job across device reboots. * Loading core/java/android/content/pm/PackageManagerInternal.java +5 −0 Original line number Diff line number Diff line Loading @@ -436,6 +436,11 @@ public abstract class PackageManagerInternal { */ public abstract int getUidTargetSdkVersion(int uid); /** * Return the taget SDK version for the app with the given package name. */ public abstract int getPackageTargetSdkVersion(String packageName); /** Whether the binder caller can access instant apps. */ public abstract boolean canAccessInstantApps(int callingUid, int userId); Loading core/java/android/net/INetworkPolicyManager.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ interface INetworkPolicyManager { SubscriptionPlan[] getSubscriptionPlans(int subId, String callingPackage); void setSubscriptionPlans(int subId, in SubscriptionPlan[] plans, String callingPackage); String getSubscriptionPlansOwner(int subId); void setSubscriptionOverride(int subId, int overrideMask, int overrideValue, long timeoutMillis, String callingPackage); void factoryReset(String subscriber); Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -6992,6 +6992,7 @@ package android.app.job { method public android.app.job.JobInfo.Builder setEstimatedNetworkBytes(long); method public android.app.job.JobInfo.Builder setExtras(android.os.PersistableBundle); method public android.app.job.JobInfo.Builder setImportantWhileForeground(boolean); method public android.app.job.JobInfo.Builder setIsPrefetch(boolean); method public android.app.job.JobInfo.Builder setMinimumLatency(long); method public android.app.job.JobInfo.Builder setOverrideDeadline(long); method public android.app.job.JobInfo.Builder setPeriodic(long);
api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -4381,6 +4381,8 @@ package android.telephony { public class SubscriptionManager { method public java.util.List<android.telephony.SubscriptionPlan> getSubscriptionPlans(int); method public void setSubscriptionOverrideCongested(int, boolean, long); method public void setSubscriptionOverrideUnmetered(int, boolean, long); method public void setSubscriptionPlans(int, java.util.List<android.telephony.SubscriptionPlan>); field public static final java.lang.String ACTION_MANAGE_SUBSCRIPTION_PLANS = "android.telephony.action.MANAGE_SUBSCRIPTION_PLANS"; field public static final java.lang.String ACTION_REFRESH_SUBSCRIPTION_PLANS = "android.telephony.action.REFRESH_SUBSCRIPTION_PLANS"; Loading
core/java/android/app/job/JobInfo.java +27 −0 Original line number Diff line number Diff line Loading @@ -250,6 +250,11 @@ public class JobInfo implements Parcelable { */ public static final int FLAG_IMPORTANT_WHILE_FOREGROUND = 1 << 1; /** * @hide */ public static final int FLAG_IS_PREFETCH = 1 << 2; /** * @hide */ Loading Loading @@ -1363,6 +1368,28 @@ public class JobInfo implements Parcelable { return this; } /** * Setting this to true indicates that this job is designed to prefetch * content that will make a material improvement to the experience of * the specific user of this device. For example, fetching top headlines * of interest to the current user. * <p> * The system may use this signal to relax the network constraints you * originally requested, such as allowing a * {@link JobInfo#NETWORK_TYPE_UNMETERED} job to run over a metered * network when there is a surplus of metered data available. The system * may also use this signal in combination with end user usage patterns * to ensure data is prefetched before the user launches your app. */ public Builder setIsPrefetch(boolean isPrefetch) { if (isPrefetch) { mFlags |= FLAG_IS_PREFETCH; } else { mFlags &= (~FLAG_IS_PREFETCH); } return this; } /** * Set whether or not to persist this job across device reboots. * Loading
core/java/android/content/pm/PackageManagerInternal.java +5 −0 Original line number Diff line number Diff line Loading @@ -436,6 +436,11 @@ public abstract class PackageManagerInternal { */ public abstract int getUidTargetSdkVersion(int uid); /** * Return the taget SDK version for the app with the given package name. */ public abstract int getPackageTargetSdkVersion(String packageName); /** Whether the binder caller can access instant apps. */ public abstract boolean canAccessInstantApps(int callingUid, int userId); Loading
core/java/android/net/INetworkPolicyManager.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ interface INetworkPolicyManager { SubscriptionPlan[] getSubscriptionPlans(int subId, String callingPackage); void setSubscriptionPlans(int subId, in SubscriptionPlan[] plans, String callingPackage); String getSubscriptionPlansOwner(int subId); void setSubscriptionOverride(int subId, int overrideMask, int overrideValue, long timeoutMillis, String callingPackage); void factoryReset(String subscriber); Loading