Codota Logo
Os.statvfs
Code IndexAdd Codota to your IDE (free)

How to use
statvfs
method
in
libcore.io.Os

Best Java code snippets using libcore.io.Os.statvfs (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: robovm/robovm

/**
 * Returns the total size in bytes of the partition containing this path.
 * Returns 0 if this path does not exist.
 *
 * @since 1.6
 */
public long getTotalSpace() {
  try {
    StructStatVfs sb = Libcore.os.statvfs(path);
    return sb.f_blocks * sb.f_bsize; // total block count * block size in bytes.
  } catch (ErrnoException errnoException) {
    return 0;
  }
}
origin: robovm/robovm

public StructStatVfs statvfs(String path) throws ErrnoException { return os.statvfs(path); }
public String strerror(int errno) { return os.strerror(errno); }
origin: robovm/robovm

  /**
   * Returns the number of free bytes on the partition containing this path.
   * Returns 0 if this path does not exist.
   *
   * <p>Note that this is likely to be an optimistic over-estimate and should not
   * be taken as a guarantee your application can actually write this many bytes.
   *
   * @since 1.6
   */
  public long getFreeSpace() {
    try {
      StructStatVfs sb = Libcore.os.statvfs(path);
      return sb.f_bfree * sb.f_bsize; // free block count * block size in bytes.
    } catch (ErrnoException errnoException) {
      return 0;
    }
  }
}
origin: robovm/robovm

/**
 * Returns the number of usable free bytes on the partition containing this path.
 * Returns 0 if this path does not exist.
 *
 * <p>Note that this is likely to be an optimistic over-estimate and should not
 * be taken as a guarantee your application can actually write this many bytes.
 * On Android (and other Unix-based systems), this method returns the number of free bytes
 * available to non-root users, regardless of whether you're actually running as root,
 * and regardless of any quota or other restrictions that might apply to the user.
 * (The {@code getFreeSpace} method returns the number of bytes potentially available to root.)
 *
 * @since 1.6
 */
public long getUsableSpace() {
  try {
    StructStatVfs sb = Libcore.os.statvfs(path);
    return sb.f_bavail * sb.f_bsize; // non-root free block count * block size in bytes.
  } catch (ErrnoException errnoException) {
    return 0;
  }
}
origin: MobiVM/robovm

/**
 * Returns the total size in bytes of the partition containing this path.
 * Returns 0 if this path does not exist.
 *
 * @since 1.6
 */
public long getTotalSpace() {
  try {
    StructStatVfs sb = Libcore.os.statvfs(path);
    return sb.f_blocks * sb.f_bsize; // total block count * block size in bytes.
  } catch (ErrnoException errnoException) {
    return 0;
  }
}
origin: ibinti/bugvm

/**
 * Returns the total size in bytes of the partition containing this path.
 * Returns 0 if this path does not exist.
 *
 * @since 1.6
 */
