From d4fd8c766da8a70e3359bbc7efbbc79496efe71a Mon Sep 17 00:00:00 2001 From: Fyodor Kupolov Date: Mon, 13 Jul 2015 19:19:25 -0700 Subject: Added sendBroadcastMultiplePermissions method Added Context.sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) method, which allows an array of required permissions to be enforced. Bug: 21852542 Change-Id: I27c9130e8f004b428452501ebc8a36aabde1f343 --- test-runner/src/android/test/mock/MockContext.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test-runner/src') diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java index e5e3e44..e5ea562 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 sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { + throw new UnsupportedOperationException(); + } + + /** @hide */ @SystemApi @Override public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { -- cgit v1.1