Package org.robolectric.shadows
Class ShadowLinux
- java.lang.Object
-
- org.robolectric.shadows.ShadowLinux
-
@Implements(value=libcore.io.Linux.class, minSdk=26, isInAndroidSdk=false) public class ShadowLinux extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowLinux()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StructStatfstat(FileDescriptor fd)protected StructStatfstat(String path)protected StructStatlstat(String path)voidmkdir(String path, int mode)protected FileDescriptoropen(String path, int flags, int mode)protected intpread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset)StructStatstat(String path)
-
-
-
Method Detail
-
mkdir
@Implementation public void mkdir(String path, int mode) throws ErrnoException
- Throws:
ErrnoException
-
stat
@Implementation public StructStat stat(String path) throws ErrnoException
- Throws:
ErrnoException
-
lstat
@Implementation protected StructStat lstat(String path) throws ErrnoException
- Throws:
ErrnoException
-
fstat
@Implementation(maxSdk=25) protected StructStat fstat(String path) throws ErrnoException
- Throws:
ErrnoException
-
fstat
@Implementation protected StructStat fstat(FileDescriptor fd) throws ErrnoException
- Throws:
ErrnoException
-
open
@Implementation protected FileDescriptor open(String path, int flags, int mode) throws ErrnoException
- Throws:
ErrnoException
-
pread
@Implementation protected int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException
- Throws:
ErrnoExceptionInterruptedIOException
-
-