FileDocCategorySizeDatePackage
SmsCbCmasInfo.javaAPI DocAndroid 5.1 API11175Thu Mar 12 22:22:54 GMT 2015android.telephony

SmsCbCmasInfo

public class SmsCbCmasInfo extends Object implements android.os.Parcelable
Contains CMAS warning notification Type 1 elements for a {@link SmsCbMessage}. Supported values for each element are defined in TIA-1149-0-1 (CMAS over CDMA) and 3GPP TS 23.041 (for GSM/UMTS). {@hide}

Fields Summary
public static final int
CMAS_CLASS_PRESIDENTIAL_LEVEL_ALERT
Presidential-level alert (Korean Public Alert System Class 0 message).
public static final int
CMAS_CLASS_EXTREME_THREAT
Extreme threat to life and property (Korean Public Alert System Class 1 message).
public static final int
CMAS_CLASS_SEVERE_THREAT
Severe threat to life and property (Korean Public Alert System Class 1 message).
public static final int
CMAS_CLASS_CHILD_ABDUCTION_EMERGENCY
Child abduction emergency (AMBER Alert).
public static final int
CMAS_CLASS_REQUIRED_MONTHLY_TEST
CMAS test message.
public static final int
CMAS_CLASS_CMAS_EXERCISE
CMAS exercise.
public static final int
CMAS_CLASS_OPERATOR_DEFINED_USE
CMAS category for operator defined use.
public static final int
CMAS_CLASS_UNKNOWN
CMAS category for warning types that are reserved for future extension.
public static final int
CMAS_CATEGORY_GEO
CMAS alert category: Geophysical including landslide.
public static final int
CMAS_CATEGORY_MET
CMAS alert category: Meteorological including flood.
public static final int
CMAS_CATEGORY_SAFETY
CMAS alert category: General emergency and public safety.
public static final int
CMAS_CATEGORY_SECURITY
CMAS alert category: Law enforcement, military, homeland/local/private security.
public static final int
CMAS_CATEGORY_RESCUE
CMAS alert category: Rescue and recovery.
public static final int
CMAS_CATEGORY_FIRE
CMAS alert category: Fire suppression and rescue.
public static final int
CMAS_CATEGORY_HEALTH
CMAS alert category: Medical and public health.
public static final int
CMAS_CATEGORY_ENV
CMAS alert category: Pollution and other environmental.
public static final int
CMAS_CATEGORY_TRANSPORT
CMAS alert category: Public and private transportation.
public static final int
CMAS_CATEGORY_INFRA
CMAS alert category: Utility, telecom, other non-transport infrastructure.
public static final int
CMAS_CATEGORY_CBRNE
CMAS alert category: Chem, bio, radiological, nuclear, high explosive threat or attack.
public static final int
CMAS_CATEGORY_OTHER
CMAS alert category: Other events.
public static final int
CMAS_CATEGORY_UNKNOWN
CMAS alert category is unknown. The category is only available for CDMA broadcasts containing a type 1 elements record, so GSM and UMTS broadcasts always return unknown.
public static final int
CMAS_RESPONSE_TYPE_SHELTER
CMAS response type: Take shelter in place.
public static final int
CMAS_RESPONSE_TYPE_EVACUATE
CMAS response type: Evacuate (Relocate).
public static final int
CMAS_RESPONSE_TYPE_PREPARE
CMAS response type: Make preparations.
public static final int
CMAS_RESPONSE_TYPE_EXECUTE
CMAS response type: Execute a pre-planned activity.
public static final int
CMAS_RESPONSE_TYPE_MONITOR
CMAS response type: Attend to information sources.
public static final int
CMAS_RESPONSE_TYPE_AVOID
CMAS response type: Avoid hazard.
public static final int
CMAS_RESPONSE_TYPE_ASSESS
CMAS response type: Evaluate the information in this message (not for public warnings).
public static final int
CMAS_RESPONSE_TYPE_NONE
CMAS response type: No action recommended.
public static final int
CMAS_RESPONSE_TYPE_UNKNOWN
CMAS response type is unknown. The response type is only available for CDMA broadcasts containing a type 1 elements record, so GSM and UMTS broadcasts always return unknown.
public static final int
CMAS_SEVERITY_EXTREME
CMAS severity type: Extraordinary threat to life or property.
public static final int
CMAS_SEVERITY_SEVERE
CMAS severity type: Significant threat to life or property.
public static final int
CMAS_SEVERITY_UNKNOWN
CMAS alert severity is unknown. The severity is available for CDMA warning alerts containing a type 1 elements record and for all GSM and UMTS alerts except for the Presidential-level alert class (Korean Public Alert System Class 0).
public static final int
CMAS_URGENCY_IMMEDIATE
CMAS urgency type: Responsive action should be taken immediately.
public static final int
CMAS_URGENCY_EXPECTED
CMAS urgency type: Responsive action should be taken within the next hour.
public static final int
CMAS_URGENCY_UNKNOWN
CMAS alert urgency is unknown. The urgency is available for CDMA warning alerts containing a type 1 elements record and for all GSM and UMTS alerts except for the Presidential-level alert class (Korean Public Alert System Class 0).
public static final int
CMAS_CERTAINTY_OBSERVED
CMAS certainty type: Determined to have occurred or to be ongoing.
public static final int
CMAS_CERTAINTY_LIKELY
CMAS certainty type: Likely (probability > ~50%).
public static final int
CMAS_CERTAINTY_UNKNOWN
CMAS alert certainty is unknown. The certainty is available for CDMA warning alerts containing a type 1 elements record and for all GSM and UMTS alerts except for the Presidential-level alert class (Korean Public Alert System Class 0).
private final int
mMessageClass
CMAS message class.
private final int
mCategory
CMAS category.
private final int
mResponseType
CMAS response type.
private final int
mSeverity
CMAS severity.
private final int
mUrgency
CMAS urgency.
private final int
mCertainty
CMAS certainty.
public static final Parcelable.Creator
CREATOR
Creator for unparcelling objects.
Constructors Summary
public SmsCbCmasInfo(int messageClass, int category, int responseType, int severity, int urgency, int certainty)
Create a new SmsCbCmasInfo object with the specified values.


              
            
                
        mMessageClass = messageClass;
        mCategory = category;
        mResponseType = responseType;
        mSeverity = severity;
        mUrgency = urgency;
        mCertainty = certainty;
    
