/frameworks/base/telephony/java/android/telephony/ |
D | CellIdentityCdma.java | 77 super(TAG, CellInfo.TYPE_CDMA, null, null, null, null); in CellIdentityCdma() 78 mNetworkId = CellInfo.UNAVAILABLE; in CellIdentityCdma() 79 mSystemId = CellInfo.UNAVAILABLE; in CellIdentityCdma() 80 mBasestationId = CellInfo.UNAVAILABLE; in CellIdentityCdma() 81 mLongitude = CellInfo.UNAVAILABLE; in CellIdentityCdma() 82 mLatitude = CellInfo.UNAVAILABLE; in CellIdentityCdma() 102 super(TAG, CellInfo.TYPE_CDMA, null, null, alphal, alphas); in CellIdentityCdma() 113 mLongitude = mLatitude = CellInfo.UNAVAILABLE; in CellIdentityCdma() 130 return new CellIdentityCdma(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo() 131 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo() [all …]
|
D | CellInfo.java | 35 public abstract class CellInfo implements Parcelable { class 152 protected CellInfo(int cellConnectionStatus, boolean registered, long timestamp) { in CellInfo() method in CellInfo 159 protected CellInfo() { in CellInfo() method in CellInfo 166 protected CellInfo(CellInfo ci) { in CellInfo() method in CellInfo 225 public CellInfo sanitizeLocationInfo() { in sanitizeLocationInfo() 256 if (!(o instanceof CellInfo)) return false; in equals() 257 CellInfo cellInfo = (CellInfo) o; in equals() 303 protected CellInfo(Parcel in) { in CellInfo() method in CellInfo 310 …public static final @android.annotation.NonNull Creator<CellInfo> CREATOR = new Creator<CellInfo>(… 312 public CellInfo createFromParcel(Parcel in) { [all …]
|
D | CellIdentityGsm.java | 64 super(TAG, CellInfo.TYPE_GSM, null, null, null, null); in CellIdentityGsm() 65 mLac = CellInfo.UNAVAILABLE; in CellIdentityGsm() 66 mCid = CellInfo.UNAVAILABLE; in CellIdentityGsm() 67 mArfcn = CellInfo.UNAVAILABLE; in CellIdentityGsm() 68 mBsic = CellInfo.UNAVAILABLE; in CellIdentityGsm() 90 super(TAG, CellInfo.TYPE_GSM, mccStr, mncStr, alphal, alphas); in CellIdentityGsm() 116 return new CellIdentityGsm(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo() 117 CellInfo.UNAVAILABLE, mMccStr, mMncStr, mAlphaLong, mAlphaShort, mAdditionalPlmns); in sanitizeLocationInfo() 127 if (mLac == CellInfo.UNAVAILABLE || mCid == CellInfo.UNAVAILABLE) return; in updateGlobalCellId() 139 return (mMccStr != null) ? Integer.valueOf(mMccStr) : CellInfo.UNAVAILABLE; in getMcc() [all …]
|
D | CellIdentityLte.java | 72 super(TAG, CellInfo.TYPE_LTE, null, null, null, null); in CellIdentityLte() 73 mCi = CellInfo.UNAVAILABLE; in CellIdentityLte() 74 mPci = CellInfo.UNAVAILABLE; in CellIdentityLte() 75 mTac = CellInfo.UNAVAILABLE; in CellIdentityLte() 76 mEarfcn = CellInfo.UNAVAILABLE; in CellIdentityLte() 78 mBandwidth = CellInfo.UNAVAILABLE; in CellIdentityLte() 96 this(ci, pci, tac, CellInfo.UNAVAILABLE, new int[] {}, CellInfo.UNAVAILABLE, in CellIdentityLte() 122 super(TAG, CellInfo.TYPE_LTE, mccStr, mncStr, alphal, alphas); in CellIdentityLte() 147 return new CellIdentityLte(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo() 148 CellInfo.UNAVAILABLE, mBands, CellInfo.UNAVAILABLE, in sanitizeLocationInfo() [all …]
|
D | CellIdentityWcdma.java | 66 super(TAG, CellInfo.TYPE_WCDMA, null, null, null, null); in CellIdentityWcdma() 67 mLac = CellInfo.UNAVAILABLE; in CellIdentityWcdma() 68 mCid = CellInfo.UNAVAILABLE; in CellIdentityWcdma() 69 mPsc = CellInfo.UNAVAILABLE; in CellIdentityWcdma() 70 mUarfcn = CellInfo.UNAVAILABLE; in CellIdentityWcdma() 95 super(TAG, CellInfo.TYPE_WCDMA, mccStr, mncStr, alphal, alphas); in CellIdentityWcdma() 118 return new CellIdentityWcdma(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo() 119 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mMccStr, mMncStr, in sanitizeLocationInfo() 134 if (mLac == CellInfo.UNAVAILABLE || mCid == CellInfo.UNAVAILABLE) return; in updateGlobalCellId() 146 return (mMccStr != null) ? Integer.valueOf(mMccStr) : CellInfo.UNAVAILABLE; in getMcc() [all …]
|
D | CellIdentityTdscdma.java | 64 super(TAG, CellInfo.TYPE_TDSCDMA, null, null, null, null); in CellIdentityTdscdma() 65 mLac = CellInfo.UNAVAILABLE; in CellIdentityTdscdma() 66 mCid = CellInfo.UNAVAILABLE; in CellIdentityTdscdma() 67 mCpid = CellInfo.UNAVAILABLE; in CellIdentityTdscdma() 68 mUarfcn = CellInfo.UNAVAILABLE; in CellIdentityTdscdma() 94 super(TAG, CellInfo.TYPE_TDSCDMA, mcc, mnc, alphal, alphas); in CellIdentityTdscdma() 118 return new CellIdentityTdscdma(mMccStr, mMncStr, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo() 119 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort, in sanitizeLocationInfo() 134 if (mLac == CellInfo.UNAVAILABLE || mCid == CellInfo.UNAVAILABLE) return; in updateGlobalCellId() 224 int lac = mLac != CellInfo.UNAVAILABLE ? mLac : -1; in asCellLocation() [all …]
|
D | CellSignalStrength.java | 113 if (asu > 31 || asu < 0) return CellInfo.UNAVAILABLE; in getRssiDbmFromAsu() 120 if (dbm == CellInfo.UNAVAILABLE) return 99; in getAsuFromRssiDbm() 127 if (asu > 96 || asu < 0) return CellInfo.UNAVAILABLE; in getRscpDbmFromAsu() 134 if (dbm == CellInfo.UNAVAILABLE) return 255; in getAsuFromRscpDbm() 141 if (asu > 49 || asu < 0) return CellInfo.UNAVAILABLE; in getEcNoDbFromAsu() 147 if (value < rangeMin || value > rangeMax) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable() 154 if ((value < rangeMin || value > rangeMax) && value != special) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable()
|
D | CellIdentityNr.java | 57 super(TAG, CellInfo.TYPE_NR, null, null, null, null); in CellIdentityNr() 58 mNrArfcn = CellInfo.UNAVAILABLE; in CellIdentityNr() 59 mPci = CellInfo.UNAVAILABLE; in CellIdentityNr() 60 mTac = CellInfo.UNAVAILABLE; in CellIdentityNr() 61 mNci = CellInfo.UNAVAILABLE; in CellIdentityNr() 85 super(TAG, CellInfo.TYPE_NR, mccStr, mncStr, alphal, alphas); in CellIdentityNr() 104 return new CellIdentityNr(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mNrArfcn, in sanitizeLocationInfo() 105 mBands, mMccStr, mMncStr, CellInfo.UNAVAILABLE_LONG, mAlphaLong, mAlphaShort, in sanitizeLocationInfo() 115 if (mNci == CellInfo.UNAVAILABLE_LONG) return; in updateGlobalCellId() 128 int tac = mTac != CellInfo.UNAVAILABLE ? mTac : -1; in asCellLocation() [all …]
|
D | CellIdentity.java | 128 public @CellInfo.Type int getType() { in getType() 295 case CellInfo.TYPE_GSM: return CellIdentityGsm.createFromParcelBody(in); 296 case CellInfo.TYPE_WCDMA: return CellIdentityWcdma.createFromParcelBody(in); 297 case CellInfo.TYPE_CDMA: return CellIdentityCdma.createFromParcelBody(in); 298 case CellInfo.TYPE_LTE: return CellIdentityLte.createFromParcelBody(in); 299 case CellInfo.TYPE_TDSCDMA: 301 case CellInfo.TYPE_NR: return CellIdentityNr.createFromParcelBody(in); 319 if (value < rangeMin || value > rangeMax) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable() 325 if (value < rangeMin || value > rangeMax) return CellInfo.UNAVAILABLE_LONG; in inRangeOrUnavailable() 332 if ((value < rangeMin || value > rangeMax) && value != special) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable()
|
D | CellSignalStrengthNr.java | 212 this(csiRsrp, csiRsrq, csiSinr, CellInfo.UNAVAILABLE, Collections.emptyList(), in CellSignalStrengthNr() 213 ssRsrp, ssRsrq, ssSinr, CellInfo.UNAVAILABLE); in CellSignalStrengthNr() 223 return val != CellInfo.UNAVAILABLE ? -val : val; in flip() 369 mCsiRsrp = CellInfo.UNAVAILABLE; in setDefaultValues() 370 mCsiRsrq = CellInfo.UNAVAILABLE; in setDefaultValues() 371 mCsiSinr = CellInfo.UNAVAILABLE; in setDefaultValues() 372 mCsiCqiTableIndex = CellInfo.UNAVAILABLE; in setDefaultValues() 374 mSsRsrp = CellInfo.UNAVAILABLE; in setDefaultValues() 375 mSsRsrq = CellInfo.UNAVAILABLE; in setDefaultValues() 376 mSsSinr = CellInfo.UNAVAILABLE; in setDefaultValues() [all …]
|
D | CellSignalStrengthCdma.java | 104 mCdmaDbm = CellInfo.UNAVAILABLE; in setDefaultValues() 105 mCdmaEcio = CellInfo.UNAVAILABLE; in setDefaultValues() 106 mEvdoDbm = CellInfo.UNAVAILABLE; in setDefaultValues() 107 mEvdoEcio = CellInfo.UNAVAILABLE; in setDefaultValues() 108 mEvdoSnr = CellInfo.UNAVAILABLE; in setDefaultValues() 172 if (cdmaDbm == CellInfo.UNAVAILABLE) cdmaAsuLevel = 99; 181 if (cdmaEcio == CellInfo.UNAVAILABLE) ecioAsuLevel = 99; 203 if (cdmaDbm == CellInfo.UNAVAILABLE) levelDbm = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getCdmaLevel() 211 if (cdmaEcio == CellInfo.UNAVAILABLE) levelEcio = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getCdmaLevel() 232 if (evdoDbm == CellInfo.UNAVAILABLE) levelEvdoDbm = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getEvdoLevel() [all …]
|
D | CellSignalStrengthLte.java | 165 this(rssi, rsrp, rsrq, rssnr, CellInfo.UNAVAILABLE, cqi, timingAdvance); in CellSignalStrengthLte() 196 mSignalStrength = CellInfo.UNAVAILABLE; in setDefaultValues() 197 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues() 198 mRsrp = CellInfo.UNAVAILABLE; in setDefaultValues() 199 mRsrq = CellInfo.UNAVAILABLE; in setDefaultValues() 200 mRssnr = CellInfo.UNAVAILABLE; in setDefaultValues() 201 mCqiTableIndex = CellInfo.UNAVAILABLE; in setDefaultValues() 202 mCqi = CellInfo.UNAVAILABLE; in setDefaultValues() 203 mTimingAdvance = CellInfo.UNAVAILABLE; in setDefaultValues() 372 if (measure == CellInfo.UNAVAILABLE) { in updateLevelWithMeasure() [all …]
|
D | CellSignalStrengthWcdma.java | 120 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues() 121 mBitErrorRate = CellInfo.UNAVAILABLE; in setDefaultValues() 122 mRscp = CellInfo.UNAVAILABLE; in setDefaultValues() 123 mEcNo = CellInfo.UNAVAILABLE; in setDefaultValues() 186 if (mRscp != CellInfo.UNAVAILABLE) return mRscp; in getDbm() 199 if (mRscp != CellInfo.UNAVAILABLE) return getAsuFromRscpDbm(mRscp); in getAsuLevel() 202 if (mRssi != CellInfo.UNAVAILABLE) return getAsuFromRssiDbm(mRssi); in getAsuLevel() 203 return getAsuFromRscpDbm(CellInfo.UNAVAILABLE); in getAsuLevel()
|
D | CellSignalStrengthTdscdma.java | 99 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues() 100 mBitErrorRate = CellInfo.UNAVAILABLE; in setDefaultValues() 101 mRscp = CellInfo.UNAVAILABLE; in setDefaultValues() 165 if (mRscp != CellInfo.UNAVAILABLE) return getAsuFromRscpDbm(mRscp); in getAsuLevel() 168 if (mRssi != CellInfo.UNAVAILABLE) return getAsuFromRssiDbm(mRssi); in getAsuLevel() 169 return getAsuFromRscpDbm(CellInfo.UNAVAILABLE); in getAsuLevel()
|
D | ICellInfoCallback.aidl | 19 import android.telephony.CellInfo; 29 void onCellInfo(in List<CellInfo> state); in onCellInfo()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CellSignalStrengthWcdmaTest.java | 26 import android.telephony.CellInfo; 53 assertEquals(CellInfo.UNAVAILABLE, css.getRssi()); in testInvalidConstructor() 54 assertEquals(CellInfo.UNAVAILABLE, css.getBitErrorRate()); in testInvalidConstructor() 55 assertEquals(CellInfo.UNAVAILABLE, css.getRscp()); in testInvalidConstructor() 56 assertEquals(CellInfo.UNAVAILABLE, css.getEcNo()); in testInvalidConstructor() 62 assertEquals(CellInfo.UNAVAILABLE, css.getRssi()); in testDefaultConstructor() 63 assertEquals(CellInfo.UNAVAILABLE, css.getBitErrorRate()); in testDefaultConstructor() 64 assertEquals(CellInfo.UNAVAILABLE, css.getRscp()); in testDefaultConstructor() 65 assertEquals(CellInfo.UNAVAILABLE, css.getEcNo()); in testDefaultConstructor()
|
D | CellSignalStrengthTdscdmaTest.java | 24 import android.telephony.CellInfo; 49 assertEquals(CellInfo.UNAVAILABLE, css.getRssi()); in testInvalidConstructor() 50 assertEquals(CellInfo.UNAVAILABLE, css.getBitErrorRate()); in testInvalidConstructor() 51 assertEquals(CellInfo.UNAVAILABLE, css.getRscp()); in testInvalidConstructor() 57 assertEquals(CellInfo.UNAVAILABLE, css.getRssi()); in testDefaultConstructor() 58 assertEquals(CellInfo.UNAVAILABLE, css.getBitErrorRate()); in testDefaultConstructor() 59 assertEquals(CellInfo.UNAVAILABLE, css.getRscp()); in testDefaultConstructor()
|
D | CellSignalStrengthNrTest.java | 29 import android.telephony.CellInfo; 135 nrSignalStrength.csiRsrp = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal() 136 nrSignalStrength.csiRsrq = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal() 137 nrSignalStrength.csiSinr = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal() 138 nrSignalStrength.csiCqiTableIndex = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal() 140 nrSignalStrength.ssRsrp = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal() 141 nrSignalStrength.ssRsrq = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal() 142 nrSignalStrength.ssSinr = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal() 143 nrSignalStrength.timingAdvance = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal() 147 assertThat(css.getCsiRsrp()).isEqualTo(CellInfo.UNAVAILABLE); in testUnavailableValueWithHal() [all …]
|
D | CellIdentityTdscdmaTest.java | 21 import android.telephony.CellInfo; 61 assertEquals(CellInfo.UNAVAILABLE, ci.getLac()); in testDefaultConstructor() 62 assertEquals(CellInfo.UNAVAILABLE, ci.getCid()); in testDefaultConstructor() 63 assertEquals(CellInfo.UNAVAILABLE, ci.getCpid()); in testDefaultConstructor() 64 assertEquals(CellInfo.UNAVAILABLE, ci.getChannelNumber()); in testDefaultConstructor() 65 assertEquals(CellInfo.UNAVAILABLE, ci.getUarfcn()); in testDefaultConstructor() 141 p.writeInt(CellInfo.TYPE_TDSCDMA); in testParcelWithUnknowMccMnc() 166 p.writeInt(CellInfo.TYPE_TDSCDMA); in testParcelWithInvalidMccMnc()
|
D | CellIdentityTest.java | 27 import android.telephony.CellInfo; 84 assertEquals(CellInfo.UNAVAILABLE, gsm.getLac()); in testConstructCellIdentityGsm() 85 assertEquals(CellInfo.UNAVAILABLE, gsm.getCid()); in testConstructCellIdentityGsm() 86 assertEquals(CellInfo.UNAVAILABLE, gsm.getArfcn()); in testConstructCellIdentityGsm() 87 assertEquals(CellInfo.UNAVAILABLE, gsm.getBsic()); in testConstructCellIdentityGsm() 101 assertEquals(CellInfo.UNAVAILABLE, gsm.getLac()); in testConstructCellIdentityGsm() 102 assertEquals(CellInfo.UNAVAILABLE, gsm.getCid()); in testConstructCellIdentityGsm() 103 assertEquals(CellInfo.UNAVAILABLE, gsm.getArfcn()); in testConstructCellIdentityGsm() 104 assertEquals(CellInfo.UNAVAILABLE, gsm.getBsic()); in testConstructCellIdentityGsm()
|
D | NetworkScanResultTest.java | 24 import android.telephony.CellInfo; 43 ArrayList<CellInfo> infos = new ArrayList<CellInfo>(); in testParcel()
|
D | RILTest.java | 148 import android.telephony.CellInfo; 259 private static final int RSSNR = CellInfo.UNAVAILABLE; 274 private static final int CONNECTION_STATUS = CellInfo.CONNECTION_NONE; 669 private RadioAccessSpecifier getRadioAccessSpecifier(CellInfo cellInfo) { in getRadioAccessSpecifier() 691 List<CellInfo> allCellInfo = mTelephonyManager.getAllCellInfo(); in getNetworkScanRequestForTesting() 1591 private android.hardware.radio.V1_4.CellInfo getCellInfo_1_4ForLte() { in getCellInfo_1_4ForLte() 1606 android.hardware.radio.V1_4.CellInfo cellInfo = new android.hardware.radio.V1_4.CellInfo(); in getCellInfo_1_4ForLte() 1619 ArrayList<CellInfo> ret = RILUtils.convertHalCellInfoList(records); in testConvertHalCellInfoList_1_4ForLte() 1668 android.hardware.radio.V1_5.CellInfo cellInfo = new android.hardware.radio.V1_5.CellInfo(); in testConvertHalCellInfoList_1_5ForLte() 1676 ArrayList<CellInfo> ret = RILUtils.convertHalCellInfoList(records); in testConvertHalCellInfoList_1_5ForLte() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | NetworkScanResult.java | 21 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() 86 in.readParcelableList(ni, Object.class.getClassLoader(), android.telephony.CellInfo.class); in NetworkScanResult()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssLocationProvider.java | 96 import android.telephony.CellInfo; 1491 private static int getCellType(CellInfo ci) { in getCellType() 1493 return CellInfo.TYPE_GSM; in getCellType() 1495 return CellInfo.TYPE_WCDMA; in getCellType() 1497 return CellInfo.TYPE_LTE; in getCellType() 1499 return CellInfo.TYPE_NR; in getCellType() 1501 return CellInfo.TYPE_UNKNOWN; in getCellType() 1515 case CellInfo.TYPE_GSM: cid = ((CellIdentityGsm) id).getCid(); break; in getCidFromCellIdentity() 1516 case CellInfo.TYPE_WCDMA: cid = ((CellIdentityWcdma) id).getCid(); break; in getCidFromCellIdentity() 1517 case CellInfo.TYPE_LTE: cid = ((CellIdentityLte) id).getCi(); break; in getCidFromCellIdentity() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | CallQualityMetrics.java | 22 import android.telephony.CellInfo; 177 if (ss.equals(CellInfo.UNAVAILABLE)) { in updateMinAndMaxSignalStrengthSnapshots() 221 return CellInfo.UNAVAILABLE; in getLteSnr() 227 return CellInfo.UNAVAILABLE; in getLteSnr() 233 if (snr != CellInfo.UNAVAILABLE) { in getLteSnr() 238 return CellInfo.UNAVAILABLE; in getLteSnr()
|