Home
last modified time | relevance | path

Searched refs:assertFloat (Results 1 – 4 of 4) sorted by relevance

/packages/modules/ExtServices/tests/src/android/ext/services/autofill/
DEditDistanceScorerTest.java31 assertFloat(calculateScore(null, "D'OH!", null), 0); in testCalculateScore_nullValue()
36 assertFloat(calculateScore(AutofillValue.forToggle(true), "D'OH!", null), 0); in testCalculateScore_nonTextValue()
41 assertFloat(calculateScore(AutofillValue.forText("D'OH!"), null, null), 0); in testCalculateScore_nullUserData()
46 assertFloat(calculateScore(AutofillValue.forText("D'OH!"), "D'OH!", null), 1); in testCalculateScore_fullMatch()
47 assertFloat(calculateScore(AutofillValue.forText(""), "", null), 1); in testCalculateScore_fullMatch()
52 assertFloat(calculateScore(AutofillValue.forText("D'OH!"), "D'oH!", null), 1); in testCalculateScore_fullMatchMixedCase()
57 assertFloat(calculateScore(AutofillValue.forText("X"), "Xy", null), 0.50F); in testCalculateScore_mismatchDifferentSizes()
58 assertFloat(calculateScore(AutofillValue.forText("Xy"), "X", null), 0.50F); in testCalculateScore_mismatchDifferentSizes()
59 assertFloat(calculateScore(AutofillValue.forText("One"), "MoreThanOne", null), 0.27F); in testCalculateScore_mismatchDifferentSizes()
60 assertFloat(calculateScore(AutofillValue.forText("MoreThanOne"), "One", null), 0.27F); in testCalculateScore_mismatchDifferentSizes()
[all …]
DExactMatchTest.java40 assertFloat(calculateScore(null, "TEST", null), 0); in testCalculateScore_nullValue()
45 assertFloat(calculateScore(AutofillValue.forToggle(true), "TEST", null), 0); in testCalculateScore_nonTextValue()
50 assertFloat(calculateScore(AutofillValue.forText("TEST"), null, null), 0); in testCalculateScore_nullUserData()
56 assertFloat(calculateScore(AutofillValue.forText("TEST"), "1234 test", last4), 1); in testCalculateScore_succeedMatchMixedCases_last4()
57 assertFloat(calculateScore(AutofillValue.forText("test"), "1234 TEST", last4), 1); in testCalculateScore_succeedMatchMixedCases_last4()
63 assertFloat(calculateScore(AutofillValue.forText("TEST"), "TEST1", last4), 0); in testCalculateScore_mismatchDifferentSizes_last4()
64 assertFloat(calculateScore(AutofillValue.forText(""), "TEST", last4), 0); in testCalculateScore_mismatchDifferentSizes_last4()
65 assertFloat(calculateScore(AutofillValue.forText("TEST"), "", last4), 0); in testCalculateScore_mismatchDifferentSizes_last4()
71 assertFloat(calculateScore(AutofillValue.forText("1234 1234 1234 1234"), in testCalculateScore_match()
73 assertFloat(calculateScore(AutofillValue.forText("TEST"), "TEST", null), 1); in testCalculateScore_match()
[all …]
DCreditCardMatcherTest.java36 assertFloat(calculateScore(AutofillValue.forText("5678"), "1234123412345678", in testCalculateScore_ForCreditCard()
38 assertFloat(calculateScore(AutofillValue.forText("5678"), "12341234125678", in testCalculateScore_ForCreditCard()
40 assertFloat(calculateScore(AutofillValue.forText("1234"), "1234123412341234", in testCalculateScore_ForCreditCard()
42 assertFloat(calculateScore(AutofillValue.forText("1234"), "1234123412345678", in testCalculateScore_ForCreditCard()
44 assertFloat(calculateScore(AutofillValue.forText("1234"), "12341234", in testCalculateScore_ForCreditCard()
46 assertFloat(calculateScore(AutofillValue.forText("1234"), "12341234123412341234", in testCalculateScore_ForCreditCard()
94 public static void assertFloat(float actualValue, float expectedValue) { in assertFloat() method in CreditCardMatcherTest
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/
DNameDistanceTest.java48 assertFloat(1, "Dwayne", "Dwayne"); in testExactMatch()
52 assertFloat(0.961f, "Martha", "Marhta"); in testWinklerBonus()
53 assertFloat(0.840f, "Dwayne", "Duane"); in testWinklerBonus()
54 assertFloat(0.813f, "DIXON", "DICKSONX"); in testWinklerBonus()
58 assertFloat(0.600f, "Donny", "Duane"); in testJaroDistance()
62 assertFloat(0.467f, "Johny", "Duane"); in testPoorMatch()
66 assertFloat(0, "Abcd", "Efgh"); in testNoMatches()
69 private void assertFloat(float expected, String name1, String name2) { in assertFloat() method in NameDistanceTest