summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2014-11-14 09:44:50 -0800
committerSteve Kondik <steve@cyngn.com>2015-10-23 14:33:01 -0500
commit86c3e388dc1a483111af610d237204f4b575993d (patch)
tree32c24bac226944ed4d34dea98d4a3e410ecff684 /test-runner
parentd8826da4a586c643715594a31b6eecd6a5667b5a (diff)
downloadframeworks_base-86c3e388dc1a483111af610d237204f4b575993d.zip
frameworks_base-86c3e388dc1a483111af610d237204f4b575993d.tar.gz
frameworks_base-86c3e388dc1a483111af610d237204f4b575993d.tar.bz2
Protected apps
Fix up protected apps filter. Move filtering to correct place (when querying providers, ResolveInfo.activityInfo is null), and port over commit 4dad4a4e84ec385a80ebfae91c4dcd03ec30c9d0 from cm-11.0. Protected Apps: do not filter components from the same UID pm: Use ArraySet instead of HashSet packagemanager: Use ArrayMap/ArraySet as per AOSP * To reduce memory consumption Change-Id: Ic690387cd21fdfa09ef5fb19bd3de9305050cf6e
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index 1ff621a..808498b 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -870,6 +870,13 @@ public class MockPackageManager extends PackageManager {
public boolean isUpgrade() {
throw new UnsupportedOperationException();
}
+ /**
+ * @hide
+ */
+ @Override
+ public void setComponentProtectedSetting(ComponentName componentName, boolean newState) {
+ throw new UnsupportedOperationException();
+ }
/**
* @hide