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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void__constructor__(ParcelFileDescriptor wrapped) protected static voidprotected voidclose()protected static ParcelFileDescriptor[]protected static ParcelFileDescriptor[]protected ParcelFileDescriptordup()protected static ParcelFileDescriptordup(FileDescriptor fileDescriptor) Support shadowing of the static methodParcelFileDescriptor.dup(java.io.FileDescriptor).protected intgetFd()protected FileDescriptorprotected longprotected static ParcelFileDescriptorprotected static ParcelFileDescriptoropen(File file, int mode, Handler handler, ParcelFileDescriptor.OnCloseListener listener) static voidreset()protected voidwriteToParcel(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
-