Home
last modified time | relevance | path

Searched refs:nitzData (Results 1 – 8 of 8) 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 …]
DNewNitzStateMachineTest.java885 NitzData nitzData = NitzData.createForTests( in getNitzSignal() local
888 mNitzSignal = new TimestampedValue<>(mInitialDeviceRealtimeMillis, nitzData); in getNitzSignal()
DOldNitzStateMachineTest.java1024 NitzData nitzData = NitzData.createForTests( in getNitzSignal() local
1027 mNitzSignal = new TimestampedValue<>(mInitialDeviceRealtimeMillis, nitzData); 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.java198 NitzData nitzData = (NitzData) o; in equals() local
200 if (mZoneOffset != nitzData.mZoneOffset) { in equals()
203 if (mCurrentTimeMillis != nitzData.mCurrentTimeMillis) { in equals()
206 if (!mOriginalString.equals(nitzData.mOriginalString)) { in equals()
209 if (mDstOffset != null ? !mDstOffset.equals(nitzData.mDstOffset) in equals()
210 : nitzData.mDstOffset != null) { in equals()
214 .equals(nitzData.mEmulatorHostTimeZone) : nitzData.mEmulatorHostTimeZone == null; in equals()
DNewNitzStateMachine.java157 NitzData nitzData = nitzSignal.getValue(); in updateTimeZoneFromCountryAndNitz() local
160 if (nitzData.getEmulatorHostTimeZone() != null) { in updateTimeZoneFromCountryAndNitz()
161 zoneId = nitzData.getEmulatorHostTimeZone().getID(); in updateTimeZoneFromCountryAndNitz()
170 OffsetResult lookupResult = mTimeZoneLookupHelper.lookupByNitz(nitzData); in updateTimeZoneFromCountryAndNitz()
200 nitzData, isoCountryCode); in updateTimeZoneFromCountryAndNitz()
204 + " nitzData=" + nitzData in updateTimeZoneFromCountryAndNitz()
DOldNitzStateMachine.java165 NitzData nitzData = nitzSignal.getValue(); in updateTimeZoneFromCountryAndNitz() local
168 if (nitzData.getEmulatorHostTimeZone() != null) { in updateTimeZoneFromCountryAndNitz()
169 zoneId = nitzData.getEmulatorHostTimeZone().getID(); in updateTimeZoneFromCountryAndNitz()
178 OffsetResult lookupResult = mTimeZoneLookupHelper.lookupByNitz(nitzData); in updateTimeZoneFromCountryAndNitz()
208 nitzData, isoCountryCode); in updateTimeZoneFromCountryAndNitz()
212 + " nitzData=" + nitzData in updateTimeZoneFromCountryAndNitz()
DServiceStateTracker.java3653 NitzData nitzData = mNitzState.getCachedNitzData(); in fixUnknownMcc() local
3654 boolean isDst = nitzData != null && nitzData.isDst(); in fixUnknownMcc()