From e2d45be4dae116307f8edd85eaa61134221cb8f9 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Wed, 15 Apr 2015 17:14:12 -0700 Subject: Candidate volumes for packages, fix symlink. Add API to determine the possible candidate volumes that a package can be moved to. For example, it currently knows that we need to move ASEC-based apps through internal storage before migrating them to a private volume. Comparator for consistent VolumeInfo ordering when displayed in UI. Fix native library symlink to be volume UUID aware. Bug: 19993667 Change-Id: I68d5fac5f0f776ac1c7dd15e7a984bfe2704f3f7 --- test-runner/src/android/test/mock/MockPackageManager.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test-runner') diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index e78750c..5a8c7ff 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -16,6 +16,7 @@ package android.test.mock; +import android.annotation.NonNull; import android.app.PackageInstallObserver; import android.content.ComponentName; import android.content.Intent; @@ -51,6 +52,7 @@ import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.UserHandle; +import android.os.storage.VolumeInfo; import java.util.List; @@ -498,6 +500,18 @@ public class MockPackageManager extends PackageManager { throw new UnsupportedOperationException(); } + /** {@hide} */ + @Override + public @NonNull VolumeInfo getApplicationCurrentVolume(ApplicationInfo app) { + throw new UnsupportedOperationException(); + } + + /** {@hide} */ + @Override + public @NonNull List getApplicationCandidateVolumes(ApplicationInfo app) { + throw new UnsupportedOperationException(); + } + @Override public String getInstallerPackageName(String packageName) { throw new UnsupportedOperationException(); -- cgit v1.1