Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.android.internal.telephony;
- import android.content.Context;
- import android.content.pm.ApplicationInfo;
- import android.content.res.Resources;
- import android.hardware.radio.V1_0.Carrier;
- import android.hardware.radio.V1_0.CarrierRestrictions;
- import android.hardware.radio.V1_0.CdmaBroadcastSmsConfigInfo;
- import android.hardware.radio.V1_0.CdmaSignalStrength;
- import android.hardware.radio.V1_0.CdmaSmsAck;
- import android.hardware.radio.V1_0.CdmaSmsAddress;
- import android.hardware.radio.V1_0.CdmaSmsMessage;
- import android.hardware.radio.V1_0.CdmaSmsSubaddress;
- import android.hardware.radio.V1_0.CdmaSmsWriteArgs;
- import android.hardware.radio.V1_0.CellIdentityCdma;
- import android.hardware.radio.V1_0.CellIdentityGsm;
- import android.hardware.radio.V1_0.CellIdentityLte;
- import android.hardware.radio.V1_0.CellIdentityWcdma;
- import android.hardware.radio.V1_0.CellInfoCdma;
- import android.hardware.radio.V1_0.CellInfoGsm;
- import android.hardware.radio.V1_0.CellInfoLte;
- import android.hardware.radio.V1_0.CellInfoWcdma;
- import android.hardware.radio.V1_0.DataProfileInfo;
- import android.hardware.radio.V1_0.Dial;
- import android.hardware.radio.V1_0.EvdoSignalStrength;
- import android.hardware.radio.V1_0.GsmBroadcastSmsConfigInfo;
- import android.hardware.radio.V1_0.GsmSignalStrength;
- import android.hardware.radio.V1_0.GsmSmsMessage;
- import android.hardware.radio.V1_0.HardwareConfigModem;
- import android.hardware.radio.V1_0.HardwareConfigSim;
- import android.hardware.radio.V1_0.IRadio;
- import android.hardware.radio.V1_0.IccIo;
- import android.hardware.radio.V1_0.ImsSmsMessage;
- import android.hardware.radio.V1_0.LceDataInfo;
- import android.hardware.radio.V1_0.LteSignalStrength;
- import android.hardware.radio.V1_0.NvWriteItem;
- import android.hardware.radio.V1_0.RadioResponseInfo;
- import android.hardware.radio.V1_0.SelectUiccSub;
- import android.hardware.radio.V1_0.SetupDataCallResult;
- import android.hardware.radio.V1_0.SimApdu;
- import android.hardware.radio.V1_0.SmsWriteArgs;
- import android.hardware.radio.V1_0.TdScdmaSignalStrength;
- import android.hardware.radio.V1_0.UusInfo;
- import android.hardware.radio.V1_0.WcdmaSignalStrength;
- import android.hardware.radio.deprecated.V1_0.IOemHook;
- import android.net.ConnectivityManager;
- import android.os.AsyncResult;
- import android.os.Handler;
- import android.os.IHwBinder.DeathRecipient;
- import android.os.Message;
- import android.os.Parcel;
- import android.os.Parcelable.Creator;
- import android.os.PowerManager;
- import android.os.PowerManager.WakeLock;
- import android.os.Registrant;
- import android.os.RegistrantList;
- import android.os.RemoteException;
- import android.os.SystemClock;
- import android.os.SystemProperties;
- import android.os.WorkSource;
- import android.service.carrier.CarrierIdentifier;
- import android.telephony.ClientRequestStats;
- import android.telephony.ModemActivityInfo;
- import android.telephony.NeighboringCellInfo;
- import android.telephony.PhoneNumberUtils;
- import android.telephony.RadioAccessFamily;
- import android.telephony.Rlog;
- import android.telephony.TelephonyHistogram;
- import android.text.TextUtils;
- import android.util.SparseArray;
- import com.android.internal.telephony.cdma.CdmaInformationRecords;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaDisplayInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaLineControlInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaNumberInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaRedirectingNumberInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaSignalInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaT53AudioControlInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaT53ClirInfoRec;
- import com.android.internal.telephony.cdma.CdmaSmsBroadcastConfigInfo;
- import com.android.internal.telephony.dataconnection.DataCallResponse;
- import com.android.internal.telephony.dataconnection.DataProfile;
- import com.android.internal.telephony.gsm.SmsBroadcastConfigInfo;
- import com.android.internal.telephony.metrics.TelephonyMetrics;
- import com.android.internal.telephony.uicc.IccUtils;
- import com.android.internal.util.Preconditions;
- import java.io.ByteArrayInputStream;
- import java.io.DataInputStream;
- import java.io.IOException;
- import java.util.ArrayList;
- import java.util.Arrays;
- import java.util.Iterator;
- import java.util.List;
- import java.util.concurrent.atomic.AtomicBoolean;
- import java.util.concurrent.atomic.AtomicLong;
- public class RIL
- extends BaseCommands
- implements CommandsInterface
- {
- private static final int DEFAULT_ACK_WAKE_LOCK_TIMEOUT_MS = 200;
- private static final int DEFAULT_BLOCKING_MESSAGE_RESPONSE_TIMEOUT_MS = 2000;
- private static final int DEFAULT_WAKE_LOCK_TIMEOUT_MS = 60000;
- static final int EVENT_ACK_WAKE_LOCK_TIMEOUT = 4;
- static final int EVENT_BLOCKING_RESPONSE_TIMEOUT = 5;
- static final int EVENT_RADIO_PROXY_DEAD = 6;
- static final int EVENT_WAKE_LOCK_TIMEOUT = 2;
- public static final int FOR_ACK_WAKELOCK = 1;
- public static final int FOR_WAKELOCK = 0;
- static final String[] HIDL_SERVICE_NAME = { "slot1", "slot2", "slot3" };
- public static final int INVALID_WAKELOCK = -1;
- static final int IRADIO_GET_SERVICE_DELAY_MILLIS = 4000;
- static final String RILJ_ACK_WAKELOCK_NAME = "RILJ_ACK_WL";
- static final boolean RILJ_LOGD = true;
- static final boolean RILJ_LOGV = false;
- static final String RILJ_LOG_TAG = "RILJ";
- static final int RIL_HISTOGRAM_BUCKET_COUNT = 5;
- static SparseArray<TelephonyHistogram> mRilTimeHistograms = new SparseArray();
- final PowerManager.WakeLock mAckWakeLock;
- final int mAckWakeLockTimeout;
- volatile int mAckWlSequenceNum = 0;
- private WorkSource mActiveWakelockWorkSource;
- private final ClientWakelockTracker mClientWakelockTracker = new ClientWakelockTracker();
- protected boolean mIsMobileNetworkSupported;
- Object[] mLastNITZTimeInfo;
- private TelephonyMetrics mMetrics = TelephonyMetrics.getInstance();
- OemHookIndication mOemHookIndication;
- volatile IOemHook mOemHookProxy = null;
- OemHookResponse mOemHookResponse;
- final Integer mPhoneId;
- protected WorkSource mRILDefaultWorkSource;
- RadioIndication mRadioIndication;
- volatile IRadio mRadioProxy = null;
- final AtomicLong mRadioProxyCookie = new AtomicLong(0L);
- final RadioProxyDeathRecipient mRadioProxyDeathRecipient;
- RadioResponse mRadioResponse;
- SparseArray<RILRequest> mRequestList = new SparseArray();
- final RilHandler mRilHandler;
- AtomicBoolean mTestingEmergencyCall = new AtomicBoolean(false);
- final PowerManager.WakeLock mWakeLock;
- int mWakeLockCount;
- final int mWakeLockTimeout;
- volatile int mWlSequenceNum = 0;
- public RIL(Context paramContext, int paramInt1, int paramInt2)
- {
- this(paramContext, paramInt1, paramInt2, null);
- }
- public RIL(Context paramContext, int paramInt1, int paramInt2, Integer paramInteger)
- {
- super(paramContext);
- riljLog("RIL: init preferredNetworkType=" + paramInt1 + " cdmaSubscription=" + paramInt2 + ")");
- mContext = paramContext;
- mCdmaSubscription = paramInt2;
- mPreferredNetworkType = paramInt1;
- mPhoneType = 0;
- mPhoneId = paramInteger;
- mIsMobileNetworkSupported = ((ConnectivityManager)paramContext.getSystemService("connectivity")).isNetworkSupported(0);
- mRadioResponse = new RadioResponse(this);
- mRadioIndication = new RadioIndication(this);
- mOemHookResponse = new OemHookResponse(this);
- mOemHookIndication = new OemHookIndication(this);
- mRilHandler = new RilHandler();
- mRadioProxyDeathRecipient = new RadioProxyDeathRecipient();
- paramInteger = (PowerManager)paramContext.getSystemService("power");
- mWakeLock = paramInteger.newWakeLock(1, "RILJ");
- mWakeLock.setReferenceCounted(false);
- mAckWakeLock = paramInteger.newWakeLock(1, "RILJ_ACK_WL");
- mAckWakeLock.setReferenceCounted(false);
- mWakeLockTimeout = SystemProperties.getInt("ro.ril.wake_lock_timeout", 60000);
- mAckWakeLockTimeout = SystemProperties.getInt("ro.ril.wake_lock_timeout", 200);
- mWakeLockCount = 0;
- mRILDefaultWorkSource = new WorkSource(getApplicationInfouid, paramContext.getPackageName());
- TelephonyDevController.getInstance();
- TelephonyDevController.registerRIL(this);
- getRadioProxy(null);
- getOemHookProxy(null);
- }
- private void acquireWakeLock(RILRequest paramRILRequest, int paramInt)
- {
- for (;;)
- {
- Object localObject3;
- try
- {
- if (mWakeLockType != -1)
- {
- ??? = new java/lang/StringBuilder;
- ((StringBuilder)???).<init>();
- Rlog.d("RILJ", "Failed to aquire wakelock for " + paramRILRequest.serialString());
- return;
- }
- switch (paramInt)
- {
- default:
- ??? = new java/lang/StringBuilder;
- ((StringBuilder)???).<init>();
- Rlog.w("RILJ", "Acquiring Invalid Wakelock type " + paramInt);
- return;
- }
- }
- finally {}
- synchronized (mWakeLock)
- {
- mWakeLock.acquire();
- mWakeLockCount += 1;
- mWlSequenceNum += 1;
- localObject3 = getWorkSourceClientId(mWorkSource);
- if (!mClientWakelockTracker.isClientActive((String)localObject3))
- {
- if (mActiveWakelockWorkSource != null)
- {
- mActiveWakelockWorkSource.add(mWorkSource);
- mWakeLock.setWorkSource(mActiveWakelockWorkSource);
- }
- }
- else
- {
- mClientWakelockTracker.startTracking(mClientId, mRequest, mSerial, mWakeLockCount);
- localObject3 = mRilHandler.obtainMessage(2);
- arg1 = mWlSequenceNum;
- mRilHandler.sendMessageDelayed((Message)localObject3, mWakeLockTimeout);
- mWakeLockType = paramInt;
- return;
- }
- mActiveWakelockWorkSource = mWorkSource;
- }
- synchronized (mAckWakeLock)
- {
- mAckWakeLock.acquire();
- mAckWlSequenceNum += 1;
- Message localMessage = mRilHandler.obtainMessage(4);
- arg1 = mAckWlSequenceNum;
- mRilHandler.sendMessageDelayed(localMessage, mAckWakeLockTimeout);
- }
- }
- }
- private void addRequest(RILRequest paramRILRequest)
- {
- acquireWakeLock(paramRILRequest, 0);
- synchronized (mRequestList)
- {
- mStartTimeMs = SystemClock.elapsedRealtime();
- mRequestList.append(mSerial, paramRILRequest);
- return;
- }
- }
- private void addToRilHistogram(RILRequest paramRILRequest)
- {
- int i = (int)(SystemClock.elapsedRealtime() - mStartTimeMs);
- synchronized (mRilTimeHistograms)
- {
- TelephonyHistogram localTelephonyHistogram1 = (TelephonyHistogram)mRilTimeHistograms.get(mRequest);
- TelephonyHistogram localTelephonyHistogram2 = localTelephonyHistogram1;
- if (localTelephonyHistogram1 == null)
- {
- localTelephonyHistogram2 = new android/telephony/TelephonyHistogram;
- localTelephonyHistogram2.<init>(1, mRequest, 5);
- mRilTimeHistograms.put(mRequest, localTelephonyHistogram2);
- }
- localTelephonyHistogram2.addTimeTaken(i);
- return;
- }
- }
- public static byte[] arrayListToPrimitiveArray(ArrayList<Byte> paramArrayList)
- {
- byte[] arrayOfByte = new byte[paramArrayList.size()];
- for (int i = 0; i < arrayOfByte.length; i++) {
- arrayOfByte[i] = ((Byte)paramArrayList.get(i)).byteValue();
- }
- return arrayOfByte;
- }
- private void clearRequestList(int paramInt, boolean paramBoolean)
- {
- synchronized (mRequestList)
- {
- int i = mRequestList.size();
- StringBuilder localStringBuilder;
- if (paramBoolean)
- {
- localStringBuilder = new java/lang/StringBuilder;
- localStringBuilder.<init>();
- Rlog.d("RILJ", "clearRequestList mWakeLockCount=" + mWakeLockCount + " mRequestList=" + i);
- }
- for (int j = 0; j < i; j++)
- {
- RILRequest localRILRequest = (RILRequest)mRequestList.valueAt(j);
- if (paramBoolean)
- {
- localStringBuilder = new java/lang/StringBuilder;
- localStringBuilder.<init>();
- Rlog.d("RILJ", j + ": [" + mSerial + "] " + requestToString(mRequest));
- }
- localRILRequest.onError(paramInt, null);
- decrementWakeLock(localRILRequest);
- localRILRequest.release();
- }
- mRequestList.clear();
- return;
- }
- }
- private boolean clearWakeLock(int paramInt)
- {
- boolean bool;
- if (paramInt == 0) {
- synchronized (mWakeLock)
- {
- if (mWakeLockCount == 0)
- {
- bool = mWakeLock.isHeld();
- if ((bool ^ true)) {
- return false;
- }
- }
- StringBuilder localStringBuilder = new java/lang/StringBuilder;
- localStringBuilder.<init>();
- Rlog.d("RILJ", "NOTE: mWakeLockCount is " + mWakeLockCount + "at time of clearing");
- mWakeLockCount = 0;
- mWakeLock.release();
- mClientWakelockTracker.stopTrackingAll();
- mActiveWakelockWorkSource = null;
- return true;
- }
- }
- synchronized (mAckWakeLock)
- {
- bool = mAckWakeLock.isHeld();
- if (!bool) {
- return false;
- }
- mAckWakeLock.release();
- return true;
- }
- }
- private void constructCdmaSendSmsRilRequest(CdmaSmsMessage paramCdmaSmsMessage, byte[] paramArrayOfByte)
- {
- boolean bool1 = true;
- DataInputStream localDataInputStream = new DataInputStream(new ByteArrayInputStream(paramArrayOfByte));
- try
- {
- teleserviceId = localDataInputStream.readInt();
- if ((byte)localDataInputStream.readInt() == 1) {}
- for (boolean bool2 = true;; bool2 = false)
- {
- isServicePresent = bool2;
- serviceCategory = localDataInputStream.readInt();
- address.digitMode = localDataInputStream.read();
- address.numberMode = localDataInputStream.read();
- address.numberType = localDataInputStream.read();
- address.numberPlan = localDataInputStream.read();
- i = (byte)localDataInputStream.read();
- for (j = 0; j < i; j++) {
- address.digits.add(Byte.valueOf(localDataInputStream.readByte()));
- }
- }
- subAddress.subaddressType = localDataInputStream.read();
- paramArrayOfByte = subAddress;
- if ((byte)localDataInputStream.read() == 1) {}
- for (bool2 = bool1;; bool2 = false)
- {
- odd = bool2;
- i = (byte)localDataInputStream.read();
- for (j = 0; j < i; j++) {
- subAddress.digits.add(Byte.valueOf(localDataInputStream.readByte()));
- }
- }
- int i = localDataInputStream.read();
- for (int j = 0; j < i; j++) {
- bearerData.add(Byte.valueOf(localDataInputStream.readByte()));
- }
- return;
- }
- catch (IOException paramCdmaSmsMessage)
- {
- riljLog("sendSmsCdma: conversion from input stream to object failed: " + paramCdmaSmsMessage);
- }
- }
- private GsmSmsMessage constructGsmSendSmsRilRequest(String paramString1, String paramString2)
- {
- GsmSmsMessage localGsmSmsMessage = new GsmSmsMessage();
- String str = paramString1;
- if (paramString1 == null) {
- str = "";
- }
- smscPdu = str;
- paramString1 = paramString2;
- if (paramString2 == null) {
- paramString1 = "";
- }
- pdu = paramString1;
- return localGsmSmsMessage;
- }
- static DataCallResponse convertDataCallResult(SetupDataCallResult paramSetupDataCallResult)
- {
- return new DataCallResponse(status, suggestedRetryTime, cid, active, type, ifname, addresses, dnses, gateways, pcscf, mtu);
- }
- static ArrayList<android.telephony.CellInfo> convertHalCellInfoList(ArrayList<android.hardware.radio.V1_0.CellInfo> paramArrayList)
- {
- ArrayList localArrayList = new ArrayList(paramArrayList.size());
- paramArrayList = paramArrayList.iterator();
- if (paramArrayList.hasNext())
- {
- Object localObject = (android.hardware.radio.V1_0.CellInfo)paramArrayList.next();
- Parcel localParcel = Parcel.obtain();
- localParcel.writeInt(cellInfoType);
- if (registered) {}
- for (int i = 1;; i = 0)
- {
- localParcel.writeInt(i);
- localParcel.writeInt(timeStampType);
- localParcel.writeLong(timeStamp);
- switch (cellInfoType)
- {
- default:
- throw new RuntimeException("unexpected cellinfotype: " + cellInfoType);
- }
- }
- localObject = (CellInfoGsm)gsm.get(0);
- localParcel.writeInt(Integer.parseInt(cellIdentityGsm.mcc));
- localParcel.writeInt(Integer.parseInt(cellIdentityGsm.mnc));
- localParcel.writeInt(cellIdentityGsm.lac);
- localParcel.writeInt(cellIdentityGsm.cid);
- localParcel.writeInt(cellIdentityGsm.arfcn);
- localParcel.writeInt(Byte.toUnsignedInt(cellIdentityGsm.bsic));
- localParcel.writeInt(signalStrengthGsm.signalStrength);
- localParcel.writeInt(signalStrengthGsm.bitErrorRate);
- localParcel.writeInt(signalStrengthGsm.timingAdvance);
- for (;;)
- {
- localParcel.setDataPosition(0);
- localObject = (android.telephony.CellInfo)android.telephony.CellInfo.CREATOR.createFromParcel(localParcel);
- localParcel.recycle();
- localArrayList.add(localObject);
- break;
- localObject = (CellInfoCdma)cdma.get(0);
- localParcel.writeInt(cellIdentityCdma.networkId);
- localParcel.writeInt(cellIdentityCdma.systemId);
- localParcel.writeInt(cellIdentityCdma.baseStationId);
- localParcel.writeInt(cellIdentityCdma.longitude);
- localParcel.writeInt(cellIdentityCdma.latitude);
- localParcel.writeInt(signalStrengthCdma.dbm);
- localParcel.writeInt(signalStrengthCdma.ecio);
- localParcel.writeInt(signalStrengthEvdo.dbm);
- localParcel.writeInt(signalStrengthEvdo.ecio);
- localParcel.writeInt(signalStrengthEvdo.signalNoiseRatio);
- continue;
- localObject = (CellInfoLte)lte.get(0);
- localParcel.writeInt(Integer.parseInt(cellIdentityLte.mcc));
- localParcel.writeInt(Integer.parseInt(cellIdentityLte.mnc));
- localParcel.writeInt(cellIdentityLte.ci);
- localParcel.writeInt(cellIdentityLte.pci);
- localParcel.writeInt(cellIdentityLte.tac);
- localParcel.writeInt(cellIdentityLte.earfcn);
- localParcel.writeInt(signalStrengthLte.signalStrength);
- localParcel.writeInt(signalStrengthLte.rsrp);
- localParcel.writeInt(signalStrengthLte.rsrq);
- localParcel.writeInt(signalStrengthLte.rssnr);
- localParcel.writeInt(signalStrengthLte.cqi);
- localParcel.writeInt(signalStrengthLte.timingAdvance);
- continue;
- localObject = (CellInfoWcdma)wcdma.get(0);
- localParcel.writeInt(Integer.parseInt(cellIdentityWcdma.mcc));
- localParcel.writeInt(Integer.parseInt(cellIdentityWcdma.mnc));
- localParcel.writeInt(cellIdentityWcdma.lac);
- localParcel.writeInt(cellIdentityWcdma.cid);
- localParcel.writeInt(cellIdentityWcdma.psc);
- localParcel.writeInt(cellIdentityWcdma.uarfcn);
- localParcel.writeInt(signalStrengthWcdma.signalStrength);
- localParcel.writeInt(signalStrengthWcdma.bitErrorRate);
- }
- }
- return localArrayList;
- }
- static ArrayList<HardwareConfig> convertHalHwConfigList(ArrayList<android.hardware.radio.V1_0.HardwareConfig> paramArrayList, RIL paramRIL)
- {
- paramRIL = new ArrayList(paramArrayList.size());
- Iterator localIterator = paramArrayList.iterator();
- if (localIterator.hasNext())
- {
- android.hardware.radio.V1_0.HardwareConfig localHardwareConfig = (android.hardware.radio.V1_0.HardwareConfig)localIterator.next();
- int i = type;
- switch (i)
- {
- default:
- throw new RuntimeException("RIL_REQUEST_GET_HARDWARE_CONFIG invalid hardward type:" + i);
- case 0:
- paramArrayList = new HardwareConfig(i);
- HardwareConfigModem localHardwareConfigModem = (HardwareConfigModem)modem.get(0);
- paramArrayList.assignModem(uuid, state, rilModel, rat, maxVoice, maxData, maxStandby);
- }
- for (;;)
- {
- paramRIL.add(paramArrayList);
- break;
- paramArrayList = new HardwareConfig(i);
- paramArrayList.assignSim(uuid, state, sim.get(0)).modemUuid);
- }
- }
- return paramRIL;
- }
- static ArrayList<Integer> convertHalLceData(LceDataInfo paramLceDataInfo, RIL paramRIL)
- {
- ArrayList localArrayList = new ArrayList();
- int i = lastHopCapacityKbps;
- int j = Byte.toUnsignedInt(confidenceLevel);
- if (lceSuspended) {}
- for (int k = 1;; k = 0)
- {
- paramRIL.riljLog("LCE capacity information received: capacity=" + i + " confidence=" + j + " lceSuspended=" + k);
- localArrayList.add(Integer.valueOf(i));
- localArrayList.add(Integer.valueOf(j));
- localArrayList.add(Integer.valueOf(k));
- return localArrayList;
- }
- }
- static RadioCapability convertHalRadioCapability(android.hardware.radio.V1_0.RadioCapability paramRadioCapability, RIL paramRIL)
- {
- int i = session;
- int j = phase;
- int k = raf;
- String str = logicalModemUuid;
- int m = status;
- paramRIL.riljLog("convertHalRadioCapability: session=" + i + ", phase=" + j + ", rat=" + k + ", logicModemUuid=" + str + ", status=" + m);
- return new RadioCapability(mPhoneId.intValue(), i, j, k, str, m);
- }
- static android.telephony.SignalStrength convertHalSignalStrength(android.hardware.radio.V1_0.SignalStrength paramSignalStrength)
- {
- return new android.telephony.SignalStrength(gw.signalStrength, gw.bitErrorRate, cdma.dbm, cdma.ecio, evdo.dbm, evdo.ecio, evdo.signalNoiseRatio, lte.signalStrength, lte.rsrp, lte.rsrq, lte.rssnr, lte.cqi, tdScdma.rscp, false);
- }
- private String convertNullToEmptyString(String paramString)
- {
- if (paramString != null) {}
- for (;;)
- {
- return paramString;
- paramString = "";
- }
- }
- private static DataProfileInfo convertToHalDataProfile(DataProfile paramDataProfile)
- {
- DataProfileInfo localDataProfileInfo = new DataProfileInfo();
- profileId = profileId;
- apn = apn;
- protocol = protocol;
- roamingProtocol = roamingProtocol;
- authType = authType;
- user = user;
- password = password;
- type = type;
- maxConnsTime = maxConnsTime;
- maxConns = maxConns;
- waitTime = waitTime;
- enabled = enabled;
- supportedApnTypesBitmap = supportedApnTypesBitmap;
- bearerBitmap = bearerBitmap;
- mtu = mtu;
- mvnoType = convertToHalMvnoType(mvnoType);
- mvnoMatchData = mvnoMatchData;
- return localDataProfileInfo;
- }
- private static int convertToHalMvnoType(String paramString)
- {
- if (paramString.equals("imsi")) {
- return 1;
- }
- if (paramString.equals("gid")) {
- return 2;
- }
- if (paramString.equals("spn")) {
- return 3;
- }
- return 0;
- }
- private static int convertToHalResetNvType(int paramInt)
- {
- switch (paramInt)
- {
- default:
- return -1;
- case 1:
- return 0;
- case 2:
- return 1;
- }
- return 2;
- }
- private SimApdu createSimApdu(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, String paramString)
- {
- SimApdu localSimApdu = new SimApdu();
- sessionId = paramInt1;
- cla = paramInt2;
- instruction = paramInt3;
- p1 = paramInt4;
- p2 = paramInt5;
- p3 = paramInt6;
- data = convertNullToEmptyString(paramString);
- return localSimApdu;
- }
- /* Error */
- private void decrementWakeLock(RILRequest paramRILRequest)
- {
- // Byte code:
- // 0: iconst_0
- // 1: istore_2
- // 2: aload_1
- // 3: monitorenter
- // 4: aload_1
- // 5: getfield 342 com/android/internal/telephony/RILRequest:mWakeLockType I
- // 8: tableswitch default:+28->36, -1:+59->67, 0:+67->75, 1:+59->67
- // 36: new 196 java/lang/StringBuilder
- // 39: astore_3
- // 40: aload_3
- // 41: invokespecial 197 java/lang/StringBuilder:<init> ()V
- // 44: ldc 47
- // 46: aload_3
- // 47: ldc_w 1141
- // 50: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 53: aload_1
- // 54: getfield 342 com/android/internal/telephony/RILRequest:mWakeLockType I
- // 57: invokevirtual 206 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 60: invokevirtual 214 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 63: invokestatic 358 android/telephony/Rlog:w (Ljava/lang/String;Ljava/lang/String;)I
- // 66: pop
- // 67: aload_1
- // 68: iconst_m1
- // 69: putfield 342 com/android/internal/telephony/RILRequest:mWakeLockType I
- // 72: aload_1
- // 73: monitorexit
- // 74: return
- // 75: aload_0
- // 76: getfield 286 com/android/internal/telephony/RIL:mWakeLock Landroid/os/PowerManager$WakeLock;
- // 79: astore_3
- // 80: aload_3
- // 81: monitorenter
- // 82: aload_0
- // 83: getfield 164 com/android/internal/telephony/RIL:mClientWakelockTracker Lcom/android/internal/telephony/ClientWakelockTracker;
- // 86: astore 4
- // 88: aload_1
- // 89: getfield 385 com/android/internal/telephony/RILRequest:mClientId Ljava/lang/String;
- // 92: astore 5
- // 94: aload_1
- // 95: getfield 388 com/android/internal/telephony/RILRequest:mRequest I
- // 98: istore 6
- // 100: aload_1
- // 101: getfield 391 com/android/internal/telephony/RILRequest:mSerial I
- // 104: istore 7
- // 106: aload_0
- // 107: getfield 307 com/android/internal/telephony/RIL:mWakeLockCount I
- // 110: iconst_1
- // 111: if_icmple +10 -> 121
- // 114: aload_0
- // 115: getfield 307 com/android/internal/telephony/RIL:mWakeLockCount I
- // 118: iconst_1
- // 119: isub
- // 120: istore_2
- // 121: aload 4
- // 123: aload 5
- // 125: iload 6
- // 127: iload 7
- // 129: iload_2
- // 130: invokevirtual 1144 com/android/internal/telephony/ClientWakelockTracker:stopTracking (Ljava/lang/String;III)V
- // 133: aload_0
- // 134: aload_1
- // 135: getfield 364 com/android/internal/telephony/RILRequest:mWorkSource Landroid/os/WorkSource;
- // 138: invokespecial 368 com/android/internal/telephony/RIL:getWorkSourceClientId (Landroid/os/WorkSource;)Ljava/lang/String;
- // 141: astore 4
- // 143: aload_0
- // 144: getfield 164 com/android/internal/telephony/RIL:mClientWakelockTracker Lcom/android/internal/telephony/ClientWakelockTracker;
- // 147: aload 4
- // 149: invokevirtual 372 com/android/internal/telephony/ClientWakelockTracker:isClientActive (Ljava/lang/String;)Z
- // 152: ifne +48 -> 200
- // 155: aload_0
- // 156: getfield 374 com/android/internal/telephony/RIL:mActiveWakelockWorkSource Landroid/os/WorkSource;
- // 159: ifnull +41 -> 200
- // 162: aload_0
- // 163: getfield 374 com/android/internal/telephony/RIL:mActiveWakelockWorkSource Landroid/os/WorkSource;
- // 166: aload_1
- // 167: getfield 364 com/android/internal/telephony/RILRequest:mWorkSource Landroid/os/WorkSource;
- // 170: invokevirtual 1147 android/os/WorkSource:remove (Landroid/os/WorkSource;)Z
- // 173: pop
- // 174: aload_0
- // 175: getfield 374 com/android/internal/telephony/RIL:mActiveWakelockWorkSource Landroid/os/WorkSource;
- // 178: invokevirtual 1148 android/os/WorkSource:size ()I
- // 181: ifne +8 -> 189
- // 184: aload_0
- // 185: aconst_null
- // 186: putfield 374 com/android/internal/telephony/RIL:mActiveWakelockWorkSource Landroid/os/WorkSource;
- // 189: aload_0
- // 190: getfield 286 com/android/internal/telephony/RIL:mWakeLock Landroid/os/PowerManager$WakeLock;
- // 193: aload_0
- // 194: getfield 374 com/android/internal/telephony/RIL:mActiveWakelockWorkSource Landroid/os/WorkSource;
- // 197: invokevirtual 382 android/os/PowerManager$WakeLock:setWorkSource (Landroid/os/WorkSource;)V
- // 200: aload_0
- // 201: getfield 307 com/android/internal/telephony/RIL:mWakeLockCount I
- // 204: iconst_1
- // 205: if_icmple +23 -> 228
- // 208: aload_0
- // 209: aload_0
- // 210: getfield 307 com/android/internal/telephony/RIL:mWakeLockCount I
- // 213: iconst_1
- // 214: isub
- // 215: putfield 307 com/android/internal/telephony/RIL:mWakeLockCount I
- // 218: aload_3
- // 219: monitorexit
- // 220: goto -153 -> 67
- // 223: astore_3
- // 224: aload_1
- // 225: monitorexit
- // 226: aload_3
- // 227: athrow
- // 228: aload_0
- // 229: iconst_0
- // 230: putfield 307 com/android/internal/telephony/RIL:mWakeLockCount I
- // 233: aload_0
- // 234: getfield 286 com/android/internal/telephony/RIL:mWakeLock Landroid/os/PowerManager$WakeLock;
- // 237: invokevirtual 494 android/os/PowerManager$WakeLock:release ()V
- // 240: goto -22 -> 218
- // 243: astore 4
- // 245: aload_3
- // 246: monitorexit
- // 247: aload 4
- // 249: athrow
- // Local variable table:
- // start length slot name signature
- // 0 250 0 this RIL
- // 0 250 1 paramRILRequest RILRequest
- // 1 129 2 i int
- // 223 23 3 localObject2 Object
- // 86 62 4 localObject3 Object
- // 243 5 4 localObject4 Object
- // 92 32 5 str String
- // 98 28 6 j int
- // 104 24 7 k int
- // Exception table:
- // from to target type
- // 4 36 223 finally
- // 36 67 223 finally
- // 67 72 223 finally
- // 75 82 223 finally
- // 218 220 223 finally
- // 245 250 223 finally
- // 82 106 243 finally
- // 106 121 243 finally
- // 121 189 243 finally
- // 189 200 243 finally
- // 200 218 243 finally
- // 228 240 243 finally
- }
- private RILRequest findAndRemoveRequestFromList(int paramInt)
- {
- synchronized (mRequestList)
- {
- RILRequest localRILRequest = (RILRequest)mRequestList.get(paramInt);
- if (localRILRequest != null) {
- mRequestList.remove(paramInt);
- }
- return localRILRequest;
- }
- }
- private WorkSource getDeafultWorkSourceIfInvalid(WorkSource paramWorkSource)
- {
- WorkSource localWorkSource = paramWorkSource;
- if (paramWorkSource == null) {
- localWorkSource = mRILDefaultWorkSource;
- }
- return localWorkSource;
- }
- private IOemHook getOemHookProxy(Message paramMessage)
- {
- if (!mIsMobileNetworkSupported)
- {
- if (paramMessage != null)
- {
- AsyncResult.forMessage(paramMessage, null, CommandException.fromRilErrno(1));
- paramMessage.sendToTarget();
- }
- return null;
- }
- if (mOemHookProxy != null) {
- return mOemHookProxy;
- }
- for (;;)
- {
- try
- {
- String[] arrayOfString = HIDL_SERVICE_NAME;
- if (mPhoneId != null) {
- continue;
- }
- i = 0;
- mOemHookProxy = IOemHook.getService(arrayOfString[i]);
- if (mOemHookProxy == null) {
- continue;
- }
- mOemHookProxy.setResponseFunctions(mOemHookResponse, mOemHookIndication);
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- int i;
- mOemHookProxy = null;
- riljLoge("OemHookProxy getService/setResponseFunctions: " + localRemoteException);
- continue;
- }
- if (mOemHookProxy == null)
- {
- if (paramMessage != null)
- {
- AsyncResult.forMessage(paramMessage, null, CommandException.fromRilErrno(1));
- paramMessage.sendToTarget();
- }
- mRilHandler.sendMessageDelayed(mRilHandler.obtainMessage(6, Long.valueOf(mRadioProxyCookie.incrementAndGet())), 4000L);
- }
- return mOemHookProxy;
- i = mPhoneId.intValue();
- continue;
- riljLoge("getOemHookProxy: mOemHookProxy == null");
- }
- }
- private IRadio getRadioProxy(Message paramMessage)
- {
- if (!mIsMobileNetworkSupported)
- {
- if (paramMessage != null)
- {
- AsyncResult.forMessage(paramMessage, null, CommandException.fromRilErrno(1));
- paramMessage.sendToTarget();
- }
- return null;
- }
- if (mRadioProxy != null) {
- return mRadioProxy;
- }
- for (;;)
- {
- try
- {
- String[] arrayOfString = HIDL_SERVICE_NAME;
- if (mPhoneId != null) {
- continue;
- }
- i = 0;
- mRadioProxy = IRadio.getService(arrayOfString[i]);
- if (mRadioProxy == null) {
- continue;
- }
- mRadioProxy.linkToDeath(mRadioProxyDeathRecipient, mRadioProxyCookie.incrementAndGet());
- mRadioProxy.setResponseFunctions(mRadioResponse, mRadioIndication);
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- int i;
- mRadioProxy = null;
- riljLoge("RadioProxy getService/setResponseFunctions: " + localRemoteException);
- continue;
- }
- if (mRadioProxy == null)
- {
- if (paramMessage != null)
- {
- AsyncResult.forMessage(paramMessage, null, CommandException.fromRilErrno(1));
- paramMessage.sendToTarget();
- }
- mRilHandler.sendMessageDelayed(mRilHandler.obtainMessage(6, Long.valueOf(mRadioProxyCookie.incrementAndGet())), 4000L);
- }
- return mRadioProxy;
- i = mPhoneId.intValue();
- continue;
- riljLoge("getRadioProxy: mRadioProxy == null");
- }
- }
- private static Object getResponseForTimedOutRILRequest(RILRequest paramRILRequest)
- {
- if (paramRILRequest == null) {
- return null;
- }
- Object localObject = null;
- switch (mRequest)
- {
- }
- for (paramRILRequest = localObject;; paramRILRequest = new ModemActivityInfo(0L, 0, 0, new int[5], 0, 0)) {
- return paramRILRequest;
- }
- }
- public static List<TelephonyHistogram> getTelephonyRILTimingHistograms()
- {
- synchronized (mRilTimeHistograms)
- {
- ArrayList localArrayList = new java/util/ArrayList;
- localArrayList.<init>(mRilTimeHistograms.size());
- for (int i = 0; i < mRilTimeHistograms.size(); i++)
- {
- TelephonyHistogram localTelephonyHistogram = new android/telephony/TelephonyHistogram;
- localTelephonyHistogram.<init>((TelephonyHistogram)mRilTimeHistograms.valueAt(i));
- localArrayList.add(localTelephonyHistogram);
- }
- return localArrayList;
- }
- }
- private String getWorkSourceClientId(WorkSource paramWorkSource)
- {
- if (paramWorkSource != null) {
- return String.valueOf(paramWorkSource.get(0)) + ":" + paramWorkSource.getName(0);
- }
- return null;
- }
- private void handleRadioProxyExceptionForRR(RILRequest paramRILRequest, String paramString, Exception paramException)
- {
- riljLoge(paramString + ": " + paramException);
- resetProxyAndRequestList();
- mRilHandler.sendMessageDelayed(mRilHandler.obtainMessage(6, Long.valueOf(mRadioProxyCookie.incrementAndGet())), 4000L);
- }
- private RILRequest obtainRequest(int paramInt, Message paramMessage, WorkSource paramWorkSource)
- {
- paramMessage = RILRequest.obtain(paramInt, paramMessage, paramWorkSource);
- addRequest(paramMessage);
- return paramMessage;
- }
- public static ArrayList<Byte> primitiveArrayToArrayList(byte[] paramArrayOfByte)
- {
- ArrayList localArrayList = new ArrayList(paramArrayOfByte.length);
- int i = 0;
- int j = paramArrayOfByte.length;
- while (i < j)
- {
- localArrayList.add(Byte.valueOf(paramArrayOfByte[i]));
- i++;
- }
- return localArrayList;
- }
- static String requestToString(int paramInt)
- {
- switch (paramInt)
- {
- default:
- return "<unknown request>";
- case 1:
- return "GET_SIM_STATUS";
- case 2:
- return "ENTER_SIM_PIN";
- case 3:
- return "ENTER_SIM_PUK";
- case 4:
- return "ENTER_SIM_PIN2";
- case 5:
- return "ENTER_SIM_PUK2";
- case 6:
- return "CHANGE_SIM_PIN";
- case 7:
- return "CHANGE_SIM_PIN2";
- case 8:
- return "ENTER_NETWORK_DEPERSONALIZATION";
- case 9:
- return "GET_CURRENT_CALLS";
- case 10:
- return "DIAL";
- case 11:
- return "GET_IMSI";
- case 12:
- return "HANGUP";
- case 13:
- return "HANGUP_WAITING_OR_BACKGROUND";
- case 14:
- return "HANGUP_FOREGROUND_RESUME_BACKGROUND";
- case 15:
- return "REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE";
- case 16:
- return "CONFERENCE";
- case 17:
- return "UDUB";
- case 18:
- return "LAST_CALL_FAIL_CAUSE";
- case 19:
- return "SIGNAL_STRENGTH";
- case 20:
- return "VOICE_REGISTRATION_STATE";
- case 21:
- return "DATA_REGISTRATION_STATE";
- case 22:
- return "OPERATOR";
- case 23:
- return "RADIO_POWER";
- case 24:
- return "DTMF";
- case 25:
- return "SEND_SMS";
- case 26:
- return "SEND_SMS_EXPECT_MORE";
- case 27:
- return "SETUP_DATA_CALL";
- case 28:
- return "SIM_IO";
- case 29:
- return "SEND_USSD";
- case 30:
- return "CANCEL_USSD";
- case 31:
- return "GET_CLIR";
- case 32:
- return "SET_CLIR";
- case 33:
- return "QUERY_CALL_FORWARD_STATUS";
- case 34:
- return "SET_CALL_FORWARD";
- case 35:
- return "QUERY_CALL_WAITING";
- case 36:
- return "SET_CALL_WAITING";
- case 37:
- return "SMS_ACKNOWLEDGE";
- case 38:
- return "GET_IMEI";
- case 39:
- return "GET_IMEISV";
- case 40:
- return "ANSWER";
- case 41:
- return "DEACTIVATE_DATA_CALL";
- case 42:
- return "QUERY_FACILITY_LOCK";
- case 43:
- return "SET_FACILITY_LOCK";
- case 44:
- return "CHANGE_BARRING_PASSWORD";
- case 45:
- return "QUERY_NETWORK_SELECTION_MODE";
- case 46:
- return "SET_NETWORK_SELECTION_AUTOMATIC";
- case 47:
- return "SET_NETWORK_SELECTION_MANUAL";
- case 48:
- return "QUERY_AVAILABLE_NETWORKS ";
- case 49:
- return "DTMF_START";
- case 50:
- return "DTMF_STOP";
- case 51:
- return "BASEBAND_VERSION";
- case 52:
- return "SEPARATE_CONNECTION";
- case 53:
- return "SET_MUTE";
- case 54:
- return "GET_MUTE";
- case 55:
- return "QUERY_CLIP";
- case 56:
- return "LAST_DATA_CALL_FAIL_CAUSE";
- case 57:
- return "DATA_CALL_LIST";
- case 58:
- return "RESET_RADIO";
- case 59:
- return "OEM_HOOK_RAW";
- case 60:
- return "OEM_HOOK_STRINGS";
- case 61:
- return "SCREEN_STATE";
- case 62:
- return "SET_SUPP_SVC_NOTIFICATION";
- case 63:
- return "WRITE_SMS_TO_SIM";
- case 64:
- return "DELETE_SMS_ON_SIM";
- case 65:
- return "SET_BAND_MODE";
- case 66:
- return "QUERY_AVAILABLE_BAND_MODE";
- case 67:
- return "REQUEST_STK_GET_PROFILE";
- case 68:
- return "REQUEST_STK_SET_PROFILE";
- case 69:
- return "REQUEST_STK_SEND_ENVELOPE_COMMAND";
- case 70:
- return "REQUEST_STK_SEND_TERMINAL_RESPONSE";
- case 71:
- return "REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM";
- case 72:
- return "REQUEST_EXPLICIT_CALL_TRANSFER";
- case 73:
- return "REQUEST_SET_PREFERRED_NETWORK_TYPE";
- case 74:
- return "REQUEST_GET_PREFERRED_NETWORK_TYPE";
- case 75:
- return "REQUEST_GET_NEIGHBORING_CELL_IDS";
- case 76:
- return "REQUEST_SET_LOCATION_UPDATES";
- case 77:
- return "RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE";
- case 78:
- return "RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE";
- case 79:
- return "RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE";
- case 80:
- return "RIL_REQUEST_SET_TTY_MODE";
- case 81:
- return "RIL_REQUEST_QUERY_TTY_MODE";
- case 82:
- return "RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE";
- case 83:
- return "RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE";
- case 84:
- return "RIL_REQUEST_CDMA_FLASH";
- case 85:
- return "RIL_REQUEST_CDMA_BURST_DTMF";
- case 87:
- return "RIL_REQUEST_CDMA_SEND_SMS";
- case 88:
- return "RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE";
- case 89:
- return "RIL_REQUEST_GSM_GET_BROADCAST_CONFIG";
- case 90:
- return "RIL_REQUEST_GSM_SET_BROADCAST_CONFIG";
- case 92:
- return "RIL_REQUEST_CDMA_GET_BROADCAST_CONFIG";
- case 93:
- return "RIL_REQUEST_CDMA_SET_BROADCAST_CONFIG";
- case 91:
- return "RIL_REQUEST_GSM_BROADCAST_ACTIVATION";
- case 86:
- return "RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY";
- case 94:
- return "RIL_REQUEST_CDMA_BROADCAST_ACTIVATION";
- case 95:
- return "RIL_REQUEST_CDMA_SUBSCRIPTION";
- case 96:
- return "RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM";
- case 97:
- return "RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM";
- case 98:
- return "RIL_REQUEST_DEVICE_IDENTITY";
- case 100:
- return "RIL_REQUEST_GET_SMSC_ADDRESS";
- case 101:
- return "RIL_REQUEST_SET_SMSC_ADDRESS";
- case 99:
- return "REQUEST_EXIT_EMERGENCY_CALLBACK_MODE";
- case 102:
- return "RIL_REQUEST_REPORT_SMS_MEMORY_STATUS";
- case 103:
- return "RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING";
- case 104:
- return "RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE";
- case 105:
- return "RIL_REQUEST_ISIM_AUTHENTICATION";
- case 106:
- return "RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU";
- case 107:
- return "RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS";
- case 108:
- return "RIL_REQUEST_VOICE_RADIO_TECH";
- case 109:
- return "RIL_REQUEST_GET_CELL_INFO_LIST";
- case 110:
- return "RIL_REQUEST_SET_CELL_INFO_LIST_RATE";
- case 111:
- return "RIL_REQUEST_SET_INITIAL_ATTACH_APN";
- case 128:
- return "RIL_REQUEST_SET_DATA_PROFILE";
- case 112:
- return "RIL_REQUEST_IMS_REGISTRATION_STATE";
- case 113:
- return "RIL_REQUEST_IMS_SEND_SMS";
- case 114:
- return "RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC";
- case 115:
- return "RIL_REQUEST_SIM_OPEN_CHANNEL";
- case 116:
- return "RIL_REQUEST_SIM_CLOSE_CHANNEL";
- case 117:
- return "RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL";
- case 118:
- return "RIL_REQUEST_NV_READ_ITEM";
- case 119:
- return "RIL_REQUEST_NV_WRITE_ITEM";
- case 120:
- return "RIL_REQUEST_NV_WRITE_CDMA_PRL";
- case 121:
- return "RIL_REQUEST_NV_RESET_CONFIG";
- case 122:
- return "RIL_REQUEST_SET_UICC_SUBSCRIPTION";
- case 123:
- return "RIL_REQUEST_ALLOW_DATA";
- case 124:
- return "GET_HARDWARE_CONFIG";
- case 125:
- return "RIL_REQUEST_SIM_AUTHENTICATION";
- case 129:
- return "RIL_REQUEST_SHUTDOWN";
- case 131:
- return "RIL_REQUEST_SET_RADIO_CAPABILITY";
- case 130:
- return "RIL_REQUEST_GET_RADIO_CAPABILITY";
- case 132:
- return "RIL_REQUEST_START_LCE";
- case 133:
- return "RIL_REQUEST_STOP_LCE";
- case 134:
- return "RIL_REQUEST_PULL_LCEDATA";
- case 135:
- return "RIL_REQUEST_GET_ACTIVITY_INFO";
- case 136:
- return "RIL_REQUEST_SET_ALLOWED_CARRIERS";
- case 137:
- return "RIL_REQUEST_GET_ALLOWED_CARRIERS";
- case 140:
- return "RIL_REQUEST_SET_SIM_CARD_POWER";
- case 138:
- return "RIL_REQUEST_SEND_DEVICE_STATE";
- case 139:
- return "RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER";
- case 800:
- return "RIL_RESPONSE_ACKNOWLEDGEMENT";
- }
- return "RIL_REQUEST_SIM_QUERY_ATR";
- }
- static String responseToString(int paramInt)
- {
- switch (paramInt)
- {
- case 1041:
- default:
- return "<unknown response>";
- case 1000:
- return "UNSOL_RESPONSE_RADIO_STATE_CHANGED";
- case 1001:
- return "UNSOL_RESPONSE_CALL_STATE_CHANGED";
- case 1002:
- return "UNSOL_RESPONSE_NETWORK_STATE_CHANGED";
- case 1003:
- return "UNSOL_RESPONSE_NEW_SMS";
- case 1004:
- return "UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT";
- case 1005:
- return "UNSOL_RESPONSE_NEW_SMS_ON_SIM";
- case 1006:
- return "UNSOL_ON_USSD";
- case 1007:
- return "UNSOL_ON_USSD_REQUEST";
- case 1008:
- return "UNSOL_NITZ_TIME_RECEIVED";
- case 1009:
- return "UNSOL_SIGNAL_STRENGTH";
- case 1010:
- return "UNSOL_DATA_CALL_LIST_CHANGED";
- case 1011:
- return "UNSOL_SUPP_SVC_NOTIFICATION";
- case 1012:
- return "UNSOL_STK_SESSION_END";
- case 1013:
- return "UNSOL_STK_PROACTIVE_COMMAND";
- case 1014:
- return "UNSOL_STK_EVENT_NOTIFY";
- case 1015:
- return "UNSOL_STK_CALL_SETUP";
- case 1016:
- return "UNSOL_SIM_SMS_STORAGE_FULL";
- case 1017:
- return "UNSOL_SIM_REFRESH";
- case 1018:
- return "UNSOL_CALL_RING";
- case 1019:
- return "UNSOL_RESPONSE_SIM_STATUS_CHANGED";
- case 1020:
- return "UNSOL_RESPONSE_CDMA_NEW_SMS";
- case 1021:
- return "UNSOL_RESPONSE_NEW_BROADCAST_SMS";
- case 1022:
- return "UNSOL_CDMA_RUIM_SMS_STORAGE_FULL";
- case 1023:
- return "UNSOL_RESTRICTED_STATE_CHANGED";
- case 1024:
- return "UNSOL_ENTER_EMERGENCY_CALLBACK_MODE";
- case 1025:
- return "UNSOL_CDMA_CALL_WAITING";
- case 1026:
- return "UNSOL_CDMA_OTA_PROVISION_STATUS";
- case 1027:
- return "UNSOL_CDMA_INFO_REC";
- case 1028:
- return "UNSOL_OEM_HOOK_RAW";
- case 1029:
- return "UNSOL_RINGBACK_TONE";
- case 1030:
- return "UNSOL_RESEND_INCALL_MUTE";
- case 1031:
- return "CDMA_SUBSCRIPTION_SOURCE_CHANGED";
- case 1032:
- return "UNSOL_CDMA_PRL_CHANGED";
- case 1033:
- return "UNSOL_EXIT_EMERGENCY_CALLBACK_MODE";
- case 1034:
- return "UNSOL_RIL_CONNECTED";
- case 1035:
- return "UNSOL_VOICE_RADIO_TECH_CHANGED";
- case 1036:
- return "UNSOL_CELL_INFO_LIST";
- case 1037:
- return "UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED";
- case 1038:
- return "RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED";
- case 1039:
- return "UNSOL_SRVCC_STATE_NOTIFY";
- case 1040:
- return "RIL_UNSOL_HARDWARE_CONFIG_CHANGED";
- case 1042:
- return "RIL_UNSOL_RADIO_CAPABILITY";
- case 1043:
- return "UNSOL_ON_SS";
- case 1044:
- return "UNSOL_STK_CC_ALPHA_NOTIFY";
- case 1045:
- return "UNSOL_LCE_INFO_RECV";
- case 1046:
- return "UNSOL_PCO_DATA";
- }
- return "UNSOL_MODEM_RESTART";
- }
- static String retToString(int paramInt, Object paramObject)
- {
- if (paramObject == null) {
- return "";
- }
- int i;
- Object localObject1;
- switch (paramInt)
- {
- default:
- if (!(paramObject instanceof int[])) {
- break label144;
- }
- paramObject = (int[])paramObject;
- i = paramObject.length;
- localObject1 = new StringBuilder("{");
- if (i > 0)
- {
- ((StringBuilder)localObject1).append(paramObject[0]);
- paramInt = 1;
- }
- break;
- case 11:
- case 38:
- case 39:
- case 115:
- case 117:
- while (paramInt < i)
- {
- ((StringBuilder)localObject1).append(", ").append(paramObject[paramInt]);
- paramInt++;
- continue;
- return "";
- }
- }
- ((StringBuilder)localObject1).append("}");
- paramObject = ((StringBuilder)localObject1).toString();
- for (;;)
- {
- return paramObject;
- label144:
- if ((paramObject instanceof String[]))
- {
- localObject1 = (String[])paramObject;
- i = localObject1.length;
- paramObject = new StringBuilder("{");
- if (i > 0)
- {
- paramObject.append(localObject1[0]);
- for (paramInt = 1; paramInt < i; paramInt++) {
- paramObject.append(", ").append(localObject1[paramInt]);
- }
- }
- paramObject.append("}");
- paramObject = paramObject.toString();
- }
- else
- {
- Object localObject2;
- if (paramInt == 9)
- {
- localObject1 = (ArrayList)paramObject;
- paramObject = new StringBuilder("{");
- localObject1 = ((Iterable)localObject1).iterator();
- while (((Iterator)localObject1).hasNext())
- {
- localObject2 = (DriverCall)((Iterator)localObject1).next();
- paramObject.append("[").append(localObject2).append("] ");
- }
- paramObject.append("}");
- paramObject = paramObject.toString();
- }
- else if (paramInt == 75)
- {
- localObject1 = (ArrayList)paramObject;
- paramObject = new StringBuilder("{");
- localObject1 = ((Iterable)localObject1).iterator();
- while (((Iterator)localObject1).hasNext())
- {
- localObject2 = (NeighboringCellInfo)((Iterator)localObject1).next();
- paramObject.append("[").append(localObject2).append("] ");
- }
- paramObject.append("}");
- paramObject = paramObject.toString();
- }
- else if (paramInt == 33)
- {
- localObject1 = (CallForwardInfo[])paramObject;
- i = localObject1.length;
- paramObject = new StringBuilder("{");
- for (paramInt = 0; paramInt < i; paramInt++) {
- paramObject.append("[").append(localObject1[paramInt]).append("] ");
- }
- paramObject.append("}");
- paramObject = paramObject.toString();
- }
- else if (paramInt == 124)
- {
- localObject1 = (ArrayList)paramObject;
- paramObject = new StringBuilder(" ");
- localObject1 = ((Iterable)localObject1).iterator();
- while (((Iterator)localObject1).hasNext())
- {
- localObject2 = (HardwareConfig)((Iterator)localObject1).next();
- paramObject.append("[").append(localObject2).append("] ");
- }
- paramObject = paramObject.toString();
- }
- else
- {
- paramObject = paramObject.toString();
- }
- }
- }
- }
- private void sendAck()
- {
- RILRequest localRILRequest = RILRequest.obtain(800, null, mRILDefaultWorkSource);
- acquireWakeLock(localRILRequest, 1);
- IRadio localIRadio = getRadioProxy(null);
- if (localIRadio != null) {}
- for (;;)
- {
- try
- {
- localIRadio.responseAcknowledgement();
- localRILRequest.release();
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- handleRadioProxyExceptionForRR(localRILRequest, "sendAck", localRemoteException);
- riljLoge("sendAck: " + localRemoteException);
- continue;
- }
- Rlog.e("RILJ", "Error trying to send ack, radioProxy = null");
- }
- }
- private int translateStatus(int paramInt)
- {
- switch (paramInt & 0x7)
- {
- case 2:
- case 4:
- case 6:
- default:
- return 1;
- case 1:
- return 1;
- case 3:
- return 0;
- case 5:
- return 3;
- }
- return 2;
- }
- public void acceptCall(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(40, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.acceptCall(mSerial);
- mMetrics.writeRilAnswer(mPhoneId.intValue(), mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "acceptCall", localRemoteException);
- }
- }
- }
- public void acknowledgeIncomingGsmSmsWithPdu(boolean paramBoolean, String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(106, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " success = " + paramBoolean);
- }
- try
- {
- localIRadio.acknowledgeIncomingGsmSmsWithPdu(mSerial, paramBoolean, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "acknowledgeIncomingGsmSmsWithPdu", paramString);
- }
- }
- }
- public void acknowledgeLastIncomingCdmaSms(boolean paramBoolean, int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- CdmaSmsAck localCdmaSmsAck;
- int i;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(88, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " success = " + paramBoolean + " cause = " + paramInt);
- localCdmaSmsAck = new CdmaSmsAck();
- if (!paramBoolean) {
- break label124;
- }
- i = 0;
- }
- for (;;)
- {
- errorClass = i;
- smsCauseCode = paramInt;
- try
- {
- localIRadio.acknowledgeLastIncomingCdmaSms(mSerial, localCdmaSmsAck);
- return;
- label124:
- i = 1;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "acknowledgeLastIncomingCdmaSms", localRemoteException);
- }
- }
- }
- }
- public void acknowledgeLastIncomingGsmSms(boolean paramBoolean, int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(37, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " success = " + paramBoolean + " cause = " + paramInt);
- }
- try
- {
- localIRadio.acknowledgeLastIncomingGsmSms(mSerial, paramBoolean, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "acknowledgeLastIncomingGsmSms", localRemoteException);
- }
- }
- }
- public void cancelPendingUssd(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(30, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.cancelPendingUssd(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "cancelPendingUssd", localRemoteException);
- }
- }
- }
- public void changeBarringPassword(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(44, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + "facility = " + paramString1);
- }
- try
- {
- localIRadio.setBarringPassword(mSerial, convertNullToEmptyString(paramString1), convertNullToEmptyString(paramString2), convertNullToEmptyString(paramString3));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "changeBarringPassword", paramString1);
- }
- }
- }
- public void changeIccPin(String paramString1, String paramString2, Message paramMessage)
- {
- changeIccPinForApp(paramString1, paramString2, null, paramMessage);
- }
- public void changeIccPin2(String paramString1, String paramString2, Message paramMessage)
- {
- changeIccPin2ForApp(paramString1, paramString2, null, paramMessage);
- }
- public void changeIccPin2ForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(7, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " oldPin = " + paramString1 + " newPin = " + paramString2 + " aid = " + paramString3);
- }
- try
- {
- localIRadio.changeIccPin2ForApp(mSerial, convertNullToEmptyString(paramString1), convertNullToEmptyString(paramString2), convertNullToEmptyString(paramString3));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "changeIccPin2ForApp", paramString1);
- }
- }
- }
- public void changeIccPinForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(6, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " oldPin = " + paramString1 + " newPin = " + paramString2 + " aid = " + paramString3);
- }
- try
- {
- localIRadio.changeIccPinForApp(mSerial, convertNullToEmptyString(paramString1), convertNullToEmptyString(paramString2), convertNullToEmptyString(paramString3));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "changeIccPinForApp", paramString1);
- }
- }
- }
- public void conference(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(16, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.conference(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "conference", localRemoteException);
- }
- }
- }
- public void deactivateDataCall(int paramInt1, int paramInt2, Message paramMessage)
- {
- boolean bool = false;
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(41, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " cid = " + paramInt1 + " reason = " + paramInt2);
- }
- for (;;)
- {
- try
- {
- int i = mSerial;
- if (paramInt2 == 0)
- {
- localIRadio.deactivateDataCall(i, paramInt1, bool);
- mMetrics.writeRilDeactivateDataCall(mPhoneId.intValue(), mSerial, paramInt1, paramInt2);
- return;
- }
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- handleRadioProxyExceptionForRR(paramMessage, "deactivateDataCall", localRemoteException);
- continue;
- }
- bool = true;
- }
- }
- public void deleteSmsOnRuim(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null) {
- paramMessage = obtainRequest(97, paramMessage, mRILDefaultWorkSource);
- }
- try
- {
- localIRadio.deleteSmsOnRuim(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "deleteSmsOnRuim", localRemoteException);
- }
- }
- }
- public void deleteSmsOnSim(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null) {
- paramMessage = obtainRequest(64, paramMessage, mRILDefaultWorkSource);
- }
- try
- {
- localIRadio.deleteSmsOnSim(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "deleteSmsOnSim", localRemoteException);
- }
- }
- }
- public void dial(String paramString, int paramInt, Message paramMessage)
- {
- dial(paramString, paramInt, null, paramMessage);
- }
- public void dial(String paramString, int paramInt, UUSInfo paramUUSInfo, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- Dial localDial;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(10, paramMessage, mRILDefaultWorkSource);
- localDial = new Dial();
- address = convertNullToEmptyString(paramString);
- clir = paramInt;
- if (paramUUSInfo != null)
- {
- paramString = new UusInfo();
- uusType = paramUUSInfo.getType();
- uusDcs = paramUUSInfo.getDcs();
- uusData = new String(paramUUSInfo.getUserData());
- uusInfo.add(paramString);
- }
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.dial(mSerial, localDial);
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "dial", paramString);
- }
- }
- }
- /* Error */
- public void dump(java.io.FileDescriptor paramFileDescriptor, java.io.PrintWriter paramPrintWriter, String[] arg3)
- {
- // Byte code:
- // 0: aload_2
- // 1: new 196 java/lang/StringBuilder
- // 4: dup
- // 5: invokespecial 197 java/lang/StringBuilder:<init> ()V
- // 8: ldc_w 1829
- // 11: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 14: aload_0
- // 15: invokevirtual 581 java/lang/StringBuilder:append (Ljava/lang/Object;)Ljava/lang/StringBuilder;
- // 18: invokevirtual 214 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 21: invokevirtual 1834 java/io/PrintWriter:println (Ljava/lang/String;)V
- // 24: aload_2
- // 25: new 196 java/lang/StringBuilder
- // 28: dup
- // 29: invokespecial 197 java/lang/StringBuilder:<init> ()V
- // 32: ldc_w 1836
- // 35: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 38: aload_0
- // 39: getfield 286 com/android/internal/telephony/RIL:mWakeLock Landroid/os/PowerManager$WakeLock;
- // 42: invokevirtual 581 java/lang/StringBuilder:append (Ljava/lang/Object;)Ljava/lang/StringBuilder;
- // 45: invokevirtual 214 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 48: invokevirtual 1834 java/io/PrintWriter:println (Ljava/lang/String;)V
- // 51: aload_2
- // 52: new 196 java/lang/StringBuilder
- // 55: dup
- // 56: invokespecial 197 java/lang/StringBuilder:<init> ()V
- // 59: ldc_w 1838
- // 62: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 65: aload_0
- // 66: getfield 303 com/android/internal/telephony/RIL:mWakeLockTimeout I
- // 69: invokevirtual 206 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 72: invokevirtual 214 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 75: invokevirtual 1834 java/io/PrintWriter:println (Ljava/lang/String;)V
- // 78: aload_0
- // 79: getfield 170 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
- // 82: astore_1
- // 83: aload_1
- // 84: monitorenter
- // 85: aload_0
- // 86: getfield 286 com/android/internal/telephony/RIL:mWakeLock Landroid/os/PowerManager$WakeLock;
- // 89: astore_3
- // 90: aload_3
- // 91: monitorenter
- // 92: new 196 java/lang/StringBuilder
- // 95: astore 4
- // 97: aload 4
- // 99: invokespecial 197 java/lang/StringBuilder:<init> ()V
- // 102: aload_2
- // 103: aload 4
- // 105: ldc_w 1840
- // 108: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 111: aload_0
- // 112: getfield 307 com/android/internal/telephony/RIL:mWakeLockCount I
- // 115: invokevirtual 206 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 118: invokevirtual 214 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 121: invokevirtual 1834 java/io/PrintWriter:println (Ljava/lang/String;)V
- // 124: aload_3
- // 125: monitorexit
- // 126: aload_0
- // 127: getfield 170 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
- // 130: invokevirtual 461 android/util/SparseArray:size ()I
- // 133: istore 5
- // 135: new 196 java/lang/StringBuilder
- // 138: astore_3
- // 139: aload_3
- // 140: invokespecial 197 java/lang/StringBuilder:<init> ()V
- // 143: aload_2
- // 144: aload_3
- // 145: ldc_w 1842
- // 148: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 151: iload 5
- // 153: invokevirtual 206 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 156: invokevirtual 214 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 159: invokevirtual 1834 java/io/PrintWriter:println (Ljava/lang/String;)V
- // 162: iconst_0
- // 163: istore 6
- // 165: iload 6
- // 167: iload 5
- // 169: if_icmpge +80 -> 249
- // 172: aload_0
- // 173: getfield 170 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
- // 176: iload 6
- // 178: invokevirtual 468 android/util/SparseArray:valueAt (I)Ljava/lang/Object;
- // 181: checkcast 339 com/android/internal/telephony/RILRequest
- // 184: astore 4
- // 186: new 196 java/lang/StringBuilder
- // 189: astore_3
- // 190: aload_3
- // 191: invokespecial 197 java/lang/StringBuilder:<init> ()V
- // 194: aload_2
- // 195: aload_3
- // 196: ldc_w 1844
- // 199: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 202: aload 4
- // 204: getfield 391 com/android/internal/telephony/RILRequest:mSerial I
- // 207: invokevirtual 206 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 210: ldc_w 472
- // 213: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 216: aload 4
- // 218: getfield 388 com/android/internal/telephony/RILRequest:mRequest I
- // 221: invokestatic 476 com/android/internal/telephony/RIL:requestToString (I)Ljava/lang/String;
- // 224: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 227: invokevirtual 214 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 230: invokevirtual 1834 java/io/PrintWriter:println (Ljava/lang/String;)V
- // 233: iinc 6 1
- // 236: goto -71 -> 165
- // 239: astore_2
- // 240: aload_3
- // 241: monitorexit
- // 242: aload_2
- // 243: athrow
- // 244: astore_2
- // 245: aload_1
- // 246: monitorexit
- // 247: aload_2
- // 248: athrow
- // 249: aload_1
- // 250: monitorexit
- // 251: aload_2
- // 252: new 196 java/lang/StringBuilder
- // 255: dup
- // 256: invokespecial 197 java/lang/StringBuilder:<init> ()V
- // 259: ldc_w 1846
- // 262: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 265: aload_0
- // 266: getfield 1848 com/android/internal/telephony/RIL:mLastNITZTimeInfo [Ljava/lang/Object;
- // 269: invokestatic 1853 java/util/Arrays:toString ([Ljava/lang/Object;)Ljava/lang/String;
- // 272: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 275: invokevirtual 214 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 278: invokevirtual 1834 java/io/PrintWriter:println (Ljava/lang/String;)V
- // 281: aload_2
- // 282: new 196 java/lang/StringBuilder
- // 285: dup
- // 286: invokespecial 197 java/lang/StringBuilder:<init> ()V
- // 289: ldc_w 1855
- // 292: invokevirtual 203 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 295: aload_0
- // 296: getfield 177 com/android/internal/telephony/RIL:mTestingEmergencyCall Ljava/util/concurrent/atomic/AtomicBoolean;
- // 299: invokevirtual 1857 java/util/concurrent/atomic/AtomicBoolean:get ()Z
- // 302: invokevirtual 1693 java/lang/StringBuilder:append (Z)Ljava/lang/StringBuilder;
- // 305: invokevirtual 214 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 308: invokevirtual 1834 java/io/PrintWriter:println (Ljava/lang/String;)V
- // 311: aload_0
- // 312: getfield 164 com/android/internal/telephony/RIL:mClientWakelockTracker Lcom/android/internal/telephony/ClientWakelockTracker;
- // 315: invokevirtual 1860 com/android/internal/telephony/ClientWakelockTracker:dumpClientRequestTracker ()V
- // 318: return
- // Local variable table:
- // start length slot name signature
- // 0 319 0 this RIL
- // 0 319 1 paramFileDescriptor java.io.FileDescriptor
- // 0 319 2 paramPrintWriter java.io.PrintWriter
- // 95 122 4 localObject Object
- // 133 37 5 i int
- // 163 71 6 j int
- // Exception table:
- // from to target type
- // 92 124 239 finally
- // 85 92 244 finally
- // 124 162 244 finally
- // 172 233 244 finally
- // 240 244 244 finally
- }
- public void exitEmergencyCallbackMode(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(99, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.exitEmergencyCallbackMode(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "exitEmergencyCallbackMode", localRemoteException);
- }
- }
- }
- public void explicitCallTransfer(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(72, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.explicitCallTransfer(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "explicitCallTransfer", localRemoteException);
- }
- }
- }
- public void getAllowedCarriers(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(137, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getAllowedCarriers(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getAllowedCarriers", localRemoteException);
- }
- }
- }
- public void getAtr(Message paramMessage) {}
- public void getAvailableNetworks(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(48, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getAvailableNetworks(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getAvailableNetworks", localRemoteException);
- }
- }
- }
- public void getBasebandVersion(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(51, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getBasebandVersion(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getBasebandVersion", localRemoteException);
- }
- }
- }
- public void getCDMASubscription(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(95, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getCDMASubscription(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getCDMASubscription", localRemoteException);
- }
- }
- }
- public void getCLIR(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(31, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getClir(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getCLIR", localRemoteException);
- }
- }
- }
- public void getCdmaBroadcastConfig(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(92, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getCdmaBroadcastConfig(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getCdmaBroadcastConfig", localRemoteException);
- }
- }
- }
- public void getCdmaSubscriptionSource(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(104, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getCdmaSubscriptionSource(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getCdmaSubscriptionSource", localRemoteException);
- }
- }
- }
- public void getCellInfoList(Message paramMessage, WorkSource paramWorkSource)
- {
- WorkSource localWorkSource = getDeafultWorkSourceIfInvalid(paramWorkSource);
- paramWorkSource = getRadioProxy(paramMessage);
- if (paramWorkSource != null)
- {
- paramMessage = obtainRequest(109, paramMessage, localWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- paramWorkSource.getCellInfoList(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException paramWorkSource)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getCellInfoList", paramWorkSource);
- }
- }
- }
- public List<ClientRequestStats> getClientRequestStats()
- {
- return mClientWakelockTracker.getClientRequestStats();
- }
- public void getCurrentCalls(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(9, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getCurrentCalls(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getCurrentCalls", localRemoteException);
- }
- }
- }
- public void getDataCallList(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(57, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getDataCallList(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getDataCallList", localRemoteException);
- }
- }
- }
- public void getDataRegistrationState(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(21, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getDataRegistrationState(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getDataRegistrationState", localRemoteException);
- }
- }
- }
- public void getDeviceIdentity(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(98, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getDeviceIdentity(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getDeviceIdentity", localRemoteException);
- }
- }
- }
- public void getGsmBroadcastConfig(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(89, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getGsmBroadcastConfig(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getGsmBroadcastConfig", localRemoteException);
- }
- }
- }
- public void getHardwareConfig(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(124, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getHardwareConfig(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getHardwareConfig", localRemoteException);
- }
- }
- }
- public void getIMEI(Message paramMessage)
- {
- throw new RuntimeException("getIMEI not expected to be called");
- }
- public void getIMEISV(Message paramMessage)
- {
- throw new RuntimeException("getIMEISV not expected to be called");
- }
- public void getIMSI(Message paramMessage)
- {
- getIMSIForApp(null, paramMessage);
- }
- public void getIMSIForApp(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(11, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " aid = " + paramString);
- }
- try
- {
- localIRadio.getImsiForApp(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getIMSIForApp", paramString);
- }
- }
- }
- public void getIccCardStatus(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(1, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getIccCardStatus(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getIccCardStatus", localRemoteException);
- }
- }
- }
- public void getImsRegistrationState(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(112, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getImsRegistrationState(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getImsRegistrationState", localRemoteException);
- }
- }
- }
- public void getLastCallFailCause(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(18, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getLastCallFailCause(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getLastCallFailCause", localRemoteException);
- }
- }
- }
- public void getLastDataCallFailCause(Message paramMessage)
- {
- throw new RuntimeException("getLastDataCallFailCause not expected to be called");
- }
- @Deprecated
- public void getLastPdpFailCause(Message paramMessage)
- {
- throw new RuntimeException("getLastPdpFailCause not expected to be called");
- }
- protected Message getMessageFromRequest(Object paramObject)
- {
- RILRequest localRILRequest = (RILRequest)paramObject;
- paramObject = null;
- if (localRILRequest != null) {
- paramObject = mResult;
- }
- return paramObject;
- }
- public void getModemActivityInfo(Message paramMessage)
- {
- Object localObject = getRadioProxy(paramMessage);
- if (localObject != null)
- {
- paramMessage = obtainRequest(135, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- ((IRadio)localObject).getModemActivityInfo(mSerial);
- localObject = mRilHandler.obtainMessage(5);
- obj = null;
- arg1 = mSerial;
- mRilHandler.sendMessageDelayed((Message)localObject, 2000L);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getModemActivityInfo", localRemoteException);
- }
- }
- }
- public void getMute(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(54, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getMute(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getMute", localRemoteException);
- }
- }
- }
- public void getNeighboringCids(Message paramMessage, WorkSource paramWorkSource)
- {
- WorkSource localWorkSource = getDeafultWorkSourceIfInvalid(paramWorkSource);
- paramWorkSource = getRadioProxy(paramMessage);
- if (paramWorkSource != null)
- {
- paramMessage = obtainRequest(75, paramMessage, localWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- paramWorkSource.getNeighboringCids(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException paramWorkSource)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getNeighboringCids", paramWorkSource);
- }
- }
- }
- public void getNetworkSelectionMode(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(45, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getNetworkSelectionMode(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getNetworkSelectionMode", localRemoteException);
- }
- }
- }
- public void getOperator(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(22, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getOperator(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getOperator", localRemoteException);
- }
- }
- }
- @Deprecated
- public void getPDPContextList(Message paramMessage)
- {
- getDataCallList(paramMessage);
- }
- public void getPreferredNetworkType(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(74, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getPreferredNetworkType(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getPreferredNetworkType", localRemoteException);
- }
- }
- }
- public void getPreferredVoicePrivacy(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(83, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getPreferredVoicePrivacy(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getPreferredVoicePrivacy", localRemoteException);
- }
- }
- }
- public void getRadioCapability(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(130, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getRadioCapability(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getRadioCapability", localRemoteException);
- }
- }
- }
- public void getSignalStrength(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(19, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getSignalStrength(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getSignalStrength", localRemoteException);
- }
- }
- }
- public void getSmscAddress(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(100, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getSmscAddress(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getSmscAddress", localRemoteException);
- }
- }
- }
- public void getVoiceRadioTechnology(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(108, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getVoiceRadioTechnology(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getVoiceRadioTechnology", localRemoteException);
- }
- }
- }
- public void getVoiceRegistrationState(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(20, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getVoiceRegistrationState(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getVoiceRegistrationState", localRemoteException);
- }
- }
- }
- public void handleCallSetupRequestFromSim(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(71, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.handleStkCallSetupRequestFromSim(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getAllowedCarriers", localRemoteException);
- }
- }
- }
- public void hangupConnection(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(12, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " gsmIndex = " + paramInt);
- }
- try
- {
- localIRadio.hangup(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "hangupConnection", localRemoteException);
- }
- }
- }
- public void hangupForegroundResumeBackground(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(14, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.hangupForegroundResumeBackground(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "hangupForegroundResumeBackground", localRemoteException);
- }
- }
- }
- public void hangupWaitingOrBackground(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(13, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.hangupWaitingOrBackground(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "hangupWaitingOrBackground", localRemoteException);
- }
- }
- }
- public void iccCloseLogicalChannel(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(116, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " channel = " + paramInt);
- }
- try
- {
- localIRadio.iccCloseLogicalChannel(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "iccCloseLogicalChannel", localRemoteException);
- }
- }
- }
- public void iccIO(int paramInt1, int paramInt2, String paramString1, int paramInt3, int paramInt4, int paramInt5, String paramString2, String paramString3, Message paramMessage)
- {
- iccIOForApp(paramInt1, paramInt2, paramString1, paramInt3, paramInt4, paramInt5, paramString2, paramString3, null, paramMessage);
- }
- public void iccIOForApp(int paramInt1, int paramInt2, String paramString1, int paramInt3, int paramInt4, int paramInt5, String paramString2, String paramString3, String paramString4, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- IccIo localIccIo;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(28, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> iccIO: " + requestToString(mRequest) + " command = 0x" + Integer.toHexString(paramInt1) + " fileId = 0x" + Integer.toHexString(paramInt2) + " path = " + paramString1 + " p1 = " + paramInt3 + " p2 = " + paramInt4 + " p3 = " + " data = " + paramString2 + " aid = " + paramString4);
- localIccIo = new IccIo();
- command = paramInt1;
- fileId = paramInt2;
- path = convertNullToEmptyString(paramString1);
- p1 = paramInt3;
- p2 = paramInt4;
- p3 = paramInt5;
- data = convertNullToEmptyString(paramString2);
- pin2 = convertNullToEmptyString(paramString3);
- aid = convertNullToEmptyString(paramString4);
- }
- try
- {
- localIRadio.iccIOForApp(mSerial, localIccIo);
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "iccIOForApp", paramString1);
- }
- }
- }
- public void iccOpenLogicalChannel(String paramString, int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(115, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " aid = " + paramString + " p2 = " + paramInt);
- }
- try
- {
- localIRadio.iccOpenLogicalChannel(mSerial, convertNullToEmptyString(paramString), paramInt);
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "iccOpenLogicalChannel", paramString);
- }
- }
- }
- public void iccTransmitApduBasicChannel(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(114, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " cla = " + paramInt1 + " instruction = " + paramInt2 + " p1 = " + paramInt3 + " p2 = " + " p3 = " + paramInt5 + " data = " + paramString);
- paramString = createSimApdu(0, paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramString);
- }
- try
- {
- localIRadio.iccTransmitApduBasicChannel(mSerial, paramString);
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "iccTransmitApduBasicChannel", paramString);
- }
- }
- }
- public void iccTransmitApduLogicalChannel(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, String paramString, Message paramMessage)
- {
- if (paramInt1 <= 0) {
- throw new RuntimeException("Invalid channel in iccTransmitApduLogicalChannel: " + paramInt1);
- }
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(117, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " channel = " + paramInt1 + " cla = " + paramInt2 + " instruction = " + paramInt3 + " p1 = " + paramInt4 + " p2 = " + " p3 = " + paramInt6 + " data = " + paramString);
- paramString = createSimApdu(paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6, paramString);
- }
- try
- {
- localIRadio.iccTransmitApduLogicalChannel(mSerial, paramString);
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "iccTransmitApduLogicalChannel", paramString);
- }
- }
- }
- public void invokeOemRilRequestRaw(byte[] paramArrayOfByte, Message paramMessage)
- {
- IOemHook localIOemHook = getOemHookProxy(paramMessage);
- if (localIOemHook != null)
- {
- paramMessage = obtainRequest(59, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + "[" + IccUtils.bytesToHexString(paramArrayOfByte) + "]");
- }
- try
- {
- localIOemHook.sendRequestRaw(mSerial, primitiveArrayToArrayList(paramArrayOfByte));
- return;
- }
- catch (RemoteException|RuntimeException paramArrayOfByte)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "invokeOemRilRequestStrings", paramArrayOfByte);
- }
- }
- }
- public void invokeOemRilRequestStrings(String[] paramArrayOfString, Message paramMessage)
- {
- IOemHook localIOemHook = getOemHookProxy(paramMessage);
- RILRequest localRILRequest;
- int i;
- if (localIOemHook != null)
- {
- localRILRequest = obtainRequest(60, paramMessage, mRILDefaultWorkSource);
- paramMessage = "";
- for (i = 0; i < paramArrayOfString.length; i++) {
- paramMessage = paramMessage + paramArrayOfString[i] + " ";
- }
- riljLog(localRILRequest.serialString() + "> " + requestToString(mRequest) + " strings = " + paramMessage);
- }
- try
- {
- i = mSerial;
- paramMessage = new java/util/ArrayList;
- paramMessage.<init>(Arrays.asList(paramArrayOfString));
- localIOemHook.sendRequestStrings(i, paramMessage);
- return;
- }
- catch (RemoteException|RuntimeException paramArrayOfString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(localRILRequest, "invokeOemRilRequestStrings", paramArrayOfString);
- }
- }
- }
- RadioCapability makeStaticRadioCapability()
- {
- int i = 1;
- Object localObject = mContext.getResources().getString(17039683);
- if (!TextUtils.isEmpty((CharSequence)localObject)) {
- i = RadioAccessFamily.rafTypeFromString((String)localObject);
- }
- localObject = new RadioCapability(mPhoneId.intValue(), 0, 0, i, "", 1);
- riljLog("Faking RIL_REQUEST_GET_RADIO_CAPABILITY response using " + i);
- return localObject;
- }
- void notifyRegistrantsCdmaInfoRec(CdmaInformationRecords paramCdmaInformationRecords)
- {
- if ((record instanceof CdmaInformationRecords.CdmaDisplayInfoRec)) {
- if (mDisplayInfoRegistrants != null)
- {
- unsljLogRet(1027, record);
- mDisplayInfoRegistrants.notifyRegistrants(new AsyncResult(null, record, null));
- }
- }
- for (;;)
- {
- return;
- if ((record instanceof CdmaInformationRecords.CdmaSignalInfoRec))
- {
- if (mSignalInfoRegistrants != null)
- {
- unsljLogRet(1027, record);
- mSignalInfoRegistrants.notifyRegistrants(new AsyncResult(null, record, null));
- }
- }
- else if ((record instanceof CdmaInformationRecords.CdmaNumberInfoRec))
- {
- if (mNumberInfoRegistrants != null)
- {
- unsljLogRet(1027, record);
- mNumberInfoRegistrants.notifyRegistrants(new AsyncResult(null, record, null));
- }
- }
- else if ((record instanceof CdmaInformationRecords.CdmaRedirectingNumberInfoRec))
- {
- if (mRedirNumInfoRegistrants != null)
- {
- unsljLogRet(1027, record);
- mRedirNumInfoRegistrants.notifyRegistrants(new AsyncResult(null, record, null));
- }
- }
- else if ((record instanceof CdmaInformationRecords.CdmaLineControlInfoRec))
- {
- if (mLineControlInfoRegistrants != null)
- {
- unsljLogRet(1027, record);
- mLineControlInfoRegistrants.notifyRegistrants(new AsyncResult(null, record, null));
- }
- }
- else if ((record instanceof CdmaInformationRecords.CdmaT53ClirInfoRec))
- {
- if (mT53ClirInfoRegistrants != null)
- {
- unsljLogRet(1027, record);
- mT53ClirInfoRegistrants.notifyRegistrants(new AsyncResult(null, record, null));
- }
- }
- else if (((record instanceof CdmaInformationRecords.CdmaT53AudioControlInfoRec)) && (mT53AudCntrlInfoRegistrants != null))
- {
- unsljLogRet(1027, record);
- mT53AudCntrlInfoRegistrants.notifyRegistrants(new AsyncResult(null, record, null));
- }
- }
- }
- void notifyRegistrantsRilConnectionChanged(int paramInt)
- {
- mRilVersion = paramInt;
- if (mRilConnectedRegistrants != null) {
- mRilConnectedRegistrants.notifyRegistrants(new AsyncResult(null, new Integer(paramInt), null));
- }
- }
- public void nvReadItem(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(118, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " itemId = " + paramInt);
- }
- try
- {
- localIRadio.nvReadItem(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "nvReadItem", localRemoteException);
- }
- }
- }
- public void nvResetConfig(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(121, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " resetType = " + paramInt);
- }
- try
- {
- localIRadio.nvResetConfig(mSerial, convertToHalResetNvType(paramInt));
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "nvResetConfig", localRemoteException);
- }
- }
- }
- public void nvWriteCdmaPrl(byte[] paramArrayOfByte, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- ArrayList localArrayList;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(120, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " PreferredRoamingList = 0x" + IccUtils.bytesToHexString(paramArrayOfByte));
- localArrayList = new ArrayList();
- for (int i = 0; i < paramArrayOfByte.length; i++) {
- localArrayList.add(Byte.valueOf(paramArrayOfByte[i]));
- }
- }
- try
- {
- localIRadio.nvWriteCdmaPrl(mSerial, localArrayList);
- return;
- }
- catch (RemoteException|RuntimeException paramArrayOfByte)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "nvWriteCdmaPrl", paramArrayOfByte);
- }
- }
- }
- public void nvWriteItem(int paramInt, String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- NvWriteItem localNvWriteItem;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(119, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " itemId = " + paramInt + " itemValue = " + paramString);
- localNvWriteItem = new NvWriteItem();
- itemId = paramInt;
- value = convertNullToEmptyString(paramString);
- }
- try
- {
- localIRadio.nvWriteItem(mSerial, localNvWriteItem);
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "nvWriteItem", paramString);
- }
- }
- }
- protected int obtainRequestSerial(int paramInt, Message paramMessage, WorkSource paramWorkSource)
- {
- paramMessage = RILRequest.obtain(paramInt, paramMessage, paramWorkSource);
- addRequest(paramMessage);
- return mSerial;
- }
- void processIndication(int paramInt)
- {
- if (paramInt == 1)
- {
- sendAck();
- riljLog("Unsol response received; Sending ack to ril.cpp");
- }
- }
- void processRequestAck(int paramInt)
- {
- for (;;)
- {
- synchronized (mRequestList)
- {
- RILRequest localRILRequest1 = (RILRequest)mRequestList.get(paramInt);
- if (localRILRequest1 == null)
- {
- Rlog.w("RILJ", "processRequestAck: Unexpected solicited ack response! serial: " + paramInt);
- return;
- }
- }
- decrementWakeLock(localRILRequest2);
- riljLog(localRILRequest2.serialString() + " Ack < " + requestToString(mRequest));
- }
- }
- protected RILRequest processResponse(RadioResponseInfo arg1)
- {
- int i = serial;
- int j = error;
- int k = type;
- if (k == 1) {
- for (;;)
- {
- synchronized (mRequestList)
- {
- RILRequest localRILRequest1 = (RILRequest)mRequestList.get(i);
- if (localRILRequest1 == null)
- {
- Rlog.w("RILJ", "Unexpected solicited ack response! sn: " + i);
- return localRILRequest1;
- }
- }
- decrementWakeLock(localRILRequest2);
- riljLog(localRILRequest2.serialString() + " Ack < " + requestToString(mRequest));
- }
- }
- ??? = findAndRemoveRequestFromList(i);
- if (??? == null)
- {
- Rlog.e("RILJ", "processResponse: Unexpected response! serial: " + i + " error: " + j);
- return null;
- }
- addToRilHistogram(???);
- if (k == 2)
- {
- sendAck();
- riljLog("Response received for " + ???.serialString() + " " + requestToString(mRequest) + " Sending ack to ril.cpp");
- }
- switch (mRequest)
- {
- default:
- if (j != 0) {
- switch (mRequest)
- {
- }
- }
- break;
- }
- for (;;)
- {
- return ???;
- if (mIccStatusChangedRegistrants == null) {
- break;
- }
- riljLog("ON enter sim puk fakeSimStatusChanged: reg count=" + mIccStatusChangedRegistrants.size());
- mIccStatusChangedRegistrants.notifyRegistrants();
- break;
- setRadioState(CommandsInterface.RadioState.RADIO_UNAVAILABLE);
- break;
- if (mIccStatusChangedRegistrants != null)
- {
- riljLog("ON some errors fakeSimStatusChanged: reg count=" + mIccStatusChangedRegistrants.size());
- mIccStatusChangedRegistrants.notifyRegistrants();
- continue;
- switch (mRequest)
- {
- default:
- break;
- case 14:
- if ((mTestingEmergencyCall.getAndSet(false)) && (mEmergencyCallbackModeRegistrant != null))
- {
- riljLog("testing emergency call, notify ECM Registrants");
- mEmergencyCallbackModeRegistrant.notifyRegistrant();
- }
- break;
- }
- }
- }
- }
- void processResponseDone(RILRequest paramRILRequest, RadioResponseInfo paramRadioResponseInfo, Object paramObject)
- {
- if (error == 0) {
- riljLog(paramRILRequest.serialString() + "< " + requestToString(mRequest) + " " + retToString(mRequest, paramObject));
- }
- for (;;)
- {
- mMetrics.writeOnRilSolicitedResponse(mPhoneId.intValue(), mSerial, error, mRequest, paramObject);
- if (paramRILRequest != null)
- {
- if (type == 0) {
- decrementWakeLock(paramRILRequest);
- }
- paramRILRequest.release();
- }
- return;
- riljLog(paramRILRequest.serialString() + "< " + requestToString(mRequest) + " error " + error);
- paramRILRequest.onError(error, paramObject);
- }
- }
- protected void processResponseDone(Object paramObject1, RadioResponseInfo paramRadioResponseInfo, Object paramObject2)
- {
- processResponseDone((RILRequest)paramObject1, paramRadioResponseInfo, paramObject2);
- }
- public void pullLceData(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(134, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.pullLceData(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "pullLceData", localRemoteException);
- }
- }
- }
- public void queryAvailableBandMode(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(66, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getAvailableBandModes(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "queryAvailableBandMode", localRemoteException);
- }
- }
- }
- public void queryCLIP(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(55, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getClip(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "queryCLIP", localRemoteException);
- }
- }
- }
- public void queryCallForwardStatus(int paramInt1, int paramInt2, String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- android.hardware.radio.V1_0.CallForwardInfo localCallForwardInfo;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(33, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " cfreason = " + paramInt1 + " serviceClass = " + paramInt2);
- localCallForwardInfo = new android.hardware.radio.V1_0.CallForwardInfo();
- reason = paramInt1;
- serviceClass = paramInt2;
- toa = PhoneNumberUtils.toaFromString(paramString);
- number = convertNullToEmptyString(paramString);
- timeSeconds = 0;
- }
- try
- {
- localIRadio.getCallForwardStatus(mSerial, localCallForwardInfo);
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "queryCallForwardStatus", paramString);
- }
- }
- }
- public void queryCallWaiting(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(35, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " serviceClass = " + paramInt);
- }
- try
- {
- localIRadio.getCallWaiting(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "queryCallWaiting", localRemoteException);
- }
- }
- }
- public void queryCdmaRoamingPreference(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(79, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getCdmaRoamingPreference(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "queryCdmaRoamingPreference", localRemoteException);
- }
- }
- }
- public void queryFacilityLock(String paramString1, String paramString2, int paramInt, Message paramMessage)
- {
- queryFacilityLockForApp(paramString1, paramString2, paramInt, null, paramMessage);
- }
- public void queryFacilityLockForApp(String paramString1, String paramString2, int paramInt, String paramString3, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(42, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " facility = " + paramString1 + " serviceClass = " + paramInt + " appId = " + paramString3);
- }
- try
- {
- localIRadio.getFacilityLockForApp(mSerial, convertNullToEmptyString(paramString1), convertNullToEmptyString(paramString2), paramInt, convertNullToEmptyString(paramString3));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "getFacilityLockForApp", paramString1);
- }
- }
- }
- public void queryTTYMode(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(81, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.getTTYMode(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "queryTTYMode", localRemoteException);
- }
- }
- }
- public void rejectCall(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(17, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.rejectCall(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "rejectCall", localRemoteException);
- }
- }
- }
- public void reportSmsMemoryStatus(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(102, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " available = " + paramBoolean);
- }
- try
- {
- localIRadio.reportSmsMemoryStatus(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "reportSmsMemoryStatus", localRemoteException);
- }
- }
- }
- public void reportStkServiceIsRunning(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(103, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.reportStkServiceIsRunning(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "reportStkServiceIsRunning", localRemoteException);
- }
- }
- }
- public void requestIccSimAuthentication(int paramInt, String paramString1, String paramString2, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(125, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.requestIccSimAuthentication(mSerial, paramInt, convertNullToEmptyString(paramString1), convertNullToEmptyString(paramString2));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "requestIccSimAuthentication", paramString1);
- }
- }
- }
- public void requestIsimAuthentication(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(105, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " nonce = " + paramString);
- }
- try
- {
- localIRadio.requestIsimAuthentication(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "requestIsimAuthentication", paramString);
- }
- }
- }
- public void requestShutdown(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(129, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.requestShutdown(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "requestShutdown", localRemoteException);
- }
- }
- }
- protected void resetProxyAndRequestList()
- {
- mRadioProxy = null;
- mOemHookProxy = null;
- mRadioProxyCookie.incrementAndGet();
- setRadioState(CommandsInterface.RadioState.RADIO_UNAVAILABLE);
- RILRequest.resetSerial();
- clearRequestList(1, false);
- }
- public void resetRadio(Message paramMessage)
- {
- throw new RuntimeException("resetRadio not expected to be called");
- }
- void riljLog(String paramString)
- {
- StringBuilder localStringBuilder;
- if (PrivacyLog.PRIVACY_LOG)
- {
- localStringBuilder = new StringBuilder().append(paramString);
- if (mPhoneId == null) {
- break label70;
- }
- }
- label70:
- for (paramString = " [SUB" + mPhoneId + "]";; paramString = "")
- {
- Rlog.d("RILJ", paramString);
- return;
- }
- }
- void riljLoge(String paramString)
- {
- StringBuilder localStringBuilder;
- if (PrivacyLog.PRIVACY_LOG)
- {
- localStringBuilder = new StringBuilder().append(paramString);
- if (mPhoneId == null) {
- break label70;
- }
- }
- label70:
- for (paramString = " [SUB" + mPhoneId + "]";; paramString = "")
- {
- Rlog.e("RILJ", paramString);
- return;
- }
- }
- void riljLoge(String paramString, Exception paramException)
- {
- StringBuilder localStringBuilder;
- if (PrivacyLog.PRIVACY_LOG)
- {
- localStringBuilder = new StringBuilder().append(paramString);
- if (mPhoneId == null) {
- break label71;
- }
- }
- label71:
- for (paramString = " [SUB" + mPhoneId + "]";; paramString = "")
- {
- Rlog.e("RILJ", paramString, paramException);
- return;
- }
- }
- void riljLogv(String paramString)
- {
- StringBuilder localStringBuilder;
- if (PrivacyLog.PRIVACY_LOG)
- {
- localStringBuilder = new StringBuilder().append(paramString);
- if (mPhoneId == null) {
- break label70;
- }
- }
- label70:
- for (paramString = " [SUB" + mPhoneId + "]";; paramString = "")
- {
- Rlog.v("RILJ", paramString);
- return;
- }
- }
- public void sendBurstDtmf(String paramString, int paramInt1, int paramInt2, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(85, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " dtmfString = " + paramString + " on = " + paramInt1 + " off = " + paramInt2);
- }
- try
- {
- localIRadio.sendBurstDtmf(mSerial, convertNullToEmptyString(paramString), paramInt1, paramInt2);
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendBurstDtmf", paramString);
- }
- }
- }
- public void sendCDMAFeatureCode(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(84, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " featureCode = " + paramString);
- }
- try
- {
- localIRadio.sendCDMAFeatureCode(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendCDMAFeatureCode", paramString);
- }
- }
- }
- public void sendCdmaSms(byte[] paramArrayOfByte, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- CdmaSmsMessage localCdmaSmsMessage;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(87, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- localCdmaSmsMessage = new CdmaSmsMessage();
- constructCdmaSendSmsRilRequest(localCdmaSmsMessage, paramArrayOfByte);
- }
- try
- {
- localIRadio.sendCdmaSms(mSerial, localCdmaSmsMessage);
- mMetrics.writeRilSendSms(mPhoneId.intValue(), mSerial, 2, 2);
- return;
- }
- catch (RemoteException|RuntimeException paramArrayOfByte)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendCdmaSms", paramArrayOfByte);
- }
- }
- }
- public void sendDeviceState(int paramInt, boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(138, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " " + paramInt + ":" + paramBoolean);
- }
- try
- {
- localIRadio.sendDeviceState(mSerial, paramInt, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendDeviceState", localRemoteException);
- }
- }
- }
- public void sendDtmf(char paramChar, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(24, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- int i = mSerial;
- StringBuilder localStringBuilder = new java/lang/StringBuilder;
- localStringBuilder.<init>();
- localIRadio.sendDtmf(i, paramChar + "");
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendDtmf", localRemoteException);
- }
- }
- }
- public void sendEnvelope(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(69, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " contents = " + paramString);
- }
- try
- {
- localIRadio.sendEnvelope(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendEnvelope", paramString);
- }
- }
- }
- public void sendEnvelopeWithStatus(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(107, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " contents = " + paramString);
- }
- try
- {
- localIRadio.sendEnvelopeWithStatus(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendEnvelopeWithStatus", paramString);
- }
- }
- }
- public void sendImsCdmaSms(byte[] paramArrayOfByte, int paramInt1, int paramInt2, Message paramMessage)
- {
- boolean bool = true;
- IRadio localIRadio = getRadioProxy(paramMessage);
- ImsSmsMessage localImsSmsMessage;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(113, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- localImsSmsMessage = new ImsSmsMessage();
- tech = 2;
- if ((byte)paramInt1 != 1) {
- break label166;
- }
- }
- for (;;)
- {
- retry = bool;
- messageRef = paramInt2;
- CdmaSmsMessage localCdmaSmsMessage = new CdmaSmsMessage();
- constructCdmaSendSmsRilRequest(localCdmaSmsMessage, paramArrayOfByte);
- cdmaMessage.add(localCdmaSmsMessage);
- try
- {
- localIRadio.sendImsSms(mSerial, localImsSmsMessage);
- mMetrics.writeRilSendSms(mPhoneId.intValue(), mSerial, 3, 1);
- return;
- label166:
- bool = false;
- }
- catch (RemoteException|RuntimeException paramArrayOfByte)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendImsCdmaSms", paramArrayOfByte);
- }
- }
- }
- }
- public void sendImsGsmSms(String paramString1, String paramString2, int paramInt1, int paramInt2, Message paramMessage)
- {
- boolean bool = true;
- IRadio localIRadio = getRadioProxy(paramMessage);
- ImsSmsMessage localImsSmsMessage;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(113, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- localImsSmsMessage = new ImsSmsMessage();
- tech = 1;
- if ((byte)paramInt1 != 1) {
- break label157;
- }
- }
- for (;;)
- {
- retry = bool;
- messageRef = paramInt2;
- paramString1 = constructGsmSendSmsRilRequest(paramString1, paramString2);
- gsmMessage.add(paramString1);
- try
- {
- localIRadio.sendImsSms(mSerial, localImsSmsMessage);
- mMetrics.writeRilSendSms(mPhoneId.intValue(), mSerial, 3, 1);
- return;
- label157:
- bool = false;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendImsGsmSms", paramString1);
- }
- }
- }
- }
- public void sendSMS(String paramString1, String paramString2, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(25, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- paramString1 = constructGsmSendSmsRilRequest(paramString1, paramString2);
- }
- try
- {
- localIRadio.sendSms(mSerial, paramString1);
- mMetrics.writeRilSendSms(mPhoneId.intValue(), mSerial, 1, 1);
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendSMS", paramString1);
- }
- }
- }
- public void sendSMSExpectMore(String paramString1, String paramString2, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(26, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- paramString1 = constructGsmSendSmsRilRequest(paramString1, paramString2);
- }
- try
- {
- localIRadio.sendSMSExpectMore(mSerial, paramString1);
- mMetrics.writeRilSendSms(mPhoneId.intValue(), mSerial, 1, 1);
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendSMSExpectMore", paramString1);
- }
- }
- }
- public void sendTerminalResponse(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(70, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " contents = " + paramString);
- }
- try
- {
- localIRadio.sendTerminalResponseToSim(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendTerminalResponse", paramString);
- }
- }
- }
- public void sendUSSD(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(29, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " ussd = " + "*******");
- }
- try
- {
- localIRadio.sendUssd(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "sendUSSD", paramString);
- }
- }
- }
- public void separateConnection(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(52, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " gsmIndex = " + paramInt);
- }
- try
- {
- localIRadio.separateConnection(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "separateConnection", localRemoteException);
- }
- }
- }
- public void setAllowedCarriers(List<CarrierIdentifier> paramList, Message paramMessage)
- {
- Preconditions.checkNotNull(paramList, "Allowed carriers list cannot be null.");
- IRadio localIRadio = getRadioProxy(paramMessage);
- RILRequest localRILRequest;
- boolean bool;
- if (localIRadio != null)
- {
- localRILRequest = obtainRequest(136, paramMessage, mRILDefaultWorkSource);
- paramMessage = "";
- for (int i = 0; i < paramList.size(); i++) {
- paramMessage = paramMessage + paramList.get(i) + " ";
- }
- riljLog(localRILRequest.serialString() + "> " + requestToString(mRequest) + "carriers = " + paramMessage);
- label165:
- CarrierIdentifier localCarrierIdentifier;
- Carrier localCarrier;
- if (paramList.size() == 0)
- {
- bool = true;
- paramMessage = new CarrierRestrictions();
- Iterator localIterator = paramList.iterator();
- if (!localIterator.hasNext()) {
- break label354;
- }
- localCarrierIdentifier = (CarrierIdentifier)localIterator.next();
- localCarrier = new Carrier();
- mcc = convertNullToEmptyString(localCarrierIdentifier.getMcc());
- mnc = convertNullToEmptyString(localCarrierIdentifier.getMnc());
- i = 0;
- paramList = null;
- if (TextUtils.isEmpty(localCarrierIdentifier.getSpn())) {
- break label285;
- }
- i = 1;
- paramList = localCarrierIdentifier.getSpn();
- }
- for (;;)
- {
- matchType = i;
- matchData = convertNullToEmptyString(paramList);
- allowedCarriers.add(localCarrier);
- break label165;
- bool = false;
- break;
- label285:
- if (!TextUtils.isEmpty(localCarrierIdentifier.getImsi()))
- {
- i = 2;
- paramList = localCarrierIdentifier.getImsi();
- }
- else if (!TextUtils.isEmpty(localCarrierIdentifier.getGid1()))
- {
- i = 3;
- paramList = localCarrierIdentifier.getGid1();
- }
- else if (!TextUtils.isEmpty(localCarrierIdentifier.getGid2()))
- {
- i = 4;
- paramList = localCarrierIdentifier.getGid2();
- }
- }
- }
- try
- {
- label354:
- localIRadio.setAllowedCarriers(mSerial, bool, paramMessage);
- return;
- }
- catch (RemoteException|RuntimeException paramList)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(localRILRequest, "setAllowedCarriers", paramList);
- }
- }
- }
- public void setBandMode(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(65, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " bandMode = " + paramInt);
- }
- try
- {
- localIRadio.setBandMode(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setBandMode", localRemoteException);
- }
- }
- }
- public void setCLIR(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(32, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " clirMode = " + paramInt);
- }
- try
- {
- localIRadio.setClir(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setCLIR", localRemoteException);
- }
- }
- }
- public void setCallForward(int paramInt1, int paramInt2, int paramInt3, String paramString, int paramInt4, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- android.hardware.radio.V1_0.CallForwardInfo localCallForwardInfo;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(34, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " action = " + paramInt1 + " cfReason = " + paramInt2 + " serviceClass = " + paramInt3 + " timeSeconds = " + paramInt4);
- localCallForwardInfo = new android.hardware.radio.V1_0.CallForwardInfo();
- status = paramInt1;
- reason = paramInt2;
- serviceClass = paramInt3;
- toa = PhoneNumberUtils.toaFromString(paramString);
- number = convertNullToEmptyString(paramString);
- timeSeconds = paramInt4;
- }
- try
- {
- localIRadio.setCallForward(mSerial, localCallForwardInfo);
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setCallForward", paramString);
- }
- }
- }
- public void setCallWaiting(boolean paramBoolean, int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(36, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " enable = " + paramBoolean + " serviceClass = " + paramInt);
- }
- try
- {
- localIRadio.setCallWaiting(mSerial, paramBoolean, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setCallWaiting", localRemoteException);
- }
- }
- }
- public void setCdmaBroadcastActivation(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(94, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " activate = " + paramBoolean);
- }
- try
- {
- localIRadio.setCdmaBroadcastActivation(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setCdmaBroadcastActivation", localRemoteException);
- }
- }
- }
- public void setCdmaBroadcastConfig(CdmaSmsBroadcastConfigInfo[] paramArrayOfCdmaSmsBroadcastConfigInfo, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- ArrayList localArrayList;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(93, paramMessage, mRILDefaultWorkSource);
- localArrayList = new ArrayList();
- int i = 0;
- int j = paramArrayOfCdmaSmsBroadcastConfigInfo.length;
- while (i < j)
- {
- CdmaSmsBroadcastConfigInfo localCdmaSmsBroadcastConfigInfo = paramArrayOfCdmaSmsBroadcastConfigInfo[i];
- for (int k = localCdmaSmsBroadcastConfigInfo.getFromServiceCategory(); k <= localCdmaSmsBroadcastConfigInfo.getToServiceCategory(); k++)
- {
- CdmaBroadcastSmsConfigInfo localCdmaBroadcastSmsConfigInfo = new CdmaBroadcastSmsConfigInfo();
- serviceCategory = k;
- language = localCdmaSmsBroadcastConfigInfo.getLanguage();
- selected = localCdmaSmsBroadcastConfigInfo.isSelected();
- localArrayList.add(localCdmaBroadcastSmsConfigInfo);
- }
- i++;
- }
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " with " + localArrayList.size() + " configs : ");
- paramArrayOfCdmaSmsBroadcastConfigInfo = localArrayList.iterator();
- while (paramArrayOfCdmaSmsBroadcastConfigInfo.hasNext()) {
- riljLog(((CdmaBroadcastSmsConfigInfo)paramArrayOfCdmaSmsBroadcastConfigInfo.next()).toString());
- }
- }
- try
- {
- localIRadio.setCdmaBroadcastConfig(mSerial, localArrayList);
- return;
- }
- catch (RemoteException|RuntimeException paramArrayOfCdmaSmsBroadcastConfigInfo)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setCdmaBroadcastConfig", paramArrayOfCdmaSmsBroadcastConfigInfo);
- }
- }
- }
- public void setCdmaRoamingPreference(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(78, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " cdmaRoamingType = " + paramInt);
- }
- try
- {
- localIRadio.setCdmaRoamingPreference(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setCdmaRoamingPreference", localRemoteException);
- }
- }
- }
- public void setCdmaSubscriptionSource(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(77, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " cdmaSubscription = " + paramInt);
- }
- try
- {
- localIRadio.setCdmaSubscriptionSource(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setCdmaSubscriptionSource", localRemoteException);
- }
- }
- }
- void setCellInfoListRate()
- {
- setCellInfoListRate(Integer.MAX_VALUE, null, mRILDefaultWorkSource);
- }
- public void setCellInfoListRate(int paramInt, Message paramMessage, WorkSource paramWorkSource)
- {
- WorkSource localWorkSource = getDeafultWorkSourceIfInvalid(paramWorkSource);
- paramWorkSource = getRadioProxy(paramMessage);
- if (paramWorkSource != null)
- {
- paramMessage = obtainRequest(110, paramMessage, localWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " rateInMillis = " + paramInt);
- }
- try
- {
- paramWorkSource.setCellInfoListRate(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException paramWorkSource)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setCellInfoListRate", paramWorkSource);
- }
- }
- }
- public void setDataAllowed(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(123, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " allowed = " + paramBoolean);
- }
- try
- {
- localIRadio.setDataAllowed(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setDataAllowed", localRemoteException);
- }
- }
- }
- public void setDataProfile(DataProfile[] paramArrayOfDataProfile, boolean paramBoolean, Message paramMessage)
- {
- int i = 0;
- IRadio localIRadio = getRadioProxy(paramMessage);
- ArrayList localArrayList;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(128, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " with data profiles : ");
- int j = paramArrayOfDataProfile.length;
- for (int k = 0; k < j; k++) {
- riljLog(paramArrayOfDataProfile[k].toString());
- }
- localArrayList = new ArrayList();
- j = paramArrayOfDataProfile.length;
- for (k = i; k < j; k++) {
- localArrayList.add(convertToHalDataProfile(paramArrayOfDataProfile[k]));
- }
- }
- try
- {
- localIRadio.setDataProfile(mSerial, localArrayList, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException paramArrayOfDataProfile)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setDataProfile", paramArrayOfDataProfile);
- }
- }
- }
- public void setFacilityLock(String paramString1, boolean paramBoolean, String paramString2, int paramInt, Message paramMessage)
- {
- setFacilityLockForApp(paramString1, paramBoolean, paramString2, paramInt, null, paramMessage);
- }
- public void setFacilityLockForApp(String paramString1, boolean paramBoolean, String paramString2, int paramInt, String paramString3, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(43, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " facility = " + paramString1 + " lockstate = " + paramBoolean + " serviceClass = " + paramInt + " appId = " + paramString3);
- }
- try
- {
- localIRadio.setFacilityLockForApp(mSerial, convertNullToEmptyString(paramString1), paramBoolean, convertNullToEmptyString(paramString2), paramInt, convertNullToEmptyString(paramString3));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setFacilityLockForApp", paramString1);
- }
- }
- }
- public void setGsmBroadcastActivation(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(91, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " activate = " + paramBoolean);
- }
- try
- {
- localIRadio.setGsmBroadcastActivation(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setGsmBroadcastActivation", localRemoteException);
- }
- }
- }
- public void setGsmBroadcastConfig(SmsBroadcastConfigInfo[] paramArrayOfSmsBroadcastConfigInfo, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- ArrayList localArrayList;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(90, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " with " + paramArrayOfSmsBroadcastConfigInfo.length + " configs : ");
- for (int i = 0; i < paramArrayOfSmsBroadcastConfigInfo.length; i++) {
- riljLog(paramArrayOfSmsBroadcastConfigInfo[i].toString());
- }
- localArrayList = new ArrayList();
- int j = paramArrayOfSmsBroadcastConfigInfo.length;
- for (i = 0; i < j; i++)
- {
- GsmBroadcastSmsConfigInfo localGsmBroadcastSmsConfigInfo = new GsmBroadcastSmsConfigInfo();
- fromServiceId = paramArrayOfSmsBroadcastConfigInfo[i].getFromServiceId();
- toServiceId = paramArrayOfSmsBroadcastConfigInfo[i].getToServiceId();
- fromCodeScheme = paramArrayOfSmsBroadcastConfigInfo[i].getFromCodeScheme();
- toCodeScheme = paramArrayOfSmsBroadcastConfigInfo[i].getToCodeScheme();
- selected = paramArrayOfSmsBroadcastConfigInfo[i].isSelected();
- localArrayList.add(localGsmBroadcastSmsConfigInfo);
- }
- }
- try
- {
- localIRadio.setGsmBroadcastConfig(mSerial, localArrayList);
- return;
- }
- catch (RemoteException|RuntimeException paramArrayOfSmsBroadcastConfigInfo)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setGsmBroadcastConfig", paramArrayOfSmsBroadcastConfigInfo);
- }
- }
- }
- public void setInitialAttachApn(DataProfile paramDataProfile, boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(111, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + paramDataProfile);
- }
- try
- {
- localIRadio.setInitialAttachApn(mSerial, convertToHalDataProfile(paramDataProfile), modemCognitive, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException paramDataProfile)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setInitialAttachApn", paramDataProfile);
- }
- }
- }
- public void setLocationUpdates(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(76, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " enable = " + paramBoolean);
- }
- try
- {
- localIRadio.setLocationUpdates(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setLocationUpdates", localRemoteException);
- }
- }
- }
- public void setMute(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(53, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " enableMute = " + paramBoolean);
- }
- try
- {
- localIRadio.setMute(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setMute", localRemoteException);
- }
- }
- }
- public void setNetworkSelectionModeAutomatic(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(46, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.setNetworkSelectionModeAutomatic(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setNetworkSelectionModeAutomatic", localRemoteException);
- }
- }
- }
- public void setNetworkSelectionModeManual(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(47, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " operatorNumeric = " + paramString);
- }
- try
- {
- localIRadio.setNetworkSelectionModeManual(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setNetworkSelectionModeManual", paramString);
- }
- }
- }
- public void setOnNITZTime(Handler paramHandler, int paramInt, Object paramObject)
- {
- super.setOnNITZTime(paramHandler, paramInt, paramObject);
- if (mLastNITZTimeInfo != null) {
- mNITZTimeRegistrant.notifyRegistrant(new AsyncResult(null, mLastNITZTimeInfo, null));
- }
- }
- public void setPhoneType(int paramInt)
- {
- riljLog("setPhoneType=" + paramInt + " old value=" + mPhoneType);
- mPhoneType = paramInt;
- }
- public void setPreferredNetworkType(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(73, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " networkType = " + paramInt);
- mPreferredNetworkType = paramInt;
- mMetrics.writeSetPreferredNetworkType(mPhoneId.intValue(), paramInt);
- }
- try
- {
- localIRadio.setPreferredNetworkType(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setPreferredNetworkType", localRemoteException);
- }
- }
- }
- public void setPreferredVoicePrivacy(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(82, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " enable = " + paramBoolean);
- }
- try
- {
- localIRadio.setPreferredVoicePrivacy(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setPreferredVoicePrivacy", localRemoteException);
- }
- }
- }
- public void setRadioCapability(RadioCapability paramRadioCapability, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- android.hardware.radio.V1_0.RadioCapability localRadioCapability;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(131, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " RadioCapability = " + paramRadioCapability.toString());
- localRadioCapability = new android.hardware.radio.V1_0.RadioCapability();
- session = paramRadioCapability.getSession();
- phase = paramRadioCapability.getPhase();
- raf = paramRadioCapability.getRadioAccessFamily();
- logicalModemUuid = convertNullToEmptyString(paramRadioCapability.getLogicalModemUuid());
- status = paramRadioCapability.getStatus();
- }
- try
- {
- localIRadio.setRadioCapability(mSerial, localRadioCapability);
- return;
- }
- catch (Exception paramRadioCapability)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setRadioCapability", paramRadioCapability);
- }
- }
- }
- public void setRadioPower(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(23, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " on = " + paramBoolean);
- }
- try
- {
- localIRadio.setRadioPower(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setRadioPower", localRemoteException);
- }
- }
- }
- public void setSimCardPower(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(140, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " " + paramBoolean);
- }
- try
- {
- localIRadio.setSimCardPower(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setSimCardPower", localRemoteException);
- }
- }
- }
- public void setSmscAddress(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(101, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " address = " + paramString);
- }
- try
- {
- localIRadio.setSmscAddress(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setSmscAddress", paramString);
- }
- }
- }
- public void setSuppServiceNotifications(boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(62, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " enable = " + paramBoolean);
- }
- try
- {
- localIRadio.setSuppServiceNotifications(mSerial, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setSuppServiceNotifications", localRemoteException);
- }
- }
- }
- public void setTTYMode(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(80, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " ttyMode = " + paramInt);
- }
- try
- {
- localIRadio.setTTYMode(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setTTYMode", localRemoteException);
- }
- }
- }
- public void setUiccSubscription(int paramInt1, int paramInt2, int paramInt3, int paramInt4, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- SelectUiccSub localSelectUiccSub;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(122, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " slot = " + paramInt1 + " appIndex = " + paramInt2 + " subId = " + paramInt3 + " subStatus = " + paramInt4);
- localSelectUiccSub = new SelectUiccSub();
- slot = paramInt1;
- appIndex = paramInt2;
- subType = paramInt3;
- actStatus = paramInt4;
- }
- try
- {
- localIRadio.setUiccSubscription(mSerial, localSelectUiccSub);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setUiccSubscription", localRemoteException);
- }
- }
- }
- public void setUnsolResponseFilter(int paramInt, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(139, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " " + paramInt);
- }
- try
- {
- localIRadio.setIndicationFilter(mSerial, paramInt);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setIndicationFilter", localRemoteException);
- }
- }
- }
- public void setupDataCall(int paramInt, DataProfile paramDataProfile, boolean paramBoolean1, boolean paramBoolean2, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- DataProfileInfo localDataProfileInfo;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(27, paramMessage, mRILDefaultWorkSource);
- localDataProfileInfo = convertToHalDataProfile(paramDataProfile);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + ",radioTechnology=" + paramInt + ",isRoaming=" + paramBoolean1 + ",allowRoaming=" + paramBoolean2 + "," + paramDataProfile);
- }
- try
- {
- localIRadio.setupDataCall(mSerial, paramInt, localDataProfileInfo, modemCognitive, paramBoolean2, paramBoolean1);
- mMetrics.writeRilSetupDataCall(mPhoneId.intValue(), mSerial, paramInt, profileId, apn, authType, protocol);
- return;
- }
- catch (RemoteException|RuntimeException paramDataProfile)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "setupDataCall", paramDataProfile);
- }
- }
- }
- public void startDtmf(char paramChar, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(49, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- int i = mSerial;
- StringBuilder localStringBuilder = new java/lang/StringBuilder;
- localStringBuilder.<init>();
- localIRadio.startDtmf(i, paramChar + "");
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "startDtmf", localRemoteException);
- }
- }
- }
- public void startLceService(int paramInt, boolean paramBoolean, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(132, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " reportIntervalMs = " + paramInt + " pullMode = " + paramBoolean);
- }
- try
- {
- localIRadio.startLceService(mSerial, paramInt, paramBoolean);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "startLceService", localRemoteException);
- }
- }
- }
- public void stopDtmf(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(50, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.stopDtmf(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "stopDtmf", localRemoteException);
- }
- }
- }
- public void stopLceService(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(133, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.stopLceService(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "stopLceService", localRemoteException);
- }
- }
- }
- public void supplyIccPin(String paramString, Message paramMessage)
- {
- supplyIccPinForApp(paramString, null, paramMessage);
- }
- public void supplyIccPin2(String paramString, Message paramMessage)
- {
- supplyIccPin2ForApp(paramString, null, paramMessage);
- }
- public void supplyIccPin2ForApp(String paramString1, String paramString2, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(4, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " aid = " + paramString2);
- }
- try
- {
- localIRadio.supplyIccPin2ForApp(mSerial, convertNullToEmptyString(paramString1), convertNullToEmptyString(paramString2));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "supplyIccPin2ForApp", paramString1);
- }
- }
- }
- public void supplyIccPinForApp(String paramString1, String paramString2, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(2, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " aid = " + paramString2);
- }
- try
- {
- localIRadio.supplyIccPinForApp(mSerial, convertNullToEmptyString(paramString1), convertNullToEmptyString(paramString2));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "supplyIccPinForApp", paramString1);
- }
- }
- }
- public void supplyIccPuk(String paramString1, String paramString2, Message paramMessage)
- {
- supplyIccPukForApp(paramString1, paramString2, null, paramMessage);
- }
- public void supplyIccPuk2(String paramString1, String paramString2, Message paramMessage)
- {
- supplyIccPuk2ForApp(paramString1, paramString2, null, paramMessage);
- }
- public void supplyIccPuk2ForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(5, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " aid = " + paramString3);
- }
- try
- {
- localIRadio.supplyIccPuk2ForApp(mSerial, convertNullToEmptyString(paramString1), convertNullToEmptyString(paramString2), convertNullToEmptyString(paramString3));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "supplyIccPuk2ForApp", paramString1);
- }
- }
- }
- public void supplyIccPukForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(3, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " aid = " + paramString3);
- }
- try
- {
- localIRadio.supplyIccPukForApp(mSerial, convertNullToEmptyString(paramString1), convertNullToEmptyString(paramString2), convertNullToEmptyString(paramString3));
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "supplyIccPukForApp", paramString1);
- }
- }
- }
- public void supplyNetworkDepersonalization(String paramString, Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(8, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest) + " netpin = " + paramString);
- }
- try
- {
- localIRadio.supplyNetworkDepersonalization(mSerial, convertNullToEmptyString(paramString));
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "supplyNetworkDepersonalization", paramString);
- }
- }
- }
- public void switchWaitingOrHoldingAndActive(Message paramMessage)
- {
- IRadio localIRadio = getRadioProxy(paramMessage);
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(15, paramMessage, mRILDefaultWorkSource);
- riljLog(paramMessage.serialString() + "> " + requestToString(mRequest));
- }
- try
- {
- localIRadio.switchWaitingOrHoldingAndActive(mSerial);
- return;
- }
- catch (RemoteException|RuntimeException localRemoteException)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "switchWaitingOrHoldingAndActive", localRemoteException);
- }
- }
- }
- public void testingEmergencyCall()
- {
- riljLog("testingEmergencyCall");
- mTestingEmergencyCall.set(true);
- }
- void unsljLog(int paramInt)
- {
- riljLog("[UNSL]< " + responseToString(paramInt));
- }
- void unsljLogMore(int paramInt, String paramString)
- {
- riljLog("[UNSL]< " + responseToString(paramInt) + " " + paramString);
- }
- void unsljLogRet(int paramInt, Object paramObject)
- {
- riljLog("[UNSL]< " + responseToString(paramInt) + " " + retToString(paramInt, paramObject));
- }
- void unsljLogvRet(int paramInt, Object paramObject)
- {
- riljLogv("[UNSL]< " + responseToString(paramInt) + " " + retToString(paramInt, paramObject));
- }
- void writeMetricsCallRing(char[] paramArrayOfChar)
- {
- mMetrics.writeRilCallRing(mPhoneId.intValue(), paramArrayOfChar);
- }
- void writeMetricsModemRestartEvent(String paramString)
- {
- mMetrics.writeModemRestartEvent(mPhoneId.intValue(), paramString);
- }
- void writeMetricsNewSms(int paramInt1, int paramInt2)
- {
- mMetrics.writeRilNewSms(mPhoneId.intValue(), paramInt1, paramInt2);
- }
- void writeMetricsSrvcc(int paramInt)
- {
- mMetrics.writeRilSrvcc(mPhoneId.intValue(), paramInt);
- }
- public void writeSmsToRuim(int paramInt, String paramString, Message paramMessage)
- {
- paramInt = translateStatus(paramInt);
- IRadio localIRadio = getRadioProxy(paramMessage);
- CdmaSmsWriteArgs localCdmaSmsWriteArgs;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(96, paramMessage, mRILDefaultWorkSource);
- localCdmaSmsWriteArgs = new CdmaSmsWriteArgs();
- status = paramInt;
- constructCdmaSendSmsRilRequest(message, IccUtils.hexStringToBytes(paramString));
- }
- try
- {
- localIRadio.writeSmsToRuim(mSerial, localCdmaSmsWriteArgs);
- return;
- }
- catch (RemoteException|RuntimeException paramString)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "writeSmsToRuim", paramString);
- }
- }
- }
- public void writeSmsToSim(int paramInt, String paramString1, String paramString2, Message paramMessage)
- {
- paramInt = translateStatus(paramInt);
- IRadio localIRadio = getRadioProxy(paramMessage);
- SmsWriteArgs localSmsWriteArgs;
- if (localIRadio != null)
- {
- paramMessage = obtainRequest(63, paramMessage, mRILDefaultWorkSource);
- localSmsWriteArgs = new SmsWriteArgs();
- status = paramInt;
- smsc = convertNullToEmptyString(paramString1);
- pdu = convertNullToEmptyString(paramString2);
- }
- try
- {
- localIRadio.writeSmsToSim(mSerial, localSmsWriteArgs);
- return;
- }
- catch (RemoteException|RuntimeException paramString1)
- {
- for (;;)
- {
- handleRadioProxyExceptionForRR(paramMessage, "writeSmsToSim", paramString1);
- }
- }
- }
- final class RadioProxyDeathRecipient
- implements IHwBinder.DeathRecipient
- {
- RadioProxyDeathRecipient() {}
- public void serviceDied(long paramLong)
- {
- riljLog("serviceDied");
- mRilHandler.sendMessageDelayed(mRilHandler.obtainMessage(6, Long.valueOf(paramLong)), 4000L);
- }
- }
- class RilHandler
- extends Handler
- {
- RilHandler() {}
- public void handleMessage(Message paramMessage)
- {
- switch (what)
- {
- }
- for (;;)
- {
- return;
- int j;
- synchronized (mRequestList)
- {
- if ((arg1 == mWlSequenceNum) && (RIL.-wrap2(RIL.this, 0)))
- {
- int i = mRequestList.size();
- paramMessage = new java/lang/StringBuilder;
- paramMessage.<init>();
- Rlog.d("RILJ", "WAKE_LOCK_TIMEOUT mRequestList=" + i);
- for (j = 0; j < i; j++)
- {
- paramMessage = (RILRequest)mRequestList.valueAt(j);
- StringBuilder localStringBuilder = new java/lang/StringBuilder;
- localStringBuilder.<init>();
- Rlog.d("RILJ", j + ": [" + mSerial + "] " + RIL.requestToString(mRequest));
- }
- }
- }
- if (arg1 == mAckWlSequenceNum)
- {
- RIL.-wrap2(RIL.this, 1);
- continue;
- j = arg1;
- paramMessage = RIL.-wrap3(RIL.this, j);
- if (paramMessage != null)
- {
- if (mResult != null)
- {
- ??? = RIL.-wrap4(paramMessage);
- AsyncResult.forMessage(mResult, ???, null);
- mResult.sendToTarget();
- RIL.-get0(RIL.this).writeOnRilTimeoutResponse(mPhoneId.intValue(), mSerial, mRequest);
- }
- RIL.-wrap5(RIL.this, paramMessage);
- paramMessage.release();
- continue;
- riljLog("handleMessage: EVENT_RADIO_PROXY_DEAD cookie = " + obj + " mRadioProxyCookie = " + mRadioProxyCookie.get());
- if (((Long)obj).longValue() == mRadioProxyCookie.get())
- {
- resetProxyAndRequestList();
- RIL.-wrap0(RIL.this, null);
- RIL.-wrap1(RIL.this, null);
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement