Make fonts consistent in contact list.

Bug: 11674807
Change-Id: I86e08025085e140ecee7cfa796aff006ea3e270b
Merge "Make fonts consistent in contact list." into klp-dev
Import translations. DO NOT MERGE

Change-Id: I6e7caca7a1fdc58efb52aef92a1cebcd89ca792f
Auto-generated-cl: translation import
Merge "Import translations. DO NOT MERGE" into klp-dev
Import translations. DO NOT MERGE

Change-Id: Id04a447bff2aa2ef192bccdbb6f445a03706dcf0
Auto-generated-cl: translation import
Add null check for cursor in DirectoryListLoader

Bug: 12015142
Change-Id: Iaf7a97efb31e06402d583d399fa1f66f12e086d9
(cherry picked from commit 903c973e0ef995ee05acf8fa7501377afa971384)
Fix NPE when kind is null in getBestType

Fix alternate insertChild() method to detect and bail on null kind just
like primary insertChild() method does. Also change getBestValidType()
not to crash on null kind.

Bug:12490438
Change-Id: I82c351ccd5a880fb8bc71b5b27ffb2662c071be3
(cherry picked from commit 29a094106357ea806dc029437af77ec91b94cafb)
Fix NPE with null cursor

Fix NPE when get null cursor back from CP2 query.

Bug:12760164
Change-Id: I88ff0a9bd5b58a3e837c943bf999c8636b749b64
(cherry picked from commit 2148610dede65c774d95e2d44d7b742f1f08857a)
Fix potential NPE with null cursor

Detect and handle null cursors returned from CP2 queries.

Bug:12767708
Change-Id: I7bc4f97848a59140aba5a2c924c79fdc2749b150
(cherry picked from commit 23fe38b225346526e3f425570f3648dd7d893a5d)
Fix NPE if contactsCursor is null

Don't crash if the CP2 call failed and we were unable to load the
contacts cursor.

Bug:12822702
Change-Id: Ib6b3cf5a9519d61c82924f29babb146888f7453a
(cherry picked from commit 1f44ffc294764250cb1e02290fabdc439126dc19)
Fix Contact photo flicker in People and Dialer

Bug: 11634428
Change-Id: Ied6f6dcfe8ae905e6223973d32fb64406ca085a9
(cherry picked from commit 2105200e6414a7a35596f792af08a8841333a41d)
Merge "Fix NPE when kind is null in getBestType" into klp-dev
Merge "Fix NPE with null cursor" into klp-dev
Merge "Fix potential NPE with null cursor" into klp-dev
Merge "Fix NPE if contactsCursor is null" into klp-dev
Merge "Fix Contact photo flicker in People and Dialer" into klp-dev
Fix search crash

Trap NPEs thrown by CP2 query so faulty directory providers don't crash us.

Bug:12893832
Change-Id: Ie88aafb84b6d7129da02d6e0a4457ecfad5ca9b5
(cherry picked from commit ae961fff72fd6612ccad09c9aa63e5ebabd826ea)
Add support for letter tile avatars to ContactsPhotoManager

* Add LetterTileDrawable, a custom drawable used to display letter tiles
for contacts without a contact photo, instead of static bitmap resource
drawables.

* Add a class DefaultImageRequest to ContactPhotoManager. This is essentially
a data holder object used to store and retrieve various parameters that
clients can use to configure the way they want their requested letter tile
avatars to be drawn.

* Add LetterTileImageProvider to ContactPhotoManager. LetterTileImageProvider
extends DefaultImageProvider, but returns instances of LetterTileDrawable
instead of BitmapDrawables when a default contact image is needed.

* Add two new APIs to ContactPhotoManager:
getDefaultAvatarForContact - This returns an instance of a LetterTileDrawable,
configured with the display parameters stored in the provided
DefaultImageRequest.
getDefaultAvatarUriForContact - This returns an uri which the
ContactPhotoManager can use to recreate a DefaultImageRequest and hence
a LetterTileDrawable.

* Modify ContactPhotoManager.loadPhoto and loadThumbnail to accept a
DefaultImageRequest as a parameter.

* Modify the following classes to use the new ContactPhotoManager APIs. These
affect both the Dialer and People apps.
ContactEntryListADapter
ContactListAdapter
ContactTileView
PhoneNumberListAdapter

Bug: 13101785
Change-Id: Id1a87b459d6e63c42049739059a3b3ee202af837
(cherry picked from commit 6084726fbdda78bdb16e2d4cc1c3b81c84fd5da1)
Make ContactTileLoaderFactory.COLUMNS_PHONE_ONLY visible for testing

Change-Id: Ib052c165915bb90ee9577aea3ac6146ecb020399
(cherry picked from commit 866e22c1602c90426c603d677ed72c83b41419d8)
Merge "Add support for letter tile avatars to ContactsPhotoManager" into klp-dev