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 voidabandon()protected voidclose()protected voidcommit(IntentSender statusReceiver) protected voidfsync(OutputStream out) protected PersistableBundleprotected OutputStreamprotected voidrequestUserPreapproval(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
-