Home
last modified time | relevance | path

Searched refs:nitzData (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTimeZoneLookupHelperTest.java165 NitzData nitzData = NitzData.parse(summerTimeNitzStringWithDst); in testLookupByNitzCountry() local
168 assertEquals(expectedUtcOffset, nitzData.getLocalOffsetMillis()); in testLookupByNitzCountry()
169 assertEquals(expectedDstOffset, nitzData.getDstAdjustmentMillis()); in testLookupByNitzCountry()
174 mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, deIso); in testLookupByNitzCountry()
181 mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, adIso); in testLookupByNitzCountry()
192 NitzData nitzData = NitzData.parse(winterTimeNitzStringWithDst); in testLookupByNitzCountry() local
195 assertEquals(expectedUtcOffset, nitzData.getLocalOffsetMillis()); in testLookupByNitzCountry()
196 assertEquals(expectedDstOffset, nitzData.getDstAdjustmentMillis()); in testLookupByNitzCountry()
201 mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, deIso); in testLookupByNitzCountry()
208 mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, adIso); in testLookupByNitzCountry()
[all …]
DNitzStateMachineTest.java654 NitzData nitzData = NitzData in getNitzSignal() local
656 mNitzSignal = new TimeStampedValue<>(nitzData, mInitialDeviceRealtimeMillis); in getNitzSignal()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTimeZoneLookupHelper.java157 public OffsetResult lookupByNitzCountry(NitzData nitzData, String isoCountryCode) { in lookupByNitzCountry() argument
165 nitzData.getLocalOffsetMillis(), nitzData.isDst(), in lookupByNitzCountry()
166 nitzData.getCurrentTimeInMillis(), bias); in lookupByNitzCountry()
183 public OffsetResult lookupByNitz(NitzData nitzData) { in lookupByNitz() argument
184 return lookupByNitzStatic(nitzData); in lookupByNitz()
220 static TimeZone guessZoneByNitzStatic(NitzData nitzData) { in guessZoneByNitzStatic() argument
221 OffsetResult result = lookupByNitzStatic(nitzData); in guessZoneByNitzStatic()
225 private static OffsetResult lookupByNitzStatic(NitzData nitzData) { in lookupByNitzStatic() argument
226 int utcOffsetMillis = nitzData.getLocalOffsetMillis(); in lookupByNitzStatic()
227 boolean isDst = nitzData.isDst(); in lookupByNitzStatic()
[all …]
DNitzData.java197 NitzData nitzData = (NitzData) o; in equals() local
199 if (mZoneOffset != nitzData.mZoneOffset) { in equals()
202 if (mCurrentTimeMillis != nitzData.mCurrentTimeMillis) { in equals()
205 if (!mOriginalString.equals(nitzData.mOriginalString)) { in equals()
208 if (mDstOffset != null ? !mDstOffset.equals(nitzData.mDstOffset) in equals()
209 : nitzData.mDstOffset != null) { in equals()
213 .equals(nitzData.mEmulatorHostTimeZone) : nitzData.mEmulatorHostTimeZone == null; in equals()
DNitzStateMachine.java264 NitzData nitzData = mLatestNitzSignal.mValue; in handleNetworkCountryCodeSet() local
272 long ctm = nitzData.getCurrentTimeInMillis(); in handleNetworkCountryCodeSet()
303 NitzData nitzData = mLatestNitzSignal.mValue; in handleNetworkCountryCodeSet() local
305 mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, isoCountryCode); in handleNetworkCountryCodeSet()
309 + " nitzData=" + nitzData in handleNetworkCountryCodeSet()
377 private static boolean nitzOffsetMightBeBogus(NitzData nitzData) { in nitzOffsetMightBeBogus() argument
378 return nitzData.getLocalOffsetMillis() == 0 && !nitzData.isDst(); in nitzOffsetMightBeBogus()
DServiceStateTracker.java3219 NitzData nitzData = mNitzState.getCachedNitzData(); in fixUnknownMcc() local
3220 boolean isDst = nitzData != null && nitzData.isDst(); in fixUnknownMcc()