Home
last modified time | relevance | path

Searched refs:CellInfo (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/base/telephony/java/android/telephony/
DCellInfo.java22 import android.hardware.radio.V1_4.CellInfo.Info;
34 public abstract class CellInfo implements Parcelable { class
151 protected CellInfo() { in CellInfo() method in CellInfo
158 protected CellInfo(CellInfo ci) { in CellInfo() method in CellInfo
201 public CellInfo sanitizeLocationInfo() { in sanitizeLocationInfo()
240 CellInfo o = (CellInfo) other; in equals()
289 protected CellInfo(Parcel in) { in CellInfo() method in CellInfo
296 …public static final @android.annotation.NonNull Creator<CellInfo> CREATOR = new Creator<CellInfo>(…
298 public CellInfo createFromParcel(Parcel in) {
312 public CellInfo[] newArray(int size) {
[all …]
DCellIdentityLte.java57 super(TAG, CellInfo.TYPE_LTE, null, null, null, null); in CellIdentityLte()
58 mCi = CellInfo.UNAVAILABLE; in CellIdentityLte()
59 mPci = CellInfo.UNAVAILABLE; in CellIdentityLte()
60 mTac = CellInfo.UNAVAILABLE; in CellIdentityLte()
61 mEarfcn = CellInfo.UNAVAILABLE; in CellIdentityLte()
62 mBandwidth = CellInfo.UNAVAILABLE; in CellIdentityLte()
77 this(ci, pci, tac, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, String.valueOf(mcc), in CellIdentityLte()
97 super(TAG, CellInfo.TYPE_LTE, mccStr, mncStr, alphal, alphas); in CellIdentityLte()
107 this(cid.ci, cid.pci, cid.tac, cid.earfcn, CellInfo.UNAVAILABLE, cid.mcc, cid.mnc, "", ""); in CellIdentityLte()
124 return new CellIdentityLte(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
[all …]
DCellIdentityCdma.java70 super(TAG, CellInfo.TYPE_CDMA, null, null, null, null); in CellIdentityCdma()
71 mNetworkId = CellInfo.UNAVAILABLE; in CellIdentityCdma()
72 mSystemId = CellInfo.UNAVAILABLE; in CellIdentityCdma()
73 mBasestationId = CellInfo.UNAVAILABLE; in CellIdentityCdma()
74 mLongitude = CellInfo.UNAVAILABLE; in CellIdentityCdma()
75 mLatitude = CellInfo.UNAVAILABLE; in CellIdentityCdma()
94 super(TAG, CellInfo.TYPE_CDMA, null, null, alphal, alphas); in CellIdentityCdma()
105 mLongitude = mLatitude = CellInfo.UNAVAILABLE; in CellIdentityCdma()
131 return new CellIdentityCdma(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
132 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
[all …]
DCellIdentityGsm.java53 super(TAG, CellInfo.TYPE_GSM, null, null, null, null); in CellIdentityGsm()
54 mLac = CellInfo.UNAVAILABLE; in CellIdentityGsm()
55 mCid = CellInfo.UNAVAILABLE; in CellIdentityGsm()
56 mArfcn = CellInfo.UNAVAILABLE; in CellIdentityGsm()
57 mBsic = CellInfo.UNAVAILABLE; in CellIdentityGsm()
75 super(TAG, CellInfo.TYPE_GSM, mccStr, mncStr, alphal, alphas); in CellIdentityGsm()
85 cid.bsic == (byte) 0xFF ? CellInfo.UNAVAILABLE : cid.bsic, in CellIdentityGsm()
92 cid.base.bsic == (byte) 0xFF ? CellInfo.UNAVAILABLE : cid.base.bsic, cid.base.mcc, in CellIdentityGsm()
107 return new CellIdentityGsm(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
108 CellInfo.UNAVAILABLE, mMccStr, mMncStr, mAlphaLong, mAlphaShort); in sanitizeLocationInfo()
[all …]
DCellIdentityWcdma.java53 super(TAG, CellInfo.TYPE_WCDMA, null, null, null, null); in CellIdentityWcdma()
54 mLac = CellInfo.UNAVAILABLE; in CellIdentityWcdma()
55 mCid = CellInfo.UNAVAILABLE; in CellIdentityWcdma()
56 mPsc = CellInfo.UNAVAILABLE; in CellIdentityWcdma()
57 mUarfcn = CellInfo.UNAVAILABLE; in CellIdentityWcdma()
75 super(TAG, CellInfo.TYPE_WCDMA, mccStr, mncStr, alphal, alphas); in CellIdentityWcdma()
101 return new CellIdentityWcdma(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
102 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mMccStr, mMncStr, in sanitizeLocationInfo()
117 return (mMccStr != null) ? Integer.valueOf(mMccStr) : CellInfo.UNAVAILABLE; in getMcc()
127 return (mMncStr != null) ? Integer.valueOf(mMncStr) : CellInfo.UNAVAILABLE; in getMnc()
[all …]
DCellIdentityTdscdma.java53 super(TAG, CellInfo.TYPE_TDSCDMA, null, null, null, null); in CellIdentityTdscdma()
54 mLac = CellInfo.UNAVAILABLE; in CellIdentityTdscdma()
55 mCid = CellInfo.UNAVAILABLE; in CellIdentityTdscdma()
56 mCpid = CellInfo.UNAVAILABLE; in CellIdentityTdscdma()
57 mUarfcn = CellInfo.UNAVAILABLE; in CellIdentityTdscdma()
76 super(TAG, CellInfo.TYPE_TDSCDMA, mcc, mnc, alphal, alphas); in CellIdentityTdscdma()
90 this(cid.mcc, cid.mnc, cid.lac, cid.cid, cid.cpid, CellInfo.UNAVAILABLE, "", ""); in CellIdentityTdscdma()
101 return new CellIdentityTdscdma(mMccStr, mMncStr, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
102 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort); in sanitizeLocationInfo()
177 int lac = mLac != CellInfo.UNAVAILABLE ? mLac : -1; in asCellLocation()
[all …]
DCellSignalStrengthTdscdma.java78 this(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in CellSignalStrengthTdscdma()
79 tdscdma.rscp != CellInfo.UNAVAILABLE ? -tdscdma.rscp : tdscdma.rscp); in CellSignalStrengthTdscdma()
81 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthTdscdma()
92 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthTdscdma()
119 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
120 mBitErrorRate = CellInfo.UNAVAILABLE; in setDefaultValues()
121 mRscp = CellInfo.UNAVAILABLE; in setDefaultValues()
185 if (mRscp != CellInfo.UNAVAILABLE) return getAsuFromRscpDbm(mRscp); in getAsuLevel()
188 if (mRssi != CellInfo.UNAVAILABLE) return getAsuFromRssiDbm(mRssi); in getAsuLevel()
189 return getAsuFromRscpDbm(CellInfo.UNAVAILABLE); in getAsuLevel()
DCellSignalStrength.java116 if (asu > 31 || asu < 0) return CellInfo.UNAVAILABLE; in getRssiDbmFromAsu()
123 if (dbm == CellInfo.UNAVAILABLE) return 99; in getAsuFromRssiDbm()
130 if (asu > 96 || asu < 0) return CellInfo.UNAVAILABLE; in getRscpDbmFromAsu()
137 if (dbm == CellInfo.UNAVAILABLE) return 255; in getAsuFromRscpDbm()
144 if (asu > 49 || asu < 0) return CellInfo.UNAVAILABLE; in getEcNoDbFromAsu()
150 if (value < rangeMin || value > rangeMax) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable()
157 if ((value < rangeMin || value > rangeMax) && value != special) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable()
DCellSignalStrengthWcdma.java100 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE); in CellSignalStrengthWcdma()
102 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthWcdma()
115 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthWcdma()
143 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
144 mBitErrorRate = CellInfo.UNAVAILABLE; in setDefaultValues()
145 mRscp = CellInfo.UNAVAILABLE; in setDefaultValues()
146 mEcNo = CellInfo.UNAVAILABLE; in setDefaultValues()
209 if (mRscp != CellInfo.UNAVAILABLE) return mRscp; in getDbm()
222 if (mRscp != CellInfo.UNAVAILABLE) return getAsuFromRscpDbm(mRscp); in getAsuLevel()
225 if (mRssi != CellInfo.UNAVAILABLE) return getAsuFromRssiDbm(mRssi); in getAsuLevel()
[all …]
DCellIdentity.java108 public @CellInfo.Type int getType() { in getType()
225 case CellInfo.TYPE_GSM: return CellIdentityGsm.createFromParcelBody(in);
226 case CellInfo.TYPE_WCDMA: return CellIdentityWcdma.createFromParcelBody(in);
227 case CellInfo.TYPE_CDMA: return CellIdentityCdma.createFromParcelBody(in);
228 case CellInfo.TYPE_LTE: return CellIdentityLte.createFromParcelBody(in);
229 case CellInfo.TYPE_TDSCDMA:
231 case CellInfo.TYPE_NR: return CellIdentityNr.createFromParcelBody(in);
249 if (value < rangeMin || value > rangeMax) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable()
255 if (value < rangeMin || value > rangeMax) return CellInfo.UNAVAILABLE_LONG; in inRangeOrUnavailable()
262 if ((value < rangeMin || value > rangeMax) && value != special) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable()
DCellIdentityNr.java57 super(TAG, CellInfo.TYPE_NR, mccStr, mncStr, alphal, alphas); in CellIdentityNr()
66 return new CellIdentityNr(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
67 mMccStr, mMncStr, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort); in sanitizeLocationInfo()
169 super.writeToParcel(dest, CellInfo.TYPE_NR); in writeToParcel()
178 super(TAG, CellInfo.TYPE_NR, in); in CellIdentityNr()
DCellSignalStrengthLte.java108 lte.rsrp != CellInfo.UNAVAILABLE ? -lte.rsrp : lte.rsrp, in CellSignalStrengthLte()
109 lte.rsrq != CellInfo.UNAVAILABLE ? -lte.rsrq : lte.rsrq, in CellSignalStrengthLte()
139 mSignalStrength = CellInfo.UNAVAILABLE; in setDefaultValues()
140 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
141 mRsrp = CellInfo.UNAVAILABLE; in setDefaultValues()
142 mRsrq = CellInfo.UNAVAILABLE; in setDefaultValues()
143 mRssnr = CellInfo.UNAVAILABLE; in setDefaultValues()
144 mCqi = CellInfo.UNAVAILABLE; in setDefaultValues()
145 mTimingAdvance = CellInfo.UNAVAILABLE; in setDefaultValues()
328 if (lteDbm == CellInfo.UNAVAILABLE) lteAsuLevel = 99; in getAsuLevel()
[all …]
DCellSignalStrengthNr.java178 mCsiRsrp = CellInfo.UNAVAILABLE; in setDefaultValues()
179 mCsiRsrq = CellInfo.UNAVAILABLE; in setDefaultValues()
180 mCsiSinr = CellInfo.UNAVAILABLE; in setDefaultValues()
181 mSsRsrp = CellInfo.UNAVAILABLE; in setDefaultValues()
182 mSsRsrq = CellInfo.UNAVAILABLE; in setDefaultValues()
183 mSsSinr = CellInfo.UNAVAILABLE; in setDefaultValues()
197 if (mCsiRsrp == CellInfo.UNAVAILABLE) { in updateLevel()
221 if (nrDbm == CellInfo.UNAVAILABLE) { in getAsuLevel()
DCellSignalStrengthCdma.java110 mCdmaDbm = CellInfo.UNAVAILABLE; in setDefaultValues()
111 mCdmaEcio = CellInfo.UNAVAILABLE; in setDefaultValues()
112 mEvdoDbm = CellInfo.UNAVAILABLE; in setDefaultValues()
113 mEvdoEcio = CellInfo.UNAVAILABLE; in setDefaultValues()
114 mEvdoSnr = CellInfo.UNAVAILABLE; in setDefaultValues()
178 if (cdmaDbm == CellInfo.UNAVAILABLE) cdmaAsuLevel = 99;
187 if (cdmaEcio == CellInfo.UNAVAILABLE) ecioAsuLevel = 99;
209 if (cdmaDbm == CellInfo.UNAVAILABLE) levelDbm = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getCdmaLevel()
217 if (cdmaEcio == CellInfo.UNAVAILABLE) levelEcio = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getCdmaLevel()
238 if (evdoDbm == CellInfo.UNAVAILABLE) levelEvdoDbm = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getEvdoLevel()
[all …]
DCellInfoTdscdma.java32 public final class CellInfoTdscdma extends CellInfo implements Parcelable {
55 public CellInfoTdscdma(android.hardware.radio.V1_0.CellInfo ci) { in CellInfoTdscdma()
63 public CellInfoTdscdma(android.hardware.radio.V1_2.CellInfo ci) { in CellInfoTdscdma()
71 public CellInfoTdscdma(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoTdscdma()
101 public CellInfo sanitizeLocationInfo() { in sanitizeLocationInfo()
DCellInfoWcdma.java28 public final class CellInfoWcdma extends CellInfo implements Parcelable {
51 public CellInfoWcdma(android.hardware.radio.V1_0.CellInfo ci) { in CellInfoWcdma()
59 public CellInfoWcdma(android.hardware.radio.V1_2.CellInfo ci) { in CellInfoWcdma()
67 public CellInfoWcdma(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoWcdma()
97 public CellInfo sanitizeLocationInfo() { in sanitizeLocationInfo()
DCellInfoGsm.java28 public final class CellInfoGsm extends CellInfo implements Parcelable {
52 public CellInfoGsm(android.hardware.radio.V1_0.CellInfo ci) { in CellInfoGsm()
60 public CellInfoGsm(android.hardware.radio.V1_2.CellInfo ci) { in CellInfoGsm()
68 public CellInfoGsm(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoGsm()
98 public CellInfo sanitizeLocationInfo() { in sanitizeLocationInfo()
DCellInfoCdma.java29 public final class CellInfoCdma extends CellInfo implements Parcelable {
54 public CellInfoCdma(android.hardware.radio.V1_0.CellInfo ci) { in CellInfoCdma()
63 public CellInfoCdma(android.hardware.radio.V1_2.CellInfo ci) { in CellInfoCdma()
72 public CellInfoCdma(android.hardware.radio.V1_4.CellInfo ci, long timeStamp) { in CellInfoCdma()
104 public CellInfo sanitizeLocationInfo() { in sanitizeLocationInfo()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellSignalStrengthWcdmaTest.java26 import android.telephony.CellInfo;
52 assertEquals(CellInfo.UNAVAILABLE, css.getRssi()); in testInvalidConstructor()
53 assertEquals(CellInfo.UNAVAILABLE, css.getBitErrorRate()); in testInvalidConstructor()
54 assertEquals(CellInfo.UNAVAILABLE, css.getRscp()); in testInvalidConstructor()
55 assertEquals(CellInfo.UNAVAILABLE, css.getEcNo()); in testInvalidConstructor()
61 assertEquals(CellInfo.UNAVAILABLE, css.getRssi()); in testDefaultConstructor()
62 assertEquals(CellInfo.UNAVAILABLE, css.getBitErrorRate()); in testDefaultConstructor()
63 assertEquals(CellInfo.UNAVAILABLE, css.getRscp()); in testDefaultConstructor()
64 assertEquals(CellInfo.UNAVAILABLE, css.getEcNo()); in testDefaultConstructor()
DCellSignalStrengthTdscdmaTest.java24 import android.telephony.CellInfo;
48 assertEquals(CellInfo.UNAVAILABLE, css.getRssi()); in testInvalidConstructor()
49 assertEquals(CellInfo.UNAVAILABLE, css.getBitErrorRate()); in testInvalidConstructor()
50 assertEquals(CellInfo.UNAVAILABLE, css.getRscp()); in testInvalidConstructor()
56 assertEquals(CellInfo.UNAVAILABLE, css.getRssi()); in testDefaultConstructor()
57 assertEquals(CellInfo.UNAVAILABLE, css.getBitErrorRate()); in testDefaultConstructor()
58 assertEquals(CellInfo.UNAVAILABLE, css.getRscp()); in testDefaultConstructor()
DSignalStrengthTest.java23 import android.telephony.CellInfo;
49 assertEquals(CellInfo.UNAVAILABLE, s.getCdmaDbm()); in testDefaults()
50 assertEquals(CellInfo.UNAVAILABLE, s.getCdmaEcio()); in testDefaults()
51 assertEquals(CellInfo.UNAVAILABLE, s.getEvdoDbm()); in testDefaults()
52 assertEquals(CellInfo.UNAVAILABLE, s.getEvdoEcio()); in testDefaults()
53 assertEquals(CellInfo.UNAVAILABLE, s.getEvdoSnr()); in testDefaults()
54 assertEquals(CellInfo.UNAVAILABLE, s.getGsmBitErrorRate()); in testDefaults()
DCellIdentityTdscdmaTest.java21 import android.telephony.CellInfo;
57 assertEquals(CellInfo.UNAVAILABLE, ci.getLac()); in testDefaultConstructor()
58 assertEquals(CellInfo.UNAVAILABLE, ci.getCid()); in testDefaultConstructor()
59 assertEquals(CellInfo.UNAVAILABLE, ci.getCpid()); in testDefaultConstructor()
60 assertEquals(CellInfo.UNAVAILABLE, ci.getChannelNumber()); in testDefaultConstructor()
61 assertEquals(CellInfo.UNAVAILABLE, ci.getUarfcn()); in testDefaultConstructor()
127 p.writeInt(CellInfo.TYPE_TDSCDMA); in testParcelWithUnknowMccMnc()
151 p.writeInt(CellInfo.TYPE_TDSCDMA); in testParcelWithInvalidMccMnc()
DRILTest.java124 import android.telephony.CellInfo;
210 private static final int RSSNR = CellInfo.UNAVAILABLE;
1163 android.hardware.radio.V1_0.CellInfo record = new android.hardware.radio.V1_0.CellInfo(); in testConvertHalCellInfoListForLTE()
1169 ArrayList<android.hardware.radio.V1_0.CellInfo> records = in testConvertHalCellInfoListForLTE()
1170 new ArrayList<android.hardware.radio.V1_0.CellInfo>(); in testConvertHalCellInfoListForLTE()
1173 ArrayList<CellInfo> ret = RIL.convertHalCellInfoList(records); in testConvertHalCellInfoListForLTE()
1186 expected.setCellConnectionStatus(CellInfo.CONNECTION_UNKNOWN); in testConvertHalCellInfoListForLTE()
1204 android.hardware.radio.V1_0.CellInfo record = new android.hardware.radio.V1_0.CellInfo(); in testConvertHalCellInfoListForGSM()
1210 ArrayList<android.hardware.radio.V1_0.CellInfo> records = in testConvertHalCellInfoListForGSM()
1211 new ArrayList<android.hardware.radio.V1_0.CellInfo>(); in testConvertHalCellInfoListForGSM()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DCellularLinkLayerStatsCollector.java28 import android.telephony.CellInfo;
60 private CellInfo mLastPrimaryCellInfo = null;
100 CellInfo primaryCellInfo = getPrimaryCellInfo(mCachedDefaultDataTelephonyManager, in update()
185 private CellInfo getPrimaryCellInfo(TelephonyManager defaultDataTelephonyManager, in getPrimaryCellInfo()
187 List<CellInfo> cellInfoList = getRegisteredCellInfo(defaultDataTelephonyManager); in getPrimaryCellInfo()
189 CellInfo primaryCellInfo = null; in getPrimaryCellInfo()
195 CellInfo cellInfo = cellInfoList.get(i); in getPrimaryCellInfo()
209 private boolean getIsSameRegisteredCell(CellInfo primaryCellInfo, int networkType) { in getIsSameRegisteredCell()
228 private List<CellInfo> getRegisteredCellInfo(TelephonyManager defaultDataTelephonyManager) { in getRegisteredCellInfo()
229 List<CellInfo> allList = defaultDataTelephonyManager.getAllCellInfo(); in getRegisteredCellInfo()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DNetworkScanResult.java21 import android.telephony.CellInfo;
55 public List<CellInfo> networkInfos;
64 public NetworkScanResult(int scanStatus, int scanError, List<CellInfo> networkInfos) { in NetworkScanResult()
85 List<CellInfo> ni = new ArrayList<>(); in NetworkScanResult()

123