Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 000984bf authored by Andrew Lassalle's avatar Andrew Lassalle
Browse files

Add missing RustDerive attributes to radio AIDL interfaces

In a previous CL, I've added the partialEq, Eq and Clone rust derives to
most parceleables in the radio AIDL files. I missed a few, so this CL
fixes that. These rust derives are needed to be able to clone these
data types, and to perform comparisons. All parceleables were included,
except 'ims/media/LocalEndPoint.aidl' since it contains data types that
are non clonable.

Bug: 393444294
Test: m android.hardware.radio.sim-update-api android.hardware.radio.network-update-api && m
Test: use following command to find files that need to be updated
Test: "grep Rust $(grep -R  parcelable . -l) -L | sort"
Change-Id: I1c8e0f9c3746c41ce9a6c113c1fd5682c54ae262
parent 76c09aa6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

package android.hardware.radio.network;
/* @hide */
@JavaDerive(toString=true) @SuppressWarnings(value={"redundant-name"}) @VintfStability
@JavaDerive(toString=true) @RustDerive(Clone=true, Eq=true, PartialEq=true) @SuppressWarnings(value={"redundant-name"}) @VintfStability
parcelable BarringInfo {
  int serviceType;
  int barringType;
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

package android.hardware.radio.network;
/* @hide */
@JavaDerive(toString=true) @VintfStability
@JavaDerive(toString=true) @RustDerive(Clone=true, Eq=true, PartialEq=true) @VintfStability
parcelable CellularIdentifierDisclosure {
  String plmn;
  android.hardware.radio.network.CellularIdentifier identifier = android.hardware.radio.network.CellularIdentifier.UNKNOWN;
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

package android.hardware.radio.network;
/* @hide */
@JavaDerive(toString=true) @SuppressWarnings(value={"redundant-name"}) @VintfStability
@JavaDerive(toString=true) @RustDerive(Clone=true, Eq=true, PartialEq=true) @SuppressWarnings(value={"redundant-name"}) @VintfStability
parcelable NetworkScanRequest {
  int type;
  int interval;
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

package android.hardware.radio.network;
/* @hide */
@JavaDerive(toString=true) @SuppressWarnings(value={"redundant-name"}) @VintfStability
@JavaDerive(toString=true) @RustDerive(Clone=true, Eq=true, PartialEq=true) @SuppressWarnings(value={"redundant-name"}) @VintfStability
parcelable NetworkScanResult {
  int status;
  android.hardware.radio.RadioError error = android.hardware.radio.RadioError.NONE;
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

package android.hardware.radio.network;
/* @hide */
@JavaDerive(toString=true) @VintfStability
@JavaDerive(toString=true) @RustDerive(Clone=true, Eq=true, PartialEq=true) @VintfStability
parcelable SecurityAlgorithmUpdate {
  android.hardware.radio.network.ConnectionEvent connectionEvent = android.hardware.radio.network.ConnectionEvent.CS_SIGNALLING_GSM;
  android.hardware.radio.network.SecurityAlgorithm encryption = android.hardware.radio.network.SecurityAlgorithm.A50;
Loading