diff options
author | Amith Yamasani <yamasani@google.com> | 2012-02-16 14:31:23 -0800 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2012-02-16 15:03:42 -0800 |
commit | 67cf7d314b5b94db1a9f1c57140b6615b0ea8291 (patch) | |
tree | 2de67be8b686a2909a93f2aca89ec7e2328597bc /test-runner/src/android | |
parent | 8181201c6e55765fd58d2ff07921a143b879edd9 (diff) | |
download | frameworks_base-67cf7d314b5b94db1a9f1c57140b6615b0ea8291.zip frameworks_base-67cf7d314b5b94db1a9f1c57140b6615b0ea8291.tar.gz frameworks_base-67cf7d314b5b94db1a9f1c57140b6615b0ea8291.tar.bz2 |
Fix Power Control widget
Some changes in AppWidgetService were interfering with widget permissions.
Added some hidden methods in Context to communicate the requesting user
information instead of using the calling uid.
Bug: 6019296
Change-Id: I5e519fd3fbbfa5b3fcc5c297b729c671dac8e7c7
Diffstat (limited to 'test-runner/src/android')
-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 674c0b7..5fab2bb 100644 --- a/test-runner/src/android/test/mock/MockContext.java +++ b/test-runner/src/android/test/mock/MockContext.java @@ -267,6 +267,12 @@ public class MockContext extends Context { throw new UnsupportedOperationException(); } + /** @hide */ + @Override + public void sendBroadcast(Intent intent, int userId) { + throw new UnsupportedOperationException(); + } + @Override public void sendBroadcast(Intent intent, String receiverPermission) { throw new UnsupportedOperationException(); |