0447068f27f4d8c44052026878740cbcd7d598fa |
|
11-Jan-2018 |
Andrii Kulian <akulian@google.com> |
Fix object pool for lifecycler The original implementation of object pool for lifecycle transactions tried to always recycle objects after a transaction was scheduled. In case when a client was running in the same process this lead to objects being emptied before it could actually perform the transaction. Also when checking if object was already in the pool we should use "==" instead of equality check. Bug: 70554032 Bug: 71346774 Test: com.android.server.am.ClientLifecycleManagerTests Test: android.app.servertransaction.ObjectPoolTests Change-Id: I85fb3dae4589c2390e00a37144da0d285d16d151
/frameworks/base/core/java/android/app/servertransaction/ObjectPool.java
|
5249bb11b7644be073263138dab5c12d7de4a078 |
|
03-Jan-2018 |
Andrii Kulian <akulian@google.com> |
Revert "Fix object pool for lifecycler" This reverts commit 1c110302fe3236e7477020aa11b9cb0b8226328a. Reason for revert: Trying to recycle already recycled item on rotation. Change-Id: I1ae8337da28aa0923cc1d77a23f2ab5e42957495
/frameworks/base/core/java/android/app/servertransaction/ObjectPool.java
|
1c110302fe3236e7477020aa11b9cb0b8226328a |
|
21-Dec-2017 |
Andrii Kulian <akulian@google.com> |
Fix object pool for lifecycler The original implementation of object pool for lifecycle transactions tried to always recycle objects after a transaction was scheduled. In case when a client was running in the same process this lead to objects being emptied before it could actually perform the transaction. Also when checking if object was already in the pool we should use "==" instead of equality check. Bug: 70568084 Bug: 70526039 Bug: 70616950 Test: android.app.servertransaction.ObjectPoolTests Change-Id: I45eeecc189b9a458d8efdfed256b81cf0baf8b95
/frameworks/base/core/java/android/app/servertransaction/ObjectPool.java
|
9c5ea9c153fcc1f0fd2cfd35a77f26bf2849c48e |
|
07-Dec-2017 |
Andrii Kulian <akulian@google.com> |
Implement object pool for lifecycler Lifecycler currently creates a lot of extra objects for transactions and transaction items. This change adds an object pool, so that all objects that are used in lifecycler will be reused as soon as a transaction is scheduled. This also fixes parcelling/unparcelling of IVoiceInteractor in launch activity transaction item. Bug: 64797980 Bug: 69977460 Test: android.app.servertransaction.ObjectPoolTests Change-Id: I49125e28447f3565338b61dab6de843fcc1ca9cd
/frameworks/base/core/java/android/app/servertransaction/ObjectPool.java
|