Package org.robolectric.shadows
Class ShadowPackageInstaller.ShadowSession
java.lang.Object
org.robolectric.shadows.ShadowPackageInstaller.ShadowSession
- Enclosing class:
- ShadowPackageInstaller
@Implements(value=android.content.pm.PackageInstaller.Session.class,
minSdk=21)
public static class ShadowPackageInstaller.ShadowSession
extends Object
Shadow for PackageInstaller.Session.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
abandon()
protected void
close()
protected void
commit
(IntentSender statusReceiver) protected void
fsync
(OutputStream out) protected PersistableBundle
protected OutputStream
protected void
requestUserPreapproval
(PackageInstaller.PreapprovalDetails details, IntentSender statusReceiver) protected void
-
Constructor Details
-
ShadowSession
public ShadowSession()
-
-
Method Details
-
__constructor__
-
requestUserPreapproval
@Implementation(minSdk=34) protected void requestUserPreapproval(PackageInstaller.PreapprovalDetails details, IntentSender statusReceiver) -
setAppMetadata
- Throws:
IOException
-
getAppMetadata
-
openWrite
@Implementation protected OutputStream openWrite(String name, long offsetBytes, long lengthBytes) throws IOException - Throws:
IOException
-
fsync
- Throws:
IOException
-
commit
-
close
-
abandon
-