Searched refs:getAffinity (Results 1 – 2 of 2) sorted by relevance
70 float getAffinity() { in getAffinity() method in ContactsManager.RankedContact99 return Float.compare(contact2.getAffinity(), contact1.getAffinity()); in compare()
126 assertEquals(contact.getAffinity(), 1.0f, EPSILON); in testComputeAffinity()128 assertEquals(contact.getAffinity(), (2.0f/3.0f + (float)Math.pow(0.5, 3) + 1.0f) / 3, in testComputeAffinity()