Class ShadowOs


  • @Implements(value=android.system.Os.class,
                minSdk=21)
    public final class ShadowOs
    extends java.lang.Object
    A Shadow for android.system.Os
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void setSysconfValue​(int name, long value)
      Configures values to be returned by sysconf.
      protected static long sysconf​(int name)
      Returns the value configured via setSysconfValue, or -1 if one hasn't been configured.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setSysconfValue

        public static void setSysconfValue​(int name,
                                           long value)
        Configures values to be returned by sysconf.
      • sysconf

        @Implementation
        protected static long sysconf​(int name)
        Returns the value configured via setSysconfValue, or -1 if one hasn't been configured.