diff options
author | Amith Yamasani <yamasani@google.com> | 2013-06-12 14:19:10 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2013-06-25 16:03:55 -0700 |
commit | 655d0e2029e6ae77a47e922dce4c4989818b8dd1 (patch) | |
tree | 67a9e2261c5e61f5a1b8f7f4f8cfcca5b433046c /test-runner/src/android/test/mock/MockPackageManager.java | |
parent | bf991a8f426921c26e21e54e493781e1d5eb39ff (diff) | |
download | frameworks_base-655d0e2029e6ae77a47e922dce4c4989818b8dd1.zip frameworks_base-655d0e2029e6ae77a47e922dce4c4989818b8dd1.tar.gz frameworks_base-655d0e2029e6ae77a47e922dce4c4989818b8dd1.tar.bz2 |
Single-user restrictions
Introduces a new "blocked" state for each package. This is used to temporarily
disable an app via Settings->Restrictions.
PIN creation and challenge activities for use by Settings and other apps. PIN
is stored by the User Manager and it manages the interval for retry attempts
across reboots.
Change-Id: I4915329d1f72399bbcaf93a9ca9c0d2e69d098dd
Diffstat (limited to 'test-runner/src/android/test/mock/MockPackageManager.java')
-rw-r--r-- | test-runner/src/android/test/mock/MockPackageManager.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index 20a26ab..4683534 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -45,6 +45,8 @@ import android.content.res.Resources; import android.content.res.XmlResourceParser; import android.graphics.drawable.Drawable; import android.net.Uri; +import android.os.Binder; +import android.os.UserHandle; import java.util.List; @@ -585,6 +587,23 @@ public class MockPackageManager extends PackageManager { * @hide */ @Override + public boolean setApplicationBlockedSettingAsUser(String packageName, boolean blocked, + UserHandle user) { + return false; + } + + /** + * @hide + */ + @Override + public boolean getApplicationBlockedSettingAsUser(String packageName, UserHandle user) { + return false; + } + + /** + * @hide + */ + @Override public int installExistingPackage(String packageName) throws NameNotFoundException { throw new UnsupportedOperationException(); |