diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2015-04-10 17:24:02 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2015-04-10 17:54:02 -0700 |
commit | 6227172310663e1267b1fabd68be890a1cb7e145 (patch) | |
tree | b05d1ddcd6858b676c6e5a128fdd07e0b6e5f599 /test-runner/src | |
parent | 2d897fbc447fd315b246a752e14825cbd7214e74 (diff) | |
download | frameworks_base-6227172310663e1267b1fabd68be890a1cb7e145.zip frameworks_base-6227172310663e1267b1fabd68be890a1cb7e145.tar.gz frameworks_base-6227172310663e1267b1fabd68be890a1cb7e145.tar.bz2 |
Add Default Browser App support and relax Hosts validation for AppLinks
- add private PackageManager APIs for setting/getting the default
Browser App package name
- serialize / deserialize the default Browser App package name per User
Also relax the Hosts name validation for the AppLinls feature. Now we
just care if the IntentFilter is having an HTTP or HTTPS scheme.
Change-Id: I4436f66ac6beff57e14f7f3a2a00b0b582c03be9
Diffstat (limited to 'test-runner/src')
-rw-r--r-- | test-runner/src/android/test/mock/MockPackageManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index 79510d0..e78750c 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -764,6 +764,16 @@ public class MockPackageManager extends PackageManager { throw new UnsupportedOperationException(); } + @Override + public String getDefaultBrowserPackageName(int userId) { + throw new UnsupportedOperationException(); + } + + @Override + public boolean setDefaultBrowserPackageName(String packageName, int userId) { + throw new UnsupportedOperationException(); + } + /** * @hide */ |