diff options
author | 2021-03-16 15:51:53 +0100 | |
---|---|---|
committer | 2021-03-18 15:46:55 +0100 | |
commit | 3b1f7bcf8fd0ca2458eb26ec31a1bddf4bf7fd43 (patch) | |
tree | 3b022e6e90eaf1d5fd16b3e0a7d09dd9afd8cea0 /libs/gui/ScreenCaptureResults.cpp | |
parent | 574c58d9922a99a0ab78efefabfad1977ef793c4 (diff) |
Extract ParcelableUtils to avoid code duplication
Currently the SAFE_PARCEL macros are copies on multiple places.
This CL extracts them in a single ParcelableUtils.
Additionally in SAFE_PARCEL also the stringified error is printed.
Bug: 179116474
Test: presubmit
Change-Id: Ie09c3a9753b5742be14fe3cdb0061d5c64465e66
Diffstat (limited to 'libs/gui/ScreenCaptureResults.cpp')
-rw-r--r-- | libs/gui/ScreenCaptureResults.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/gui/ScreenCaptureResults.cpp b/libs/gui/ScreenCaptureResults.cpp index f3849bcdcd..e91f74f3d3 100644 --- a/libs/gui/ScreenCaptureResults.cpp +++ b/libs/gui/ScreenCaptureResults.cpp @@ -16,6 +16,8 @@ #include <gui/ScreenCaptureResults.h> +#include <private/gui/ParcelUtils.h> + namespace android::gui { status_t ScreenCaptureResults::writeToParcel(android::Parcel* parcel) const { |