diff options
author | Suchi Amalapurapu <asuchitra@google.com> | 2010-02-09 03:45:40 -0800 |
---|---|---|
committer | Suchi Amalapurapu <asuchitra@google.com> | 2010-02-10 08:59:08 -0800 |
commit | 117818e4f171b1fd9daa05349c48f61388f04567 (patch) | |
tree | 2bb350a719caf06727a410ce662c46a28c45fb72 /test-runner | |
parent | 596ce7fbfe5a81a4270949448c08dcb3a684cc3a (diff) | |
download | frameworks_base-117818e4f171b1fd9daa05349c48f61388f04567.zip frameworks_base-117818e4f171b1fd9daa05349c48f61388f04567.tar.gz frameworks_base-117818e4f171b1fd9daa05349c48f61388f04567.tar.bz2 |
Add new manifest option for install location
Change recommendAppInstallLocation api
add code to parse new attribute.
Define flags in PackageInfo
Add new settings attributes for enabling setting and value for install location
Some tests
The policy for install location: if explicitly set in manifest as internal only we try to install the app only on internal storage. if set to preferExternal, we try to install it on sdcard if possible. If not we fall back to internal.
If the user enables setting SET_INSTALL_LOCATION(which will always
be set to false in final release builds) and sets a prefered location, we try
to honour it.
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/android/test/mock/MockPackageManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test-runner/android/test/mock/MockPackageManager.java b/test-runner/android/test/mock/MockPackageManager.java index cbe0253..c8339ed 100644 --- a/test-runner/android/test/mock/MockPackageManager.java +++ b/test-runner/android/test/mock/MockPackageManager.java @@ -30,6 +30,7 @@ import android.content.pm.IPackageStatsObserver; import android.content.pm.InstrumentationInfo; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; +import android.content.pm.PackageParser; import android.content.pm.PermissionGroupInfo; import android.content.pm.PermissionInfo; import android.content.pm.ProviderInfo; @@ -443,7 +444,7 @@ public class MockPackageManager extends PackageManager { * @hide */ @Override - public int recommendAppInstallLocation(ApplicationInfo appInfo, Uri packageURI) { + public int recommendAppInstallLocation(PackageParser.Package pkg) { throw new UnsupportedOperationException(); } } |