Home
last modified time | relevance | path

Searched refs:getAffinity (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsManager.java70 float getAffinity() { in getAffinity() method in ContactsManager.RankedContact
99 return Float.compare(contact2.getAffinity(), contact1.getAffinity()); in compare()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsManagerTest.java116 assertEquals(contact.getAffinity(), 1.0f); in testComputeAffinity()
118 assertEquals(contact.getAffinity(), (2.0f/3.0f + (float)Math.pow(0.5, 3) + 1.0f) / 3); in testComputeAffinity()