diff options
| author | Jeff Sharkey <jsharkey@android.com> | 2015-04-19 04:19:15 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-19 04:19:16 +0000 |
| commit | 5f6f559a629ba2a3833e20e940c28c5b127d5572 (patch) | |
| tree | fdf8152d3430784b98e0cb117271cf5da619b172 /core/java | |
| parent | 2142bedd72d626f4649e4936ddf90653ea9b95a8 (diff) | |
| parent | 529f91fc8e7e884ef19bef8eb3e4e3a1d69336f4 (diff) | |
| download | frameworks_base-5f6f559a629ba2a3833e20e940c28c5b127d5572.zip frameworks_base-5f6f559a629ba2a3833e20e940c28c5b127d5572.tar.gz frameworks_base-5f6f559a629ba2a3833e20e940c28c5b127d5572.tar.bz2 | |
Merge "Always send volume UUID with installd commands."
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/ApplicationPackageManager.java | 10 | ||||
| -rw-r--r-- | core/java/android/content/pm/IPackageManager.aidl | 4 | ||||
| -rw-r--r-- | core/java/android/content/pm/PackageManager.java | 15 |
3 files changed, 21 insertions, 8 deletions
diff --git a/core/java/android/app/ApplicationPackageManager.java b/core/java/android/app/ApplicationPackageManager.java index b9ddff0..dfe7e18 100644 --- a/core/java/android/app/ApplicationPackageManager.java +++ b/core/java/android/app/ApplicationPackageManager.java @@ -1520,19 +1520,21 @@ final class ApplicationPackageManager extends PackageManager { // Should never happen! } } + @Override - public void freeStorageAndNotify(long idealStorageSize, IPackageDataObserver observer) { + public void freeStorageAndNotify(String volumeUuid, long idealStorageSize, + IPackageDataObserver observer) { try { - mPM.freeStorageAndNotify(idealStorageSize, observer); + mPM.freeStorageAndNotify(volumeUuid, idealStorageSize, observer); } catch (RemoteException e) { // Should never happen! } } @Override - public void freeStorage(long freeStorageSize, IntentSender pi) { + public void freeStorage(String volumeUuid, long freeStorageSize, IntentSender pi) { try { - mPM.freeStorage(freeStorageSize, pi); + mPM.freeStorage(volumeUuid, freeStorageSize, pi); } catch (RemoteException e) { // Should never happen! } diff --git a/core/java/android/content/pm/IPackageManager.aidl b/core/java/android/content/pm/IPackageManager.aidl index c2580c0..447c668 100644 --- a/core/java/android/content/pm/IPackageManager.aidl +++ b/core/java/android/content/pm/IPackageManager.aidl @@ -328,7 +328,7 @@ interface IPackageManager { * @param observer call back used to notify when * the operation is completed */ - void freeStorageAndNotify(in long freeStorageSize, + void freeStorageAndNotify(in String volumeUuid, in long freeStorageSize, IPackageDataObserver observer); /** @@ -352,7 +352,7 @@ interface IPackageManager { * notify when the operation is completed.May be null * to indicate that no call back is desired. */ - void freeStorage(in long freeStorageSize, + void freeStorage(in String volumeUuid, in long freeStorageSize, in IntentSender pi); /** diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index a128872..a0cec50 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -3798,7 +3798,13 @@ public abstract class PackageManager { * @hide */ // @SystemApi - public abstract void freeStorageAndNotify(long freeStorageSize, IPackageDataObserver observer); + public void freeStorageAndNotify(long freeStorageSize, IPackageDataObserver observer) { + freeStorageAndNotify(null, freeStorageSize, observer); + } + + /** {@hide} */ + public abstract void freeStorageAndNotify(String volumeUuid, long freeStorageSize, + IPackageDataObserver observer); /** * Free storage by deleting LRU sorted list of cache files across @@ -3823,7 +3829,12 @@ public abstract class PackageManager { * * @hide */ - public abstract void freeStorage(long freeStorageSize, IntentSender pi); + public void freeStorage(long freeStorageSize, IntentSender pi) { + freeStorage(null, freeStorageSize, pi); + } + + /** {@hide} */ + public abstract void freeStorage(String volumeUuid, long freeStorageSize, IntentSender pi); /** * Retrieve the size information for a package. |
