Package dalvik.system

Interface BlockGuard.Policy

Enclosing class:
BlockGuard

public static interface BlockGuard.Policy
  • Method Summary

    Modifier and Type Method Description
    int getPolicyMask()
    Returns the policy bitmask, for shipping over Binder calls to remote threads/processes and reinstantiating the policy there.
    void onNetwork()
    Called on network operations.
    void onReadFromDisk()
    Called on disk reads.
    void onWriteToDisk()
    Called on disk writes.
  • Method Details

    • onWriteToDisk

      void onWriteToDisk()
      Called on disk writes.
    • onReadFromDisk

      void onReadFromDisk()
      Called on disk reads.
    • onNetwork

      void onNetwork()
      Called on network operations.
    • getPolicyMask

      int getPolicyMask()
      Returns the policy bitmask, for shipping over Binder calls to remote threads/processes and reinstantiating the policy there. The bits in the mask are from the DISALLOW_* and PENALTY_* constants.