diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-03-30 10:42:20 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-03-30 13:34:43 -0700 |
commit | d7c096845dee7616095eda0fe9e7aa08f0ba9c20 (patch) | |
tree | d20190ae42b25ce05960e16a89b8eb803d837602 /test-runner/src/android/test | |
parent | 22375e4a736c0d646c3cf0905c15126f7f4107c2 (diff) | |
download | frameworks_base-d7c096845dee7616095eda0fe9e7aa08f0ba9c20.zip frameworks_base-d7c096845dee7616095eda0fe9e7aa08f0ba9c20.tar.gz frameworks_base-d7c096845dee7616095eda0fe9e7aa08f0ba9c20.tar.bz2 |
Package manager optimizations.
Addresses:
Issue #2550648: PackageManagerService setComponentEnabledSetting unconditionally
writes Settings xml
Issue #2549084: Make PackageManager.addPermission have async version
Also make the writing of settings when changing the preferred activities to use
the same async mechanism, and fiddle with thread priorities in the background
thread to go up to foreground priority when holding the lock to write settings
and a few other places. (At some point we should really clean this up to never
acquire the main lock while in the background.)
Change-Id: Ib2b7632543f6fb3f92a225518579f3b2d15e1413
Diffstat (limited to 'test-runner/src/android/test')
-rw-r--r-- | test-runner/src/android/test/mock/MockPackageManager.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index 2ccc9bb..4964f03 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -142,6 +142,11 @@ public class MockPackageManager extends PackageManager { } @Override + public boolean addPermissionAsync(PermissionInfo info) { + throw new UnsupportedOperationException(); + } + + @Override public void removePermission(String name) { throw new UnsupportedOperationException(); } |