Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for runWithPermissions (0.08 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       */
      public void runWithPermissions(Runnable r, Permission... permissions) {
        SecurityManager sm = System.getSecurityManager();
        if (sm == null) {
          r.run();
          Policy savedPolicy = Policy.getPolicy();
          try {
            Policy.setPolicy(permissivePolicy());
            System.setSecurityManager(new SecurityManager());
            runWithPermissions(r, permissions);
          } finally {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       */
      public void runWithPermissions(Runnable r, Permission... permissions) {
        SecurityManager sm = System.getSecurityManager();
        if (sm == null) {
          r.run();
          Policy savedPolicy = Policy.getPolicy();
          try {
            Policy.setPolicy(permissivePolicy());
            System.setSecurityManager(new SecurityManager());
            runWithPermissions(r, permissions);
          } finally {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top