Home
last modified time | relevance | path

Searched refs:nitz (Results 1 – 2 of 2) 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,4"); 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()
60 nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst()
61 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_withDst()
[all …]
/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()