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/nitz/
DTimeZoneLookupHelperTest.java170 NitzData nitzData = NitzData.parse(nitzString); in testLookupByNitzCountry_filterByEffectiveDate() local
173 OffsetResult offsetResult = mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, usIso); in testLookupByNitzCountry_filterByEffectiveDate()
180 NitzData nitzData = NitzData.parse(nitzString); in testLookupByNitzCountry_filterByEffectiveDate() local
181 OffsetResult offsetResult = mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, usIso); in testLookupByNitzCountry_filterByEffectiveDate()
195 NitzData nitzData = NitzData.parse(nitzString); in testLookupByNitzCountry_multipleMatches() local
196 OffsetResult offsetResult = mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, usIso); in testLookupByNitzCountry_multipleMatches()
203 NitzData nitzData = NitzData.parse(nitzString); in testLookupByNitzCountry_multipleMatches() local
204 OffsetResult offsetResult = mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, usIso); in testLookupByNitzCountry_multipleMatches()
212 NitzData nitzData = NitzData.parse(nitzString); in testLookupByNitzCountry_multipleMatches() local
213 OffsetResult offsetResult = mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, usIso); in testLookupByNitzCountry_multipleMatches()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneSuggesterImpl.java63 NitzData nitzData = nitzSignal.getNitzData(); in getTimeZoneSuggestion() local
64 if (nitzData.getEmulatorHostTimeZone() != null) { in getTimeZoneSuggestion()
67 .setZoneId(nitzData.getEmulatorHostTimeZone().getID()) in getTimeZoneSuggestion()
70 .addDebugInfo("Emulator time zone override: " + nitzData); in getTimeZoneSuggestion()
140 NitzData nitzData = Objects.requireNonNull(nitzSignal.getNitzData()); in findTimeZoneForTestNetwork() local
146 mTimeZoneLookupHelper.lookupByNitz(nitzData); in findTimeZoneForTestNetwork()
178 NitzData nitzData = Objects.requireNonNull(nitzSignal.getNitzData()); in findTimeZoneFromCountryAndNitz() local
179 if (isNitzSignalOffsetInfoBogus(countryIsoCode, nitzData)) { in findTimeZoneFromCountryAndNitz()
187 mTimeZoneLookupHelper.lookupByNitzCountry(nitzData, countryIsoCode); in findTimeZoneFromCountryAndNitz()
203 countryIsoCode, nitzData.getCurrentTimeInMillis()); in findTimeZoneFromCountryAndNitz()
[all …]
DTimeZoneLookupHelper.java130 @NonNull NitzData nitzData, @NonNull String isoCountryCode) { in lookupByNitzCountry()
141 Integer dstAdjustmentMillis = nitzData.getDstAdjustmentMillis(); in lookupByNitzCountry()
144 nitzData.getCurrentTimeInMillis(), bias, nitzData.getLocalOffsetMillis()); in lookupByNitzCountry()
151 nitzData.getCurrentTimeInMillis(), bias, in lookupByNitzCountry()
152 nitzData.getLocalOffsetMillis(), isDst); in lookupByNitzCountry()
167 public OffsetResult lookupByNitz(@NonNull NitzData nitzData) { in lookupByNitz() argument
168 int utcOffsetMillis = nitzData.getLocalOffsetMillis(); in lookupByNitz()
169 long timeMillis = nitzData.getCurrentTimeInMillis(); in lookupByNitz()
175 Integer dstAdjustmentMillis = nitzData.getDstAdjustmentMillis(); in lookupByNitz()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzSignalTest.java51 NitzData nitzData = NitzData.createForTests(0, 0, 1234, null); in testGetAgeAdjustedRealtimeMillis_zeroAge() local
55 new NitzSignal(receiptElapsedRealtimeMillis, nitzData, ageMillis); in testGetAgeAdjustedRealtimeMillis_zeroAge()
65 NitzData nitzData = NitzData.createForTests(0, 0, 1234, null); in testGetAgeAdjustedRealtimeMillis_withAge() local
69 new NitzSignal(receiptElapsedRealtimeMillis, nitzData, ageMillis); in testGetAgeAdjustedRealtimeMillis_withAge()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java225 NitzData nitzData = (NitzData) o; in equals() local
227 if (mZoneOffset != nitzData.mZoneOffset) { in equals()
230 if (mCurrentTimeMillis != nitzData.mCurrentTimeMillis) { in equals()
233 if (!mOriginalString.equals(nitzData.mOriginalString)) { in equals()
236 if (!Objects.equals(mDstOffset, nitzData.mDstOffset)) { in equals()
239 return Objects.equals(mEmulatorHostTimeZone, nitzData.mEmulatorHostTimeZone); in equals()
DNitzSignal.java44 @NonNull NitzData nitzData, in NitzSignal() argument
47 mNitzData = Objects.requireNonNull(nitzData); in NitzSignal()