Error In Decoding Sms Cb Pdu
[log] [blame]/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package com.android.internal.telephony.gsm;import android.content.Context;import android.os.AsyncResult;import android.os.Message;import android.os.SystemProperties;import android.telephony.CellLocation;import android.telephony.SmsCbLocation;import android.telephony.SmsCbMessage;import android.telephony.gsm.GsmCellLocation;import com.android.internal.telephony.CellBroadcastHandler;import com.android.internal.telephony.PhoneBase;import com.android.internal.telephony.TelephonyProperties;import java.util.HashMap;import java.util.Iterator;/** * Handler for 3GPP format Cell Broadcasts. Parent class can also handle CDMA Cell Broadcasts. */public class GsmCellBroadcastHandler extends CellBroadcastHandler { private static final boolean VDBG = false; // log CB PDU data /** This map holds incomplete concatenated messages waiting for assembly. */ private final HashMap
[log] [blame]/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed https://chromium.googlesource.com/android_tools/+/e91e44dc29517115794a72eea554616d067925ae/sdk/sources/android-20/com/android/internal/telephony/gsm/GsmCellBroadcastHandler.java?autodive=0%2F%2F%2F%2F%2F%2F on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package com.android.internal.telephony.gsm;import android.content.Context;import android.os.AsyncResult;import android.os.Message;import android.os.SystemProperties;import android.telephony.CellLocation;import android.telephony.SmsCbLocation;import android.telephony.SmsCbMessage;import android.telephony.gsm.GsmCellLocation;import com.android.internal.telephony.CellBroadcastHandler;import com.android.internal.telephony.PhoneBase;import com.android.internal.telephony.TelephonyProperties;import java.util.HashMap;import java.util.Iterator;/** * Handler https://android.googlesource.com/platform/frameworks/opt/telephony/+/f39de086fddea9e9f6b8c56b04d8dd38a84237db/src/java/com/android/internal/telephony/gsm/GsmCellBroadcastHandler.java for 3GPP format Cell Broadcasts. Parent class can also handle CDMA Cell Broadcasts. */public class GsmCellBroadcastHandler extends CellBroadcastHandler { private static final boolean VDBG = false; // log CB PDU data /** This map holds incomplete concatenated messages waiting for assembly. */ private final HashMap
examples are extracted from open source projects. You can vote http://www.programcreek.com/java-api-examples/index.php?class=android.telephony.gsm.GsmCellLocation&method=getCid up the examples you like and your votes will be used in our system to product more good examples. → Go to Official Java Doc + Save this class to your library Example 1 Project: property-db File: error in GsmSmsCbMessage.java View source code 6 votes /** * Create a new SmsCbMessage object from a header object plus one or more received PDUs. * * @param pdus PDU bytes */ static SmsCbMessage createSmsCbMessage(SmsCbHeader header, SmsCbLocation location, byte[][] pdus) throws IllegalArgumentException { if (header.isEtwsPrimaryNotification()) { return new error in decoding SmsCbMessage(SmsCbMessage.MESSAGE_FORMAT_3GPP, header.getGeographicalScope(), header.getSerialNumber(), location, header.getServiceCategory(), null, "ETWS", SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, header.getEtwsInfo(), header.getCmasInfo()); } else { String language = null; StringBuilder sb = new StringBuilder(); for (byte[] pdu : pdus) { Pair
"xml", etc.