Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -10234,6 +10234,7 @@ package android.content.pm { method public float getProgress(); method public int getSessionId(); method public boolean isActive(); method public boolean isSealed(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.content.pm.PackageInstaller.SessionInfo> CREATOR; } api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -10752,6 +10752,7 @@ package android.content.pm { method public android.content.pm.PackageInstaller.Session openSession(int) throws java.io.IOException; method public void registerSessionCallback(android.content.pm.PackageInstaller.SessionCallback); method public void registerSessionCallback(android.content.pm.PackageInstaller.SessionCallback, android.os.Handler); method public void setPermissionsResult(int, boolean); method public void uninstall(java.lang.String, android.content.IntentSender); method public void uninstall(android.content.pm.VersionedPackage, android.content.IntentSender); method public void unregisterSessionCallback(android.content.pm.PackageInstaller.SessionCallback); Loading Loading @@ -10809,6 +10810,7 @@ package android.content.pm { method public float getProgress(); method public int getSessionId(); method public boolean isActive(); method public boolean isSealed(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.content.pm.PackageInstaller.SessionInfo> CREATOR; } api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -10267,6 +10267,7 @@ package android.content.pm { method public float getProgress(); method public int getSessionId(); method public boolean isActive(); method public boolean isSealed(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.content.pm.PackageInstaller.SessionInfo> CREATOR; } core/java/android/content/pm/PackageInstaller.java +14 −3 Original line number Diff line number Diff line Loading @@ -465,6 +465,7 @@ public class PackageInstaller { } /** {@hide} */ @SystemApi public void setPermissionsResult(int sessionId, boolean accepted) { try { mInstaller.setPermissionsResult(sessionId, accepted); Loading Loading @@ -845,9 +846,9 @@ public class PackageInstaller { * user intervention, and so it may not happen immediately. The final * result of the commit will be reported through the given callback. * <p> * Once this method is called, no additional mutations may be performed * on the session. If the device reboots before the session has been * finalized, you may commit the session again. * Once this method is called, the session is sealed and no additional * mutations may be performed on the session. If the device reboots * before the session has been finalized, you may commit the session again. * * @throws SecurityException if streams opened through * {@link #openWrite(String, long, long)} are still open. Loading Loading @@ -1278,6 +1279,16 @@ public class PackageInstaller { return active; } /** * Return if this session is sealed. * <p> * Once sealed, no further changes may be made to the session. A session * is sealed the moment {@link Session#commit(IntentSender)} is called. */ public boolean isSealed() { return sealed; } /** * Return the reason for installing this package. * Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -10234,6 +10234,7 @@ package android.content.pm { method public float getProgress(); method public int getSessionId(); method public boolean isActive(); method public boolean isSealed(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.content.pm.PackageInstaller.SessionInfo> CREATOR; }
api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -10752,6 +10752,7 @@ package android.content.pm { method public android.content.pm.PackageInstaller.Session openSession(int) throws java.io.IOException; method public void registerSessionCallback(android.content.pm.PackageInstaller.SessionCallback); method public void registerSessionCallback(android.content.pm.PackageInstaller.SessionCallback, android.os.Handler); method public void setPermissionsResult(int, boolean); method public void uninstall(java.lang.String, android.content.IntentSender); method public void uninstall(android.content.pm.VersionedPackage, android.content.IntentSender); method public void unregisterSessionCallback(android.content.pm.PackageInstaller.SessionCallback); Loading Loading @@ -10809,6 +10810,7 @@ package android.content.pm { method public float getProgress(); method public int getSessionId(); method public boolean isActive(); method public boolean isSealed(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.content.pm.PackageInstaller.SessionInfo> CREATOR; }
api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -10267,6 +10267,7 @@ package android.content.pm { method public float getProgress(); method public int getSessionId(); method public boolean isActive(); method public boolean isSealed(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.content.pm.PackageInstaller.SessionInfo> CREATOR; }
core/java/android/content/pm/PackageInstaller.java +14 −3 Original line number Diff line number Diff line Loading @@ -465,6 +465,7 @@ public class PackageInstaller { } /** {@hide} */ @SystemApi public void setPermissionsResult(int sessionId, boolean accepted) { try { mInstaller.setPermissionsResult(sessionId, accepted); Loading Loading @@ -845,9 +846,9 @@ public class PackageInstaller { * user intervention, and so it may not happen immediately. The final * result of the commit will be reported through the given callback. * <p> * Once this method is called, no additional mutations may be performed * on the session. If the device reboots before the session has been * finalized, you may commit the session again. * Once this method is called, the session is sealed and no additional * mutations may be performed on the session. If the device reboots * before the session has been finalized, you may commit the session again. * * @throws SecurityException if streams opened through * {@link #openWrite(String, long, long)} are still open. Loading Loading @@ -1278,6 +1279,16 @@ public class PackageInstaller { return active; } /** * Return if this session is sealed. * <p> * Once sealed, no further changes may be made to the session. A session * is sealed the moment {@link Session#commit(IntentSender)} is called. */ public boolean isSealed() { return sealed; } /** * Return the reason for installing this package. * Loading