/**@class android.content.pm.PackageInstaller.SessionInfo implements android.os.Parcelable @extends java.lang.Object Details for an active install session. */ var SessionInfo = { /** A session ID that does not exist or is invalid. */ INVALID_ID : "-1", /** Constant indicating that no error occurred during the preparation or the activation of this staged session. */ STAGED_SESSION_NO_ERROR : "0", /** Constant indicating that an error occurred during the verification phase (pre-reboot) of this staged session. */ STAGED_SESSION_VERIFICATION_FAILED : "1", /** Constant indicating that an error occurred during the activation phase (post-reboot) of this staged session. */ STAGED_SESSION_ACTIVATION_FAILED : "2", /** Constant indicating that an unknown error occurred while processing this staged session. */ STAGED_SESSION_UNKNOWN : "3", /**{@hide} */ sessionId : "null", /**{@hide} */ userId : "null", /**{@hide} */ installerPackageName : "null", /**{@hide} */ resolvedBaseCodePath : "null", /**{@hide} */ progress : "null", /**{@hide} */ sealed : "null", /**{@hide} */ active : "null", /**{@hide} */ mode : "null", /**{@hide} */ installReason : "null", /**{@hide} */ sizeBytes : "null", /**{@hide} */ appPackageName : "null", /**{@hide} */ appIcon : "null", /**{@hide} */ appLabel : "null", /**{@hide} */ installLocation : "null", /**{@hide} */ originatingUri : "null", /**{@hide} */ originatingUid : "null", /**{@hide} */ referrerUri : "null", /**{@hide} */ grantedRuntimePermissions : "null", /**{@hide}*/ whitelistedRestrictedPermissions : "null", /**{@hide} */ installFlags : "null", /**{@hide} */ isMultiPackage : "null", /**{@hide} */ isStaged : "null", /**{@hide} */ parentSessionId : "null", /**{@hide} */ childSessionIds : "null", /**{@hide} */ isStagedSessionApplied : "null", /**{@hide} */ isStagedSessionReady : "null", /**{@hide} */ isStagedSessionFailed : "null", /**{@hide} */ isCommitted : "null", /**{@hide} */ updatedMillis : "null", /***/ CREATOR : "null", /**Return the ID for this session. */ getSessionId : function( ) {}, /**Return the user associated with this session. */ getUser : function( ) {}, /**Return the package name of the app that owns this session. */ getInstallerPackageName : function( ) {}, /**Return current overall progress of this session, between 0 and 1. <p> Note that this progress may not directly correspond to the value reported by {@link android.content.pm.PackageParser.PackageInstaller.Session#setStagingProgress(float)}, as the system may carve out a portion of the overall progress to represent its own internal installation work. */ getProgress : function( ) {}, /**Return if this session is currently active. <p> A session is considered active whenever there is ongoing forward progress being made, such as the installer holding an open {@link android.content.pm.PackageInstaller.Session} instance while streaming data into place, or the system optimizing code as the result of {@link android.content.pm.PackageInstaller.Session#commit(IntentSender)}. <p> If the installer closes the {@link android.content.pm.PackageInstaller.Session} without committing, the session is considered inactive until the installer opens the session again. */ isActive : function( ) {}, /**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 android.content.pm.PackageInstaller.Session#commit(IntentSender)} is called. */ isSealed : function( ) {}, /**Return the reason for installing this package. @return {Number} The install reason. */ getInstallReason : function( ) {}, /**{@hide} */ isOpen : function( ) {}, /**Return the package name this session is working with. May be {@code null} if unknown. */ getAppPackageName : function( ) {}, /**Return an icon representing the app being installed. May be {@code null} if unavailable. */ getAppIcon : function( ) {}, /**Return a label representing the app being installed. May be {@code null} if unavailable. */ getAppLabel : function( ) {}, /**Return an Intent that can be started to view details about this install session. This may surface actions such as pause, resume, or cancel. <p> In some cases, a matching Activity may not exist, so ensure you safeguard against this. @see PackageInstaller#ACTION_SESSION_DETAILS */ createDetailsIntent : function( ) {}, /**Get the mode of the session as set in the constructor of the {@link android.content.pm.PackageInstaller.SessionParams}. @return {Number} One of {@link SessionParams#MODE_FULL_INSTALL} or {@link SessionParams#MODE_INHERIT_EXISTING} */ getMode : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setInstallLocation(int)}. */ getInstallLocation : function( ) {}, /**Get the value as set in {@link android.content.pm.PackageInstaller.SessionParams#setSize(long)}. <p>The value is a hint and does not have to match the actual size. */ getSize : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setOriginatingUri(Uri)}. */ getOriginatingUri : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setOriginatingUid(int)}. */ getOriginatingUid : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setReferrerUri(Uri)} */ getReferrerUri : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setGrantedRuntimePermissions(String[])}. @hide */ getGrantedRuntimePermissions : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setWhitelistedRestrictedPermissions(Set)}. Note that if all permissions are whitelisted this method returns {@link android.content.pm.PackageInstaller.SessionParams#RESTRICTED_PERMISSIONS_ALL}. @hide */ getWhitelistedRestrictedPermissions : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setAllowDowngrade(boolean)}. @deprecated use {@link #getRequestDowngrade()}. @hide */ getAllowDowngrade : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setRequestDowngrade(boolean)}. @hide */ getRequestDowngrade : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setDontKillApp(boolean)}. @hide */ getDontKillApp : function( ) {}, /**If {@link android.content.pm.PackageInstaller.SessionParams#setInstallAsInstantApp(boolean)} was called with {@code true}, return true. If it was called with {@code false} or if it was not called return false. @hide @see #getInstallAsFullApp */ getInstallAsInstantApp : function( ) {}, /**If {@link android.content.pm.PackageInstaller.SessionParams#setInstallAsInstantApp(boolean)} was called with {@code false}, return true. If it was called with {@code true} or if it was not called return false. @hide @see #getInstallAsInstantApp */ getInstallAsFullApp : function( ) {}, /**Get if {@link android.content.pm.PackageInstaller.SessionParams#setInstallAsVirtualPreload()} was called. @hide */ getInstallAsVirtualPreload : function( ) {}, /**Return whether rollback is enabled or disabled for the given upgrade. @hide */ getEnableRollback : function( ) {}, /**Get the value set in {@link android.content.pm.PackageInstaller.SessionParams#setAllocateAggressive(boolean)}. @hide */ getAllocateAggressive : function( ) {}, /**{@hide} */ getDetailsIntent : function( ) {}, /**Returns true if this session is a multi-package session containing references to other sessions. */ isMultiPackage : function( ) {}, /**Returns true if this session is a staged session which will be applied at next reboot. */ isStaged : function( ) {}, /**Returns the parent multi-package session ID if this session belongs to one, {@link #INVALID_ID} otherwise. */ getParentSessionId : function( ) {}, /**Returns the set of session IDs that will be committed when this session is commited if this session is a multi-package session. */ getChildSessionIds : function( ) {}, /**Whether the staged session has been applied successfully, meaning that all of its packages have been activated and no further action is required. Only meaningful if {@code isStaged} is true. */ isStagedSessionApplied : function( ) {}, /**Whether the staged session is ready to be applied at next reboot. Only meaningful if {@code isStaged} is true. */ isStagedSessionReady : function( ) {}, /**Whether something went wrong and the staged session is declared as failed, meaning that it will be ignored at next reboot. Only meaningful if {@code isStaged} is true. */ isStagedSessionFailed : function( ) {}, /**If something went wrong with a staged session, clients can check this error code to understand which kind of failure happened. Only meaningful if {@code isStaged} is true. */ getStagedSessionErrorCode : function( ) {}, /**Text description of the error code returned by {@code getStagedSessionErrorCode}, or empty string if no error was encountered. */ getStagedSessionErrorMessage : function( ) {}, /**{@hide} */ setStagedSessionErrorCode : function( ) {}, /**Returns {@code true} if {@link android.content.pm.PackageInstaller.Session#commit(IntentSender)}} was called for this session. */ isCommitted : function( ) {}, /**The timestamp of the last update that occurred to the session, including changing of states in case of staged sessions. */ getUpdatedMillis : function( ) {}, /** */ describeContents : function( ) {}, /** */ writeToParcel : function( ) {}, };