Home
last modified time | relevance | path

Searched refs:UNAVAILABLE (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/base/telephony/java/android/telephony/
DCellIdentityCdma.java75 mNetworkId = CellInfo.UNAVAILABLE; in CellIdentityCdma()
76 mSystemId = CellInfo.UNAVAILABLE; in CellIdentityCdma()
77 mBasestationId = CellInfo.UNAVAILABLE; in CellIdentityCdma()
78 mLongitude = CellInfo.UNAVAILABLE; in CellIdentityCdma()
79 mLatitude = CellInfo.UNAVAILABLE; in CellIdentityCdma()
110 mLongitude = mLatitude = CellInfo.UNAVAILABLE; in CellIdentityCdma()
138 return new CellIdentityCdma(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
139 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
147 if (mNetworkId == CellInfo.UNAVAILABLE || mSystemId == CellInfo.UNAVAILABLE in updateGlobalCellId()
148 || mBasestationId == CellInfo.UNAVAILABLE) return; in updateGlobalCellId()
[all …]
DCellSignalStrengthTdscdma.java80 this(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in CellSignalStrengthTdscdma()
81 tdscdma.rscp != CellInfo.UNAVAILABLE ? -tdscdma.rscp : tdscdma.rscp); in CellSignalStrengthTdscdma()
83 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthTdscdma()
94 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthTdscdma()
121 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
122 mBitErrorRate = CellInfo.UNAVAILABLE; in setDefaultValues()
123 mRscp = CellInfo.UNAVAILABLE; in setDefaultValues()
187 if (mRscp != CellInfo.UNAVAILABLE) return getAsuFromRscpDbm(mRscp); in getAsuLevel()
190 if (mRssi != CellInfo.UNAVAILABLE) return getAsuFromRssiDbm(mRssi); in getAsuLevel()
191 return getAsuFromRscpDbm(CellInfo.UNAVAILABLE); in getAsuLevel()
DCellIdentityGsm.java65 mLac = CellInfo.UNAVAILABLE; in CellIdentityGsm()
66 mCid = CellInfo.UNAVAILABLE; in CellIdentityGsm()
67 mArfcn = CellInfo.UNAVAILABLE; in CellIdentityGsm()
68 mBsic = CellInfo.UNAVAILABLE; in CellIdentityGsm()
107 cid.bsic == (byte) 0xFF ? CellInfo.UNAVAILABLE : cid.bsic, in CellIdentityGsm()
114 cid.base.bsic == (byte) 0xFF ? CellInfo.UNAVAILABLE : cid.base.bsic, cid.base.mcc, in CellIdentityGsm()
122 cid.base.base.bsic == (byte) 0xFF ? CellInfo.UNAVAILABLE in CellIdentityGsm()
140 return new CellIdentityGsm(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
141 CellInfo.UNAVAILABLE, mMccStr, mMncStr, mAlphaLong, mAlphaShort, mAdditionalPlmns); in sanitizeLocationInfo()
151 if (mLac == CellInfo.UNAVAILABLE || mCid == CellInfo.UNAVAILABLE) return; in updateGlobalCellId()
[all …]
DCellSignalStrength.java112 if (asu > 31 || asu < 0) return CellInfo.UNAVAILABLE; in getRssiDbmFromAsu()
119 if (dbm == CellInfo.UNAVAILABLE) return 99; in getAsuFromRssiDbm()
126 if (asu > 96 || asu < 0) return CellInfo.UNAVAILABLE; in getRscpDbmFromAsu()
133 if (dbm == CellInfo.UNAVAILABLE) return 255; in getAsuFromRscpDbm()
140 if (asu > 49 || asu < 0) return CellInfo.UNAVAILABLE; in getEcNoDbFromAsu()
146 if (value < rangeMin || value > rangeMax) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable()
153 if ((value < rangeMin || value > rangeMax) && value != special) return CellInfo.UNAVAILABLE; in inRangeOrUnavailable()
DCellSignalStrengthWcdma.java101 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE); in CellSignalStrengthWcdma()
103 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthWcdma()
116 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthWcdma()
144 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
145 mBitErrorRate = CellInfo.UNAVAILABLE; in setDefaultValues()
146 mRscp = CellInfo.UNAVAILABLE; in setDefaultValues()
147 mEcNo = CellInfo.UNAVAILABLE; in setDefaultValues()
210 if (mRscp != CellInfo.UNAVAILABLE) return mRscp; in getDbm()
223 if (mRscp != CellInfo.UNAVAILABLE) return getAsuFromRscpDbm(mRscp); in getAsuLevel()
226 if (mRssi != CellInfo.UNAVAILABLE) return getAsuFromRssiDbm(mRssi); in getAsuLevel()
[all …]
DCellIdentityLte.java73 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()
142 CellInfo.UNAVAILABLE, cid.mcc, cid.mnc, "", "", new ArraySet<>(), null); in CellIdentityLte()
172 return new CellIdentityLte(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
173 CellInfo.UNAVAILABLE, mBands, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
188 if (mCi == CellInfo.UNAVAILABLE) return; in updateGlobalCellId()
[all …]
DCellIdentityWcdma.java67 mLac = CellInfo.UNAVAILABLE; in CellIdentityWcdma()
68 mCid = CellInfo.UNAVAILABLE; in CellIdentityWcdma()
69 mPsc = CellInfo.UNAVAILABLE; in CellIdentityWcdma()
70 mUarfcn = CellInfo.UNAVAILABLE; in CellIdentityWcdma()
142 return new CellIdentityWcdma(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
143 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mMccStr, mMncStr, in sanitizeLocationInfo()
158 if (mLac == CellInfo.UNAVAILABLE || mCid == CellInfo.UNAVAILABLE) return; in updateGlobalCellId()
170 return (mMccStr != null) ? Integer.valueOf(mMccStr) : CellInfo.UNAVAILABLE; in getMcc()
180 return (mMncStr != null) ? Integer.valueOf(mMncStr) : CellInfo.UNAVAILABLE; in getMnc()
272 int lac = mLac != CellInfo.UNAVAILABLE ? mLac : -1; in asCellLocation()
[all …]
DCellSignalStrengthLte.java165 this(rssi, rsrp, rsrq, rssnr, CellInfo.UNAVAILABLE, cqi, timingAdvance); in CellSignalStrengthLte()
172 lte.rsrp != CellInfo.UNAVAILABLE ? -lte.rsrp : lte.rsrp, in CellSignalStrengthLte()
173 lte.rsrq != CellInfo.UNAVAILABLE ? -lte.rsrq : lte.rsrq, in CellSignalStrengthLte()
181 lte.base.rsrp != CellInfo.UNAVAILABLE ? -lte.base.rsrp : lte.base.rsrp, in CellSignalStrengthLte()
182 lte.base.rsrq != CellInfo.UNAVAILABLE ? -lte.base.rsrq : lte.base.rsrq, in CellSignalStrengthLte()
215 mSignalStrength = CellInfo.UNAVAILABLE; in setDefaultValues()
216 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
217 mRsrp = CellInfo.UNAVAILABLE; in setDefaultValues()
218 mRsrq = CellInfo.UNAVAILABLE; in setDefaultValues()
219 mRssnr = CellInfo.UNAVAILABLE; in setDefaultValues()
[all …]
DCellIdentityTdscdma.java65 mLac = CellInfo.UNAVAILABLE; in CellIdentityTdscdma()
66 mCid = CellInfo.UNAVAILABLE; in CellIdentityTdscdma()
67 mCpid = CellInfo.UNAVAILABLE; in CellIdentityTdscdma()
68 mUarfcn = CellInfo.UNAVAILABLE; in CellIdentityTdscdma()
117 this(cid.mcc, cid.mnc, cid.lac, cid.cid, cid.cpid, CellInfo.UNAVAILABLE, "", "", in CellIdentityTdscdma()
143 return new CellIdentityTdscdma(mMccStr, mMncStr, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, in sanitizeLocationInfo()
144 CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mAlphaLong, mAlphaShort, in sanitizeLocationInfo()
159 if (mLac == CellInfo.UNAVAILABLE || mCid == CellInfo.UNAVAILABLE) return; in updateGlobalCellId()
249 int lac = mLac != CellInfo.UNAVAILABLE ? mLac : -1; in asCellLocation()
250 int cid = mCid != CellInfo.UNAVAILABLE ? mCid : -1; in asCellLocation()
DCellSignalStrengthCdma.java111 mCdmaDbm = CellInfo.UNAVAILABLE; in setDefaultValues()
112 mCdmaEcio = CellInfo.UNAVAILABLE; in setDefaultValues()
113 mEvdoDbm = CellInfo.UNAVAILABLE; in setDefaultValues()
114 mEvdoEcio = CellInfo.UNAVAILABLE; in setDefaultValues()
115 mEvdoSnr = CellInfo.UNAVAILABLE; in setDefaultValues()
179 if (cdmaDbm == CellInfo.UNAVAILABLE) cdmaAsuLevel = 99;
188 if (cdmaEcio == CellInfo.UNAVAILABLE) ecioAsuLevel = 99;
210 if (cdmaDbm == CellInfo.UNAVAILABLE) levelDbm = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getCdmaLevel()
218 if (cdmaEcio == CellInfo.UNAVAILABLE) levelEcio = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getCdmaLevel()
239 if (evdoDbm == CellInfo.UNAVAILABLE) levelEvdoDbm = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getEvdoLevel()
[all …]
DCellSignalStrengthNr.java200 this(csiRsrp, csiRsrq, csiSinr, CellInfo.UNAVAILABLE, Collections.emptyList(), in CellSignalStrengthNr()
228 return val != CellInfo.UNAVAILABLE ? -val : val; in flip()
356 mCsiRsrp = CellInfo.UNAVAILABLE; in setDefaultValues()
357 mCsiRsrq = CellInfo.UNAVAILABLE; in setDefaultValues()
358 mCsiSinr = CellInfo.UNAVAILABLE; in setDefaultValues()
359 mCsiCqiTableIndex = CellInfo.UNAVAILABLE; in setDefaultValues()
361 mSsRsrp = CellInfo.UNAVAILABLE; in setDefaultValues()
362 mSsRsrq = CellInfo.UNAVAILABLE; in setDefaultValues()
363 mSsSinr = CellInfo.UNAVAILABLE; in setDefaultValues()
456 if (measure == CellInfo.UNAVAILABLE) { in updateLevelWithMeasure()
[all …]
DCellIdentityNr.java58 mNrArfcn = CellInfo.UNAVAILABLE; in CellIdentityNr()
59 mPci = CellInfo.UNAVAILABLE; in CellIdentityNr()
60 mTac = CellInfo.UNAVAILABLE; in CellIdentityNr()
61 mNci = CellInfo.UNAVAILABLE; in CellIdentityNr()
120 return new CellIdentityNr(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE, mNrArfcn, in sanitizeLocationInfo()
144 int tac = mTac != CellInfo.UNAVAILABLE ? mTac : -1; in asCellLocation()
DCellSignalStrengthGsm.java74 if (mRssi == CellInfo.UNAVAILABLE) { in CellSignalStrengthGsm()
101 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
102 mBitErrorRate = CellInfo.UNAVAILABLE; in setDefaultValues()
103 mTimingAdvance = CellInfo.UNAVAILABLE; in setDefaultValues()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellSignalStrengthWcdmaTest.java52 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()
DCellSignalStrengthNrTest.java127 nrSignalStrength.base.csiRsrp = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal()
128 nrSignalStrength.base.csiRsrq = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal()
129 nrSignalStrength.base.csiSinr = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal()
130 nrSignalStrength.csiCqiTableIndex = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal()
132 nrSignalStrength.base.ssRsrp = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal()
133 nrSignalStrength.base.ssRsrq = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal()
134 nrSignalStrength.base.ssSinr = CellInfo.UNAVAILABLE; in testUnavailableValueWithHal()
138 assertThat(css.getCsiRsrp()).isEqualTo(CellInfo.UNAVAILABLE); in testUnavailableValueWithHal()
139 assertThat(css.getCsiRsrq()).isEqualTo(CellInfo.UNAVAILABLE); in testUnavailableValueWithHal()
140 assertThat(css.getCsiSinr()).isEqualTo(CellInfo.UNAVAILABLE); in testUnavailableValueWithHal()
[all …]
DCellSignalStrengthTdscdmaTest.java48 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.java76 assertEquals(CellInfo.UNAVAILABLE, s.getCdmaDbm()); in testDefaults()
77 assertEquals(CellInfo.UNAVAILABLE, s.getCdmaEcio()); in testDefaults()
78 assertEquals(CellInfo.UNAVAILABLE, s.getEvdoDbm()); in testDefaults()
79 assertEquals(CellInfo.UNAVAILABLE, s.getEvdoEcio()); in testDefaults()
80 assertEquals(CellInfo.UNAVAILABLE, s.getEvdoSnr()); in testDefaults()
81 assertEquals(CellInfo.UNAVAILABLE, s.getGsmBitErrorRate()); in testDefaults()
173 CellInfo.UNAVAILABLE, // cqiTableIndex in createSignalStrengthLteReportRsrq()
174 CellInfo.UNAVAILABLE, // cqi in createSignalStrengthLteReportRsrq()
175 CellInfo.UNAVAILABLE); // timingAdvance in createSignalStrengthLteReportRsrq()
206 CellInfo.UNAVAILABLE, // cqiTableIndex in createSignalStrengthLteReportRssnr()
[all …]
DCellIdentityTest.java83 assertEquals(CellInfo.UNAVAILABLE, gsm.getLac()); in testConstructCellIdentityGsm()
84 assertEquals(CellInfo.UNAVAILABLE, gsm.getCid()); in testConstructCellIdentityGsm()
85 assertEquals(CellInfo.UNAVAILABLE, gsm.getArfcn()); in testConstructCellIdentityGsm()
86 assertEquals(CellInfo.UNAVAILABLE, gsm.getBsic()); in testConstructCellIdentityGsm()
100 assertEquals(CellInfo.UNAVAILABLE, gsm.getLac()); in testConstructCellIdentityGsm()
101 assertEquals(CellInfo.UNAVAILABLE, gsm.getCid()); in testConstructCellIdentityGsm()
102 assertEquals(CellInfo.UNAVAILABLE, gsm.getArfcn()); in testConstructCellIdentityGsm()
103 assertEquals(CellInfo.UNAVAILABLE, gsm.getBsic()); in testConstructCellIdentityGsm()
DCellIdentityTdscdmaTest.java60 assertEquals(CellInfo.UNAVAILABLE, ci.getLac()); in testDefaultConstructor()
61 assertEquals(CellInfo.UNAVAILABLE, ci.getCid()); in testDefaultConstructor()
62 assertEquals(CellInfo.UNAVAILABLE, ci.getCpid()); in testDefaultConstructor()
63 assertEquals(CellInfo.UNAVAILABLE, ci.getChannelNumber()); in testDefaultConstructor()
64 assertEquals(CellInfo.UNAVAILABLE, ci.getUarfcn()); in testDefaultConstructor()
/frameworks/av/services/tuner/
DTunerDvr.cpp40 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in getQueueDesc()
63 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in configure()
76 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in attachFilter()
95 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in detachFilter()
114 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in start()
127 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in stop()
140 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in flush()
153 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in close()
DTunerLnb.cpp42 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setCallback()
60 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setVoltage()
73 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setTone()
86 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setSatellitePosition()
99 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in sendDiseqcMessage()
112 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in close()
DTunerTimeFilter.cpp37 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setTimeStamp()
50 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in clearTimeStamp()
64 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in getSourceTime()
84 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in getTimeStamp()
103 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in close()
DTunerDemux.cpp47 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setFrontendDataSource()
64 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in openFilter()
108 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in openTimeFilter()
128 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in getAvSyncHwId()
150 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in getAvSyncTime()
172 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in openDvr()
195 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in connectCiCam()
208 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in disconnectCiCam()
221 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in close()
DTunerDescrambler.cpp40 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setDemuxSource()
53 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setKeyToken()
67 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in addPid()
83 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in removePid()
98 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in close()
/frameworks/base/services/core/java/com/android/server/am/
DMeasuredEnergySnapshot.java44 public static final long UNAVAILABLE = android.os.BatteryStats.POWER_DATA_UNAVAILABLE; field in MeasuredEnergySnapshot
105 public long bluetoothChargeUC = UNAVAILABLE;
111 public long displayChargeUC = UNAVAILABLE;
114 public long gnssChargeUC = UNAVAILABLE;
117 public long mobileRadioChargeUC = UNAVAILABLE;
120 public long wifiChargeUC = UNAVAILABLE;
175 final long oldEnergyUJ = mMeasuredEnergySnapshots.get(consumerId, UNAVAILABLE); in updateAndGetDelta()

1234