summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2018-10-08 11:06:48 -0700
committer android-build-merger <android-build-merger@google.com> 2018-10-08 11:06:48 -0700
commita3ccde8b997f3644f134996ae3e4789a6fa8c4bc (patch)
tree14d3248a05de02d2289deeb51a5f58016f5b3477
parent62cfdc5d3d0f01ed258c3ce4c5eb600f8398cc33 (diff)
parent05efdc5710706fcbc9a9238bafdcf80943a8b3a2 (diff)
Merge "libbinder_ndk: prune errors on AStatus create" am: d8c1aa725d am: 9a61015cf2
am: 05efdc5710 Change-Id: I06de23eac0cd5857e96d0d916efa665e95d9a981
-rw-r--r--libs/binder/ndk/status.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/binder/ndk/status.cpp b/libs/binder/ndk/status.cpp
index e0ae469c3a..1f75b0b05d 100644
--- a/libs/binder/ndk/status.cpp
+++ b/libs/binder/ndk/status.cpp
@@ -27,11 +27,11 @@ AStatus* AStatus_newOk() {
}
AStatus* AStatus_fromExceptionCode(binder_exception_t exception) {
- return new AStatus(Status::fromExceptionCode(exception));
+ return new AStatus(Status::fromExceptionCode(PruneException(exception)));
}
AStatus* AStatus_fromExceptionCodeWithMessage(binder_exception_t exception, const char* message) {
- return new AStatus(Status::fromExceptionCode(exception, message));
+ return new AStatus(Status::fromExceptionCode(PruneException(exception), message));
}
AStatus* AStatus_fromServiceSpecificError(int32_t serviceSpecific) {
@@ -43,7 +43,7 @@ AStatus* AStatus_fromServiceSpecificErrorWithMessage(int32_t serviceSpecific, co
}
AStatus* AStatus_fromStatus(binder_status_t status) {
- return new AStatus(Status::fromStatusT(status));
+ return new AStatus(Status::fromStatusT(PruneStatusT(status)));
}
bool AStatus_isOk(const AStatus* status) {