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()
116 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()