summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-01-17 17:47:37 -0800
committerDianne Hackborn <hackbod@google.com>2013-01-18 13:02:26 -0800
commitd8e1dbb6bc1fbaf4f2e38c3ba92ced94270deaac (patch)
tree5f6d8b2c0e66c99289ae085cb6a6a3be168eb000 /test-runner
parentf25febf01453733e8bdd1ac241ecd9d3bcbef475 (diff)
downloadframeworks_base-d8e1dbb6bc1fbaf4f2e38c3ba92ced94270deaac.zip
frameworks_base-d8e1dbb6bc1fbaf4f2e38c3ba92ced94270deaac.tar.gz
frameworks_base-d8e1dbb6bc1fbaf4f2e38c3ba92ced94270deaac.tar.bz2
Rework ParceledListSlice to be much easier to use.
Take advantage of this to return better information about packages filtered by permissions -- include the permissions they have in the requested array. Also fix issue #8026793 (Contact picture shows default pic while searching for a contact in qsb) by using the base package name of the Context when reporting the app name of an operation. Otherwise you could make a resource-only context for another application and do calls through that and get reported as the wrong app. Change-Id: I5e0488bf773acea5a3d22f245641828e1a106fb8
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockContext.java6
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 3097811..248fbf1 100644
--- a/test-runner/src/android/test/mock/MockContext.java
+++ b/test-runner/src/android/test/mock/MockContext.java
@@ -106,6 +106,12 @@ public class MockContext extends Context {
throw new UnsupportedOperationException();
}
+ /** @hide */
+ @Override
+ public String getBasePackageName() {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public ApplicationInfo getApplicationInfo() {
throw new UnsupportedOperationException();