FileDocCategorySizeDatePackage
SmsBroadcastConfigInfo.javaAPI DocAndroid 5.1 API3702Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony.gsm

SmsBroadcastConfigInfo

public final class SmsBroadcastConfigInfo extends Object
SmsBroadcastConfigInfo defines one configuration of Cell Broadcast Message (CBM) to be received by the ME fromServiceId - toServiceId defines a range of CBM message identifiers whose value is 0x0000 - 0xFFFF as defined in TS 23.041 9.4.1.2.2 for GMS and 9.4.4.2.2 for UMTS. All other values can be treated as empty CBM message ID. fromCodeScheme - toCodeScheme defines a range of CBM data coding schemes whose value is 0x00 - 0xFF as defined in TS 23.041 9.4.1.2.3 for GMS and 9.4.4.2.3 for UMTS. All other values can be treated as empty CBM data coding scheme. selected false means message types specified in {@code } and {@code } are not accepted, while true means accepted.

Fields Summary
private int
mFromServiceId
private int
mToServiceId
private int
mFromCodeScheme
private int
mToCodeScheme
private boolean
mSelected
Constructors Summary
public SmsBroadcastConfigInfo(int fromId, int toId, int fromScheme, int toScheme, boolean selected)
Initialize the object from rssi and cid.

        mFromServiceId = fromId;
        mToServiceId = toId;
        mFromCodeScheme = fromScheme;
        mToCodeScheme = toScheme;
        mSelected = selected;
    
Methods Summary
public intgetFromCodeScheme()

return
the fromCodeScheme

        return mFromCodeScheme;
    
public intgetFromServiceId()

return
the fromServiceId

        return mFromServiceId;
    
public intgetToCodeScheme()

return
the toCodeScheme

        return mToCodeScheme;
    
public intgetToServiceId()

return
the toServiceId

        return mToServiceId;
    
public booleanisSelected()

return
the selected

        return mSelected;
    
public voidsetFromCodeScheme(int fromCodeScheme)

param
fromCodeScheme the fromCodeScheme to set

        mFromCodeScheme = fromCodeScheme;
    
public voidsetFromServiceId(int fromServiceId)

param
fromServiceId the fromServiceId to set

        mFromServiceId = fromServiceId;
    
public voidsetSelected(boolean selected)

param
selected the selected to set

        mSelected = selected;
    
public voidsetToCodeScheme(int toCodeScheme)

param
toCodeScheme the toCodeScheme to set

        mToCodeScheme = toCodeScheme;
    
public voidsetToServiceId(int toServiceId)

param
toServiceId the toServiceId to set

        mToServiceId = toServiceId;
    
public java.lang.StringtoString()

        return "SmsBroadcastConfigInfo: Id [" +
                mFromServiceId + '," + mToServiceId + "] Code [" +
                mFromCodeScheme + '," + mToCodeScheme + "] " +
            (mSelected ? "ENABLED" : "DISABLED");