Home
last modified time | relevance | path

Searched refs:nitz (Results 1 – 15 of 15) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzDataTest.java49 NitzData nitz = NitzData.parse("15/06/20,01:02:03-1,0"); in testParse_withDst() local
50 assertEquals(createUtcTime(2015, 6, 20, 1, 2, 3), nitz.getCurrentTimeInMillis()); in testParse_withDst()
51 assertEquals(TimeUnit.MINUTES.toMillis(-1 * 15), nitz.getLocalOffsetMillis()); in testParse_withDst()
52 assertEquals(0, nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst()
53 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_withDst()
56 NitzData nitz = NitzData.parse("15/06/20,01:02:03+8,1"); in testParse_withDst() local
57 assertEquals(createUtcTime(2015, 6, 20, 1, 2, 3), nitz.getCurrentTimeInMillis()); in testParse_withDst()
58 assertEquals(TimeUnit.MINUTES.toMillis(8 * 15), nitz.getLocalOffsetMillis()); in testParse_withDst()
59 assertEquals(TimeUnit.HOURS.toMillis(1), nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst()
60 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_withDst()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DNitzStateMachineTestSupportTest.java17 package com.android.internal.telephony.nitz;
19 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.ARBITRARY_DEBUG_INFO;
20 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.ARBITRARY_SYSTEM_CLOC…
21 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.CZECHIA_COUNTRY_DEFAU…
22 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.CZECHIA_SCENARIO;
23 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NEW_ZEALAND_COUNTRY_D…
24 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NEW_ZEALAND_DEFAULT_S…
25 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NEW_ZEALAND_OTHER_SCE…
26 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NON_UNIQUE_US_ZONE_SC…
27 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NON_UNIQUE_US_ZONE_SC…
[all …]
DTimeZoneSuggesterImplTest.java17 package com.android.internal.telephony.nitz;
27 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.ARBITRARY_REALTIME_MI…
28 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.CZECHIA_SCENARIO;
29 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NEW_ZEALAND_COUNTRY_D…
30 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NEW_ZEALAND_DEFAULT_S…
31 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NEW_ZEALAND_OTHER_SCE…
32 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NON_UNIQUE_US_ZONE_SC…
33 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.NON_UNIQUE_US_ZONE_SC…
34 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.UNIQUE_US_ZONE_SCENAR…
35 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.UNIQUE_US_ZONE_SCENAR…
[all …]
DNitzSignalInputFilterPredicateFactoryTest.java17 package com.android.internal.telephony.nitz;
19 import static com.android.internal.telephony.nitz.NitzSignalInputFilterPredicateFactory.createBogus…
20 import static com.android.internal.telephony.nitz.NitzSignalInputFilterPredicateFactory.createIgnor…
21 import static com.android.internal.telephony.nitz.NitzSignalInputFilterPredicateFactory.createRateL…
22 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.UNIQUE_US_ZONE_SCENAR…
33 import com.android.internal.telephony.nitz.NitzSignalInputFilterPredicateFactory.NitzSignalInputFil…
34 import com.android.internal.telephony.nitz.NitzSignalInputFilterPredicateFactory.TrivalentPredicate;
35 import com.android.internal.telephony.nitz.NitzStateMachineTestSupport.FakeDeviceState;
36 import com.android.internal.telephony.nitz.NitzStateMachineTestSupport.Scenario;
DNitzStateMachineImplTest.java17 package com.android.internal.telephony.nitz;
22 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.ARBITRARY_SYSTEM_CLOC…
23 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.UNIQUE_US_ZONE_SCENAR…
24 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.UNITED_KINGDOM_SCENAR…
25 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.createEmptyTimeSugges…
26 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.createEmptyTimeZoneSu…
27 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.createTimeSuggestionF…
43 import com.android.internal.telephony.nitz.NitzStateMachineImpl.NitzSignalInputFilterPredicate;
44 import com.android.internal.telephony.nitz.NitzStateMachineTestSupport.FakeDeviceState;
45 import com.android.internal.telephony.nitz.NitzStateMachineTestSupport.Scenario;
DTimeZoneLookupHelperTest.java17 package com.android.internal.telephony.nitz;
19 import static com.android.internal.telephony.nitz.NitzStateMachineTestSupport.ARBITRARY_DEBUG_INFO;
20 import static com.android.internal.telephony.nitz.TimeZoneLookupHelper.CountryResult.QUALITY_DEFAUL…
21 import static com.android.internal.telephony.nitz.TimeZoneLookupHelper.CountryResult.QUALITY_MULTIP…
22 import static com.android.internal.telephony.nitz.TimeZoneLookupHelper.CountryResult.QUALITY_MULTIP…
23 import static com.android.internal.telephony.nitz.TimeZoneLookupHelper.CountryResult.QUALITY_SINGLE…
35 import com.android.internal.telephony.nitz.TimeZoneLookupHelper.CountryResult;
DNitzStateMachineTestSupport.java17 package com.android.internal.telephony.nitz;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java68 public static NitzData parse(String nitz) { in parse() argument
79 String[] nitzSubs = nitz.split("[/:,+-]"); in parse()
107 boolean sign = (nitz.indexOf('-') == -1); in parse()
130 return new NitzData(nitz, totalUtcOffsetMillis, dstAdjustmentMillis, in parse()
133 Rlog.e(LOG_TAG, "NITZ: Parsing NITZ time " + nitz + " ex=" + ex); in parse()
DTelephonyComponentFactory.java44 import com.android.internal.telephony.nitz.NitzStateMachineImpl;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneLookupHelper.java17 package com.android.internal.telephony.nitz;
19 import static com.android.internal.telephony.nitz.TimeZoneLookupHelper.CountryResult.QUALITY_MULTIP…
20 import static com.android.internal.telephony.nitz.TimeZoneLookupHelper.CountryResult.QUALITY_MULTIP…
DTimeZoneSuggesterImpl.java17 package com.android.internal.telephony.nitz;
31 import com.android.internal.telephony.nitz.NitzStateMachineImpl.TimeZoneSuggester;
32 import com.android.internal.telephony.nitz.TimeZoneLookupHelper.CountryResult;
DTimeServiceHelper.java17 package com.android.internal.telephony.nitz;
DNitzSignalInputFilterPredicateFactory.java17 package com.android.internal.telephony.nitz;
29 import com.android.internal.telephony.nitz.NitzStateMachineImpl.NitzSignalInputFilterPredicate;
DTimeServiceHelperImpl.java17 package com.android.internal.telephony.nitz;
DNitzStateMachineImpl.java17 package com.android.internal.telephony.nitz;