Merge "Add stable AIDL parcelables for IIpClient API" am: 2fd1c3864e

am: cfa31032d6

Change-Id: Ifae5ae9e6e396452ce4c432d8aa613d03ba59824
This commit is contained in:
Remi NGUYEN VAN
2019-01-21 11:09:28 -08:00
committed by android-build-merger

View File

@@ -38,18 +38,28 @@ public class ApfCapabilities {
*/ */
public final int apfPacketFormat; public final int apfPacketFormat;
public ApfCapabilities(int apfVersionSupported, int maximumApfProgramSize, int apfPacketFormat) public ApfCapabilities(
{ int apfVersionSupported, int maximumApfProgramSize, int apfPacketFormat) {
this.apfVersionSupported = apfVersionSupported; this.apfVersionSupported = apfVersionSupported;
this.maximumApfProgramSize = maximumApfProgramSize; this.maximumApfProgramSize = maximumApfProgramSize;
this.apfPacketFormat = apfPacketFormat; this.apfPacketFormat = apfPacketFormat;
} }
@Override
public String toString() { public String toString() {
return String.format("%s{version: %d, maxSize: %d, format: %d}", getClass().getSimpleName(), return String.format("%s{version: %d, maxSize: %d, format: %d}", getClass().getSimpleName(),
apfVersionSupported, maximumApfProgramSize, apfPacketFormat); apfVersionSupported, maximumApfProgramSize, apfPacketFormat);
} }
@Override
public boolean equals(Object obj) {
if (!(obj instanceof ApfCapabilities)) return false;
final ApfCapabilities other = (ApfCapabilities) obj;
return apfVersionSupported == other.apfVersionSupported
&& maximumApfProgramSize == other.maximumApfProgramSize
&& apfPacketFormat == other.apfPacketFormat;
}
/** /**
* Returns true if the APF interpreter advertises support for the data buffer access opcodes * Returns true if the APF interpreter advertises support for the data buffer access opcodes
* LDDW and STDW. * LDDW and STDW.