diff options
author | Amith Yamasani <yamasani@google.com> | 2012-09-25 14:09:27 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2012-09-25 15:45:27 -0700 |
commit | 98edc951712823dbf5db2b7e9c203a0e98fc616b (patch) | |
tree | 4f0e85972328438729323ab5c032d4b36ff90904 /test-runner | |
parent | b1c4ab5c2afea1f0797ee397df6512366128d980 (diff) | |
download | frameworks_base-98edc951712823dbf5db2b7e9c203a0e98fc616b.zip frameworks_base-98edc951712823dbf5db2b7e9c203a0e98fc616b.tar.gz frameworks_base-98edc951712823dbf5db2b7e9c203a0e98fc616b.tar.bz2 |
Load resources for the correct user
For apps that are only installed on secondary users, the SystemUI is
unable to see them by default. Added some methods to explicitly pass the
userId of the user the resources are requested for by the StatusBarIcon
Bug: 7214384
Also fix binding to remote views
Bug: 7192802
Change-Id: I5d6c5f624aa37fb231f3467f9764c8d99077a91d
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/src/android/test/mock/MockPackageManager.java | 7 |
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 7b7a7b3..2eba4e1 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -40,6 +40,7 @@ import android.content.pm.ResolveInfo; import android.content.pm.ServiceInfo; import android.content.pm.VerificationParams; import android.content.pm.VerifierDeviceIdentity; +import android.content.pm.PackageManager.NameNotFoundException; import android.content.res.Resources; import android.content.res.XmlResourceParser; import android.graphics.drawable.Drawable; @@ -371,6 +372,12 @@ public class MockPackageManager extends PackageManager { throw new UnsupportedOperationException(); } + /** @hide */ + @Override + public Resources getResourcesForApplicationAsUser(String appPackageName, int userId) { + throw new UnsupportedOperationException(); + } + @Override public PackageInfo getPackageArchiveInfo(String archiveFilePath, int flags) { throw new UnsupportedOperationException(); |