Home
last modified time | relevance | path

Searched refs:calculateScore (Results 1 – 10 of 10) sorted by relevance

/aosp12/packages/modules/ExtServices/java/tests/src/android/ext/services/autofill/
H A DEditDistanceScorerTest.java18 import static android.ext.services.autofill.EditDistanceScorer.calculateScore;
31 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()
61 assertFloat(calculateScore(AutofillValue.forText("1600 Amphitheatre Parkway"), in testCalculateScore_mismatchDifferentSizes()
[all …]
H A DExactMatchTest.java19 import static android.ext.services.autofill.ExactMatch.calculateScore;
40 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()
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()
75 assertFloat(calculateScore(AutofillValue.forText("TEST"), "test", null), 1); in testCalculateScore_match()
82 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_badBundle()
[all …]
H A DCreditCardMatcherTest.java21 import static android.ext.services.autofill.CreditCardMatcher.calculateScore;
36 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()
57 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_BadBundle()
63 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_BadBundle()
69 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_BadBundle()
75 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_BadBundle()
[all …]
/aosp12/packages/modules/ExtServices/java/src/android/ext/services/autofill/
H A DAutofillFieldClassificationServiceImpl.java86 scores[i][j] = EditDistanceScorer.calculateScore(actualValues.get(i), in calculateScores()
89 scores[i][j] = ExactMatch.calculateScore(actualValues.get(i), in calculateScores()
92 scores[i][j] = CreditCardMatcher.calculateScore(actualValues.get(i), in calculateScores()
H A DExactMatch.java39 static float calculateScore(@Nullable AutofillValue actualValue, in calculateScore() method in ExactMatch
H A DCreditCardMatcher.java70 static float calculateScore(@Nullable AutofillValue actualValue, in calculateScore() method in CreditCardMatcher
H A DEditDistanceScorer.java37 static float calculateScore(@Nullable AutofillValue actualValue, in calculateScore() method in EditDistanceScorer
/aosp12/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DAutofillManagerServiceShellCommand.java253 mService.calculateScore(algorithm, value1, value2, new RemoteCallback((result) -> { in getFieldClassificationScore()
H A DAutofillManagerService.java591 void calculateScore(@Nullable String algorithmName, @NonNull String value1, in calculateScore() method in AutofillManagerService
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDataConnection.java2905 mScore = calculateScore(); in enter()
3889 mScore = calculateScore(); in updateScore()
3896 private int calculateScore() { in calculateScore() method in DataConnection