Class ShadowPackageInstaller.ShadowSession

java.lang.Object
org.robolectric.shadows.ShadowPackageInstaller.ShadowSession
Enclosing class:
ShadowPackageInstaller

@Implements(android.content.pm.PackageInstaller.Session.class) public static class ShadowPackageInstaller.ShadowSession extends Object
Shadow for PackageInstaller.Session.
  • Constructor Details

    • ShadowSession

      public ShadowSession()
  • Method Details

    • requestUserPreapproval

      @Implementation(minSdk=34) protected void requestUserPreapproval(@Nonnull Object details, @Nonnull IntentSender statusReceiver)
    • setAppMetadata

      @Implementation(minSdk=34) protected void setAppMetadata(@Nullable PersistableBundle data) throws IOException
      Throws:
      IOException
    • getAppMetadata

      @Implementation(minSdk=34) @Nonnull protected PersistableBundle getAppMetadata()
    • openWrite

      @Implementation @Nonnull protected OutputStream openWrite(@Nonnull String name, long offsetBytes, long lengthBytes) throws IOException
      Throws:
      IOException
    • fsync

      @Implementation protected void fsync(@Nonnull OutputStream out) throws IOException
      Throws:
      IOException
    • commit

      @Implementation protected void commit(@Nonnull IntentSender statusReceiver)
    • close

      @Implementation protected void close()
    • abandon

      @Implementation protected void abandon()