Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzSignalTest.java53 long ageMillis = 0; in testGetAgeAdjustedRealtimeMillis_zeroAge() local
55 new NitzSignal(receiptElapsedRealtimeMillis, nitzData, ageMillis); in testGetAgeAdjustedRealtimeMillis_zeroAge()
58 assertEquals(ageMillis, nitzSignal.getAgeMillis()); in testGetAgeAdjustedRealtimeMillis_zeroAge()
59 assertEquals(receiptElapsedRealtimeMillis - ageMillis, in testGetAgeAdjustedRealtimeMillis_zeroAge()
67 long ageMillis = 5000; in testGetAgeAdjustedRealtimeMillis_withAge() local
69 new NitzSignal(receiptElapsedRealtimeMillis, nitzData, ageMillis); in testGetAgeAdjustedRealtimeMillis_withAge()
72 assertEquals(ageMillis, nitzSignal.getAgeMillis()); in testGetAgeAdjustedRealtimeMillis_withAge()
73 assertEquals(receiptElapsedRealtimeMillis - ageMillis, in testGetAgeAdjustedRealtimeMillis_withAge()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzSignal.java45 long ageMillis) { in NitzSignal() argument
48 if (ageMillis < 0) { in NitzSignal()
51 mAgeMillis = ageMillis; in NitzSignal()
/frameworks/native/libs/input/
DVelocityTracker.cpp721 float ageMillis = in chooseWeight() local
723 if (ageMillis < 0) { in chooseWeight()
726 if (ageMillis < 10) { in chooseWeight()
727 return 0.5f + ageMillis * 0.05; in chooseWeight()
729 if (ageMillis < 50) { in chooseWeight()
732 if (ageMillis < 60) { in chooseWeight()
733 return 0.5f + (60 - ageMillis) * 0.05; in chooseWeight()
743 float ageMillis = in chooseWeight() local
745 if (ageMillis < 50) { in chooseWeight()
748 if (ageMillis < 100) { in chooseWeight()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DNitzStateMachineTestSupport.java129 NitzSignal createNitzSignal(long receiptElapsedMillis, long ageMillis) { in createNitzSignal() argument
130 return new NitzSignal(receiptElapsedMillis, createNitzData(), ageMillis); in createNitzSignal()
DNitzSignalInputFilterPredicateFactoryTest.java161 long ageMillis = 0; in testTrivalentPredicate_bogusElapsedRealtimeCheck() local
163 receiptElapsedMillis, baseNitzSignal.getNitzData(), ageMillis); in testTrivalentPredicate_bogusElapsedRealtimeCheck()
173 long ageMillis = 10000; in testTrivalentPredicate_bogusElapsedRealtimeCheck() local
175 receiptElapsedMillis, baseNitzSignal.getNitzData(), ageMillis); in testTrivalentPredicate_bogusElapsedRealtimeCheck()
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyImpl.java861 long ageMillis = elapsedRealtimeMillis - unixEpochTime.getElapsedRealtimeMillis();
864 int bucketIndex = (int) (ageMillis / TELEPHONY_BUCKET_SIZE_MILLIS);
1218 long ageMillis = currentElapsedRealtimeMillis - suggestionElapsedRealtimeMillis;
1219 return ageMillis <= MAX_SUGGESTION_TIME_AGE_MILLIS;