Merge "Add stable AIDL parcelables for IIpClient API"

This commit is contained in:
Remi NGUYEN VAN
2019-01-21 08:01:26 +00:00
committed by Gerrit Code Review

View File

@@ -38,18 +38,28 @@ public class ApfCapabilities {
*/
public final int apfPacketFormat;
public ApfCapabilities(int apfVersionSupported, int maximumApfProgramSize, int apfPacketFormat)
{
public ApfCapabilities(
int apfVersionSupported, int maximumApfProgramSize, int apfPacketFormat) {
this.apfVersionSupported = apfVersionSupported;
this.maximumApfProgramSize = maximumApfProgramSize;
this.apfPacketFormat = apfPacketFormat;
}
@Override
public String toString() {
return String.format("%s{version: %d, maxSize: %d, format: %d}", getClass().getSimpleName(),
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
* LDDW and STDW.