Class ShadowParcelFileDescriptor
java.lang.Object
org.robolectric.shadows.ShadowParcelFileDescriptor
-
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(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(FileDescriptor).The real implementation calls
Os.fcntlInt(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
-