ndk backend: comparison operators

These were clearly written in order to support C++ and NDK backend, but
not enabled, so enabling them there.

Bug: 175018841
Test: atest CtsNdkBinderTestCases
Change-Id: I2c0da9653f36f98c28c09715d680de85af0dc59a
Merged-In: I2c0da9653f36f98c28c09715d680de85af0dc59a
diff --git a/generate_ndk.cpp b/generate_ndk.cpp
index baaaeff..2d963a9 100644
--- a/generate_ndk.cpp
+++ b/generate_ndk.cpp
@@ -1020,6 +1020,9 @@
   out << "\n";
   out << "binder_status_t readFromParcel(const AParcel* parcel);\n";
   out << "binder_status_t writeToParcel(AParcel* parcel) const;\n";
+  out << "\n";
+
+  cpp::GenerateParcelableComparisonOperators(out, defined_type);
 
   out << "static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::"
       << (defined_type.IsVintfStability() ? "STABILITY_VINTF" : "STABILITY_LOCAL") << ";\n";
@@ -1156,6 +1159,9 @@
 
   out << "binder_status_t readFromParcel(const AParcel* _parcel);\n";
   out << "binder_status_t writeToParcel(AParcel* _parcel) const;\n";
+  out << "\n";
+
+  cpp::GenerateParcelableComparisonOperators(out, defined_type);
 
   out << "static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::"
       << (defined_type.IsVintfStability() ? "STABILITY_VINTF" : "STABILITY_LOCAL") << ";\n";