diff options
author | Jeff Sharkey <jsharkey@android.com> | 2014-10-15 17:15:53 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-15 17:15:53 +0000 |
commit | 5a4a37794af994bbac1396a4b276f0ce0f14deed (patch) | |
tree | edcd6c289668f411897859ae7cf3ca91c01318a6 /core/java | |
parent | 50be41c29f2321148d5e48c8ee3a93bdae68c54e (diff) | |
parent | e6ba73e07b16b413f57a06218e55b4fcd8d98f21 (diff) | |
download | frameworks_base-5a4a37794af994bbac1396a4b276f0ce0f14deed.zip frameworks_base-5a4a37794af994bbac1396a4b276f0ce0f14deed.tar.gz frameworks_base-5a4a37794af994bbac1396a4b276f0ce0f14deed.tar.bz2 |
am e6ba73e0: am fbfd900a: am 2df76285: am 203ed4db: am 88a6ed54: Merge "Reduce PackageInstaller Binder memory pressure." into lmp-dev
* commit 'e6ba73e07b16b413f57a06218e55b4fcd8d98f21':
Reduce PackageInstaller Binder memory pressure.
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/content/pm/IPackageInstaller.aidl | 5 | ||||
-rw-r--r-- | core/java/android/content/pm/PackageInstaller.java | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/core/java/android/content/pm/IPackageInstaller.aidl b/core/java/android/content/pm/IPackageInstaller.aidl index 6daefc8..ba62cd6 100644 --- a/core/java/android/content/pm/IPackageInstaller.aidl +++ b/core/java/android/content/pm/IPackageInstaller.aidl @@ -20,6 +20,7 @@ import android.content.pm.IPackageDeleteObserver2; import android.content.pm.IPackageInstallerCallback; import android.content.pm.IPackageInstallerSession; import android.content.pm.PackageInstaller; +import android.content.pm.ParceledListSlice; import android.content.IntentSender; import android.graphics.Bitmap; @@ -37,8 +38,8 @@ interface IPackageInstaller { PackageInstaller.SessionInfo getSessionInfo(int sessionId); - List<PackageInstaller.SessionInfo> getAllSessions(int userId); - List<PackageInstaller.SessionInfo> getMySessions(String installerPackageName, int userId); + ParceledListSlice getAllSessions(int userId); + ParceledListSlice getMySessions(String installerPackageName, int userId); void registerCallback(IPackageInstallerCallback callback, int userId); void unregisterCallback(IPackageInstallerCallback callback); diff --git a/core/java/android/content/pm/PackageInstaller.java b/core/java/android/content/pm/PackageInstaller.java index f249c5f..80efd0b 100644 --- a/core/java/android/content/pm/PackageInstaller.java +++ b/core/java/android/content/pm/PackageInstaller.java @@ -399,7 +399,7 @@ public class PackageInstaller { } try { - return mInstaller.getAllSessions(mUserId); + return mInstaller.getAllSessions(mUserId).getList(); } catch (RemoteException e) { throw e.rethrowAsRuntimeException(); } @@ -410,7 +410,7 @@ public class PackageInstaller { */ public @NonNull List<SessionInfo> getMySessions() { try { - return mInstaller.getMySessions(mInstallerPackageName, mUserId); + return mInstaller.getMySessions(mInstallerPackageName, mUserId).getList(); } catch (RemoteException e) { throw e.rethrowAsRuntimeException(); } |