summaryrefslogtreecommitdiff
path: root/libs/binder/include/binder/Parcelable.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/binder/include/binder/Parcelable.h')
-rw-r--r--libs/binder/include/binder/Parcelable.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/libs/binder/include/binder/Parcelable.h b/libs/binder/include/binder/Parcelable.h
index 2c652be0e9..a9166e2408 100644
--- a/libs/binder/include/binder/Parcelable.h
+++ b/libs/binder/include/binder/Parcelable.h
@@ -14,7 +14,8 @@
* limitations under the License.
*/
-#pragma once
+#ifndef ANDROID_PARCELABLE_H
+#define ANDROID_PARCELABLE_H
#include <vector>
@@ -51,21 +52,6 @@ public:
//
// Returns android::OK on success and an appropriate error otherwise.
virtual status_t readFromParcel(const Parcel* parcel) = 0;
-
- // WARNING: for use by auto-generated code only (AIDL). Should not be used
- // manually, or there is a risk of breaking CTS, GTS, VTS, or CTS-on-GSI
- // tests.
- enum class Stability : int32_t {
- STABILITY_LOCAL,
- STABILITY_VINTF, // corresponds to @VintfStability
- };
-
- // 'Stable' means this parcelable is guaranteed to be stable for multiple
- // years.
- // It must be guaranteed by setting stability field in aidl_interface.
- // WARNING: getStability() is only expected to be overridden by auto-generated
- // code. Returns true if this parcelable is stable.
- virtual Stability getStability() const { return Stability::STABILITY_LOCAL; }
}; // class Parcelable
#if defined(__clang__)
@@ -73,3 +59,5 @@ public:
#endif
} // namespace android
+
+#endif // ANDROID_PARCELABLE_H