History log of /frameworks/native/libs/binder/Status.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c8dc4f0af9f8847be9cdd2b9cbb5b8a7767982c4 17-Jan-2017 Jeff Sharkey <jsharkey@android.com> Add Binder support for Parcelable exceptions.

Follow the new framework changes that support sending EX_PARCELABLE
exception types.

Test: builds, boots
Bug: 33749182
Change-Id: I7a856fa89f23aab4f782c4e5ae2beb8166fa8da4
/frameworks/native/libs/binder/Status.cpp
1651ced6a84b3ba5b62917e88b981e6bac3e7e3f 06-May-2016 Christopher Wiley <wiley@google.com> libbinder: Use char* message with binder::Status

Bug: None
Change-Id: Idcb8345cda2bf18960c1c437b7a6de4ec17b59fe
/frameworks/native/libs/binder/Status.cpp
00cb980fcb6032f3a5ae124dc64ee2df8fb79a31 13-Apr-2016 Ralph Nathan <ralphnathan@google.com> libbinder: Remove templated binder::Status stream operator.

The templated binder::Status stream operator doesn't work with gmock
because of ambiguous operator overloading. Limiting the stream operator
to just std::stringstream allows it to be used with gmock.

BUG=28171901
TEST=Compiles with gmock and CameraBinderTests

Change-Id: Ia674b68cbff4911b3f5cc3d8ee57d04a1d6cf6bf
/frameworks/native/libs/binder/Status.cpp
c1e491d5a4923298b612de919537d4293574b443 21-Nov-2015 Christopher Wiley <wiley@google.com> libbinder: Enable service specific error codes

Add another factory method that takes a message and service
specific error code.

Bug: 25800533
Test: system/tools/aidl integration tests pass

Change-Id: I592cb7def0538576965d14c200ab58548b3bef32
/frameworks/native/libs/binder/Status.cpp
cff7f175c1a4f790fdc64a56695c5b4b08b6bb6e 23-Nov-2015 Christopher Wiley <wiley@google.com> libbinder: Handle transaction failures correctly

Java code expects status_t != OK to be caught at the JNI level in
android_util_Binder.cpp (see signalExceptionForError). We were
incorrectly mapping this kind of failure to a special exception type
and writing that exception type to parcels.

Instead, refuse to write EX_TRANSACTION_FAILED to a parcel and return
the status value instead.

While here, remove non-trivial constructors to push authors toward the
more explicit factory methods. Remove getException() and push authors
toward using the simpler getter methods. Fix minor camelCase issues.

Bug: 25615695
Test: system/tools/aidl integration tests still pass

Change-Id: I7cad3ac8ae8300b5ac0b466606f4934d01e503c5
/frameworks/native/libs/binder/Status.cpp
09eb749704afd9e226e1347cb20c90be2016cd21 10-Nov-2015 Christopher Wiley <wiley@google.com> libbinder: Add binder::Status type

This object implements equivalent functionality to the Java logic which
serializes and re-throws exceptions from services.

Bug: 25615695
Test: Integration test for generated AIDL code reveals this to work
correctly.

Change-Id: Ic80c9def0dd232582ea9c49717ec50894af6bfc2
/frameworks/native/libs/binder/Status.cpp