Lines Matching defs:session

58  * {@link PackageInstaller.Session}, which any app can create. Once the session
60 * decides to either commit or destroy the session. Committing may require user
81 * Activity Action: Show details about a particular install session. This
85 * session. Clients should use {@link SessionInfo#createDetailsIntent()} to
91 * The session to show details for is defined in {@link #EXTRA_SESSION_ID}.
101 * An integer session ID that an operation is working with.
206 * user actively declined requested permissions, or the session was
278 * Create a new session using the given parameters, returning a unique ID
279 * that represents the session. Once created, the session can be opened
291 * @return positive, non-zero unique ID that represents the created session.
293 * session is finalized. IDs are not reused during a given boot.
307 * Open an existing session to actively perform work. To succeed, the caller
308 * must be the owner of the install session.
312 * @throws SecurityException when the caller does not own the session, or
313 * the session is invalid.
328 * session. This should be roughly
331 * @throws SecurityException when the caller does not own the session, or
332 * the session is invalid.
344 * session.
346 * @throws SecurityException when the caller does not own the session, or
347 * the session is invalid.
359 * Completely abandon the given session, destroying all staged data and
362 * opening the session and calling {@link Session#abandon()}.
364 * @throws SecurityException when the caller does not own the session, or
365 * the session is invalid.
376 * Return details for a specific session. No special permissions are
379 * @return details for the requested session, or {@code null} if the session
442 * Events for observing session lifecycle.
444 * A typical session lifecycle looks like this:
446 * <li>An installer creates a session to indicate pending app delivery. All
448 * <li>The installer opens the session to deliver APK data. Note that a
449 * session may be opened and closed multiple times as network connectivity
451 * <li>The installer commits or abandons the session, resulting in the
452 * session being finished.
457 * New session has been created. Details about the session can be
463 * Badging details for an existing session has changed. For example, the
469 * Active state for session has been changed.
471 * A session is considered active whenever there is ongoing forward
478 * session is considered inactive until the installer opens the session
484 * Progress for given session has been updated.
577 * Register to watch for session lifecycle events. No special permissions
591 * Register to watch for session lifecycle events. No special permissions
648 * A session may contain any number of split packages. If the application
649 * does not yet exist, this session must include a base package.
651 * If an APK included in this session is already defined by the existing
652 * installation (for example, the same split name), the APK in this session
659 public Session(IPackageInstallerSession session) {
660 mSession = session;
670 * Set current progress of staging this session. Valid values are
696 * Open a stream to write an APK file into the session.
713 * of a single install session.
722 * @throws SecurityException if called after the session has been
753 * Return all APK names contained in this session.
756 * {@link #openWrite(String, long, long)} as part of this session.
758 * @throws SecurityException if called after the session has been
773 * Open a stream to read an APK file from the session.
777 * session. For example, this stream may be used to calculate a
780 * @throws SecurityException if called after the session has been
796 * Attempt to commit everything staged in this session. This may require
801 * on the session. If the device reboots before the session has been
802 * finalized, you may commit the session again.
816 * Release this session object. You can open the session again if it
829 * Completely abandon this session, destroying all staged data and
832 * opening the session and calling {@link Session#abandon()}.
852 * Mode for an install session whose staged APKs should fully replace any
858 * Mode for an install session that should inherit any existing APKs for the
860 * name) by the session. For example, this can be used to add one or more
892 * Construct parameters for a new package install session.
895 * {@link #MODE_INHERIT_EXISTING} describing how the session
927 * delivered in this session. The system may use this to ensure enough disk
943 * If the APKs staged in the session aren't consistent with this package
1048 * Details for an active install session.
1097 * Return the ID for this session.
1104 * Return the package name of the app that owns this session.
1111 * Return current overall progress of this session, between 0 and 1.
1124 * Return if this session is currently active.
1126 * A session is considered active whenever there is ongoing forward
1133 * session is considered inactive until the installer opens the session
1147 * Return the package name this session is working with. May be {@code null}
1172 * session. This may surface actions such as pause, resume, or cancel.