diff options
author | Fyodor Kupolov <fkupolov@google.com> | 2015-07-13 19:19:25 -0700 |
---|---|---|
committer | Fyodor Kupolov <fkupolov@google.com> | 2015-07-14 12:50:22 -0700 |
commit | b4e7283c9afd9fb15ebd63f6ce9b75c9c1af658b (patch) | |
tree | 16259cb24eda7170075fb4ff4d90d34c77c2463f /test-runner/src | |
parent | 37511e35ae22ea88539f1137ea2f74c9cb17f60c (diff) | |
download | frameworks_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 'test-runner/src')
-rw-r--r-- | test-runner/src/android/test/mock/MockContext.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java index e5e3e44..a75a6c1 100644 --- a/test-runner/src/android/test/mock/MockContext.java +++ b/test-runner/src/android/test/mock/MockContext.java @@ -318,6 +318,12 @@ public class MockContext extends Context { } /** @hide */ + @Override + public void sendBroadcast(Intent intent, String[] receiverPermissions) { + throw new UnsupportedOperationException(); + } + + /** @hide */ @SystemApi @Override public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { |