Methods Summary |
---|
public int | describeContents()Implement the Parcelable interface
return 0;
|
public int | getControlPort()
return mCtrlPort;
|
public java.lang.String | getDeviceInfoHex()
return String.format(
Locale.US, "%04x%04x%04x%04x", 6, mDeviceInfo, mCtrlPort, mMaxThroughput);
|
public int | getDeviceType()
return (mDeviceInfo & DEVICE_TYPE);
|
public int | getMaxThroughput()
return mMaxThroughput;
|
public boolean | isCoupledSinkSupportedAtSink()
return (mDeviceInfo & COUPLED_SINK_SUPPORT_AT_SINK) != 0;
|
public boolean | isCoupledSinkSupportedAtSource()
return (mDeviceInfo & COUPLED_SINK_SUPPORT_AT_SINK) != 0;
|
public boolean | isSessionAvailable()
return (mDeviceInfo & SESSION_AVAILABLE) != 0;
|
public boolean | isWfdEnabled()
return mWfdEnabled;
|
public void | readFromParcel(android.os.Parcel in)
mWfdEnabled = (in.readInt() == 1);
mDeviceInfo = in.readInt();
mCtrlPort = in.readInt();
mMaxThroughput = in.readInt();
|
public void | setControlPort(int port)
mCtrlPort = port;
|
public void | setCoupledSinkSupportAtSink(boolean enabled)
if (enabled ) {
mDeviceInfo |= COUPLED_SINK_SUPPORT_AT_SINK;
} else {
mDeviceInfo &= ~COUPLED_SINK_SUPPORT_AT_SINK;
}
|
public void | setCoupledSinkSupportAtSource(boolean enabled)
if (enabled ) {
mDeviceInfo |= COUPLED_SINK_SUPPORT_AT_SINK;
} else {
mDeviceInfo &= ~COUPLED_SINK_SUPPORT_AT_SINK;
}
|
public boolean | setDeviceType(int deviceType)
if (deviceType >= WFD_SOURCE && deviceType <= SOURCE_OR_PRIMARY_SINK) {
mDeviceInfo |= deviceType;
return true;
}
return false;
|
public void | setMaxThroughput(int maxThroughput)
mMaxThroughput = maxThroughput;
|
public void | setSessionAvailable(boolean enabled)
if (enabled) {
mDeviceInfo |= SESSION_AVAILABLE_BIT1;
mDeviceInfo &= ~SESSION_AVAILABLE_BIT2;
} else {
mDeviceInfo &= ~SESSION_AVAILABLE;
}
|
public void | setWfdEnabled(boolean enabled)
mWfdEnabled = enabled;
|
public java.lang.String | toString()
StringBuffer sbuf = new StringBuffer();
sbuf.append("WFD enabled: ").append(mWfdEnabled);
sbuf.append("WFD DeviceInfo: ").append(mDeviceInfo);
sbuf.append("\n WFD CtrlPort: ").append(mCtrlPort);
sbuf.append("\n WFD MaxThroughput: ").append(mMaxThroughput);
return sbuf.toString();
|
public void | writeToParcel(android.os.Parcel dest, int flags)Implement the Parcelable interface
dest.writeInt(mWfdEnabled ? 1 : 0);
dest.writeInt(mDeviceInfo);
dest.writeInt(mCtrlPort);
dest.writeInt(mMaxThroughput);
|