/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/zonetree/ |
D | ZoneOffsetPeriodTest.java | 28 import static org.junit.Assert.assertEquals; 53 assertEquals(startInstant, denverPeriod0.getStartInstant()); in testEqualPeriods_withDstTransitions() 54 assertEquals(expectedPeriod0End, denverPeriod0.getEndInstant()); in testEqualPeriods_withDstTransitions() 55 assertEquals(expectedPeriod0RawOffset, denverPeriod0.getRawOffsetMillis()); in testEqualPeriods_withDstTransitions() 56 assertEquals(expectedPeriod0DstOffset, denverPeriod0.getDstOffsetMillis()); in testEqualPeriods_withDstTransitions() 57 assertEquals(expectedPeriod0Name, denverPeriod0.getName()); in testEqualPeriods_withDstTransitions() 61 assertEquals(startInstant, boisePeriod0.getStartInstant()); in testEqualPeriods_withDstTransitions() 62 assertEquals(expectedPeriod0End, boisePeriod0.getEndInstant()); in testEqualPeriods_withDstTransitions() 63 assertEquals(expectedPeriod0RawOffset, boisePeriod0.getRawOffsetMillis()); in testEqualPeriods_withDstTransitions() 64 assertEquals(expectedPeriod0DstOffset, boisePeriod0.getDstOffsetMillis()); in testEqualPeriods_withDstTransitions() [all …]
|
D | ZoneInfoTest.java | 29 import static org.junit.Assert.assertEquals; 48 assertEquals(londonTz.getID(), zoneInfo.getZoneId()); in testCreate() 49 assertEquals(5, zoneInfo.getPriority()); in testCreate() 51 assertEquals(expectedPeriodCount, zoneInfo.getZoneOffsetPeriodCount()); in testCreate() 57 assertEquals(Instant.ofEpochSecond(57722400L) /* 1971-10-31T02:00:00Z */, in testCreate() 59 assertEquals(expectedPeriod0, zoneInfo.getZoneOffsetPeriod(0)); in testCreate() 64 assertEquals(Instant.ofEpochSecond(69818400L) /* 1972-03-19T02:00:00Z */, in testCreate() 66 assertEquals(expectedPeriod1, zoneInfo.getZoneOffsetPeriod(1)); in testCreate() 71 assertEquals(END_INSTANT, expectedPeriod37.getEndInstant()); in testCreate() 72 assertEquals(expectedPeriod37, zoneInfo.getZoneOffsetPeriod(37)); in testCreate() [all …]
|
D | TreeNodeTest.java | 26 import static org.junit.Assert.assertEquals; 58 assertEquals("id", testTreeNode.getId()); in testTreeNode_single() 59 assertEquals(0, testTreeNode.getChildrenCount()); in testTreeNode_single() 67 assertEquals(testVisitor.ids, asList("id")); in testTreeNode_single() 102 assertEquals( in testTreeNode_many() 115 assertEquals(asList("1", "1.2", "1.2.1", "1.2.2", "1.2.3"), testVisitor.ids); in testTreeNode_many() 120 assertEquals( in testTreeNode_many()
|
D | CountryZoneUsageTest.java | 23 import static org.junit.Assert.assertEquals; 34 assertEquals("us", countryZoneUsage.getIsoCode()); in testGetIsoCode() 63 assertEquals(instant, countryZoneUsage.getNotUsedAfterInstant(usZoneId2)); in testWithEntry() 64 assertEquals(usZoneId1, countryZoneUsage.getNotUsedReplacementId(usZoneId2)); in testWithEntry()
|
D | CountryZoneTreeTest.java | 27 import static org.junit.Assert.assertEquals; 109 assertEquals(expectedNotUsedAfterInstant, in testCountryWithPriority() 111 assertEquals("Europe/Berlin", in testCountryWithPriority() 157 assertEquals(expectedNotUsedAfterInstant, in australiaTreeTest() 159 assertEquals("Australia/Brisbane", in australiaTreeTest()
|
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/ |
D | UtilsTest.java | 31 import static org.junit.Assert.assertEquals; 43 assertEquals(set("Foo"), Utils.subtract(a, b)); in subtract() 44 assertEquals(set("Baz"), Utils.subtract(b, a)); in subtract() 45 assertEquals(a, Utils.subtract(a, empty)); in subtract() 46 assertEquals(empty, Utils.subtract(empty, a)); in subtract() 51 assertEquals(list("ONE", "TWO", "THREE"), Utils.toUpperCase(list("one", "Two", "THREE"))); in toUpperCase() 52 assertEquals(list(), Utils.toUpperCase(list())); in toUpperCase() 69 assertEquals(0, parseUtcOffsetToMillis("0:00")); in utcOffsets() 70 assertEquals(0, parseUtcOffsetToMillis("00:00")); in utcOffsets() 71 assertEquals(0, parseUtcOffsetToMillis("-0:00")); in utcOffsets() [all …]
|
D | BackwardFileTest.java | 19 import static junit.framework.TestCase.assertEquals; 72 assertEquals(expectedLinks, backward.getDirectLinks()); in parseIgnoresCommentsAndEmptyLines() 93 assertEquals(expectedLinks, backward.getLinks()); in parse() 100 assertEquals(expectedDirectLinks, backward.getDirectLinks()); in parse() 102 assertEquals(set("Africa/Abidjan", "Africa/Timbuktu2"), in parse() 104 assertEquals(set("Africa/Abidjan", "Africa/Timbuktu"), in parse() 106 assertEquals(set("Africa/Timbuktu", "Africa/Timbuktu2"), in parse()
|
D | ZoneTabFileTest.java | 34 import static junit.framework.TestCase.assertEquals; 67 assertEquals( in parseIgnoresCommentsAndEmptyLines() 84 assertEquals( in parse() 113 assertEquals(expected, actual); in createCountryToOlsonIdsMap()
|
/system/timezone/input_tools/android/tzids/src/test/java/com/android/timezone/tzids/ |
D | TimeZoneIdsTest.java | 20 import static org.junit.Assert.assertEquals; 53 assertEquals(expectedMap, tzIds.getCountryIdMap("Gb", Instant.EPOCH)); in getCountryIdMap_links() 54 assertEquals(expectedMap, tzIds.getCountryIdMap("GB", Instant.EPOCH)); in getCountryIdMap_links() 55 assertEquals(expectedMap, tzIds.getCountryIdMap("gB", Instant.EPOCH)); in getCountryIdMap_links() 57 assertEquals(expectedMap, tzIds.getCountryIdMap("gb", Instant.MIN)); in getCountryIdMap_links() 58 assertEquals(expectedMap, tzIds.getCountryIdMap("gb", Instant.EPOCH)); in getCountryIdMap_links() 59 assertEquals(expectedMap, tzIds.getCountryIdMap("gb", Instant.MAX)); in getCountryIdMap_links() 92 assertEquals(expectedMap, tzIds.getCountryIdMap("us", Instant.EPOCH)); in getCountryIdMap_replacements() 93 assertEquals(expectedMap, tzIds.getCountryIdMap("us", knoxFrom.minusMillis(1))); in getCountryIdMap_replacements() 102 assertEquals(expectedMap, tzIds.getCountryIdMap("us", knoxFrom)); in getCountryIdMap_replacements() [all …]
|
/system/timezone/apex/tests/src/java/android/tzdata/mts/ |
D | TimeZoneRulesTest.java | 18 import static org.junit.Assert.assertEquals; 52 assertEquals(7200000L, tz.getOffset(firstTransitionTimeMillis)); in preHistoricInDaylightTime() 56 assertEquals(3600000L, tz.getOffset(beforeFirstTransitionTimeMillis)); in preHistoricInDaylightTime() 63 assertEquals("GMT+03:30", iranTz.getDisplayName(false, TimeZone.SHORT, Locale.UK)); in getDisplayNameShort_nonHourOffsets() 64 assertEquals("GMT+04:30", iranTz.getDisplayName(true, TimeZone.SHORT, Locale.UK)); in getDisplayNameShort_nonHourOffsets() 79 assertEquals(currentOffset, tz.getOffset(new Date(Integer.MIN_VALUE).getTime())); in minimalTransitionZones() 80 assertEquals(currentOffset, tz.getOffset(new Date(Integer.MAX_VALUE).getTime())); in minimalTransitionZones() 86 assertEquals(0, TimeZone.getTimeZone("UTC").getDSTSavings()); in getDSTSavings() 87 assertEquals(3600000, TimeZone.getTimeZone("America/Los_Angeles").getDSTSavings()); in getDSTSavings() 88 assertEquals(1800000, TimeZone.getTimeZone("Australia/Lord_Howe").getDSTSavings()); in getDSTSavings() [all …]
|
D | TimeZoneVersionTest.java | 18 import static org.junit.Assert.assertEquals; 48 assertEquals("003", majorVersion); in timeZoneModuleIsCompatibleWithThisRelease() 50 assertEquals("004", majorVersion); in timeZoneModuleIsCompatibleWithThisRelease() 56 assertEquals("006", majorVersion); in timeZoneModuleIsCompatibleWithThisRelease() 59 assertEquals("005", majorVersion); in timeZoneModuleIsCompatibleWithThisRelease() 78 assertEquals(tzModuleTzdbVersion, icu4jTzVersion); in tzdbVersionIsConsistentAcrossApis() 80 assertEquals(tzModuleTzdbVersion, TimeUtils.getTimeZoneDatabaseVersion()); in tzdbVersionIsConsistentAcrossApis() 103 assertEquals(13, versionBytes.length); in readTzDbVersionFromModuleVersionFile() 113 assertEquals(7, versionBytes.length); in readMajorFormatVersionFromModuleVersionFile()
|
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/ |
D | TimeZoneDistroInstallerTest.java | 128 assertEquals( in testStageInstallWithErrorCode_successfulFirstUpdate() 141 assertEquals( in testStageInstallWithErrorCode_successfulFirstUpdate_sameVersionAsBase() 154 assertEquals( in testStageInstallWithErrorCode_unsuccessfulFirstUpdate_olderVersionThanBase() 167 assertEquals( in testStageInstallWithErrorCode_successfulFollowOnUpdate_newerVersion() 173 assertEquals( in testStageInstallWithErrorCode_successfulFollowOnUpdate_newerVersion() 179 assertEquals( in testStageInstallWithErrorCode_successfulFollowOnUpdate_newerVersion() 193 assertEquals( in testStageInstallWithErrorCode_unsuccessfulFollowOnUpdate_olderVersion() 199 assertEquals( in testStageInstallWithErrorCode_unsuccessfulFollowOnUpdate_olderVersion() 216 assertEquals(TimeZoneDistroInstaller.UNINSTALL_SUCCESS, installer.stageUninstall()); in testStageInstallWithErrorCode_existingStagedUninstall() 221 assertEquals( in testStageInstallWithErrorCode_existingStagedUninstall() [all …]
|
/system/media/camera/docs/ |
D | metadata_model_test.py | 38 self.assertEquals(kind, combined_children_namespace.parent) 39 self.assertEquals(1, len(combined_ins)) 40 self.assertEquals(1, len(combined_ent)) 42 self.assertEquals("ins1", combined_ins[0].name) 43 self.assertEquals("entry3", combined_ent[0].name) 78 self.assertEquals(section, combined_kind.parent) 118 self.assertEquals(section, combined_children_kind.parent) 119 self.assertEquals(1, len(combined_ins)) 120 self.assertEquals(1, len(combined_ent)) 122 self.assertEquals("ins1", combined_ins[0].name) [all …]
|
/system/timezone/distro/core/src/test/com/android/timezone/distro/ |
D | DistroVersionTest.java | 55 assertEquals(1, distroVersion.formatMajorVersion); in testConstructor() 56 assertEquals(2, distroVersion.formatMinorVersion); in testConstructor() 57 assertEquals(VALID_RULES_VERSION, distroVersion.rulesVersion); in testConstructor() 58 assertEquals(3, distroVersion.revision); in testConstructor() 63 assertEquals(distroVersion, DistroVersion.fromBytes(distroVersion.toBytes())); in testToFromBytesRoundTrip()
|
D | FileUtilsTest.java | 104 assertEquals(new File(dir1, "file"), actualSubFile); in testCreateSubFile() 108 assertEquals(existingSubFile, actualSubFile); in testCreateSubFile() 112 assertEquals(existingSubDir, actualSubFile); in testCreateSubFile() 246 assertEquals(1, oneByte.length); in testReadBytes() 247 assertEquals(contents[0], oneByte[0]); in testReadBytes() 262 assertEquals(0, file.length()); in testCreateEmptyFile() 286 assertEquals(1000, file.length()); in testCreateEmptyFile_truncatesExisting() 290 assertEquals(0, file.length()); in testCreateEmptyFile_truncatesExisting()
|
/system/libziparchive/ |
D | test_ziparchive_large.py | 46 self.assertEquals(0, proc.returncode) 55 self.assertEquals(0, proc.returncode) 67 self.assertEquals(sorted(entry_dict.keys()), sorted(read_names)) 82 self.assertEquals(sorted(entry_dict.keys()), sorted(read_names)) 96 self.assertEquals(sorted(entry_dict.keys()), sorted(read_names)) 112 self.assertEquals([file_path.name[1:]], read_names) 126 self.assertEquals(sorted(entry_dict.keys()), sorted(read_names)) 140 self.assertEquals(sorted(entry_dict.keys()), sorted(read_names))
|
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/ |
D | ContextHubSendMessageToHostTestExecutor.java | 91 assertEquals("Expected zero length data", 0, data.length); in handleMessageFromNanoApp() 155 assertEquals("Wrong small data length in stage " + mStageCount, in checkSmallData() 158 assertEquals("Bad data " + data[i] + " at index " + i in checkSmallData() 175 assertEquals("checkLargeData has bad data length", in checkLargeData() 178 assertEquals("Failed raw data check at index " + i, in checkLargeData()
|
D | ContextHubEventBetweenAppsTestExecutor.java | 100 assertEquals("Incorrect app ID given for 0x" + Long.toHexString(mNanoAppId0), in handleMessageFromNanoApp() 103 assertEquals("Incorrect app ID given for 0x" + Long.toHexString(mNanoAppId1), in handleMessageFromNanoApp()
|
/system/apex/tests/src/com/android/tests/apex/ |
D | TimezoneDataHostTest.java | 19 import static org.junit.Assert.assertEquals; 73 assertEquals(0, (int) commandResult.getExitCode()); in getRuntimeServiceInfoProto() 91 assertEquals("DebugEntryProto with key " + entryKey + " has bad value", in assertEntryValue()
|
D | MediaSwCodecHostTest.java | 19 import static org.junit.Assert.assertEquals; 51 assertEquals("Couldn't list software codecs on device", in checkCodecs()
|
D | MediaHostTest.java | 19 import static org.junit.Assert.assertEquals; 56 assertEquals(0, (int) commandResult.getExitCode()); in checkMediaExtractor()
|
/system/chre/java/test/permissions/src/com/google/android/chre/test/permissions/ |
D | ContextHubChrePermissionsTestExecutor.java | 116 Assert.assertEquals(PermissionTest.MessageType.TEST_RESULT_VALUE, rcvdMsg.getMessageType()); in checkPermissionGatedApisTest() 120 Assert.assertEquals(new String(resultProto.getErrorMessage().toByteArray(), in checkPermissionGatedApisTest() 124 Assert.assertEquals(ChreTestCommon.TestResult.Code.PASSED, resultProto.getCode()); in checkPermissionGatedApisTest()
|
/system/extras/simpleperf/demo/SimpleperfExampleOfKotlin/app/src/test/java/com/example/simpleperf/simpleperfexampleofkotlin/ |
D | ExampleUnitTest.kt | 15 assertEquals(4, 2 + 2) in addition_isCorrect()
|
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/app/src/test/java/com/example/simpleperf/simpleperfexamplepurejava/ |
D | ExampleUnitTest.java | 15 assertEquals(4, 2 + 2); in addition_isCorrect()
|
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/test/java/com/example/simpleperf/simpleperfexamplewithnative/ |
D | ExampleUnitTest.java | 15 assertEquals(4, 2 + 2); in addition_isCorrect()
|