Package org.robolectric.shadows
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
abandon()
protected void
close()
protected void
commit
(IntentSender statusReceiver) protected void
fsync
(OutputStream out) protected PersistableBundle
protected OutputStream
protected void
requestUserPreapproval
(Object details, IntentSender statusReceiver) protected void
-
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
-
openWrite
@Implementation @Nonnull protected OutputStream openWrite(@Nonnull String name, long offsetBytes, long lengthBytes) throws IOException - Throws:
IOException
-
fsync
- Throws:
IOException
-
commit
-
close
-
abandon
-