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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__constructor__
(ParcelFileDescriptor wrapped) protected static void
protected void
close()
protected static ParcelFileDescriptor[]
protected static ParcelFileDescriptor[]
protected ParcelFileDescriptor
dup()
protected static ParcelFileDescriptor
dup
(FileDescriptor fileDescriptor) Support shadowing of the static methodParcelFileDescriptor.dup(java.io.FileDescriptor)
.protected int
getFd()
protected FileDescriptor
protected long
protected static ParcelFileDescriptor
protected static ParcelFileDescriptor
open
(File file, int mode, Handler handler, ParcelFileDescriptor.OnCloseListener listener) static void
reset()
protected void
writeToParcel
(Parcel out, int flags)
-
Constructor Details
-
ShadowParcelFileDescriptor
public ShadowParcelFileDescriptor()
-
-
Method Details
-
__staticInitializer__
-
reset
-
__constructor__
-
writeToParcel
-
open
@Implementation protected static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException - Throws:
FileNotFoundException
-
open
@Implementation protected static ParcelFileDescriptor open(File file, int mode, Handler handler, ParcelFileDescriptor.OnCloseListener listener) throws IOException - Throws:
IOException
-
createPipe
- Throws:
IOException
-
createReliablePipe
- Throws:
IOException
-
getFileDescriptor
-
getStatSize
-
getFd
-
close
- Throws:
IOException
-
dup
- Throws:
IOException
-
dup
@Implementation protected static ParcelFileDescriptor dup(FileDescriptor fileDescriptor) throws IOException Support shadowing of the static methodParcelFileDescriptor.dup(java.io.FileDescriptor)
.The real implementation calls
Os.fcntlInt(java.io.FileDescriptor, int, int)
in order to duplicate the FileDescriptor in native code. This cannot be simulated on the JVM without the use of native code.- Throws:
IOException
-