Class ShadowPackageInstaller.ShadowSession

  • Enclosing class:
    ShadowPackageInstaller

    @Implements(value=android.content.pm.PackageInstaller.Session.class,
                minSdk=21)
    public static class ShadowPackageInstaller.ShadowSession
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ShadowSession()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void __constructor__()  
      protected void abandon()  
      protected void close()  
      protected void commit​(android.content.IntentSender statusReceiver)  
      protected void fsync​(java.io.OutputStream out)  
      protected java.io.OutputStream openWrite​(java.lang.String name, long offsetBytes, long lengthBytes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowSession

        public ShadowSession()
    • Method Detail

      • __constructor__

        @Implementation(maxSdk=20)
        protected void __constructor__()
      • openWrite

        @Implementation
        protected java.io.OutputStream openWrite​(java.lang.String name,
                                                 long offsetBytes,
                                                 long lengthBytes)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • fsync

        @Implementation
        protected void fsync​(java.io.OutputStream out)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • commit

        @Implementation
        protected void commit​(android.content.IntentSender statusReceiver)
      • close

        @Implementation
        protected void close()
      • abandon

        @Implementation
        protected void abandon()