diff options
Diffstat (limited to 'test-runner/src')
-rw-r--r-- | test-runner/src/android/test/mock/MockContext.java | 13 | ||||
-rw-r--r-- | test-runner/src/android/test/mock/MockPackageManager.java | 33 |
2 files changed, 46 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java index e09d124..b1b4d04 100644 --- a/test-runner/src/android/test/mock/MockContext.java +++ b/test-runner/src/android/test/mock/MockContext.java @@ -645,6 +645,19 @@ public class MockContext extends Context { /** {@hide} */ @Override + public Context createPackageContextAsUser(String packageName, String themePackageName, + int flags, UserHandle user) throws PackageManager.NameNotFoundException { + throw new UnsupportedOperationException(); + } + + /** {@hide} */ + public Context createApplicationContext(ApplicationInfo application, + String themePackageName, int flags) throws PackageManager.NameNotFoundException { + throw new UnsupportedOperationException(); + } + + /** {@hide} */ + @Override public int getUserId() { throw new UnsupportedOperationException(); } diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index 808498b..a547214 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -510,6 +510,27 @@ public class MockPackageManager extends PackageManager { throw new UnsupportedOperationException(); } + /** @hide */ + @Override + public Resources getThemedResourcesForApplication(ApplicationInfo app, String themePkgName) + throws NameNotFoundException { + return null; + } + + /** @hide */ + @Override + public Resources getThemedResourcesForApplication(String appPackageName, String themePkgName) + throws NameNotFoundException { + return null; + } + + /** @hide */ + @Override + public Resources getThemedResourcesForApplicationAsUser(String appPackageName, + String themePkgName, int userId) throws NameNotFoundException { + return null; + } + @Override public PackageInfo getPackageArchiveInfo(String archiveFilePath, int flags) { throw new UnsupportedOperationException(); @@ -949,4 +970,16 @@ public class MockPackageManager extends PackageManager { public Drawable loadUnbadgedItemIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo) { throw new UnsupportedOperationException(); } + + public void updateIconMaps(String pkgName) { + throw new UnsupportedOperationException(); + } + + /** + * @hide + */ + @Override + public int processThemeResources(String themePkgName) { + throw new UnsupportedOperationException(); + } } |