/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
D | SearchUtilTest.java | 30 final String actual = "this is a long test string.\nWith potentially many lines.\n" + in testFindMatchingLine() local 33 SearchUtil.MatchedLine matched = SearchUtil.findMatchingLine(actual, "poten"); in testFindMatchingLine() 38 matched = SearchUtil.findMatchingLine(actual, "hello"); in testFindMatchingLine() 43 matched = SearchUtil.findMatchingLine(actual, "this"); in testFindMatchingLine() 48 matched = SearchUtil.findMatchingLine(actual, "punc"); in testFindMatchingLine() 54 final String actual = "this is a long test string.\nWith potentially many lines.\n" + in testContains() local 56 assertEquals(0, SearchUtil.contains(actual, "this")); in testContains() 57 assertEquals(10, SearchUtil.contains(actual, "lon")); in testContains() 65 final String actual = "this is a long test string.\nWith potentially many lines.\n" + in testContainsNotFound() local 69 assertEquals(-1, SearchUtil.contains(actual, "ith")); in testContainsNotFound() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationTestUtil.java | 705 WifiConfiguration expected, WifiConfiguration actual, boolean isSupplicantBackup) { in assertCommonConfigurationElementsEqual() argument 707 assertNotNull(actual); in assertCommonConfigurationElementsEqual() 708 assertEquals(expected.SSID, actual.SSID); in assertCommonConfigurationElementsEqual() 709 assertEquals(expected.BSSID, actual.BSSID); in assertCommonConfigurationElementsEqual() 710 assertEquals(expected.preSharedKey, actual.preSharedKey); in assertCommonConfigurationElementsEqual() 711 assertEquals(expected.wepKeys, actual.wepKeys); in assertCommonConfigurationElementsEqual() 712 assertEquals(expected.wepTxKeyIndex, actual.wepTxKeyIndex); in assertCommonConfigurationElementsEqual() 713 assertEquals(expected.hiddenSSID, actual.hiddenSSID); in assertCommonConfigurationElementsEqual() 714 assertEquals(expected.requirePmf, actual.requirePmf); in assertCommonConfigurationElementsEqual() 715 assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement); in assertCommonConfigurationElementsEqual() [all …]
|
D | ScanTestUtil.java | 340 String prefix, ScanResult expected, ScanResult actual) { in assertScanResultEquals() argument 341 assertEquals(prefix + "SSID", expected.SSID, actual.SSID); in assertScanResultEquals() 342 assertEquals(prefix + "wifiSsid", expected.wifiSsid.toString(), actual.wifiSsid.toString()); in assertScanResultEquals() 343 assertEquals(prefix + "BSSID", expected.BSSID, actual.BSSID); in assertScanResultEquals() 344 assertEquals(prefix + "capabilities", expected.capabilities, actual.capabilities); in assertScanResultEquals() 345 assertEquals(prefix + "level", expected.level, actual.level); in assertScanResultEquals() 346 assertEquals(prefix + "frequency", expected.frequency, actual.frequency); in assertScanResultEquals() 347 assertEquals(prefix + "timestamp", expected.timestamp, actual.timestamp); in assertScanResultEquals() 348 assertEquals(prefix + "seen", expected.seen, actual.seen); in assertScanResultEquals() 352 ScanResult[] actual) { in assertScanResultsEquals() argument [all …]
|
D | WifiMetricsTestUtil.java | 43 HistogramBucketInt32[] actual) { in assertHistogramBucketsEqual() argument 44 assertEquals("Number of buckets do not match!", expected.length, actual.length); in assertHistogramBucketsEqual() 48 HistogramBucketInt32 actualBucket = actual[i]; in assertHistogramBucketsEqual() 74 public static void assertKeyCountsEqual(Int32Count[] expected, Int32Count[] actual) { in assertKeyCountsEqual() argument 75 assertEquals("Number of key counts do not match!", expected.length, actual.length); in assertKeyCountsEqual() 79 Int32Count actualKeyCount = actual[i]; in assertKeyCountsEqual() 103 LinkProbeFailureReasonCount[] expected, LinkProbeFailureReasonCount[] actual) { in assertLinkProbeFailureReasonCountsEqual() argument 105 expected.length, actual.length); in assertLinkProbeFailureReasonCountsEqual() 108 Arrays.sort(actual, Comparator.comparingInt(x -> x.failureReason)); in assertLinkProbeFailureReasonCountsEqual() 112 LinkProbeFailureReasonCount actualFailureReasonCount = actual[i]; in assertLinkProbeFailureReasonCountsEqual() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiUsabilityStatsEntryTest.java | 141 WifiUsabilityStatsEntry actual) { in assertWifiUsabilityStatsEntryEquals() argument 142 assertEquals(expected.getTimeStampMillis(), actual.getTimeStampMillis()); in assertWifiUsabilityStatsEntryEquals() 143 assertEquals(expected.getRssi(), actual.getRssi()); in assertWifiUsabilityStatsEntryEquals() 144 assertEquals(expected.getLinkSpeedMbps(), actual.getLinkSpeedMbps()); in assertWifiUsabilityStatsEntryEquals() 145 assertEquals(expected.getTotalTxSuccess(), actual.getTotalTxSuccess()); in assertWifiUsabilityStatsEntryEquals() 146 assertEquals(expected.getTotalTxRetries(), actual.getTotalTxRetries()); in assertWifiUsabilityStatsEntryEquals() 147 assertEquals(expected.getTotalTxBad(), actual.getTotalTxBad()); in assertWifiUsabilityStatsEntryEquals() 148 assertEquals(expected.getTotalRxSuccess(), actual.getTotalRxSuccess()); in assertWifiUsabilityStatsEntryEquals() 150 actual.getWifiLinkLayerRadioStats().size()); in assertWifiUsabilityStatsEntryEquals() 153 RadioStats actualRadioStats = actual.getWifiLinkLayerRadioStats().get(i); in assertWifiUsabilityStatsEntryEquals() [all …]
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | IoOveruseConfigsTest.cpp | 115 const auto actual = std::get<0>(arg); variable 117 return actual.first == expected.first && 118 ExplainMatchResult(ResourceOveruseConfigurationMatcher(expected.second), actual.second, 296 std::vector<ResourceOveruseConfiguration> actual; in TEST_F() local 297 ioOveruseConfigs.get(&actual); in TEST_F() 299 EXPECT_THAT(actual, UnorderedElementsAreArray(ResourceOveruseConfigurationsMatchers(expected))) in TEST_F() 300 << "Expected: " << toString(expected) << "Actual:" << toString(actual); in TEST_F() 322 std::vector<ResourceOveruseConfiguration> actual; in TEST_F() local 323 ioOveruseConfigs.get(&actual); in TEST_F() 325 EXPECT_THAT(actual, UnorderedElementsAreArray(ResourceOveruseConfigurationsMatchers(expected))) in TEST_F() [all …]
|
D | UidStatsCollectorTest.cpp | 275 auto actual = mUidStatsCollector->latestStats(); in TEST_F() local 277 EXPECT_THAT(actual, UnorderedElementsAreArray(UidStatsMatchers(expected))) in TEST_F() 279 << "\nActual: " << toString(actual); in TEST_F() 281 actual = mUidStatsCollector->deltaStats(); in TEST_F() 283 EXPECT_THAT(actual, IsEmpty()) << "Delta UID stats isn't empty.\nActual: " << toString(actual); in TEST_F() 303 auto actual = mUidStatsCollector->deltaStats(); in TEST_F() local 305 EXPECT_THAT(actual, UnorderedElementsAreArray(UidStatsMatchers(expected))) in TEST_F() 307 << "\nActual: " << toString(actual); in TEST_F() 309 actual = mUidStatsCollector->latestStats(); in TEST_F() 311 EXPECT_THAT(actual, IsEmpty()) << "Latest UID stats isn't empty.\nActual: " << toString(actual); in TEST_F() [all …]
|
D | OveruseConfigurationXmlHelperTest.cpp | 95 auto actual = OveruseConfigurationXmlHelper::parseXmlFile( in TEST() local 97 ASSERT_RESULT_OK(actual); in TEST() 98 EXPECT_THAT(*actual, ResourceOveruseConfigurationMatcher(expected)) in TEST() 99 << "Expected: " << expected.toString() << "\nActual: " << actual->toString(); in TEST() 133 auto actual = OveruseConfigurationXmlHelper::parseXmlFile( in TEST() local 135 ASSERT_RESULT_OK(actual); in TEST() 136 EXPECT_THAT(*actual, ResourceOveruseConfigurationMatcher(expected)) in TEST() 137 << "Expected: " << expected.toString() << "\nActual: " << actual->toString(); in TEST() 153 auto actual = OveruseConfigurationXmlHelper::parseXmlFile( in TEST() local 155 ASSERT_RESULT_OK(actual); in TEST() [all …]
|
D | UidProcStatsCollectorTestUtils.h | 29 const auto& actual = arg; variable 30 return ::testing::Value(actual.comm, ::testing::Eq(expected.comm)) && 31 ::testing::Value(actual.startTimeMillis, ::testing::Eq(expected.startTimeMillis)) && 32 ::testing::Value(actual.cpuTimeMillis, ::testing::Eq(expected.cpuTimeMillis)) && 33 ::testing::Value(actual.totalMajorFaults, ::testing::Eq(expected.totalMajorFaults)) && 34 ::testing::Value(actual.totalTasksCount, ::testing::Eq(expected.totalTasksCount)) && 35 ::testing::Value(actual.ioBlockedTasksCount, 40 const auto& actual = std::get<0>(arg); variable 42 return actual.first == expected.first && 43 ::testing::Value(actual.second, ProcessStatsEq(expected.second)); [all …]
|
D | UidProcStatsCollectorTest.cpp | 42 const auto& actual = std::get<0>(arg); variable 44 return actual.first == expected.first && 45 ExplainMatchResult(UidProcStatsEq(expected.second), actual.second, result_listener); 121 auto actual = collector.deltaStats(); in TEST() local 123 EXPECT_THAT(actual, UnorderedPointwise(UidProcStatsByUidEq(), expected)) in TEST() 126 << toString(actual); in TEST() 172 actual = collector.deltaStats(); in TEST() 173 EXPECT_THAT(actual, UnorderedPointwise(UidProcStatsByUidEq(), expected)) in TEST() 176 << toString(actual); in TEST() 242 auto actual = collector.deltaStats(); in TEST() local [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/images/ |
D | ScaledBitmapInfoTest.java | 36 ScaledBitmapInfo actual = BitmapUtils.createScaledBitmapInfo("B80x100", B80x100, 50, 50); in testSize_B100x100to50x50() local 37 assertScaledBitmapSize(2, 40, 50, actual); in testSize_B100x100to50x50() 42 ScaledBitmapInfo actual = BitmapUtils.createScaledBitmapInfo("B80x100", B80x100, 50, 50); in testNeedsToReload_B100x100to50x50() local 43 assertNeedsToReload(false, actual, 25, 25); in testNeedsToReload_B100x100to50x50() 44 assertNeedsToReload(false, actual, 50, 50); in testNeedsToReload_B100x100to50x50() 45 assertNeedsToReload(false, actual, 99, 99); in testNeedsToReload_B100x100to50x50() 46 assertNeedsToReload(true, actual, 100, 100); in testNeedsToReload_B100x100to50x50() 47 assertNeedsToReload(true, actual, 101, 101); in testNeedsToReload_B100x100to50x50() 53 ScaledBitmapInfo actual = in testBug20488453() local 55 assertScaledBitmapSize(8, 107, 160, actual); in testBug20488453() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestTrivialModel.cpp | 102 int CompareMatrices(const Matrix3x4& expected, const Matrix3x4& actual) { in CompareMatrices() argument 106 if (expected[i][j] != actual[i][j]) { in CompareMatrices() 108 static_cast<double>(expected[i][j]), static_cast<double>(actual[i][j])); in CompareMatrices() 121 Matrix3x4 actual; in TEST_F() local 122 memset(&actual, 0, sizeof(actual)); in TEST_F() 128 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F() 130 ASSERT_EQ(CompareMatrices(expected2, actual), 0); in TEST_F() 158 Matrix3x4 actual; in testAddTwoWithHardwareBufferInput() local 159 memset(&actual, 0, sizeof(actual)); in testAddTwoWithHardwareBufferInput() 166 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in testAddTwoWithHardwareBufferInput() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | IoUsageStatsEntrySubject.java | 75 public static boolean isEquals(WatchdogStorage.IoUsageStatsEntry actual, in isEquals() argument 77 if (actual == null || expected == null) { in isEquals() 78 return (actual == null) && (expected == null); in isEquals() 80 return actual.userId == expected.userId && actual.packageName.equals(expected.packageName) in isEquals() 81 && actual.ioUsage.getTotalTimesKilled() == expected.ioUsage.getTotalTimesKilled() in isEquals() 82 && actual.ioUsage.getForgivenOveruses() == expected.ioUsage.getForgivenOveruses() in isEquals() 83 && InternalPerStateBytesSubject.isEquals(actual.ioUsage.getForgivenWriteBytes(), in isEquals() 85 && isEqualsIoOveruseStats(actual.ioUsage.getInternalIoOveruseStats(), in isEquals() 89 private static boolean isEqualsIoOveruseStats(android.automotive.watchdog.IoOveruseStats actual, in isEqualsIoOveruseStats() argument 91 if (actual == null || expected == null) { in isEqualsIoOveruseStats() [all …]
|
D | IoOveruseConfigurationSubject.java | 48 protected boolean doEquivalent(PerStateBytes actual, PerStateBytes expected) { 49 return isPerStateBytesEquals(actual, expected); 84 public static boolean isEquals(IoOveruseConfiguration actual, in isEquals() argument 86 if (actual == null || expected == null) { in isEquals() 87 return (actual == null) && (expected == null); in isEquals() 90 return isPerStateBytesEquals(actual.getComponentLevelThresholds(), in isEquals() 92 && Maps.difference(actual.getPackageSpecificThresholds(), in isEquals() 94 && Maps.difference(actual.getAppCategorySpecificThresholds(), in isEquals() 96 && isAlertThresholdEquals(actual.getSystemWideThresholds(), in isEquals() 106 private static boolean isPerStateBytesEquals(PerStateBytes actual, PerStateBytes expected) { in isPerStateBytesEquals() argument [all …]
|
D | InternalResourceOveruseConfigurationSubject.java | 80 public static boolean isPackageMetadataEquals(List<PackageMetadata> actual, in isPackageMetadataEquals() argument 82 Set<String> actualStr = toMetadataStrings(actual); in isPackageMetadataEquals() 87 public static boolean isResourceSpecificConfigEquals(List<ResourceSpecificConfiguration> actual, in isResourceSpecificConfigEquals() argument 89 if (actual.size() != expected.size()) { in isResourceSpecificConfigEquals() 92 if (actual.size() == 0) { in isResourceSpecificConfigEquals() 100 ResourceSpecificConfiguration actualElement = actual.get(0); in isResourceSpecificConfigEquals() 113 public static boolean isEquals(ResourceOveruseConfiguration actual, in isEquals() argument 115 if (actual == null || expected == null) { in isEquals() 116 return (actual == null) && (expected == null); in isEquals() 118 return actual.componentType == expected.componentType in isEquals() [all …]
|
D | WatchdogStorageUnitTest.java | 302 IoOveruseStats actual = mService.getHistoricalIoOveruseStats( in testGetHistoricalIoOveruseStats() local 305 assertWithMessage("Historical I/O overuse stats for the past week").that(actual) in testGetHistoricalIoOveruseStats() 318 expected.toString(), actual.toString()).that(actual) in testGetHistoricalIoOveruseStats() 343 IoOveruseStats actual = mService.getHistoricalIoOveruseStats( in testGetHistoricalIoOveruseStatsWithNoRecentStats() local 346 assertWithMessage("Historical I/O overuse stats for the past week").that(actual) in testGetHistoricalIoOveruseStatsWithNoRecentStats() 359 expected.toString(), actual.toString()).that(actual) in testGetHistoricalIoOveruseStatsWithNoRecentStats() 377 List<AtomsProto.CarWatchdogDailyIoUsageSummary> actual = in testGetDailySystemIoUsageSummaries() local 391 assertWithMessage("Daily system I/O usage summary stats").that(actual).isEqualTo(expected); in testGetDailySystemIoUsageSummaries() 409 List<AtomsProto.CarWatchdogDailyIoUsageSummary> actual = in testGetDailySystemIoUsageSummariesWithLowSystemTotalWrittenBytes() local 415 assertWithMessage("Daily system I/O usage summary stats").that(actual).isNull(); in testGetDailySystemIoUsageSummariesWithLowSystemTotalWrittenBytes() [all …]
|
D | IoOveruseStatsSubject.java | 79 public static boolean isEquals(IoOveruseStats actual, IoOveruseStats expected) { in isEquals() argument 80 if (actual == expected) { in isEquals() 83 if (actual == null || expected == null) { in isEquals() 86 return actual.getStartTime() == expected.getStartTime() in isEquals() 87 && actual.getDurationInSeconds() == expected.getDurationInSeconds() in isEquals() 88 && actual.getTotalOveruses() == expected.getTotalOveruses() in isEquals() 89 && actual.getTotalTimesKilled() == expected.getTotalTimesKilled() in isEquals() 90 && actual.getTotalBytesWritten() == expected.getTotalBytesWritten() in isEquals() 91 && actual.isKillableOnOveruse() == expected.isKillableOnOveruse() in isEquals() 92 && PerStateBytesSubject.isEquals(actual.getRemainingWriteBytes(), in isEquals()
|
D | InternalIoOveruseConfigurationSubject.java | 68 public static boolean isEquals(IoOveruseConfiguration actual, in isEquals() argument 70 if (actual == null || expected == null) { in isEquals() 71 return (actual == null) && (expected == null); in isEquals() 73 return actual.componentLevelThresholds.name.equals(expected.componentLevelThresholds.name) in isEquals() 75 actual.componentLevelThresholds.perStateWriteBytes, in isEquals() 77 && isPerStateThresholdEquals(actual.packageSpecificThresholds, in isEquals() 79 && isPerStateThresholdEquals(actual.categorySpecificThresholds, in isEquals() 81 && isAlertThresholdEquals(actual.systemWideThresholds, in isEquals() 127 private static boolean isPerStateThresholdEquals(List<PerStateIoOveruseThreshold> actual, in isPerStateThresholdEquals() argument 129 Set<String> actualStr = toPerStateThresholdStrings(actual); in isPerStateThresholdEquals() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | Assert.java | 106 public static void equals(final int expected, final int actual) { in equals() argument 107 if (expected != actual) { in equals() 108 fail("Expected " + expected + " but got " + actual, false); in equals() 112 public static void equals(final long expected, final long actual) { in equals() argument 113 if (expected != actual) { in equals() 114 fail("Expected " + expected + " but got " + actual, false); in equals() 118 public static void equals(final Object expected, final Object actual) { in equals() argument 119 if (expected != actual in equals() 120 && (expected == null || actual == null || !expected.equals(actual))) { in equals() 121 fail("Expected " + expected + " but got " + actual, false); in equals() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | ChannelNumberSubject.java | 37 public static ChannelNumberSubject assertThat(@Nullable ChannelNumber actual) { in assertThat() argument 38 return Truth.assertAbout(channelNumbers()).that(actual); in assertThat() 41 private final ChannelNumber actual; field in ChannelNumberSubject 45 this.actual = subject; in ChannelNumberSubject() 49 if (!actual.majorNumber.equals(Integer.toString(major)) || actual.hasDelimiter) { in displaysAs() 55 if (!actual.majorNumber.equals(Integer.toString(major)) in displaysAs() 56 || !actual.minorNumber.equals(Integer.toString(minor)) in displaysAs() 57 || !actual.hasDelimiter) { in displaysAs() 63 if (!actual.majorNumber.isEmpty() || !actual.minorNumber.isEmpty() || actual.hasDelimiter) { in isEmpty()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/iso7816/ |
D | TlvParserTest.java | 44 TlvDatum actual = TlvParser.parseTlvs(responseApdu).get(new Tag((byte) 0x6F)).get(0); in testParseComplicatedTlv() local 50 assertThat(actual.toBytes()).isEqualTo(expected.toBytes()); in testParseComplicatedTlv() 51 assertTlvDatumEquals(expected, actual); in testParseComplicatedTlv() 70 List<TlvDatum> actual = Arrays.asList( in testParseSelectResponse() local 76 assertTlvDatumListEquals(expected, actual); in testParseSelectResponse() 92 List<TlvDatum> actual = result.get(new Tag((byte) 0x5f, (byte) 0x5f)); in noDataTag_success() local 93 assertThat(actual).isNotNull(); in noDataTag_success() 95 actual, ImmutableList.of( in noDataTag_success() 99 private static void assertTlvDatumListEquals(List<TlvDatum> expected, List<TlvDatum> actual) { in assertTlvDatumListEquals() argument 100 assertThat(actual).hasSize(expected.size()); in assertTlvDatumListEquals() [all …]
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
D | FrequentContactsCursorBuilderTest.java | 28 private void verifyBuiltCursor(final Cursor expected, final Cursor actual) { in verifyBuiltCursor() argument 31 assertEquals(rowCount, actual.getCount()); in verifyBuiltCursor() 32 assertEquals(columnCount, actual.getColumnCount()); in verifyBuiltCursor() 35 actual.moveToPosition(i); in verifyBuiltCursor() 37 actual.getLong(ContactUtil.INDEX_DATA_ID)); in verifyBuiltCursor() 39 actual.getLong(ContactUtil.INDEX_CONTACT_ID)); in verifyBuiltCursor() 41 actual.getString(ContactUtil.INDEX_LOOKUP_KEY)); in verifyBuiltCursor() 43 actual.getString(ContactUtil.INDEX_DISPLAY_NAME)); in verifyBuiltCursor() 45 actual.getString(ContactUtil.INDEX_PHOTO_URI)); in verifyBuiltCursor() 47 actual.getString(ContactUtil.INDEX_PHONE_EMAIL)); in verifyBuiltCursor() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/ |
D | NotificationHelperTest.java | 315 Notification actual = actualNotifications.get(i); in captureAndVerifyUserNotifications() local 317 isNotificationEqualTo(actual, expectedNotificationsById.get(notificationId), in captureAndVerifyUserNotifications() 322 private void isNotificationEqualTo(Notification actual, Notification expected, in isNotificationEqualTo() argument 324 assertWithMessage("Notification for id %s", notificationId).that(actual).isNotNull(); in isNotificationEqualTo() 326 .that(actual.actions.length).isEqualTo(expected.actions.length); in isNotificationEqualTo() 328 .that(actual.getChannelId()).isEqualTo(expected.getChannelId()); in isNotificationEqualTo() 329 for (int i = 0; i < actual.actions.length; i++) { in isNotificationEqualTo() 330 isNotificationActionEqualTo(actual.actions[i], expected.actions[i], notificationId); in isNotificationEqualTo() 333 .that(actual.getSmallIcon().getResId()) in isNotificationEqualTo() 335 isIntentEqualTo(getIntent(actual.deleteIntent), getIntent(expected.deleteIntent), in isNotificationEqualTo() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include_legacy/ |
D | TestHarness.h | 291 [&totalNumberOfErrors, fpAtol, fpRtol](float expected, float actual) { 295 EXPECT_NEAR(expected, actual, fpRange); 297 if (std::abs(expected - actual) > fpRange) { 302 [&totalNumberOfErrors](int32_t expected, int32_t actual) { 304 EXPECT_EQ(expected, actual); 306 if (expected != actual) { 311 [&totalNumberOfErrors, quant8AllowedError](uint8_t expected, uint8_t actual) { 313 EXPECT_NEAR(expected, actual, quant8AllowedError); 315 if (std::abs(expected - actual) > quant8AllowedError) { 320 [&totalNumberOfErrors](int16_t expected, int16_t actual) { [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MoreKeySpecTests.java | 57 final Object[] actual) { in assertArrayEquals() argument 58 if (expected == actual) { in assertArrayEquals() 61 if (expected == null || actual == null) { in assertArrayEquals() 62 assertEquals(message, Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals() 65 if (expected.length != actual.length) { in assertArrayEquals() 66 assertEquals(message + " [length]", Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals() 71 Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals() 77 final String[] actual = MoreKeySpec.insertAdditionalMoreKeys(moreKeys, additionalMoreKeys); in assertInsertAdditionalMoreKeys() local 78 assertArrayEquals(message, expected, actual); in assertInsertAdditionalMoreKeys() 305 final String[] actual = Arrays.copyOf(moreKeys, moreKeys.length); in assertGetBooleanValue() local [all …]
|