Compartilhar via


Os Class

Definition

Access to low-level system functionality.

[Android.Runtime.Register("android/system/Os", DoNotGenerateAcw=true)]
public sealed class Os : Java.Lang.Object
[<Android.Runtime.Register("android/system/Os", DoNotGenerateAcw=true)>]
type Os = class
    inherit Object
Inheritance
Attributes

Remarks

Access to low-level system functionality. Most of these are system calls. Most users will want to use higher-level APIs where available, but this class provides access to the underlying primitives used to implement the higher-level APIs.

The corresponding constants can be found in OsConstants.

Java documentation for android.system.Os.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Accept(FileDescriptor, InetSocketAddress)

See accept(2).

Access(String, Int32)

See access(2).

Bind(FileDescriptor, InetAddress, Int32)

See bind(2).

Bind(FileDescriptor, SocketAddress)

See bind(2).

Chmod(String, Int32)

See chmod(2).

Chown(String, Int32, Int32)

See chown(2).

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Close(FileDescriptor)

See close(2).

Connect(FileDescriptor, InetAddress, Int32)

See connect(2).

Connect(FileDescriptor, SocketAddress)

See connect(2).

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Dup(FileDescriptor)

See dup(2).

Dup2(FileDescriptor, Int32)

See dup2(2).

Environ()

See environ(3).

Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
Execv(String, String[])

See exec(3).

Execve(String, String[], String[])

See execve(2).

Fchmod(FileDescriptor, Int32)

See fchmod(2).

Fchown(FileDescriptor, Int32, Int32)

See fchown(2).

FcntlInt(FileDescriptor, Int32, Int32)

See fcntl(2).

Fdatasync(FileDescriptor)

See fdatasync(2).

Fstat(FileDescriptor)

See fstat(2).

Fstatvfs(FileDescriptor)

See fstatvfs(2).

Fsync(FileDescriptor)

See fsync(2).

Ftruncate(FileDescriptor, Int64)

See ftruncate(2).

Gai_strerror(Int32)

See gai_strerror(3).

Getegid()

See getegid(2).

Getenv(String)

See getenv(3).

Geteuid()

See geteuid(2).

Getgid()

See getgid(2).

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
Getpeername(FileDescriptor)

See getpeername(2).

Getpid()

See getpid(2).

Getppid()

See getppid(2).

Getsockname(FileDescriptor)

See getsockname(2).

GetsockoptTimeval(FileDescriptor, Int32, Int32)

See getsockopt(2).

Gettid()

See gettid(2).

Getuid()

See getuid(2).

Getxattr(String, String)

See getxattr(2)

If_indextoname(Int32)

See if_indextoname(3).

If_nametoindex(String)

See if_nametoindex(3).

Inet_pton(Int32, String)

See inet_pton(3).

Isatty(FileDescriptor)

See isatty(3).

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Kill(Int32, Int32)

See kill(2).

Lchown(String, Int32, Int32)

See lchown(2).

Link(String, String)

See link(2).

Listen(FileDescriptor, Int32)

See listen(2).

Listxattr(String)

See listxattr(2)

Lseek(FileDescriptor, Int64, Int32)

See lseek(2).

Lstat(String)

See lstat(2).

Memfd_create(String, Int32)

See memfd_create(2).

Mincore(Int64, Int64, Byte[])

See mincore(2).

Mkdir(String, Int32)

See mkdir(2).

Mkfifo(String, Int32)

See mkfifo(3).

Mlock(Int64, Int64)

See mlock(2).

Mmap(Int64, Int64, Int32, Int32, FileDescriptor, Int64)

See mmap(2).

Msync(Int64, Int64, Int32)

See msync(2).

Munlock(Int64, Int64)

See munlock(2).

Munmap(Int64, Int64)

See munmap(2).

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Open(String, Int32, Int32)

See open(2).

Pipe()

See pipe(2).

Poll(StructPollfd[], Int32)

See poll(2).

Posix_fallocate(FileDescriptor, Int64, Int64)

See posix_fallocate(3).

Prctl(Int32, Int64, Int64, Int64, Int64)

See prctl(2).

Pread(FileDescriptor, Byte[], Int32, Int32, Int64)

See pread(2).

Pread(FileDescriptor, ByteBuffer, Int64)

See pread(2).

Pwrite(FileDescriptor, Byte[], Int32, Int32, Int64)

See pwrite(2).

Pwrite(FileDescriptor, ByteBuffer, Int64)

See pwrite(2).

Read(FileDescriptor, Byte[], Int32, Int32)

See read(2).

Read(FileDescriptor, ByteBuffer)

See read(2).

Readlink(String)

See readlink(2).

Readv(FileDescriptor, Object[], Int32[], Int32[])

See readv(2).

Recvfrom(FileDescriptor, Byte[], Int32, Int32, Int32, InetSocketAddress)

See recvfrom(2).

Recvfrom(FileDescriptor, ByteBuffer, Int32, InetSocketAddress)

See recvfrom(2).

Recvmsg(FileDescriptor, StructMsghdr, Int32)

See recvmsg(2).

Remove(String)

See remove(3).

Removexattr(String, String)

See removexattr(2).

Rename(String, String)

See rename(2).

Sendfile(FileDescriptor, FileDescriptor, Int64Ref, Int64)

See sendfile(2).

Sendfile(FileDescriptor, FileDescriptor, MutableLong, Int64)

See <a href="http://man7.

Sendmsg(FileDescriptor, StructMsghdr, Int32)

See sendmsg(2).

Sendto(FileDescriptor, Byte[], Int32, Int32, Int32, InetAddress, Int32)

See sendto(2).

Sendto(FileDescriptor, Byte[], Int32, Int32, Int32, SocketAddress)

See sendto(2).

Sendto(FileDescriptor, ByteBuffer, Int32, InetAddress, Int32)

See sendto(2).

Setegid(Int32)

See setegid(2).

Setenv(String, String, Boolean)

See setenv(3).

Seteuid(Int32)

See seteuid(2).

Setgid(Int32)

See setgid(2).

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
Setsid()

See setsid(2).

SetsockoptInt(FileDescriptor, Int32, Int32, Int32)

See setsockopt(2).

SetsockoptTimeval(FileDescriptor, Int32, Int32, StructTimeval)

See setsockopt(2).

Setuid(Int32)

See setuid(2).

Setxattr(String, String, Byte[], Int32)

See setxattr(2)

Shutdown(FileDescriptor, Int32)

See shutdown(2).

Socket(Int32, Int32, Int32)

See socket(2).

Socketpair(Int32, Int32, Int32, FileDescriptor, FileDescriptor)

See socketpair(2).

Stat(String)

See stat(2).

Statvfs(String)

See statvfs(2).

Strerror(Int32)

See strerror(2).

Strsignal(Int32)

See strsignal(3).

Symlink(String, String)

See symlink(2).

Sysconf(Int32)

See sysconf(3).

Tcdrain(FileDescriptor)

See tcdrain(3).

Tcsendbreak(FileDescriptor, Int32)

See tcsendbreak(3).

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
Umask(Int32)

See umask(2).

Uname()

See uname(2).

UnregisterFromRuntime() (Inherited from Object)
Unsetenv(String)

See unsetenv(3).

Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Waitpid(Int32, MutableInt, Int32)

See .

Write(FileDescriptor, Byte[], Int32, Int32)

See write(2).

Write(FileDescriptor, ByteBuffer)

See write(2).

Writev(FileDescriptor, Object[], Int32[], Int32[])

See writev(2).

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to