Merge "Add stable AIDL parcelables for IIpClient API" am: 2fd1c3864e am: cfa31032d6
am: 8aa71627c2
Change-Id: Ieac619f043a7142cbbec3eaec334b7fac97ce7fc
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user