Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b8b3c34 authored by Andrii Kulian's avatar Andrii Kulian
Browse files

Disable object pool for lifecycler

In the case when client lives in system_server, we shouldn't
recycle the lifecycle transaction objects to the pool.
Disabled this feature for now.

Bug: 70616950
Test: Manual
Change-Id: Ib70096aa35accfeb93108f60e3cfe8440b9cd6e8
parent d87c6b51
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -42,7 +42,8 @@ import org.junit.runner.RunWith;


@RunWith(AndroidJUnit4.class)
@RunWith(AndroidJUnit4.class)
@SmallTest
@SmallTest
@Presubmit
// TODO: b/70616950
//@Presubmit
public class ObjectPoolTests {
public class ObjectPoolTests {


    // 1. Check if two obtained objects from pool are not the same.
    // 1. Check if two obtained objects from pool are not the same.
+2 −1
Original line number Original line Diff line number Diff line
@@ -43,7 +43,8 @@ class ClientLifecycleManager {
     */
     */
    void scheduleTransaction(ClientTransaction transaction) throws RemoteException {
    void scheduleTransaction(ClientTransaction transaction) throws RemoteException {
        transaction.schedule();
        transaction.schedule();
        transaction.recycle();
        // TODO: b/70616950
        //transaction.recycle();
    }
    }


    /**
    /**