Methods Summary |
---|
public boolean | equals(java.lang.Object o)
RestrictedState s;
try {
s = (RestrictedState) o;
} catch (ClassCastException ex) {
return false;
}
if (o == null) {
return false;
}
return mPsRestricted == s.mPsRestricted
&& mCsNormalRestricted == s.mCsNormalRestricted
&& mCsEmergencyRestricted == s.mCsEmergencyRestricted;
|
public boolean | isCsEmergencyRestricted()
return mCsEmergencyRestricted;
|
public boolean | isCsNormalRestricted()
return mCsNormalRestricted;
|
public boolean | isCsRestricted()
return mCsNormalRestricted && mCsEmergencyRestricted;
|
public boolean | isPsRestricted()
return mPsRestricted;
|
public void | setCsEmergencyRestricted(boolean csEmergencyRestricted)
mCsEmergencyRestricted = csEmergencyRestricted;
|
public void | setCsNormalRestricted(boolean csNormalRestricted)
mCsNormalRestricted = csNormalRestricted;
|
public void | setPsRestricted(boolean psRestricted)
mPsRestricted = psRestricted;
|
public java.lang.String | toString()
String csString = "none";
if (mCsEmergencyRestricted && mCsNormalRestricted) {
csString = "all";
} else if (mCsEmergencyRestricted && !mCsNormalRestricted) {
csString = "emergency";
} else if (!mCsEmergencyRestricted && mCsNormalRestricted) {
csString = "normal call";
}
return "Restricted State CS: " + csString + " PS:" + mPsRestricted;
|