/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/ |
D | NitzStateMachineImpl.java | 92 @Nullable TimestampedValue<NitzData> nitzSignal); in getTimeZoneSuggestion() argument 230 public void handleNitzReceived(@NonNull TimestampedValue<NitzData> nitzSignal) { in handleNitzReceived() argument 232 Rlog.d(LOG_TAG, "handleNitzReceived: nitzSignal=" + nitzSignal); in handleNitzReceived() 234 Objects.requireNonNull(nitzSignal); in handleNitzReceived() 238 if (!mNitzSignalInputFilter.mustProcessNitzSignal(previousNitzSignal, nitzSignal)) { in handleNitzReceived() 243 mLatestNitzSignal = nitzSignal; in handleNitzReceived() 245 String reason = "handleNitzReceived(" + nitzSignal + ")"; in handleNitzReceived() 249 doTimeZoneDetection(countryIsoCode, nitzSignal, reason); in handleNitzReceived() 252 doTimeDetection(nitzSignal, reason); in handleNitzReceived() 281 @Nullable String countryIsoCode, @Nullable TimestampedValue<NitzData> nitzSignal, in doTimeZoneDetection() argument [all …]
|
D | TimeZoneSuggesterImpl.java | 58 @Nullable String countryIsoCode, @Nullable TimestampedValue<NitzData> nitzSignal) { in getTimeZoneSuggestion() argument 62 if (nitzSignal != null) { in getTimeZoneSuggestion() 63 NitzData nitzData = nitzSignal.getValue(); in getTimeZoneSuggestion() 79 if (nitzSignal == null) { in getTimeZoneSuggestion() 85 + " nitzSignal=" + nitzSignal + ", countryIsoCode=null"); in getTimeZoneSuggestion() 88 if (nitzSignal == null) { in getTimeZoneSuggestion() 105 suggestion = findTimeZoneForTestNetwork(slotIndex, nitzSignal); in getTimeZoneSuggestion() 109 slotIndex, countryIsoCode, nitzSignal); in getTimeZoneSuggestion() 123 + ", nitzSignal=" + nitzSignal in getTimeZoneSuggestion() 138 int slotIndex, @NonNull TimestampedValue<NitzData> nitzSignal) { in findTimeZoneForTestNetwork() argument [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineImplTest.java | 108 TimestampedValue<NitzData> nitzSignal = in test_countryThenNitz() local 118 SLOT_INDEX, networkCountryIsoCode, nitzSignal); in test_countryThenNitz() 135 script.nitzReceived(nitzSignal); in test_countryThenNitz() 138 createTimeSuggestionFromNitzSignal(SLOT_INDEX, nitzSignal); in test_countryThenNitz() 143 assertEquals(nitzSignal.getValue(), mNitzStateMachineImpl.getCachedNitzData()); in test_countryThenNitz() 149 TimestampedValue<NitzData> nitzSignal = in test_nitzThenCountry() local 158 SLOT_INDEX, null /* countryIsoCode */, nitzSignal); in test_nitzThenCountry() 161 SLOT_INDEX, networkCountryIsoCode, nitzSignal); in test_nitzThenCountry() 169 script.nitzReceived(nitzSignal); in test_nitzThenCountry() 173 createTimeSuggestionFromNitzSignal(SLOT_INDEX, nitzSignal); in test_nitzThenCountry() [all …]
|
D | NitzSignalInputFilterPredicateFactoryTest.java | 60 TimestampedValue<NitzData> nitzSignal = in testNitzSignalInputFilterPredicateImpl_nullSecondArgumentRejected() local 66 impl.mustProcessNitzSignal(nitzSignal, null); in testNitzSignalInputFilterPredicateImpl_nullSecondArgumentRejected() 75 TimestampedValue<NitzData> nitzSignal = scenario in testNitzSignalInputFilterPredicateImpl_defaultIsTrue() local 79 assertTrue(impl.mustProcessNitzSignal(null, nitzSignal)); in testNitzSignalInputFilterPredicateImpl_defaultIsTrue() 85 TimestampedValue<NitzData> nitzSignal = in testNitzSignalInputFilterPredicateImpl_nullIsIgnored() local 91 assertTrue(impl.mustProcessNitzSignal(null, nitzSignal)); in testNitzSignalInputFilterPredicateImpl_nullIsIgnored() 97 TimestampedValue<NitzData> nitzSignal = in testNitzSignalInputFilterPredicateImpl_trueIsHonored() local 111 assertTrue(impl.mustProcessNitzSignal(null, nitzSignal)); in testNitzSignalInputFilterPredicateImpl_trueIsHonored() 117 TimestampedValue<NitzData> nitzSignal = in testNitzSignalInputFilterPredicateImpl_falseIsHonored() local 131 assertFalse(impl.mustProcessNitzSignal(null, nitzSignal)); in testNitzSignalInputFilterPredicateImpl_falseIsHonored() [all …]
|
D | TimeZoneSuggesterImplTest.java | 98 TimestampedValue<NitzData> nitzSignal = in test_emptySuggestionForNullCountryWithNitz() local 102 SLOT_INDEX, null /* countryIsoCode */, nitzSignal)); in test_emptySuggestionForNullCountryWithNitz() 538 TimestampedValue<NitzData> nitzSignal = in test_countryDefaultBoost() local 548 SLOT_INDEX, scenario.getNetworkCountryIsoCode(), nitzSignal); in test_countryDefaultBoost() 555 TimestampedValue<NitzData> nitzSignal = in test_countryDefaultBoost() local 565 SLOT_INDEX, scenario.getNetworkCountryIsoCode(), nitzSignal); in test_countryDefaultBoost() 574 TimestampedValue<NitzData> nitzSignal = in test_countryDefaultBoost() local 584 SLOT_INDEX, scenario.getNetworkCountryIsoCode(), nitzSignal); in test_countryDefaultBoost() 610 TimestampedValue<NitzData> nitzSignal = in test_noCountryDefaultBoost() local 620 SLOT_INDEX, scenario.getNetworkCountryIsoCode(), nitzSignal); in test_noCountryDefaultBoost() [all …]
|
D | NitzStateMachineTestSupport.java | 278 int slotIndex, TimestampedValue<NitzData> nitzSignal) { in createTimeSuggestionFromNitzSignal() argument 280 .setUtcTime(createTimeSignalFromNitzSignal(nitzSignal)) in createTimeSuggestionFromNitzSignal() 286 TimestampedValue<NitzData> nitzSignal) { in createTimeSignalFromNitzSignal() argument 288 nitzSignal.getReferenceTimeMillis(), in createTimeSignalFromNitzSignal() 289 nitzSignal.getValue().getCurrentTimeInMillis()); in createTimeSignalFromNitzSignal()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzStateMachine.java | 68 void handleNitzReceived(@NonNull TimestampedValue<NitzData> nitzSignal); in handleNitzReceived() argument
|
D | ServiceStateTracker.java | 4175 TimestampedValue<NitzData> nitzSignal = in setTimeFromNITZString() local 4177 mNitzState.handleNitzReceived(nitzSignal); in setTimeFromNITZString()
|