summaryrefslogtreecommitdiffstats
path: root/test/025-access-controller/src/Privvy.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/025-access-controller/src/Privvy.java')
-rw-r--r--test/025-access-controller/src/Privvy.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/025-access-controller/src/Privvy.java b/test/025-access-controller/src/Privvy.java
new file mode 100644
index 0000000000..07a0678151
--- /dev/null
+++ b/test/025-access-controller/src/Privvy.java
@@ -0,0 +1,18 @@
+// Copyright 2007 The Android Open Source Project
+
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+import java.security.ProtectionDomain;
+
+class Privvy implements PrivilegedAction<Integer> {
+
+ private Integer mValue;
+
+ public Privvy(int val) {
+ mValue = new Integer(val + 1);
+ }
+
+ public Integer run() {
+ return mValue;
+ }
+}