/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/ |
D | NitzStateMachineImpl.java | 94 @Nullable NitzSignal nitzSignal); in getTimeZoneSuggestion() argument 219 public void handleNitzReceived(@NonNull NitzSignal nitzSignal) { in handleNitzReceived() argument 220 Objects.requireNonNull(nitzSignal); in handleNitzReceived() 224 if (!mNitzSignalInputFilter.mustProcessNitzSignal(previousNitzSignal, nitzSignal)) { in handleNitzReceived() 227 + ", nitzSignal=" + nitzSignal + ": NITZ filtered"); in handleNitzReceived() 233 mLatestNitzSignal = nitzSignal; in handleNitzReceived() 238 String reason = "handleNitzReceived(" + nitzSignal + ")"; in handleNitzReceived() 319 NitzSignal nitzSignal = mLatestNitzSignal; 322 + ", nitzSignal=" + nitzSignal); 327 doTimeZoneDetection(countryIsoCode, nitzSignal, reason); [all …]
|
D | TimeZoneSuggesterImpl.java | 58 @Nullable String countryIsoCode, @Nullable NitzSignal nitzSignal) { in getTimeZoneSuggestion() argument 62 if (nitzSignal != null) { in getTimeZoneSuggestion() 63 NitzData nitzData = nitzSignal.getNitzData(); 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 NitzSignal nitzSignal) { in findTimeZoneForTestNetwork() argument [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzSignalInputFilterPredicateFactoryTest.java | 62 NitzSignal nitzSignal = in testNitzSignalInputFilterPredicateImpl_nullSecondArgumentRejected() local 68 impl.mustProcessNitzSignal(nitzSignal, null); in testNitzSignalInputFilterPredicateImpl_nullSecondArgumentRejected() 77 NitzSignal nitzSignal = in testNitzSignalInputFilterPredicateImpl_defaultIsTrue() local 81 assertTrue(impl.mustProcessNitzSignal(null, nitzSignal)); in testNitzSignalInputFilterPredicateImpl_defaultIsTrue() 87 NitzSignal nitzSignal = in testNitzSignalInputFilterPredicateImpl_nullIsIgnored() local 93 assertTrue(impl.mustProcessNitzSignal(null, nitzSignal)); in testNitzSignalInputFilterPredicateImpl_nullIsIgnored() 99 NitzSignal nitzSignal = in testNitzSignalInputFilterPredicateImpl_trueIsHonored() local 113 assertTrue(impl.mustProcessNitzSignal(null, nitzSignal)); in testNitzSignalInputFilterPredicateImpl_trueIsHonored() 119 NitzSignal nitzSignal = in testNitzSignalInputFilterPredicateImpl_falseIsHonored() local 133 assertFalse(impl.mustProcessNitzSignal(null, nitzSignal)); in testNitzSignalInputFilterPredicateImpl_falseIsHonored() [all …]
|
D | TimeZoneSuggesterImplTest.java | 93 NitzSignal nitzSignal = in test_emptySuggestionForNullCountryWithNitz() local 97 SLOT_INDEX, null /* countryIsoCode */, nitzSignal)); in test_emptySuggestionForNullCountryWithNitz() 135 NitzSignal nitzSignal = scenario.createNitzSignal( in test_uniqueUsZone() local 138 SLOT_INDEX, "" /* countryIsoCode */, nitzSignal); in test_uniqueUsZone() 146 NitzSignal nitzSignal = scenario.createNitzSignal( in test_uniqueUsZone() local 149 SLOT_INDEX, null /* countryIsoCode */, nitzSignal); in test_uniqueUsZone() 161 NitzSignal nitzSignal = scenario.createNitzSignal( in test_uniqueUsZone() local 164 SLOT_INDEX, scenario.getNetworkCountryIsoCode(), nitzSignal); in test_uniqueUsZone() 209 NitzSignal nitzSignal = scenario.createNitzSignal( in test_nonUniqueUsZone() local 212 SLOT_INDEX, "" /* countryIsoCode */, nitzSignal); in test_nonUniqueUsZone() [all …]
|
D | NitzStateMachineImplTest.java | 103 NitzSignal nitzSignal = in test_countryThenNitz() local 113 SLOT_INDEX, networkCountryIsoCode, nitzSignal); in test_countryThenNitz() 131 script.nitzReceived(nitzSignal); in test_countryThenNitz() 134 createTimeSuggestionFromNitzSignal(SLOT_INDEX, nitzSignal); in test_countryThenNitz() 139 assertEquals(nitzSignal.getNitzData(), mNitzStateMachineImpl.getLatestNitzData()); in test_countryThenNitz() 146 NitzSignal nitzSignal = in test_nitzThenCountry() local 155 SLOT_INDEX, null /* countryIsoCode */, nitzSignal); in test_nitzThenCountry() 158 SLOT_INDEX, networkCountryIsoCode, nitzSignal); in test_nitzThenCountry() 166 script.nitzReceived(nitzSignal); in test_nitzThenCountry() 170 createTimeSuggestionFromNitzSignal(SLOT_INDEX, nitzSignal); in test_nitzThenCountry() [all …]
|
D | NitzStateMachineTestSupport.java | 303 int slotIndex, NitzSignal nitzSignal) { in createTimeSuggestionFromNitzSignal() argument 305 .setUnixEpochTime(nitzSignal.createTimeSignal()) in createTimeSuggestionFromNitzSignal()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | NitzSignalTest.java | 54 NitzSignal nitzSignal = in testGetAgeAdjustedRealtimeMillis_zeroAge() local 57 nitzSignal.getReceiptElapsedRealtimeMillis()); in testGetAgeAdjustedRealtimeMillis_zeroAge() 58 assertEquals(ageMillis, nitzSignal.getAgeMillis()); in testGetAgeAdjustedRealtimeMillis_zeroAge() 60 nitzSignal.getAgeAdjustedElapsedRealtimeMillis()); in testGetAgeAdjustedRealtimeMillis_zeroAge() 68 NitzSignal nitzSignal = in testGetAgeAdjustedRealtimeMillis_withAge() local 71 nitzSignal.getReceiptElapsedRealtimeMillis()); in testGetAgeAdjustedRealtimeMillis_withAge() 72 assertEquals(ageMillis, nitzSignal.getAgeMillis()); in testGetAgeAdjustedRealtimeMillis_withAge() 74 nitzSignal.getAgeAdjustedElapsedRealtimeMillis()); in testGetAgeAdjustedRealtimeMillis_withAge()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzStateMachine.java | 67 void handleNitzReceived(@NonNull NitzSignal nitzSignal); in handleNitzReceived() argument
|
D | ServiceStateTracker.java | 4465 NitzSignal nitzSignal = new NitzSignal(nitzReceiveTimeMs, newNitzData, ageMs); in setTimeFromNITZString() local 4466 mNitzState.handleNitzReceived(nitzSignal); in setTimeFromNITZString()
|