Package org.robolectric.shadows
Class ShadowParcelFileDescriptor
java.lang.Object
org.robolectric.shadows.ShadowParcelFileDescriptor
@Implements(android.os.ParcelFileDescriptor.class) public class ShadowParcelFileDescriptor extends Object
-
Constructor Summary
Constructors Constructor Description ShadowParcelFileDescriptor()
-
Method Summary
Modifier and Type Method Description protected void
__constructor__(ParcelFileDescriptor wrapped)
protected void
close()
protected static ParcelFileDescriptor[]
createPipe()
protected static ParcelFileDescriptor[]
createReliablePipe()
protected int
getFd()
protected FileDescriptor
getFileDescriptor()
protected long
getStatSize()
protected static ParcelFileDescriptor
open(File file, int mode)
protected static ParcelFileDescriptor
open(File file, int mode, Handler handler, ParcelFileDescriptor.OnCloseListener listener)
-
Constructor Details
-
ShadowParcelFileDescriptor
public ShadowParcelFileDescriptor()
-
-
Method Details
-
__constructor__
-
open
@Implementation protected static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException- Throws:
FileNotFoundException
-
open
@Implementation(minSdk=19) protected static ParcelFileDescriptor open(File file, int mode, Handler handler, ParcelFileDescriptor.OnCloseListener listener) throws IOException- Throws:
IOException
-
createPipe
- Throws:
IOException
-
createReliablePipe
@Implementation(minSdk=19) protected static ParcelFileDescriptor[] createReliablePipe() throws IOException- Throws:
IOException
-
getFileDescriptor
-
getStatSize
-
getFd
-
close
- Throws:
IOException
-