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

Commit 3fea8b58 authored by Kunal Malhotra's avatar Kunal Malhotra
Browse files

Updating CPP ActivityManager interface to be one way

Ignore-AOSP-First: This code will go into AOSP later with U.
Test: manual testing on device
Bug: 279787820
Change-Id: I53b895982816144c00290bbb550b6bb290d86c30
parent 87a5f94c
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -138,7 +138,8 @@ public:
        data.writeInt32(apiType);
        data.writeInt32(appUid);
        data.writeInt32(appPid);
        status_t err = remote()->transact(LOG_FGS_API_BEGIN_TRANSACTION, data, &reply);
        status_t err = remote()->transact(LOG_FGS_API_BEGIN_TRANSACTION, data, &reply,
                                          IBinder::FLAG_ONEWAY);
        if (err != NO_ERROR || ((err = reply.readExceptionCode()) != NO_ERROR)) {
            ALOGD("FGS Logger Transaction failed");
            ALOGD("%d", err);
@@ -153,7 +154,8 @@ public:
        data.writeInt32(apiType);
        data.writeInt32(appUid);
        data.writeInt32(appPid);
        status_t err = remote()->transact(LOG_FGS_API_END_TRANSACTION, data, &reply);
        status_t err =
                remote()->transact(LOG_FGS_API_END_TRANSACTION, data, &reply, IBinder::FLAG_ONEWAY);
        if (err != NO_ERROR || ((err = reply.readExceptionCode()) != NO_ERROR)) {
            ALOGD("FGS Logger Transaction failed");
            ALOGD("%d", err);
@@ -170,7 +172,8 @@ public:
        data.writeInt32(state);
        data.writeInt32(appUid);
        data.writeInt32(appPid);
        status_t err = remote()->transact(LOG_FGS_API_BEGIN_TRANSACTION, data, &reply);
        status_t err = remote()->transact(LOG_FGS_API_BEGIN_TRANSACTION, data, &reply,
                                          IBinder::FLAG_ONEWAY);
        if (err != NO_ERROR || ((err = reply.readExceptionCode()) != NO_ERROR)) {
            ALOGD("FGS Logger Transaction failed");
            ALOGD("%d", err);