Updating preferredName methods to accept ContactsPreferences

Rather than accepting an int, this method accepts a nullable
ContactsPreferences object to abstract the null checks that would
otherwise be needed everywhere these utility methods are used.

Bug=26822105

Change-Id: Id41a182a70098ab2898938588f86f54e16c597b7
2 files changed
tree: a75912680ae2115f45c9ffae31880896c92b46f1
  1. assets/
  2. res/
  3. src/
  4. src-N/
  5. src-pre-N/
  6. TestCommon/
  7. tests/