summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kunal Malhotra <malhk@google.com> 2023-05-12 05:44:13 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-05-12 05:44:13 +0000
commite1f24a09027e2e77447007d24a596e381c4e8dd4 (patch)
tree9cad50678948a78334e4ec3ad1d3dcd93364ac73
parent0f0c9770c8ff2e86c2c91106d6808bec557279f9 (diff)
parent3fea8b580fd4e857b2e89cc5404b4a73a3e8d42f (diff)
Merge "Updating CPP ActivityManager interface to be one way" into udc-dev
-rw-r--r--libs/binder/IActivityManager.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/binder/IActivityManager.cpp b/libs/binder/IActivityManager.cpp
index 84900a72ff..f2b4a6ef37 100644
--- a/libs/binder/IActivityManager.cpp
+++ b/libs/binder/IActivityManager.cpp
@@ -190,7 +190,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);
@@ -205,7 +206,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);
@@ -222,7 +224,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);