summaryrefslogtreecommitdiffstats
path: root/services/tests
diff options
context:
space:
mode:
authorFyodor Kupolov <fkupolov@google.com>2015-07-13 19:19:25 -0700
committerFyodor Kupolov <fkupolov@google.com>2015-07-14 12:50:22 -0700
commitb4e7283c9afd9fb15ebd63f6ce9b75c9c1af658b (patch)
tree16259cb24eda7170075fb4ff4d90d34c77c2463f /services/tests
parent37511e35ae22ea88539f1137ea2f74c9cb17f60c (diff)
downloadframeworks_base-b4e7283c9afd9fb15ebd63f6ce9b75c9c1af658b.zip
frameworks_base-b4e7283c9afd9fb15ebd63f6ce9b75c9c1af658b.tar.gz
frameworks_base-b4e7283c9afd9fb15ebd63f6ce9b75c9c1af658b.tar.bz2
Allow array of required permissions in sendBroadcast
Added Context.sendBroadcast(Intent intent, String[] receiverPermissions) method, which allows an array of required permissions to be enforced. Bug: 21852542 Change-Id: I3b8ff258fa9f3249c344bb8093b820b24eef00c0
Diffstat (limited to 'services/tests')
-rw-r--r--services/tests/servicestests/src/com/android/server/BroadcastInterceptingContext.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/tests/servicestests/src/com/android/server/BroadcastInterceptingContext.java b/services/tests/servicestests/src/com/android/server/BroadcastInterceptingContext.java
index ffd1568..7f84720 100644
--- a/services/tests/servicestests/src/com/android/server/BroadcastInterceptingContext.java
+++ b/services/tests/servicestests/src/com/android/server/BroadcastInterceptingContext.java
@@ -139,6 +139,11 @@ public class BroadcastInterceptingContext extends ContextWrapper {
}
@Override
+ public void sendBroadcast(Intent intent, String[] receiverPermissions) {
+ sendBroadcast(intent);
+ }
+
+ @Override
public void sendBroadcastAsUser(Intent intent, UserHandle user) {
sendBroadcast(intent);
}