SmsCbCmasInfo(android.os.Parcel in)
Create a new SmsCbCmasInfo object from a Parcel.

        mMessageClass = in.readInt();
        mCategory = in.readInt();
        mResponseType = in.readInt();
        mSeverity = in.readInt();
        mUrgency = in.readInt();
        mCertainty = in.readInt();
    
Methods Summary
public intdescribeContents()
Describe the kinds of special objects contained in the marshalled representation.

return
a bitmask indicating this Parcelable contains no special objects

        return 0;
    
public intgetCategory()
Returns the CMAS category, e.g. {@link #CMAS_CATEGORY_GEO}.

return
one of the {@code CMAS_CATEGORY} values

        return mCategory;
    
public intgetCertainty()
Returns the CMAS certainty, e.g. {@link #CMAS_CERTAINTY_OBSERVED}.

return
one of the {@code CMAS_CERTAINTY} values

        return mCertainty;
    
public intgetMessageClass()
Returns the CMAS message class, e.g. {@link #CMAS_CLASS_PRESIDENTIAL_LEVEL_ALERT}.

return
one of the {@code CMAS_CLASS} values

        return mMessageClass;
    
public intgetResponseType()
Returns the CMAS response type, e.g. {@link #CMAS_RESPONSE_TYPE_SHELTER}.

return
one of the {@code CMAS_RESPONSE_TYPE} values

        return mResponseType;
    
public intgetSeverity()
Returns the CMAS severity, e.g. {@link #CMAS_SEVERITY_EXTREME}.

return
one of the {@code CMAS_SEVERITY} values

        return mSeverity;
    
public intgetUrgency()
Returns the CMAS urgency, e.g. {@link #CMAS_URGENCY_IMMEDIATE}.

return
one of the {@code CMAS_URGENCY} values

        return mUrgency;
    
public java.lang.StringtoString()

        return "SmsCbCmasInfo{messageClass=" + mMessageClass + ", category=" + mCategory
                + ", responseType=" + mResponseType + ", severity=" + mSeverity
                + ", urgency=" + mUrgency + ", certainty=" + mCertainty + '}";
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Flatten this object into a Parcel.

param
dest The Parcel in which the object should be written.
param
flags Additional flags about how the object should be written (ignored).

        dest.writeInt(mMessageClass);
        dest.writeInt(mCategory);
        dest.writeInt(mResponseType);
        dest.writeInt(mSeverity);
        dest.writeInt(mUrgency);
        dest.writeInt(mCertainty);