public long getTotalSpace() {
  try {
    StructStatVfs sb = Libcore.os.statvfs(path);
    return sb.f_blocks * sb.f_bsize; // total block count * block size in bytes.
  } catch (ErrnoException errnoException) {
    return 0;
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the total size in bytes of the partition containing this path.
 * Returns 0 if this path does not exist.
 *
 * @since 1.6
 */
public long getTotalSpace() {
  try {
    StructStatVfs sb = Libcore.os.statvfs(path);
    return sb.f_blocks * sb.f_bsize; // total block count * block size in bytes.
  } catch (ErrnoException errnoException) {
    return 0;
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the total size in bytes of the partition containing this path.
 * Returns 0 if this path does not exist.
 *
 * @since 1.6
 */
public long getTotalSpace() {
  try {
    StructStatVfs sb = Libcore.os.statvfs(path);
    return sb.f_blocks * sb.f_bsize; // total block count * block size in bytes.
  } catch (ErrnoException errnoException) {
    return 0;
  }
}
origin: MobiVM/robovm

public StructStatVfs statvfs(String path) throws ErrnoException { return os.statvfs(path); }
public String strerror(int errno) { return os.strerror(errno); }
origin: com.gluonhq/robovm-rt

/**
 * Returns the total size in bytes of the partition containing this path.
 * Returns 0 if this path does not exist.
 *
 * @since 1.6
 */
public long getTotalSpace() {
  try {
    StructStatVfs sb = Libcore.os.statvfs(path);
    return sb.f_blocks * sb.f_bsize; // total block count * block size in bytes.
  } catch (ErrnoException errnoException) {
    return 0;
  }
}
origin: ibinti/bugvm

public StructStatVfs statvfs(String path) throws ErrnoException { return os.statvfs(path); }
public String strerror(int errno) { return os.strerror(errno); }
origin: FlexoVM/flexovm

/**
 * Returns the total size in bytes of the partition containing this path.
 * Returns 0 if this path does not exist.
 *
 * @since 1.6
 */
public long getTotalSpace() {
  try {
    StructStatVfs sb = Libcore.os.statvfs(path);
    return sb.f_blocks * sb.f_bsize; // total block count * block size in bytes.
  } catch (ErrnoException errnoException) {
    return 0;
  }
}
origin: com.mobidevelop.robovm/robovm-rt

public StructStatVfs statvfs(String path) throws ErrnoException { return os.statvfs(path); }
public String strerror(int errno) { return os.strerror(errno); }
origin: com.gluonhq/robovm-rt

public StructStatVfs statvfs(String path) throws ErrnoException { return os.statvfs(path); }
public String strerror(int errno) { return os.strerror(errno); }
origin: MobiVM/robovm

  /**
   * Returns the number of free bytes on the partition containing this path.
   * Returns 0 if this path does not exist.
   *
   * <p>Note that this is likely to be an optimistic over-estimate and should not
   * be taken as a guarantee your application can actually write this many bytes.
   *
   * @since 1.6
   */
  public long getFreeSpace() {
    try {
      StructStatVfs sb = Libcore.os.statvfs(path);
      return sb.f_bfree * sb.f_bsize; // free block count * block size in bytes.
    } catch (ErrnoException errnoException) {
      return 0;
    }
  }
}
origin: com.bugvm/bugvm-rt

public StructStatVfs statvfs(String path) throws ErrnoException { return os.statvfs(path); }
public String strerror(int errno) { return os.strerror(errno); }
origin: FlexoVM/flexovm

public StructStatVfs statvfs(String path) throws ErrnoException { return os.statvfs(path); }
public String strerror(int errno) { return os.strerror(errno); }
origin: com.mobidevelop.robovm/robovm-rt

  /**
   * Returns the number of free bytes on the partition containing this path.
   * Returns 0 if this path does not exist.
   *
   * <p>Note that this is likely to be an optimistic over-estimate and should not
   * be taken as a guarantee your application can actually write this many bytes.
   *
   * @since 1.6
   */
  public long getFreeSpace() {
    try {
      StructStatVfs sb = Libcore.os.statvfs(path);
      return sb.f_bfree * sb.f_bsize; // free block count * block size in bytes.
    } catch (ErrnoException errnoException) {
      return 0;
    }
  }
}
origin: com.bugvm/bugvm-rt

  /**
   * Returns the number of free bytes on the partition containing this path.
   * Returns 0 if this path does not exist.
   *
   * <p>Note that this is likely to be an optimistic over-estimate and should not
   * be taken as a guarantee your application can actually write this many bytes.
   *
   * @since 1.6
   */
  public long getFreeSpace() {
    try {
      StructStatVfs sb = Libcore.os.statvfs(path);
      return sb.f_bfree * sb.f_bsize; // free block count * block size in bytes.
    } catch (ErrnoException errnoException) {
      return 0;
    }
  }
}
origin: ibinti/bugvm

  /**
   * Returns the number of free bytes on the partition containing this path.
   * Returns 0 if this path does not exist.
   *
   * <p>Note that this is likely to be an optimistic over-estimate and should not
   * be taken as a guarantee your application can actually write this many bytes.
   *
   * @since 1.6
   */
  public long getFreeSpace() {
    try {
      StructStatVfs sb = Libcore.os.statvfs(path);
      return sb.f_bfree * sb.f_bsize; // free block count * block size in bytes.
    } catch (ErrnoException errnoException) {
      return 0;
    }
  }
}
libcore.ioOsstatvfs

Popular methods of Os

  • accept
  • access
  • bind
  • chmod
  • chown
  • close
  • connect
  • dup
  • dup2
  • environ
  • execv
  • execve
  • execv,
  • execve,
  • fchmod,
  • fchown,
  • fcntlFlock,
  • fcntlLong,
  • fcntlVoid,
  • fdatasync,
  • fstat,
  • fstatvfs

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now