• Home
  • History
  • Annotate
  • only in /packages/apps/ContactsCommon/src/com/android/contacts/
History log of /packages/apps/ContactsCommon/src/com/android/contacts/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6770e7a5005bba90867d4dc48cf31ea7d6840155 17-Sep-2014 Santos Cordon <santoscordon@google.com> Merge "Use PhoneNumberUtils directly to get emergency number. (1/2)" into lmp-dev
40eca65db3fc664391d1475639ae96b43e4bbc49 17-Sep-2014 Santos Cordon <santoscordon@google.com> Use PhoneNumberUtils directly to get emergency number. (1/2)

Bug: 17520392
Change-Id: I49399ab99229ea9bf1b3c1f9cb4766399a8849a9
ommon/util/PhoneNumberHelper.java
fb368ce3e20b25dd3819bff20f76eae24ce1b8ab 16-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Set setIsSectionHeaderEnabled in bindView()" into lmp-dev
aca984b5bc95a5e3c82ab79319694cb60b443315 15-Sep-2014 Brian Attwell <brianattwell@google.com> Set setIsSectionHeaderEnabled in bindView()

Bug: 17506125
Change-Id: Iea754d389e8ede27ffc220bc6b8015ac132d45d6
ommon/list/ContactEntryListAdapter.java
ommon/list/DefaultContactListAdapter.java
ommon/list/PhoneNumberListAdapter.java
04a5b0b11e4bc47a343017ddece5754cf35f61f5 11-Sep-2014 Tyler Gunn <tgunn@google.com> Renaming Telecomm to Telecom.

- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: I6cae2868fa8b8d2fe872771ecac628add52fea84
ommon/CallUtil.java
ommon/list/ShortcutIntentBuilder.java
fcf62ed127081833443eb13eb9e17aaf158f441a 09-Sep-2014 Brian Attwell <brianattwell@google.com> Symmetric ripples in ContactTileAdapter

This CL keep the amount of whitespace around the images constant.
It increases the margin around the images (previously 0) and decreases
the padding.

Bug: 17394103
Change-Id: Ib1429adf602e39fbdaeb8a56804358225b4b102d
ommon/list/ContactTileAdapter.java
8f0afaec5442f24cf4106f40118ef6b3cc44c7ae 07-Sep-2014 Jay Shrauner <shrauner@google.com> Fix NPE when mAdapter is null

Bug:17414016
Change-Id: Id35d0de1a48b38bb4ef32c3f89e47bf2c374dda5
ommon/list/PinnedHeaderListView.java
382b6dacb5d1582fa198c84825489d846ba9e5bc 06-Sep-2014 Jay Shrauner <shrauner@google.com> Move non telecomm schemes to ContactsUtils

Pull telecomm schemes from PhoneAccount in framework

Bug:17398074
Change-Id: I3e73be01949c254a142fe8a4faea062899d35266
ommon/CallUtil.java
ommon/ContactsUtils.java
ommon/list/ShortcutIntentBuilder.java
4cbafe71ec04d4a511fe894c46915bb69c91b804 04-Sep-2014 Brian Attwell <brianattwell@google.com> Use semi-stable ids in Contact lists

Manual tests:
-After focusing on a contact in Dialer's and Contacts' contact list
and updating CP2 in the background, the current contact isn't repeated
by talkback
-After focusing on a contact and deleting the contact in the background
a new contact's name is read aloud by talkback.
-Removed and re-added an account. Focused on a contact in Contacts
while the the focus contacts were synced. Noticed the contact
name wasn't repeatedly spoken by talkback.

This is Part 1/2 for b/17195707. Part 2 will fix this issue for
Contacts' contact-pickers.

Bug: 17195707
Change-Id: Icb8c1b7f7ab16ad8d2e8c985088583e5b8f7b5ec
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListAdapter.java
ommon/list/DefaultContactListAdapter.java
ommon/list/PhoneNumberListAdapter.java
c935cfaf06ce48f62f85719f9c146785964b4b48 05-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Support gmail's exchange account type" into lmp-dev
707bfd0095a4994ef32ae65e780b23881b54eebf 05-Sep-2014 Brian Attwell <brianattwell@google.com> Fix width of ContactListPinnedHeaderView

CHANGE:

Change ContactListPinnedHeaderView so that it's non-padded width matches
ContactListItemView#mHeaderTextView.

BACKGROUND:

ContactListPinnedHeaderView and ContactListItemView#mHeaderTextView both
represent letter headers. ContactListPinnedHeaderView overlaps
ContactListItemView#mHeaderTextView.

ContactListPinnedHeaderView and ContactListItemView#mHeaderTextView's
header were both given the same width. But ContactListPinnedHeaderView
has starting padding whereas ContactListItemView has a starting margin
(more precisely, it uses a custom layout function to simulate margin).
Therefore, the portion of ContactListPinnedHeaderView
that was used to display text was smaller than ContactListItemView.

Bug: 17393755
Change-Id: I3610ad29058832cebbe8abba537057bb723bd945
ommon/list/ContactListPinnedHeaderView.java
fa377a5494365db2f0fd0b01b54ae2168543c105 05-Sep-2014 Yorke Lee <yorkelee@google.com> Merge "Follow ContactsContract API changes" into lmp-dev
d9ba7ce0739281fc903ece843b5c84e10344adb3 04-Sep-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API changes

Bug: 17390425
Change-Id: Ia88fb0235a56becc3ec5a770067856311769a68c
ommon/list/ContactListAdapter.java
ommon/list/PhoneNumberListAdapter.java
004d9da3f50c680d6f7d78419ab113fcededf89c 05-Sep-2014 Nancy Chen <nancychen@google.com> Merge "Add "SCHEME_VOICEMAIL" as a constant in CallUtil." into lmp-dev
6240d26350b52acac0160a0ac24dec5c03b5c800 04-Sep-2014 Brian Attwell <brianattwell@google.com> Support gmail's exchange account type

Bug: 17383877
Change-Id: Ic175d456f6b9553a9d3e051c718d5eb37d406b53
ommon/model/account/ExchangeAccountType.java
d09bb991ff703ca45be8ac535bd2f0c1354ceede 04-Sep-2014 Nancy Chen <nancychen@google.com> Add "SCHEME_VOICEMAIL" as a constant in CallUtil.

We check for the voicemail scheme in InCallUI so add this constant to
ContactsCommon.

Bug: 17363355
Change-Id: Ieb09f7772654ed738fb5127bb6d9fed1246e3a00
ommon/CallUtil.java
828f27d11535bd94c309a34769002524c32ce0d1 03-Sep-2014 Andrew Lee <anwlee@google.com> Merge "Some changes to FAB controller pertaining to animations." into lmp-dev
91fd24a8e8a4d63276e56c65d06135b88cd2333d 30-Aug-2014 Andrew Lee <anwlee@google.com> Some changes to FAB controller pertaining to animations.

+ Fade out icon on scale out, so it's resizing isn't noticeable.
+ Add delay parameter for scale in.
- Remove manuallyTranslate function; no longer used.

Bug: 16399233
Change-Id: Ie765e2510c94db57b13f0fc3f7467d29055efafb
ommon/widget/FloatingActionButtonController.java
b973c1465c8b3c4ed8a8456c035c8a3fa3a2c90b 03-Sep-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in QuickContactActivity" into lmp-dev
ca2ae1848c20aced422c44249b57e9dd3a1353eb 03-Sep-2014 Jay Shrauner <shrauner@google.com> Fix NPE in QuickContactActivity

Return Pair of nulls to callers instead of single null when get invalid
request so that they can dereference first and second without null checking
the Pair object itself.

Bug:17360477
Change-Id: I2a11fe4c39e0004aae95c9240b331a4fa654d58a
ommon/ContactsUtils.java
f7afe8e8a97b97061c38e2deb3b4ea0884fab945 03-Sep-2014 Zheng Fu <zhengfu@google.com> Merge "Making display name optional for directory contacts." into lmp-dev
88b8e0de14be337912317cfb65d2d0389cc9f9e2 02-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Circular direct-message shortcut" into lmp-dev
cd9993ef634735bb595c14b8d218ffe95df0fc74 30-Aug-2014 Zheng Fu <zhengfu@google.com> Making display name optional for directory contacts.

Bug: 17034954
Change-Id: I0ebec04ddad3cc1c8d979b02f834e5d544e8d6f3
ommon/model/ContactLoader.java
dd36185dd47e52a917306d3627c1b618d1eea9f8 02-Sep-2014 Brian Attwell <brianattwell@google.com> Circular direct-message shortcut

Bug: 17330895
Change-Id: I344fa0fc2225d0f0fb1bf54e4518047c2c2a92cc
ommon/list/ShortcutIntentBuilder.java
54140f73445acb7f2c36b5ced72fb185a3f99f0a 31-Aug-2014 Yorke Lee <yorkelee@google.com> Fix pinned header jump for first pinned header

Bug: 17333005
Change-Id: I85b2e356c9c1486ef92ba97ec0f461d71ae2cf00
ommon/list/PinnedHeaderListView.java
f0fec08d9785efade23a3257b4240ddfa17407d4 29-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Increase size of avatar and bussiness letter tile" into lmp-dev
11971257575794a1e615398e7d5d7b15a3030d83 29-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Correct padding at start of Frequently Contacted" into lmp-dev
48b20b26feb886d9e2926ce60316509274ffd831 29-Aug-2014 Brian Attwell <brianattwell@google.com> Increase size of avatar and bussiness letter tile

Don't bother increasing the size of the ic_voicemail_avatar.
This icon isn't used in contexts that require a larger size.

Bug: 17139147
Change-Id: Id0484460cf56f5e04981727648955b0c358c7c02
ommon/lettertiles/LetterTileDrawable.java
02cafd85df2af5cb305516e20c111837bf25adf1 29-Aug-2014 Brian Attwell <brianattwell@google.com> Correct padding at start of Frequently Contacted

Bug: 17285107
Change-Id: Ie47077a2a41241b46e8c136f90f9cd9395f14c17
ommon/list/ContactTileAdapter.java
5bdf8ce03eb96b446d55562a39f549a3e671f5c6 29-Aug-2014 Brian Attwell <brianattwell@google.com> Fix tablet padding of ContactPickerFragment

The ContactPickerFragment marks its ListView View.GONE until data
is finished loading. This would cause the ContactListViewUtils
to perform incorrect measurements. Change ContactListViewUtils
to measure the root view instead.

Bug: 17305317
Change-Id: I7d6d723fc95ff3d1dbfd5f7311ee38743c072245
ommon/util/ContactListViewUtils.java
84a652ef252493066a8e09fd5110472158e7b568 28-Aug-2014 Brian Attwell <brianattwell@google.com> Apply card padding when fragment becomes unhidden

Refactor ContactListViewUtils to reduce copy and pasting.

Apply padding inside ContactEntryListFragment#onHiddenChanged().

Bug: 17303217
Bug: 17135027
Change-Id: I8f972f1a503fdbf7561aea1c5fef9316c49a0bac
ommon/list/ContactEntryListFragment.java
ommon/util/ContactListViewUtils.java
fc0374e1e8683a3605a3ed5baf413ed26119a2c9 29-Aug-2014 Andrew Lee <anwlee@google.com> Merge "Only animate alignment of FAB if the FAB container is shown." into lmp-dev
900605ce8c2b08e2e670540bfbfb1cdbd35e27fd 29-Aug-2014 Andrew Lee <anwlee@google.com> Only animate alignment of FAB if the FAB container is shown.

The bug in Dialer where the FAB is showing up is because it's hidden,
but then being aligned. The alignment causes the FAB to show again.

Bug: 17316942
Change-Id: I180769d51b431b9191bb7d847acd41d4d7e71299
ommon/widget/FloatingActionButtonController.java
6b193c65504b0199eeab83dc8706c29d81477bcb 28-Aug-2014 Brian Attwell <brianattwell@google.com> Fix EdgeEffect clipping in contact scrollers

Bug: 17318701
Change-Id: I5fc5b25aba44bbe757876a1233db6773da2a6a81
ommon/util/ContactListViewUtils.java
319e7810d994f0332555c92314277258db5d7fba 28-Aug-2014 Zheng Fu <zhengfu@google.com> Merge "Adding common contact list view and card layout" into lmp-dev
87e29f060b8fe7a1f8794955ded14617214af0ed 26-Aug-2014 Zheng Fu <zhengfu@google.com> Adding common contact list view and card layout

Bug: 16553819
Bug: 17157006
Change-Id: I498b3de918a98b59e589e5216ea6ae3a0d3902a7
ommon/list/ContactEntryListFragment.java
ommon/util/ContactListViewUtils.java
ommon/util/SchedulingUtils.java
81ea79651426f833a56f5270242dc4dac15c500e 27-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "ContactLoader always stores thumbnail blob" into lmp-dev
78c550493787bc702a80f124c1eda067cffb9444 27-Aug-2014 Brian Attwell <brianattwell@google.com> ContactLoader always stores thumbnail blob

Bugle always uses Contact.PHOTO for color extraction. Therefore, in
order for Contacts' color extraction to match Bugles' color extraction
ContactLoader needs to include Contact.PHOTO regardless of whether a large
contact photo is available.

Previously, Contacts was downscaling the full sized image returned from
ContactsLoader. The resulting thumbnail was different enough from the thumbnails
synced by ContactSyncAdapter that about 20% of contact photos had different
extracted colors in Bugle and Contacts.

Bug: 17258486
Change-Id: Ib274da7bd6b6159a91beee0b2e35e0ffdfaab74a
ommon/model/Contact.java
ommon/model/ContactLoader.java
d7705a1b6595b57e250f21856c01bf734aa4d5fd 27-Aug-2014 Yorke Lee <yorkelee@google.com> API changes for ContactsContract

* Remove usages of NAME_VERIFIED
* Update ContactLoader tests
* Also fix broken unit tests as a result of ProviderInfo not having
an authority.

Bug: 17253963
Change-Id: I887fb291fa4de8db6859655956a80898d1ee618c
ommon/model/ContactLoader.java
ommon/model/RawContact.java
53cdd98f12e1c161b9caa95310248c45c1152f6a 22-Aug-2014 Nancy Chen <nancychen@google.com> API Review PhoneManager -> TelecommManager. Rename methods (2/6)

PhoneManager
- handlePinMMI docs should explain what a Pin is and what MMI is
- rename isInAPhoneCall to isInCall
- rename showCallScreen to showInCallScreen
- merge this class into TelecommManager, we don't need both

Bug: 16960458

Change-Id: I8b7ed389c60ab074eb28d29d0fa8d9429e414875
ommon/CallUtil.java
2fd9bf9b5cef661118131464c8692f63b7e97510 22-Aug-2014 Brian Attwell <brianattwell@google.com> Decrease LetterTile scale for starred contacts

Bug: 17137563
Change-Id: Ic0d9aafe277969133d655fca1c87d74ce80e0755
ommon/list/ContactTileStarredView.java
8d9ef659a71f43d942cba83b64417c553d0f5fd2 21-Aug-2014 Andrew Lee <anwlee@google.com> Pass context into isVideoEnabled. Add getContext() method to adapter.

Bug: 16211386
Change-Id: I4b928abe242dd42f00ea19c972375f777367eee4
ommon/CallUtil.java
3b48dfffefbd335900bec186eb866e652ceae7be 19-Aug-2014 Nancy Chen <nancychen@google.com> Add method to TouchPointManager to check for valid point.

When a point is initialized, its value is (0,0), since it is highly
unlikely a user will touch at that exact point, we define a valid point
as any point that is not (0,0).

Bug: 17124195

Change-Id: Iba3adfa862f262ac2b753815594b54441d997320
ommon/interactions/TouchPointManager.java
f00a07819597eb32d660033adc2bf50ae78b6172 19-Aug-2014 Andrew Lee <anwlee@google.com> Add scaleIn/scaleOut methods to the FAB controller.

Bug: 16399233
Bug: 15862303
Change-Id: I3e7cd0d79bf4016c60d5551923fd8afbd9d8ea51
ommon/widget/FloatingActionButtonController.java
79aabb35e68f06facd7c2407ac1fffaceafc13e7 19-Aug-2014 Paul Soulos <psoulos@google.com> Moves isVideoEnabled into ContactsCommon

bug: 16015752
Change-Id: Ic875b3012b705e72fbb4f592061cacb2302be305
ommon/CallUtil.java
2ea7a83b7a253741fbe0624b24b25f75fb94df5e 18-Aug-2014 Paul Soulos <psoulos@google.com> Uses the material contacts icon (1/2)

bug: 16205836
Change-Id: I261a3b419a096664758f2e145cf20143ff751f62
ommon/model/account/BaseAccountType.java
ommon/model/account/FallbackAccountType.java
feda30c74f8f89072bf8938c2c3c61cca4c29b78 18-Aug-2014 Andrew Lee <anwlee@google.com> Merge "Add resize method to FAB controller." into lmp-dev
bcf8bd1acddd1d63028fcfd55cc93115577e7bf4 15-Aug-2014 Andrew Lee <anwlee@google.com> Add resize method to FAB controller.

+ Add method which resizes the container, but not the icon.
- Remove a now-unused margin constant.

Bug: 16399233
Change-Id: I8919228d45760174aaa6cb02614ce0f8c16f0931
ommon/widget/FloatingActionButtonController.java
7d7108e8b46f5b35477211a7dd08ff8a14390ef8 16-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Update margins around directory headers and search bar icons." into lmp-dev
80f8bee7990fd7f2a9fd2bace2d96b39c0f264b3 15-Aug-2014 Nancy Chen <nancychen@google.com> Update margins around directory headers and search bar icons.

*Added more space to the top of the directory header
*Added more margin to the left of the back arrow and right of the close
*Pushed the contact text to the right

Bug: 15596340
Change-Id: I8817369d52faeb8edff7817b3f29726c1717e74f
ommon/list/ContactEntryListAdapter.java
9cc673259e047e8e913d497fc754b402d2e9b33f 14-Aug-2014 Yorke Lee <yorkelee@google.com> Merge "Fix ViewPagerTabs not scrolling correctly after tab selected" into lmp-dev
4009024ad41f739b14fea28f0c002d9451156186 14-Aug-2014 Yorke Lee <yorkelee@google.com> Fix ViewPagerTabs not scrolling correctly after tab selected

onPageScrolled was incorrectly calling smoothScrollTo and clobbering
the correct scroll offset set in onPageSelected

Bug: 16408774
Change-Id: I06e23d7469e52ef44e5bba9bf5495e34a1d32068
ommon/list/ViewPagerTabs.java
4fd9f50619fdf6c728483d9abc61a0c59b4a2984 14-Aug-2014 Yorke Lee <yorkelee@google.com> Merge "Protect against invalid long numbers in Dialer" into lmp-dev
41d16000cdd94f5f69f5d5c7c6c1519d82bc15fe 14-Aug-2014 Yorke Lee <yorkelee@google.com> Protect against invalid long numbers in Dialer

Bug: 14307606
Change-Id: I788fec72dac4ea467644f1c2ead0f466ea8e7fa9
ommon/list/PhoneNumberListAdapter.java
4388587b900823f6923cba15c445797ccabb351f 08-Aug-2014 Ihab Awad <ihab@google.com> Final structural tweaks to Telecomm API (2/8)

Bug: 16416927
Bug: 16494880
Change-Id: Ice2cd91628fefcca46f11ae9245ed00ef937f63f
ommon/CallUtil.java
14eb29f129a3ed847ecef6988177bf3251ea6141 14-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Subclass of linear layout for parent activity to listen to touch." into lmp-dev
7f98feacfed7511118aa342f06d09c0b97b9779b 14-Aug-2014 Nancy Chen <nancychen@google.com> Subclass of linear layout for parent activity to listen to touch.

Both QuickContactsActivity and CallLogActivity use this class to listen
to touch events.

Bug: 15284651
Change-Id: I6ef24d0b994e7cad11039a4414aec333d33cdb53
ommon/widget/ActivityTouchLinearLayout.java
0fcffa6d60f3aab28fb30bfb7b8ac93d4be8a6b5 13-Aug-2014 Nancy Chen <nancychen@google.com> Add Singleton class to keep track of coordinates of user touch.

Touch point needs to be passed to InCallUI to allow for reveal animation
at touch point.

Bug: 15284651
Change-Id: I3dc7d7a4f76f1e539ce1f680f743d1cd0acd9e74
ommon/interactions/TouchPointManager.java
888e3d75e24c8046c29966443acfed3f957826d1 12-Aug-2014 Brian Attwell <brianattwell@google.com> Use ic_person_white_64dp with correct padding

UX gave me updated ic_person_white_64dp icons with the correct
amount of padding built inside them.

ag/505983 contained a work around for having ic_person_white_64dp
resources with the wrong amount of padding. This CL reverts this
work around since it is no longer needed.

Bug: 16683381
Change-Id: If0fc283f5e1cfc4e4ac3f20896652da8cd14473b
ommon/lettertiles/LetterTileDrawable.java
2cb2e29508d59f76976c8f1742690b90f99ab803 11-Aug-2014 Brian Attwell <brianattwell@google.com> Remove background from unpinned headers

When ContactEntryListAdapter headers are unpinned, there is no
need to set their background color. Set the backgound to null.

Since the background color that is currently set on ContactEntryListAdapter
headers is currently incorrect in some unpinned contexts, this is an easy
solution to the mismatched background color.

Bug: 16552544
Change-Id: Ie17dfa40b495d87c6664605bd77e703acfdd2855
ommon/list/ContactEntryListAdapter.java
da98c6a02d9e1cfe3d7078c74f692842fc2bce21 08-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Disable pinned headers for directory headers" into lmp-dev
21826decea0b645be73f5e229a20632458360489 08-Aug-2014 Nancy Chen <nancychen@google.com> Disable pinned headers for directory headers

Bug: 15596340
Change-Id: Ida586663a57ab08fb9b01b946451ee59593565dc
ommon/list/ContactEntryListFragment.java
9d4d8321aafae09125b8f62bce4c299191db0252 06-Aug-2014 Chris Craik <ccraik@google.com> Use new RoundedBitmapDrawableFactory

Change-Id: I8427ac646091e33eaa2ed567fb656b1a4ea267a7
ommon/ContactPhotoManager.java
ommon/list/ShortcutIntentBuilder.java
eb1efda8fe95c00fb1b5bc6b40b57ce4c8ace050 07-Aug-2014 Brian Attwell <brianattwell@google.com> Add RECT_OUTLINE_PROVIDER to ViewUtil

This can be used to enable shadows on transparent views.

Bug: 16856049
Change-Id: Ie1ddd46ff6963ae79e190a94be184ea339524411
ommon/util/ViewUtil.java
bd9e50a0010ad4cfec4446d04b7553905334e49b 06-Aug-2014 Sai Cheemalapati <saicheems@google.com> Added an analytics dialog fragment.

Added another fragment to analytics scope.
ImportExportDialogFragment now reports views.

Change-Id: I850e7edd7f20e54b31937c08b48851d557859bb2
ommon/interactions/ImportExportDialogFragment.java
6dad05f68b81e72fe4ab0965b2ec00c258f48289 31-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Correctly setGravity for RTL mode" into lmp-dev
f5d6a7cf8f7f9cb80a65ad2d70634f25191c7e95 30-Jul-2014 Sai Cheemalapati <saicheems@google.com> Moved analytics base files to ContactsCommon.

Allows analytics base files to be shared between GoogleDialer/
GoogleContacts.

Change-Id: I35f450b8a6ec1e3feefd4523a07c333c912c7a5e
ommon/list/ContactEntryListFragment.java
53c7dc1e9691b5b427395642a4274d37a1a15bb4 31-Jul-2014 Yorke Lee <yorkelee@google.com> Correctly setGravity for RTL mode

Ensure that by the time setGravity is called for RTL-related aligning,
that getLayoutDirection() returns the correct values. This value is not
usually correct in the constructor, because the view does not have a parent
to resolve it from yet.

Bug: 16162786
Change-Id: Iea6cbcd05e39a5c45641dbb1230d4be85b45ff15
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
ommon/list/IndexerListAdapter.java
8052329cfcd6b392465bf5c653a0796e7a67b43c 30-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Follow ContactsContract API change" into lmp-dev
dc08a7cd1fc867826f4620203898847e9b27fd2d 30-Jul-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API change

Bug: 16403306
Change-Id: I21d25ba836d9d9ab45a7ebdca0e2f24f8c678e43
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListAdapter.java
ommon/list/PhoneNumberListAdapter.java
5bea1ca4ceee06d3363b2a77409203ef7239d2d9 29-Jul-2014 Andrew Lee <anwlee@google.com> Merge "Update uses of VideoCallProfile.VideoState." into lmp-dev
779c7d9b6bd067bf431192e8f2a83a65fe9e3150 28-Jul-2014 Andrew Lee <anwlee@google.com> Update uses of VideoCallProfile.VideoState.

Bug: 16629892
Change-Id: Ie6d04a2d8b10fa9047073ae4e8cb3841b4cfe824
ommon/CallUtil.java
11a6e970b215cd289b964c4c39db85906501a6c9 18-Jul-2014 Yorke Lee <yorkelee@google.com> Switch from ACTION_CALL_PRIVILEGED TO ACTION_CALL (5/5)

Bug: 6948882
Change-Id: I1f90c9f3f33d875482958d5f565629160ce2177e
ommon/CallUtil.java
aca06cea1f922fb2e670b694a550e47eee70243d 25-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Remove private usage of isLayoutRtl" into lmp-dev
8473075792dbd2d3617bfc39ae68b37136f8b93a 25-Jul-2014 Yorke Lee <yorkelee@google.com> Remove private usage of isLayoutRtl

Change-Id: I318cdd61cb82ea71e8b78056fd620843fd93d272
ommon/widget/FloatingActionButtonController.java
45d8dd98608fe7dc65becf1b5e34e7ec8c097371 28-Jul-2014 Paul Soulos <psoulos@google.com> Adds tests and makes sure all DataItem types collapse correctly

Bug: 16517558
Change-Id: Ib819864dce11818861d455efbf2b9059d91f622c
ommon/MoreContactUtils.java
ommon/model/dataitem/DataItem.java
ommon/model/dataitem/EventDataItem.java
ommon/model/dataitem/ImDataItem.java
ommon/model/dataitem/RelationDataItem.java
4c62e7adaa0290b4d1ae6926f558fd4c6164c583 23-Jul-2014 Paul Soulos <psoulos@google.com> Fixes bug in Organization inflation

Bug: 16491164
Change-Id: Ie8f0a80fd9d6a6b44bc2ca1d0543965bbc6ca018
ommon/model/account/BaseAccountType.java
c3f21a33fa554f683ddbe6d9553d1b3bd9a4fd29 22-Jul-2014 Brian Attwell <brianattwell@google.com> Only kill image requests from the one fragment

In ContractEntryListAdapter#changeCursor(), don't kill all image loading
requests app wide. Instead, only kill the image loading requests that
were associated with the adapter's fragment.

Bug: 15522504
Change-Id: Ib4e0448217e8bbb8df55e74649a013e0f1688a22
ommon/ContactPhotoManager.java
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactEntryListFragment.java
4d0ec405721176fcbf4c70bade5d34da68d523c3 22-Jul-2014 Yorke Lee <yorkelee@google.com> Make ViewPagerTabs and FABController RTL aware

* Underline in ViewPagerTabStrips is correctly drawn in RTL mode
* Clicking on ViewPagerTabs propogates correct onPageSelected position
to ViewPager
* FAB is now end aligned instead of right aligned
* ViewPager in Dialer is correctly reversed and behaves correctly
* Call Log groups headers in call log are now correctly aligned in RTL

Bug: 16162264
Bug: 16464471

Change-Id: I2db6b9147a628a68fba5bbbdb7276855d483bad5
ommon/list/ViewPagerTabStrip.java
ommon/list/ViewPagerTabs.java
ommon/widget/FloatingActionButtonController.java
429302fd99805fc6d88e974335289e22ff59c1ee 21-Jul-2014 Brian Attwell <brianattwell@google.com> Move custom ViewPagerTabs into common

Bug: 16158921
Bug: 15616182
Change-Id: I164fe830636577f85357aa3bf1ddf803de9abf94
ommon/list/ViewPagerTabStrip.java
ommon/list/ViewPagerTabs.java
6b7e1b8d8723ae8c96b233513ae037b2aba819bd 18-Jul-2014 Paul Soulos <psoulos@google.com> Fixes storing primary flags as booleans

Bug: 16327819
Change-Id: I6c71519b834a2194f4d79b92bd85d48cd5edeaa6
ommon/model/dataitem/DataItem.java
171812fd58801d8bcca356db0641e0e86e83ed5c 20-Jul-2014 Evan Charlton <evanc@google.com> Rename PhoneAccountMetadata to PhoneAccount

Change-Id: I4597b14110c1cee7f637ec125b839852ef0f34c4
ommon/CallUtil.java
733473c7aa28201236bf97101aacdf48b6783f62 20-Jul-2014 Evan Charlton <evanc@google.com> Rename PhoneAccount to PhoneAccountHandle

Change-Id: I2e97b348e6316a8b3ccc39fd81013e7f514a2889
ommon/CallUtil.java
821723306f6bae5c9f494404c3ae1175c0132173 20-Jul-2014 Evan Charlton <evanc@google.com> Migrate TelecommConstants to TelecommManager

Change-Id: Icdd7637ba1ae27ce7d1f13714257b4a946961037
ommon/CallUtil.java
e1462858348c5bad8bf48b5e37d2a499ba6c7490 18-Jul-2014 Chris Craik <ccraik@google.com> Update Outline API

Change-Id: Ied10f67bbff2321481478797efb978b2a35c5088
ommon/util/ViewUtil.java
58e54fe22bb3e4fbb9b425e3e3c1182b08afd4c4 18-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Update avatar drawable in LetterTileDrawable" into lmp-dev
6f99ad746dd89fc4998922f1bc60a4818d3d01d8 18-Jul-2014 Brian Attwell <brianattwell@google.com> Update avatar drawable in LetterTileDrawable

Use the same image as QC uses. Except, instead of scaling down
the ~140dp image start with a 64dp image.

The images provided by allen don't have an amount of border built into
it that looks good inside the LetterTileDrawable. Therefore, I wrapped
the image inside a ScaleDrawable. To do this, I changed LetterTileDrawable
to operate on internal drawables instead of internal bitmaps.

Bug: 16290899
Change-Id: I741c3a603d025068614c7004ea61fb349f6d6944
ommon/lettertiles/LetterTileDrawable.java
8336da02441968a5f48b7f85e386cf44d1a96623 18-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Inline "select new contact" entry in contact picker" into lmp-dev
0631174430c169d84675123346797654f4e62b5c 17-Jul-2014 Brian Attwell <brianattwell@google.com> Inline "select new contact" entry in contact picker

Moved Dialer resources into ContactsCommon (didn't use the exact
same icon. Used the icon from go/icons instead). Made some
small code changes needed by my Contacts CL: bug fix
and overridable parameter.

Part 2/3
Bug: 16209705
Change-Id: I792b4fa560f4f8a26ed05d5b44817152c59deda1
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactEntryListFragment.java
d4d290d39d14e17683ec86b07a150c9df35505ae 15-Jul-2014 Brian Attwell <brianattwell@google.com> Updated LetterTileDrawable colors.

Now that LetterTileDrawable colors are the same as the colors used by
MaterialColorMapUtils, I unified the colors inside colors.xml and was
able to delete some MaterialColorMapUtils code.

BUG: 15889179
BUG: 16159407
Change-Id: I02b96011a30def913fb1de589aeb7a8c336e2154
ommon/lettertiles/LetterTileDrawable.java
ommon/util/MaterialColorMapUtils.java
e0337eb6a02c8c36d7c136737c29ed6e95f31e1c 15-Jul-2014 Nancy Chen <nancychen@google.com> Merge "Remove Account selection dialog because it will no longer exist" into lmp-dev
30bcd21460153e9d9c089daf44fb944c3fb06b82 14-Jul-2014 Nancy Chen <nancychen@google.com> Remove Account selection dialog because it will no longer exist

Because the account selection dialog was confusing for the user, we
decided to remove it from the UI.

Bug: 16290489
Change-Id: I59933efd0836462ca40a156e973b4068de2c8a86
(cherry picked from commit e14570cceebd1c31139307f72ed5613e32076ef6)
ommon/PhoneAccountManager.java
ommon/dialog/SelectAccountDialogFragment.java
998b8d3d7fc12f2550598e05fbdcdb4ddf218a09 16-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Make ContactPreferences use SharedPreferences instead of System settings (3/5)" into lmp-dev
40492ccc5e7f45bd79dd1c4b3f91b4e77a1ec4ff 15-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Copy Color.hue to materialColorMapUtils" into lmp-dev
e98245c9f57dca8902ffa9c406e4e37ecd94f8eb 15-Jul-2014 Tyler Gunn <tgunn@google.com> Adding required video call intent for use with "Video Call" link
in call log.

Bug: 16013879
Change-Id: Ib599a154549fab221510d30715930080cba95c78
ommon/CallUtil.java
d585ac1c9ea385751b69897a9efb907655296f66 15-Jul-2014 Yorke Lee <yorkelee@google.com> Copy Color.hue to materialColorMapUtils

Color.hue is a private API and has been pending API approval since 2009.
Copy its implementation into our codebase since it is unlikely to ever change.

Bug: 6948882
Change-Id: I9c411351b6c236f5583104f23d74191ea04a227a
ommon/util/MaterialColorMapUtils.java
495c732e471c1c68db91ca6e824440130fdb7146 10-Jul-2014 Yorke Lee <yorkelee@google.com> Make ContactPreferences use SharedPreferences instead of System settings (3/5)

* Move constants that originally lived in the framework into ContactsCommon
* Use SharedPreferences instead of System settings to persist preferences
* Use a SharedPreferenceListener to monitor changes instead of a content observer
on system settings
* Move DisplayOrderPreference and SortOrderPreference into ContactsCommon so that
it can be used by Dialer
* Create base DialerSettingsActivity in Dialer, and make GoogleDialerSettingsActivity
extend it
Bug: 16153186

Change-Id: Ib3500b82b03960a30b565f1024f20f78879d3ce3
ommon/list/ContactListAdapter.java
ommon/list/DefaultContactListAdapter.java
ommon/list/PhoneNumberListAdapter.java
ommon/preference/ContactsPreferences.java
ommon/preference/DisplayOptionsPreferenceFragment.java
ommon/preference/DisplayOrderPreference.java
ommon/preference/SortOrderPreference.java
914f56efb034de18257ce298b893e8329d92b2d5 14-Jul-2014 Sailesh Nepal <sail@google.com> Update EXTRA_PHONE_ACCOUNT do not merge

Change-Id: I2e40c5c64c0d242dc41b680943d7e9209142db5b
(cherry picked from commit 47c4b0754c22a6d3601a84ea66419b97ae642550)
ommon/CallUtil.java
c291ec1b9964c44e91ca86eeaf83d91138cc1767 09-Jul-2014 Ihab Awad <ihab@google.com> Implement multi-SIM capabilities (2/6) [DO NOT MERGE]

Use new PhoneAccount & metadata APIs

Bug:16292368
Change-Id: Ia53fc2c94b45196fd0bbd3f1da0ca5565d22360a
(cherry picked from commit 264629ca27d9b830806a81f7fda4ee493fda8652)
ommon/CallUtil.java
ommon/PhoneAccountManager.java
ommon/dialog/SelectAccountDialogFragment.java
d9a32d45b3b884ceb236fc8793d5558916f8ccf4 12-Jul-2014 Chris Craik <ccraik@google.com> Merge "Move from old setOutline() api to setOutlineProvider()"
753f106862d1f4625fa7736a6e01c6173d6a2f48 12-Jul-2014 Chris Craik <ccraik@google.com> Move from old setOutline() api to setOutlineProvider()

Change-Id: I4cd665da579bd9f7a1730be2459b1b78d2403ddd
ommon/util/ViewUtil.java
528cb5eae10cc221cdc989035b0dc5e21f09684b 11-Jul-2014 Brian Attwell <brianattwell@google.com> MaterialColorMapUtils

Bug: 16159407
Change-Id: I234d709f47bd0a32e3ac0130457290e0cd9fbf84
ommon/util/MaterialColorMapUtils.java
5cb229088e22d4fc883dd22abaa21c49172a38d8 10-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Use circular photos in contact picker"
1b1221ba8291599675cb1399713c966728ed3c52 10-Jul-2014 Brian Attwell <brianattwell@google.com> Use circular photos in contact picker

Bug: 16159886
Change-Id: I820aff2abbb6bdaee26a788c97083d45c2694016
ommon/list/PhoneNumberListAdapter.java
286a75c7bb0d182ba3e49d135e7d3cc011ba3cdc 09-Jul-2014 Nancy Chen <nancychen@google.com> Remove SelectAccountDialogFragment for PhoneAccount on Dialer app (2/2)

One-time select will no longer be available within the dialer app so the
fragment and menu item have been removed.

Bug: 15473965
Change-Id: Id72b82ff1f70dc5830ce8d5b30b3559c8186dffe
ommon/CallUtil.java
ommon/PhoneAccountManager.java
ommon/dialog/SelectAccountDialogFragment.java
b26245b7e55ab1d7511b231e44acd4624c1723bc 10-Jul-2014 Andrew Lee <anwlee@google.com> Merge "Set video call state on call intent and add getVideoCallIntent()."
ea0f3ffbcc461d8fb1aebe6aaea54612c3a4df41 09-Jul-2014 Andrew Lee <anwlee@google.com> Set video call state on call intent and add getVideoCallIntent().

Bug: 16013180
Change-Id: Ia9ac012baf5bbb64b9fde458879df8ddb8552ba3
ommon/CallUtil.java
70ff7f50e1e80db6433c745d03f46d795519aee8 09-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "QuickContact launcher shortcut is a circle"
80871d423f584504990f5e235382b960773e10e5 08-Jul-2014 Brian Attwell <brianattwell@google.com> QuickContact launcher shortcut is a circle

I made no changes to the Dialer shortcut. More UI direction would
be needed to change this.

Change-Id: Ie33eb22016797791aab2f98a3e2d88ee7dbacb2e
ommon/list/ShortcutIntentBuilder.java
8c0712579331e77a66b23966f4eb9d7e0ab1d1f6 08-Jul-2014 Yorke Lee <yorkelee@google.com> Update CP2 snippeting argument defaults (2/2)

Remove the use of the private field

SearchSnippets.SNIPPET_ARGS_PARAM_KEY since we don't need to set
our own snippeting arguments anymore.

Snippeting behavior should remain unchanged.

Bug: 6948882
Change-Id: Ib3ddcbbb852014fb47df2dc6a592aa6d0aaa64fb
ommon/list/DefaultContactListAdapter.java
75fbb6f8fceb19beb4b85c18d793563bebf3ce61 08-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Disable default animation for launcher shortcut"
c219d047ada3c8f7a43e850baa7c7acb71252870 08-Jul-2014 Paul Soulos <psoulos@google.com> Moves more Im Intent functions to ContactsUtils

Change-Id: I2b1462f91ec385cd203475bc2b550df11a576e09
ommon/ContactsUtils.java
0046eba44749b69d7cfc6693f351a27f7d0cb491 08-Jul-2014 Brian Attwell <brianattwell@google.com> Disable default animation for launcher shortcut

Change-Id: I118ee8e61ca276be2ae5734fd148f3468402a08e
ommon/list/ShortcutIntentBuilder.java
1589e028ba2778c0c6bd860866ae211a7ecc0042 07-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Add in-app CountryDetector (1/4)"
f5366543ba27cc1102479b918607f04f52071be7 14-Jun-2014 Yorke Lee <yorkelee@google.com> Add in-app CountryDetector (1/4)

Replace use of the hidden CountryDetector system service with one that
runs in-app.

Instead of using a LocationManager listener to listen to location updates,
the in-app CountryDetector uses pending intents to passively listen to
any location updates.

This change also introduces an IntentService that is used to simplify the
asynchronous geocoding of the location that is provided to the CountryDetector's
BroadcastReceiver by the LocationManager

Bug: 15593973

Change-Id: I2915aad176963a04c7c577addb659984f0db56f2
ommon/GeoUtil.java
ommon/location/CountryDetector.java
ommon/location/UpdateCountryService.java
35408bef2b7a180dfa5860e87d4d62209d9d1e09 07-Jul-2014 Paul Soulos <psoulos@google.com> Moves getCustomIMIntent to Util class

Change-Id: I7b8f818becb5e0e1d855db742de053d9a23a09a2
ommon/ContactsUtils.java
4ab0cc8065d7080d8ea899814b0efd98908cb1b3 03-Jul-2014 Andrew Lee <anwlee@google.com> Merge "Overload onCallNumberDirectly with isVideoCall option."
9e3f0a16c63da9c72bceba47842d394c00e8bfcf 02-Jul-2014 Ihab Awad <ihab@google.com> Merge "Fix references to two constants"
612b408f55e4a42635925c52f93c4b8f1a0916a7 02-Jul-2014 Ihab Awad <ihab@google.com> Fix references to two constants

The names of two constants missed getting updated in a previous CL,
causing a build breakage.

Change-Id: I2dec3d91f79aa74f24d84324569cda95c7e455c4
ommon/model/AccountTypeManager.java
ommon/util/LocalizedNameResolver.java
ad12d04e15a8a66c43893fb29cf08649bd0b675e 01-Jul-2014 Ihab Awad <ihab@google.com> Rename Telecomm "Subscription" to "Account" (2/7)

Change-Id: I73cd3d1a2e7ae12f2e8d94f0a093c6d91bf7c912
ommon/CallUtil.java
ommon/PhoneAccountManager.java
ommon/SubscriptionManager.java
ommon/dialog/SelectAccountDialogFragment.java
ommon/dialog/SelectSubscriptionDialogFragment.java
ommon/model/AccountTypeManager.java
ommon/util/LocalizedNameResolver.java
a3813d85db56786fff6302400b793add3ac94aa6 02-Jul-2014 Ihab Awad <ihab@google.com> Merge "Rename Telecomm "Subscription" to "Account" (2/7)"
5b334273726b4ffa8927e00a5397253bcb8c86ad 02-Jul-2014 Paul Soulos <psoulos@google.com> Fixes bug in merging DataItems for collapse

Change-Id: I87eb2b4eab5af1b71cc47edf2471824c83b45d4a
ommon/model/dataitem/DataItem.java
50d3dd7f5198d243cf5f1ab5764f741ddf301f18 02-Jul-2014 Andrew Lee <anwlee@google.com> Overload onCallNumberDirectly with isVideoCall option.

This is to provide a common interface for initiating a video call.
Added comments too.

Bug: 16013180
Change-Id: Iecbc54d8c7b09ba1554458c42528b1d2de141f91
ommon/list/OnPhoneNumberPickerActionListener.java
6d854d12ee43940c59bff06558f391a24fa1eb23 02-Jul-2014 Andrew Lee <anwlee@google.com> Add method to check whether telephony has a video call subscription.

This is a stub to unblock VoLTE development while other refactoring
happens. Still need to implement this later.

Bug: 16013178
Change-Id: I64d11b0f88772047fb15521bf765d6008d0e5076
ommon/util/TelephonyManagerUtils.java
31455929011ffd2d463afcd4e1443c887e3f4a70 02-Jul-2014 Jay Shrauner <shrauner@google.com> Fix NPE in isEncodedContactUri

Check for null return from getLastPathSegment

Bug:16034483
Change-Id: Ide3cd794bb7702465814c86b1eb406242eba9149
ommon/util/UriUtils.java
94190218ebf48af6009425da44ea49b2b9c75fbe 02-Jul-2014 Andrew Lee <anwlee@google.com> Cleanup: PhoneNumberUtils.isVoicemailNumber is now public.

This code isn't needed anymore (?). It seems to follow a very similar
codepath, except for this uses extractNetworkPortion instead of
extractNetworkPortionAlt. I think it seems safe enough to cleanup?

Change-Id: I6b626fa7797ead5f5eeb9456589805694055f037
ommon/util/TelephonyManagerUtils.java
253dce317e015816aef3f31295da4bc037245ee1 01-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Clean up SearchSnippetColumns API (3/3)"
b321f58e96516c007297492bc0e9287c9150b39c 01-Jul-2014 Yorke Lee <yorkelee@google.com> Clean up SearchSnippetColumns API (3/3)

Bug: 6948882
Change-Id: I102d21f363ac541c1e54ad06e30913ab6c7fc9b8
ommon/list/ContactListAdapter.java
ommon/list/DefaultContactListAdapter.java
db882bae6570b6fb816dfffe82c7ee3672c8a6e8 30-Jun-2014 Paul Soulos <psoulos@google.com> Properly collapses lists of data items

Change-Id: I3f2b9ff40e981076bd50b264bd17ca4023d3b178
ommon/Collapser.java
f7a205fdcb17161c454bee673cc2fce5b23d0760 30-Jun-2014 Sai Cheemalapati <saicheems@google.com> Fix PinnedHeaderListView behavior with padding.

PinnedHeaderListView now behaves as expected if left/
right padding is specified.

Change-Id: Idc5e3b6b90ab73cfe5f7e0d60ca16067e650c9a7
ommon/list/ContactListItemView.java
67f5b5e2a54c106e09ae62c48cc47e14a27f737c 30-Jun-2014 Yorke Lee <yorkelee@google.com> Merge "Remove private reference to ArrayUtils"
5d64f1294f5570d83f31bce4c4e3c21534b68e9e 30-Jun-2014 Paul Soulos <psoulos@google.com> Changes the Collapse interface and makes DataItem collapsible.

This reverts commit e71d24368f53b9d9f2b99eb0a72ddb19bc790097.

Change-Id: I13d1b5f6f6be38086fd983ee8688316e2a9ce874
ommon/Collapser.java
ommon/model/dataitem/DataItem.java
1dc84b1d12d719feeede3e931fc5fb01da4711b2 28-Jun-2014 Nancy Chen <nancychen@google.com> Merge "Add EXTRA to call intents in order to include subscription information"
e71d24368f53b9d9f2b99eb0a72ddb19bc790097 28-Jun-2014 Paul Soulos <psoulos@google.com> Revert "Changes the Collapse interface and makes DataItem collapsible."

This reverts commit 7d50fb4f3b536f7ddc275759cf855b821203d761.

Change-Id: I4c16351cb66ef3b6246f0785b28d6690d8fa146a
ommon/Collapser.java
ommon/model/dataitem/DataItem.java
7d50fb4f3b536f7ddc275759cf855b821203d761 27-Jun-2014 Paul Soulos <psoulos@google.com> Changes the Collapse interface and makes DataItem collapsible.

Change-Id: I50d935428626e2484163ecd6495840e72e543ea4
ommon/Collapser.java
ommon/model/dataitem/DataItem.java
c9791a8ab0262cd7c039be7922ea5501d810e7e6 26-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Update LetterTileDrawable colors"
3958162dc78159ef3331dfa7109c8e0d1157c1ba 26-Jun-2014 Brian Attwell <brianattwell@google.com> Update LetterTileDrawable colors

Contacts/Dialer still uses a different hashing function to
pick the colors.

Bug: 15889179
Change-Id: I93746fe12b772743fd98923c7fea331a984bb1e5
ommon/lettertiles/LetterTileDrawable.java
931468d068278bb285d41850b48b0f181f7af621 24-Jun-2014 Nancy Chen <nancychen@google.com> Add EXTRA to call intents in order to include subscription information

The getCallIntent method should receive subscription parameter in order
to pack it into the intent to call (which will get passed to the
CallManager).

Bug: 15473965

Change-Id: Ib166c17f910aabc5581029afad527fa3dbedf93d
ommon/CallUtil.java
fe23529616b72e919f376e6f9f0d7ecb5543b54c 26-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Frequently Contacted title style in Favorites tab"
3c4e8501b8fe4a6f508a256fd133004e1f1936a4 25-Jun-2014 Brian Attwell <brianattwell@google.com> Frequently Contacted title style in Favorites tab

Change-Id: I2effc74dfd1b570844296c003de456ec71e2940d
ommon/MoreContactUtils.java
ommon/list/ContactTileAdapter.java
be766f5c8c19ba897e09b1d174c2b4cbf44ccac9 25-Jun-2014 Paul Soulos <psoulos@google.com> Adds retrieving a raw contact id from a data item.

Change-Id: I956a53211719cfaa85ce3cd18ee15616eb571a97
ommon/model/dataitem/DataItem.java
d3a9344d57a05ad626849a98c6a6cfd1a29935c5 25-Jun-2014 Yorke Lee <yorkelee@google.com> Remove unneeded EXTRA_MODE from ShortcutIntentBuilder

Bug: 6948882
Change-Id: I78ebd9cd1e41e06381d7f1d227854be2b7632d20
ommon/list/ShortcutIntentBuilder.java
f399277792958103cd8b93db8187d64d1e3209d2 24-Jun-2014 Paul Soulos <psoulos@google.com> Updates DataItem getTimesUsed and getLastTimeUsed return types to Objects

Change-Id: I8853d0e18e4e704e9854c46bd113e75388533793
ommon/model/dataitem/DataItem.java
43f0ddbc4bf96649ebfcc74abde964bcb2e1041c 24-Jun-2014 Yorke Lee <yorkelee@google.com> Remove private reference to ArrayUtils

Bug: 6948882
Change-Id: Ia4177896c62726975acf55cd5d0c716fdf9ceca4
ommon/dialog/SelectSubscriptionDialogFragment.java
0cc08556bbf7ba8f3d2b98fff407408582dbcddd 24-Jun-2014 Andrew Lee <anwlee@google.com> Fix positioning of first header in contacts list.

Turns out that the max() actually had bad effects when the top of the
header should have actually be negatively positioned.

Change-Id: I60b3e51cba65ae369b7558e858b096430e948d1a
ommon/list/PinnedHeaderListView.java
2c4f0b1683d93b799d6275a4e62db0596ec04532 23-Jun-2014 Paul Soulos <psoulos@google.com> Adds support for DataUsageStatColumns

Change-Id: I9f3a538284106605ba55cc42ac757b157c3ebd42
ommon/model/ContactLoader.java
ommon/model/dataitem/DataItem.java
8c62ca712ec3ae774728afca941561fa1438c44e 21-Jun-2014 Yorke Lee <yorkelee@google.com> Remove getPlusExtensionPackageName()

Bug: 15673170
Change-Id: I2c2aed6a39b9a6d5d1b0ad6a7f2b8ebacfc85140
ommon/model/account/GoogleAccountType.java
48c1f16969be19d27c1e9ba1e9e2062321d475ce 21-Jun-2014 Yorke Lee <yorkelee@google.com> Merge "Remove use of SystemProperties in ContactsCommon"
f835b5456a70131195557a13cb933dd966f057cc 21-Jun-2014 Yorke Lee <yorkelee@google.com> Remove use of SystemProperties in ContactsCommon

Bug: 6948882
Bug: 15673170
Change-Id: I246cb16b11cf2db0cc7fe0d59f8e59fd8f7af76f
ommon/model/account/GoogleAccountType.java
f5fc99dfa667f346b95aa274d6c6f42c1f8a4515 19-Jun-2014 Sai Cheemalapati <saicheems@google.com> Update Emergency Dialer to match Dialer (2/7).

Emergency dialer style updated to match style in Dialer and
InCallUI.
Moved all dialpad resources to PhoneCommon.

Change-Id: I5741364301c50770fd082758ef81fc79fd7c3b73
ommon/animation/AnimUtils.java
ommon/animation/AnimationListenerAdapter.java
ommon/dialpad/DialpadKeyButton.java
ommon/dialpad/DialpadTextView.java
ommon/dialpad/DialpadView.java
ommon/dialpad/DigitsEditText.java
56444f96da37934839c788f2a74cbb5d8193c552 20-Jun-2014 Yorke Lee <yorkelee@google.com> Revert "Update Emergency Dialer to match Dialer (3/5)."

This reverts commit 8e7cebc6aff9b41192dd3348fc52ef62c06236ab.

Change-Id: Ifa42f45868286b80e111229bb0761798af884293
ommon/animation/AnimUtils.java
ommon/animation/AnimationListenerAdapter.java
ommon/dialpad/DialpadKeyButton.java
ommon/dialpad/DialpadTextView.java
ommon/dialpad/DialpadView.java
ommon/dialpad/DigitsEditText.java
8e7cebc6aff9b41192dd3348fc52ef62c06236ab 19-Jun-2014 Sai Cheemalapati <saicheems@google.com> Update Emergency Dialer to match Dialer (3/5).

Emergency dialer style updated to match style in Dialer and
InCallUI.
Moved all dialpad resources to PhoneCommon.

Change-Id: I2c346c4d51249972f549e30577b013423e20481a
ommon/animation/AnimUtils.java
ommon/animation/AnimationListenerAdapter.java
ommon/dialpad/DialpadKeyButton.java
ommon/dialpad/DialpadTextView.java
ommon/dialpad/DialpadView.java
ommon/dialpad/DigitsEditText.java
c6c44b710cc1689879d8be3382536673634e6350 19-Jun-2014 Nancy Chen <nancychen@google.com> Add reference to TelephonyManager, renaming, remove checkbox (2/2)

Incorporating API calls to TelephonyManager.getSubscriptions.
Added new SubscriptionManager class to wrap data about subscriptions for
the purpose of passing between Dialer and its fragments.
* This particular CL deals with the introductoin of the
* SubscriptionManager class and the implementation of the dialog.

Bug: 15473965
Change-Id: I8c3a1f34e41bb8b39b5bfae43b6bad1792ed72e5
ommon/SubscriptionManager.java
ommon/dialog/SelectSIMDialogFragment.java
ommon/dialog/SelectSubscriptionDialogFragment.java
10efec6ca185639c901ebfe1482c13b2c337a76c 13-Jun-2014 Nancy Chen <nancychen@google.com> Merge "Add dialog for SIM card select option on dialer menus"
9898653a29143ca3a595821aaa85ca89bba155bf 12-Jun-2014 Paul Soulos <psoulos@google.com> Move rotateDrawable to ContactsCommon

Change-Id: Ib3ee75d667a65490cd85305cea11a6be1f07404c
ommon/util/BitmapUtil.java
f19c24f4c761ddaf1332dc9b151dba3491d966d3 11-Jun-2014 Andrew Lee <anwlee@google.com> Use setColor instead of setTint to apply styleable color to ripple.

Ripples now have their color defined by color field instead of tint.
We set this programatically based on a style attribute, so this code
had not caught up and was crashing.

Bug: 15549256
Change-Id: I0988a7e148c510565c41e739cc26854e3d9ff34c
(cherry picked from commit c57395002642035adccf980462fd54b18d3b2150)
ommon/dialpad/DialpadView.java
9b46dd9bb12ddedb42c1aa5e5b6523601aa2635e 11-Jun-2014 Nancy Chen <nancychen@google.com> Add dialog for SIM card select option on dialer menus

Create new dialog that will be brought up when "Select SIM card" option
is chosen in the main dialer activity menu or the dialpad fragment menu

Bug: 15473965
Change-Id: Iff4943cebe98af0f7627795116802ba1a536c548
ommon/dialog/SelectSIMDialogFragment.java
395d9d95e25f6fa4b8e750e36ec0a5c1886a65b5 12-Jun-2014 Brian Attwell <brianattwell@google.com> Add ContactTileView#isContactPhotoCircular()

This parameter can be overriden inside dialer.

Bug: 15573471
Change-Id: I2183d3c406cb43223856e2bf653a894b4fa37ef0
ommon/list/ContactTileView.java
d6371d642f898ad455eb12719adc0a1123009481 05-Jun-2014 Brian Attwell <brianattwell@google.com> Divide tile padding between two tiles

Previously, the padding between two favorite tiles was entirely
allocated to the leftmost tile. This causes the selection ripple
animation to look bad.

This CL splits the padding between the left and right tile.

Change-Id: I361414a8676e17e3453b4edf161f170f054dccfc
ommon/list/ContactTileAdapter.java
440a8fb48d25b4281bd4b00ca5070da59129be14 29-May-2014 Brian Attwell <brianattwell@google.com> Styled frequent contacts to look like contact list

Instead of refactoring the ContactTileAdapter to use functionality
from ContactEntryListAdapter, I changed ContactTileAdapter
to use the Attribute#ContactListItemView values when possible.

Also fixed the touch feedback inside contact_tile_starred
(has been broken for a while).

Change-Id: Ib9bafceef518aaa16b77d0b585b06778178b76a4
ommon/list/ContactTileAdapter.java
ommon/list/ContactTileFrequentView.java
ommon/list/ContactTileView.java
6ee0728b5844ae60adb0d27d5f9b54d9720a11a0 29-May-2014 Brian Attwell <brianattwell@google.com> Show starred contacts in circles

Change-Id: I9b3171a507a6b8e0be8bc29e13b4c98f7a0cb737
ommon/list/ContactTileAdapter.java
ommon/list/ContactTileView.java
2a913bd7024f2ccd0e2649c49d1442e9167f9039 29-May-2014 Brian Attwell <brianattwell@google.com> Cleanup: remove dialer code from ContactTileAdapter

ContactTileAdapter used to be used by both Dialer and Contacts.
Now that Dialer implements its own version of ContactTileAdapter,
all Dialer code inside ContactTileAdapter is dead. Therefore, I
am deleting.

Maybe ContactTileAdapter should be moved out of ContactsCommon
in a later CL.

Change-Id: I350bcdf1c1fa38aa50b6fd4e25b4b61284903b0e
ommon/list/ContactTileAdapter.java
ommon/list/ContactTilePhoneStarredView.java
0cbfbda343c15c90134db5e55cf51239fe846b6c 11-Jun-2014 Andrew Lee <anwlee@google.com> am ff52f105: Merge "Apply list item padding left to the contact list pinned header." into lmp-preview-dev

* commit 'ff52f10525441256e75d4667e1873ea975f8b826':
Apply list item padding left to the contact list pinned header.
d2777cefe658ceccafa853c7c3ae9a4fd5d9898c 11-Jun-2014 Andrew Lee <anwlee@google.com> am 84f6ef0c: Merge "Add support for full-bleed selection of contact list items." into lmp-preview-dev

* commit '84f6ef0cfd5ef768b14119952df7b8f2fa0a02ee':
Add support for full-bleed selection of contact list items.
bd47978fc28c68fb3cf664ec522d5da2a5083d6f 11-Jun-2014 Andrew Lee <anwlee@google.com> am 09b5369f: Merge "Update setCanDigitsBeEdited to show overflow menu button if editable." into lmp-preview-dev

* commit '09b5369fb846d725e30c0f5beffa4be7089129d9':
Update setCanDigitsBeEdited to show overflow menu button if editable.
ff52f10525441256e75d4667e1873ea975f8b826 10-Jun-2014 Andrew Lee <anwlee@google.com> Merge "Apply list item padding left to the contact list pinned header." into lmp-preview-dev
84f6ef0cfd5ef768b14119952df7b8f2fa0a02ee 10-Jun-2014 Andrew Lee <anwlee@google.com> Merge "Add support for full-bleed selection of contact list items." into lmp-preview-dev
a6a0acc4947739512b2bcc58262b19e53723704c 10-Jun-2014 Tyler Gunn <tgunn@google.com> Removing flawed "getTodayString" and "getYesterdayString" methods.

These methods made assumptions of how getRelativeTimeSpanString works that
were incorrect.

Bug: 15541650
Change-Id: Ibdba688587b21d5fc547832ebee0997fc290c9fb
ommon/util/DateUtils.java
09b5369fb846d725e30c0f5beffa4be7089129d9 10-Jun-2014 Andrew Lee <anwlee@google.com> Merge "Update setCanDigitsBeEdited to show overflow menu button if editable." into lmp-preview-dev
fc9221ef57bfb9311dda798f67030d40215be859 10-Jun-2014 Andrew Lee <anwlee@google.com> Add support for full-bleed selection of contact list items.

- Adding the concept of "adjustSelectionBoundsEnabled", which allows
us to control whether the headerWithoutBounds is used to override the
selection list items bounds. We want to be able to do this in some
cases (eg. in the contacts list when there is a header on the left)
but in others (eg. a search list), we want the ripple to fill out the
entire bounds of the list item.
- Allow for this to be set by the ContactEntryListFragment, and then
passed through the ContactEntryListAdapter to the ContactListItemView.
- No longer apply scrollbar padding to the list view regardless of
whether the scrollbar is present, because this messes with the ripple
propagation.

Bug: 15517457
Change-Id: I174a462ac1e45b987ac0ee70de318ed037d91762
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactEntryListFragment.java
ommon/list/ContactListAdapter.java
ommon/list/ContactListItemView.java
66ee56383afe4bafa38fa0babdd0dfd07cc7c7b2 09-Jun-2014 Andrew Lee <anwlee@google.com> Apply list item padding left to the contact list pinned header.

Bug: 15517457
Change-Id: I18b9cf5daa36e44ec01ef905550e09b5db2cbdd6
ommon/list/ContactListPinnedHeaderView.java
628bd45930715c781d81ce044b2b79586ef8fcde 07-Jun-2014 Andrew Lee <anwlee@google.com> Update setCanDigitsBeEdited to show overflow menu button if editable.

Bug: 15453278
Change-Id: Iefe44b5131b4ec9de4384f7aa8c31071be2dba05
ommon/dialpad/DialpadView.java
0c9b3552914630ac09d563863cc0b184efcb9864 06-Jun-2014 Andrew Lee <anwlee@google.com> am 1009021a: Fix bad text kerning in dynamic resizing EditText.

* commit '1009021a12bef40b46423c0d1e4ea49a4537b2f6':
Fix bad text kerning in dynamic resizing EditText.
ae0f41464270a6cd9fd505daf8baad23e3234ec2 05-Jun-2014 Sai Cheemalapati <saicheems@google.com> Moving FAB logic to ContactsCommon.

Moved FAB to ContactsCommon.
Cleaned up FAB Controller.
Replaced implementation of FAB in InCallUI with controller.
Prevented animations from happening again in InCallUI on
orientaton change. FAB also repositions correctly on
orientation change in InCallUI.

Bug: 15386162
Change-Id: I4fec5c2edbc4605394bb8aef79cda65bb97f4d01
ommon/widget/FloatingActionButtonController.java
1009021a12bef40b46423c0d1e4ea49a4537b2f6 06-Jun-2014 Andrew Lee <anwlee@google.com> Fix bad text kerning in dynamic resizing EditText.

This used to work with setTextScaleX, I thought, but now it seems
that changing that property only affects the character and not the
spacing, which looks sad.

This fixes by scaling text size instead. This is a slightly indirect
method of doing this, because text size doing this not map directly
to width, but this appears to be effective nonetheless. It scales
more smoothly with better spacing; I can fit up to ~19 digits now.

Bug: 15457260
Change-Id: I93bef566766246a86000c6658d058cc1688adc46
ommon/dialpad/DigitsEditText.java
a2389c127b5fa95924769c17fb16e69efca1b513 05-Jun-2014 Brian Attwell <brianattwell@google.com> Expose color of LetterTileDrawable via accessor

The color is needed by ag/479024

Change-Id: I9f18130cba81316a3b99af9b4eaacd1e482601fd
ommon/lettertiles/LetterTileDrawable.java
0cce7b84235fdce3d3fea63fad4a0b368620fb07 04-Jun-2014 Andrew Lee <anwlee@google.com> am e7e5d98b: Merge "Set first header\'s y position according to the to of the first child." into lmp-preview-dev

* commit 'e7e5d98b55cfb1556584b0ffad3ba458928a2970':
Set first header's y position according to the to of the first child.
fb450d3a3e91ff4f60e64c8768df15827dd117d0 04-Jun-2014 Brian Attwell <brianattwell@google.com> Fixed LetterTileDrawable#setColorFilter

Change-Id: I47c488ef21195e709a82c8319684797b1b68ae13
ommon/lettertiles/LetterTileDrawable.java
26813c713cf99e25b4fb8e08bd8b5868931bcde1 02-Jun-2014 Andrew Lee <anwlee@google.com> Set first header's y position according to the to of the first child.

We're applying padding in Dialer, but this is not being picked up in
the ListView because the pinned header was absolutely positioned and
did not respect padding. In this addition, if the first child of the
list is visible, check it's top and set the first header to have
this value if the top is non-negative.

Bug: 15332945
Change-Id: Ia3b46cb6bd69547faff57ae8f94b48b598adb670
ommon/list/PinnedHeaderListView.java
3264237b4db5af21d8e33f6818ff0f3d9938e416 30-May-2014 Andrew Lee <anwlee@google.com> am 8668f83e: Merge "Match contact list items to redlines for Dialer." into lmp-preview-dev

* commit '8668f83e7c37027870ffe2ea5c72d9977f9fc0e1':
Match contact list items to redlines for Dialer.
6fdf16941587a222f554482fb72531783a924b6e 30-May-2014 Andrew Lee <anwlee@google.com> Match contact list items to redlines for Dialer.

- Add text offset top functionality in the pinned header and
headers. In the pinned header this was done with padding, because
the pinned header is a (assumeedly vertically centered) child and
then the parent doesn't need to be privy to these details.
- Update width and font size. I imagine we want these changes to
be consistent between Dialer and Contacts, which is why this was
done here instead of in Dialer.

Bug: 15332945
Change-Id: If2ebf8117f528316b256a86ed9922f917e9c75ae
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
e20d32a2594edee11ae0c7a9595d6600cd241540 30-May-2014 Yorke Lee <yorkelee@google.com> am 7a3f3a77: Merge "Add callback mechanism to fadeIn and fadeOut in AnimUtils" into lmp-preview-dev

* commit '7a3f3a77dac05ed4135ab817e3ee7057aba1f182':
Add callback mechanism to fadeIn and fadeOut in AnimUtils
7a3f3a77dac05ed4135ab817e3ee7057aba1f182 30-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add callback mechanism to fadeIn and fadeOut in AnimUtils" into lmp-preview-dev
62ad29abe26021ef82243289b8e140f5814645e7 30-May-2014 Andrew Lee <anwlee@google.com> am f6141bd8: Merge "Updating contact list item for Dialer search redlines." into lmp-preview-dev

* commit 'f6141bd806446928038f97bedcbdc3b69b5f1e15':
Updating contact list item for Dialer search redlines.
7961175eb7b8b8d6f990bd8e510f59fe48c5ef4b 30-May-2014 Andrew Lee <anwlee@google.com> Updating contact list item for Dialer search redlines.

- Add text offset field so that the text can be properly aligned
after taking into account inherent padding.
- Set elegant text height to false on name/data TextViews.
- Increase small text size.

Bug: 15328499
Change-Id: Ib86ab2a3f1bde676f0950453653a90d51b26fb0b
ommon/list/ContactListItemView.java
51cf1da793af4d7c83adf9b6a27923a480759fd8 29-May-2014 Yorke Lee <yorkelee@google.com> Add callback mechanism to fadeIn and fadeOut in AnimUtils

Bug: 15120649

Change-Id: I3c2aaf35309c739d02f67b69232ea497295f3ff6
ommon/animation/AnimUtils.java
e17b4fa701f5bdc6c45a050cc89c8b826f7dfe21 29-May-2014 Andrew Lee <anwlee@google.com> am 1e0cb2e4: Add styleable attribute for dialpad ripple touch tints.

* commit '1e0cb2e4c9fa5426034073075265c509a7d83f31':
Add styleable attribute for dialpad ripple touch tints.
88bede3df22a27296afcec83c2f2f430d1bc1372 28-May-2014 Yorke Lee <yorkelee@google.com> Fix broken Contacts tests

Fix broken dependencies on InjectedServices because its name space
was conflicting with the TestCommon package in ContactsCommon

After rebuilding both ContactsCommon and Contacts, you might have to
clear out your data/app folder by doing

adb root; adb remount; adb shell
cd data/app
rm *.*

and then doing adb sync again

Change-Id: Ie67ef6fbba14768cb37f76dfd3c52dd343ed478c
ommon/ContactsUtils.java
ommon/model/AccountTypeManager.java
ommon/model/RawContactDelta.java
ommon/model/ValuesDelta.java
ommon/model/account/BaseAccountType.java
ommon/model/account/FallbackAccountType.java
ommon/test/InjectedServices.java
ommon/test/NeededForTesting.java
ommon/testing/InjectedServices.java
ommon/testing/NeededForTesting.java
bfe9657f089efe8276c75ea19f96bb2b1d48fb8b 29-May-2014 Andrew Lee <anwlee@google.com> am 439f955e: Adjust key button durations.

* commit '439f955e48ad5e6cf4b3aa8f20b6d78c123f50b1':
Adjust key button durations.
3f7afdad54c6e9d031076d4555ae45a1d2f20f0a 29-May-2014 Ed Heyl <edheyl@google.com> Merge "Fix build breakage: Revert "Fix broken Contacts tests""
c9ab53284252c67011dd10aef850a568e5aa614c 29-May-2014 Ed Heyl <edheyl@google.com> Fix build breakage: Revert "Fix broken Contacts tests"

This reverts commit dca4d855aac546f0969113d611355aaf3a698656.

Change-Id: If68bf7fd2191c8403b8e3fe18d22610fc96dab4a
ommon/ContactsUtils.java
ommon/model/AccountTypeManager.java
ommon/model/RawContactDelta.java
ommon/model/ValuesDelta.java
ommon/model/account/BaseAccountType.java
ommon/model/account/FallbackAccountType.java
ommon/test/InjectedServices.java
ommon/test/NeededForTesting.java
ommon/testing/InjectedServices.java
ommon/testing/NeededForTesting.java
1e0cb2e4c9fa5426034073075265c509a7d83f31 28-May-2014 Andrew Lee <anwlee@google.com> Add styleable attribute for dialpad ripple touch tints.

- Add an attribute, which can be set in Dialer/InCall.
- Read this attribute in DialpadView, and if defined set this on the
ripple drawable which is applied to the dialpad key button. We aren't
able to instantiate a new instance of RippleDrawable right now, so
this is the slightly roundabout way of accomplishing this. This
drawable is then set as the background of the dialpad key buttons.

Bug: 15168708
Change-Id: I64d6e0957c0167827c6a6124a4855d46feb87452
ommon/dialpad/DialpadView.java
e6846f0a7d6d6ca8660d6cc7176f66df5449c72b 29-May-2014 Yorke Lee <yorkelee@google.com> Merge "Fix broken Contacts tests"
439f955e48ad5e6cf4b3aa8f20b6d78c123f50b1 29-May-2014 Andrew Lee <anwlee@google.com> Adjust key button durations.

- Cut down on the duration/delay by using multipliers.
- Added EASE_OUT_EASE_IN interpolator to AnimUtils (and removed the
reference formerly used in the DialpadView).

Bug: 15169764
Change-Id: I9567ecb4d18f39803e0887c0ff0e40ca251a8985
ommon/animation/AnimUtils.java
ommon/dialpad/DialpadView.java
ce892f584711dc1445666c48bcefd4949a8486b0 28-May-2014 Sai Cheemalapati <saicheems@google.com> DO NOT MERGE Changed margins of Dialer and Contact list items to match redline spec.
Changed text color of items to match spec (#4d4d4d).
Fixed text size issue in People app.
Bug: 15165159

Change-Id: Ib07111d6d829363f5258fbe6475dd8d1918b8ec7
(cherry picked from commit 3bc19a3bb1ed23b03352fff6de69a89e763a315e)
ommon/list/ContactListItemView.java
046aa233b31ccd28c1d08647c9ea73aa8634aa99 28-May-2014 Yorke Lee <yorkelee@google.com> am e4deb696: Add PathInterpolators to AnimUtils

* commit 'e4deb6966ddba78999992c1dd53bd2db54e17a7e':
Add PathInterpolators to AnimUtils
dca4d855aac546f0969113d611355aaf3a698656 28-May-2014 Yorke Lee <yorkelee@google.com> Fix broken Contacts tests

Fix broken dependencies on InjectedServices because its name space
was conflicting with the TestCommon package in ContactsCommon

After rebuilding both ContactsCommon and Contacts, you might have to
clear out your data/app folder by doing

adb root; adb remount; adb shell
cd data/app
rm *.*

and then doing adb sync again

Change-Id: Iabbe19b4a40d3ec76c410c0352ea48ba9e344a34
ommon/ContactsUtils.java
ommon/model/AccountTypeManager.java
ommon/model/RawContactDelta.java
ommon/model/ValuesDelta.java
ommon/model/account/BaseAccountType.java
ommon/model/account/FallbackAccountType.java
ommon/test/InjectedServices.java
ommon/test/NeededForTesting.java
ommon/testing/InjectedServices.java
ommon/testing/NeededForTesting.java
e4deb6966ddba78999992c1dd53bd2db54e17a7e 28-May-2014 Yorke Lee <yorkelee@google.com> Add PathInterpolators to AnimUtils

Bug: 14820894
Change-Id: I20482a129ef32e253d5a56bb59561037a0b45441
ommon/animation/AnimUtils.java
ce4a2714e4280032cc87a065242ce239a8e93e0c 28-May-2014 Santos Cordon <santoscordon@google.com> Merge "Changed margins of Dialer and Contact list items to match redline spec. Changed text color of items to match spec (#4d4d4d). Fixed text size issue in People app. Bug: 15165159"
3bc19a3bb1ed23b03352fff6de69a89e763a315e 28-May-2014 Sai Cheemalapati <saicheems@google.com> Changed margins of Dialer and Contact list items to match redline spec.
Changed text color of items to match spec (#4d4d4d).
Fixed text size issue in People app.
Bug: 15165159

Change-Id: Ib07111d6d829363f5258fbe6475dd8d1918b8ec7
ommon/list/ContactListItemView.java
f0610f4a169304e9ea5c8260da8be8ccc71532ad 28-May-2014 Jay Shrauner <shrauner@google.com> Merge "Catch OutOfMemoryError on photo load"
98da99b9668b714492d05b191b8fe8997fb5d1f0 28-May-2014 Yorke Lee <yorkelee@google.com> Merge "Remove use of TelephonyManager.getDefault"
c2a910a18d5d29442755c6193cd31b38ba834f34 28-May-2014 Andrew Lee <anwlee@google.com> am 58a793ee: Provide Color.BLACK as default name text color.

* commit '58a793ee1253f8f46dd7f754a51f61a6bbcdce60':
Provide Color.BLACK as default name text color.
58a793ee1253f8f46dd7f754a51f61a6bbcdce60 28-May-2014 Andrew Lee <anwlee@google.com> Provide Color.BLACK as default name text color.

Bug: 15248629
Change-Id: I722fef6cd23b10bdbebbe8d3d04c3923376301cf
ommon/list/ContactListItemView.java
98575ef624c1f8e41c126448763663ecd28ffc0a 28-May-2014 Jay Shrauner <shrauner@google.com> Catch OutOfMemoryError on photo load

Catch OutOfMemoryError in loadUriBasedPhotos.

Bug:15288070
Change-Id: Id793c9bf989e0410656d811b2bdd3d3bef7c082c
ommon/ContactPhotoManager.java
6c547c95cc3c2c8b6319955bef857182e5f8c871 28-May-2014 Andrew Lee <anwlee@google.com> am 5a4ed853: Add default duration constant to AnimUtils class.

* commit '5a4ed853b9fe9abcd47d83e90da0ba33a10c87e2':
Add default duration constant to AnimUtils class.
b79de85a90f09bd520dd6b0d5afaf905c5e52753 28-May-2014 Yorke Lee <yorkelee@google.com> Remove use of TelephonyManager.getDefault

Bug: 6948882
Change-Id: Ie542eb92bb1fbe410af9e14229286ce23a92acb3
ommon/interactions/ImportExportDialogFragment.java
5a4ed853b9fe9abcd47d83e90da0ba33a10c87e2 27-May-2014 Andrew Lee <anwlee@google.com> Add default duration constant to AnimUtils class.

This way, when using this util we can have the option of defaulting
to the system animation default duration.

Bug: 15281475
Change-Id: Ic725a6af67f7332dddbdd94b70b1629d0ae4eea2
ommon/animation/AnimUtils.java
3db4b462b3ae10ed3e0e4866f469e0d1c5b12327 27-May-2014 Yorke Lee <yorkelee@google.com> am 1d026495: Merge "Add fadeIn and fadeOut methods to AnimUtils" into lmp-preview-dev

* commit '1d026495660b85d62a035c77c947a9729f49e92a':
Add fadeIn and fadeOut methods to AnimUtils
1d026495660b85d62a035c77c947a9729f49e92a 27-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add fadeIn and fadeOut methods to AnimUtils" into lmp-preview-dev
90fbbae42d4628b18e78434e7de13254099b229e 27-May-2014 Paul Soulos <psoulos@google.com> Fixes comment typo in ContactListItemView

Change-Id: I961c4fa58c060d05a30acf11e88116dd6daf23c4
ommon/list/ContactListItemView.java
b478fa93247b26b8797128563c089da3db542f55 23-May-2014 Nancy Chen <nancychen@google.com> [DO NOT MERGE] Add attibute for color on contacts list search items

Adding the ability to change the color on the contacts list
search items. The actual colors are defined in Dialer.

Bug: 15118603
Change-Id: I8e332e9c448cbcc4e4f64349d9ff5474bb06eb2f
(cherry picked from commit f88b7b9d1a07414053a4a90d13d453a02bd58ac7)
ommon/list/ContactListItemView.java
f88b7b9d1a07414053a4a90d13d453a02bd58ac7 23-May-2014 Nancy Chen <nancychen@google.com> Add attibute for color on contacts list search items

Adding the ability to change the color on the contacts list
search items. The actual colors are defined in Dialer.

Bug: 15118603
Change-Id: I8e332e9c448cbcc4e4f64349d9ff5474bb06eb2f
ommon/list/ContactListItemView.java
7853949985f916cc7a085fcdf241949a05e99fd8 21-May-2014 Yorke Lee <yorkelee@google.com> Add fadeIn and fadeOut methods to AnimUtils

Change-Id: Ifef7c42c2a662e13419bbd13c7008e2b589570b4
ommon/animation/AnimUtils.java
ommon/animation/AnimationUtils.java
914484fec1f71e1f336fab5e81b310e3edab229e 23-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add FAB utility method and dimension to ContactsCommon" into lmp-preview-dev
fdd85fe5ec18f621610fc45f84c427c5e88d19f8 23-May-2014 Yorke Lee <yorkelee@google.com> Add FAB utility method and dimension to ContactsCommon

Bug: 15164687
Change-Id: I8d288989ba878bea34970c3e58775e8ee89c631a
ommon/util/ViewUtil.java
f31e733ba3fcc54e52ebab8ba36f6f07b2a17182 23-May-2014 Yorke Lee <yorkelee@google.com> Make nearby places photos not look like jellybeans

Bug: 14392467
Change-Id: I22f7a021c8f2af9124f0f04d65107367bbed4c09
ommon/ContactPhotoManager.java
4f0c798e3f594be67e2cd036fe049bcdbad106ed 22-May-2014 Yorke Lee <yorkelee@google.com> Remove withLayer calls in Dialpad animation

Change-Id: I62ef51418e5ce3aaa454b27f6a6619d771de08fd
ommon/dialpad/DialpadView.java
8e8c62453d0186b14125598d805447ee65dd5fdd 21-May-2014 Yorke Lee <yorkelee@google.com> Cancel previously assigned animations if interrupted

Change-Id: Ibf01fe4023380744fc1647d93195d37c157b4c81
ommon/animation/AnimationUtils.java
f99cadf7dad02ad52835068fcc89dbe72638f7dc 20-May-2014 Yorke Lee <yorkelee@google.com> Add new AnimationUtils class in ContactsCommon

Bug: 14900155
Change-Id: I7ecdc5ae1a4287badcf5724eed5cf366496dee5a
ommon/animation/AnimationUtils.java
0e33af66efeac41d4a025f04d883e2cb5563c3b6 16-May-2014 Andrew Lee <anwlee@google.com> Implement custom view for rendering numerals.

This is a custom text view intended only for rendering the numerals
(and star and pound) on the dialpad. TextView has built in
top/bottom padding to help account for ascenders/descenders.

Since vertical space is at a premium on the dialpad, particularly
if the font size is scaled to a larger default, for the dialpad we
use this class to more precisely render characters according to the
precise amount of space they need.

Change-Id: I0eb18b2b2c1f31fa87aae30a71f51b323a9906a3
ommon/dialpad/DialpadTextView.java
5a8976e4ca5e922d5c25f077810afa7643231347 19-May-2014 Yorke Lee <yorkelee@google.com> Merge "Set isCircular flag correctly in CallDetailActivity"
ce692f3f26380496d0ac443cccef770b387de586 19-May-2014 Yorke Lee <yorkelee@google.com> Set isCircular flag correctly in CallDetailActivity

Bug: 14590880
Change-Id: I9230ef292c70d1bc07bb9ba38c61b5e74062b4e4
ommon/ContactPhotoManager.java
793b6900f99eea01160dc82e74fb38cbdf209084 19-May-2014 Yorke Lee <yorkelee@google.com> Fix visibility of overflow menu

Bug: 14974654
Change-Id: I7372f0960ac94f1d09dd52930869d8d3f4aa0ab5
ommon/dialpad/DialpadView.java
efe9aac4eda59d3bf1c32bed208ecc5dab3dcad1 16-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add AnimatorListenerAdapter stub"
e9a6bb18d82cd7a6eb1954633594687daf0a78b3 15-May-2014 Yorke Lee <yorkelee@google.com> Add AnimatorListenerAdapter stub

Change-Id: I05cc3f505eabb04f6527af33694d4da3628bc371
ommon/animation/AnimationListenerAdapter.java
f2e1ee6eb6bd1b24d149b815ec283c8750e02558 15-May-2014 Andrew Lee <anwlee@google.com> Support empty results in contact entry list fragment.

This is prerequisite to showing empty search results when the user
touches the search bar. Before, there was an assumption that you
could not have an empty query string. This CL seeks to add that
functionality, while preserving the existing interface.

Bug: 14900155
Change-Id: I15235db651a6b59a0f110a3cb8b5e8bf0a6726be
ommon/list/ContactEntryListFragment.java
0f2f49b9b98f16708275a48f823887503a8fa90d 15-May-2014 Tyler Gunn <tgunn@google.com> Merge "Adding day group headings in the call log which group call log entries under 4 headings, "Today", "Yesterday", "Last week", "Other"."
c0b94eb2be0da73ee546c6a7bdd99ab60334d1fc 15-May-2014 Tyler Gunn <tgunn@google.com> Adding day group headings in the call log which group call log entries
under 4 headings, "Today", "Yesterday", "Last week", "Other".

Bug: 13962594
Change-Id: Iba10211c1f6e162309063f9944b437c543013b7f
ommon/util/DateUtils.java
9d40cfc6a8383cf3eff571462f83616c86c5c413 13-May-2014 Santos Cordon <santoscordon@google.com> am fb47aac4: Removing explicit destination for CALL intents sent from dialer.

* commit 'fb47aac4d86461d78ddd0c2ea4df2462af2cec42':
Removing explicit destination for CALL intents sent from dialer.
4e5fe7c5aeaa8b5ed39cb958ab2e73d254cc3dad 13-May-2014 Makoto Onuki <omakoto@google.com> Allow contacts.xml to have a different name

This is to allow sync adapters to have a contacts.xml without making it visible
on older platforms.

Bug 14680165
Bug 14662482

Change-Id: I9904d059990d111b8e7baef8f57df7fac86881ea
ommon/model/account/ExternalAccountType.java
1ada7ad61e5a0541aaa4813e8ae090b356216ca6 10-May-2014 Tyler Gunn <tgunn@google.com> Merge "Correcting issue where businesses with business photo URLs show a person avatar until the photo loads."
07bbbaa24a73cb4386a6ff3bd8cfe105f1fe5c45 10-May-2014 Tyler Gunn <tgunn@google.com> Correcting issue where businesses with business photo URLs show a person
avatar until the photo loads.

Added an encoded fragment to business photo URLs so that we can identify
the URLs at load time as being for businesses
Bug: 14252674

Change-Id: If51dbb404432ee3262ffc31b26b3b5e4ed3e62a2
ommon/ContactPhotoManager.java
f6b613b7f9af0f0af8fe8ea545703565e50d5b32 09-May-2014 Andrew Lee <anwlee@google.com> Tweak dialpad opacity animation.

- Do opacity transition individually on keys. This is done with
layer to improve performance.
- Remove opacity transition on the whole dialpad view.
- Remove hide animation entirely.

Bug: 14471388
Change-Id: Ic91e9fa3aeae2933dcc24b1266b9f60df021552d
ommon/dialpad/DialpadView.java
0fd56e8fba856b4c5c85c0223cfbc4ff7b7dba5c 08-May-2014 Andrew Lee <anwlee@google.com> Move more menu to top, and resize digits text.

- Move the overflow menu to the top in the layout.
- Remove the add contacts button from the layout.
- Change DigitsEditText to dynamically resize text to fit.
- Style Digit text area to redlines.
- Add accessor for the overflow button in the DialpadView.

Bug: 14471388
Change-Id: I9ab875a5d9ff0b43233e5d8595eb7206dc7b7dab
ommon/dialpad/DialpadView.java
ommon/dialpad/DigitsEditText.java
18ebf359463a21c0921049b0730ca36310c0147c 07-May-2014 Andrew Lee <anwlee@google.com> Add function for animating dialpad hide.

Bug: 14471388
Change-Id: If854c8487801ee1bb93b31ae05d68daa0fa498bc
ommon/dialpad/DialpadView.java
37f2204666dae02a584448eb2ecd7949e98a3986 07-May-2014 Andrew Lee <anwlee@google.com> Animate dialpad in when shown.

- Provide for duration/translation of key buttons.
- Set opacity fade in on the entire dialpadfragment.
- Don't clip children on the dialpad view.

Bug: 14471388
Change-Id: I0cce5e13e0047b64e76c272a6da8e0e3ee5aca63
ommon/dialpad/DialpadView.java
c3de481fe384b15d1186b1e468f49bed73657d58 06-May-2014 Yorke Lee <yorkelee@google.com> Display non-square bitmaps as circles

Bug: 14392467
Change-Id: I4dd2872bd5678ef6c1a3f3084c33b8450b42fd22
ommon/ContactPhotoManager.java
9b38fc7bc6ffcae9b72f2ee08f7b5e96f0d4c12e 06-May-2014 Yorke Lee <yorkelee@google.com> Fix missing add to contacts button

Change-Id: I76fe3181745b7a766144ef0b606bef1196e8aac3
ommon/dialpad/DialpadView.java
b1f9475f765fc27d572b48bd51c6450f5a2eb173 05-May-2014 Yorke Lee <yorkelee@google.com> Move more Dialpad resources to ContactsCommon

Change-Id: I021f35bdeb6f77345b920a1dba4ce39057c02c93
ommon/dialpad/DialpadKeyButton.java
ommon/dialpad/DialpadView.java
ommon/dialpad/DigitsEditText.java
dce995ea379959f434e9c4361d70b2148c47bc51 02-May-2014 Yorke Lee <yorkelee@google.com> Merge "Update ContactListItemView.setIsSectionHeaderEnabled when binding view"
83ee19795e9e017da83a2c0cf2ecfd0b12d0b7b3 02-May-2014 Yorke Lee <yorkelee@google.com> Update ContactListItemView.setIsSectionHeaderEnabled when binding view

Every time a ContactListItemView is bound with new contact details, it
needs to be reinitialized with the correct settings, in case a previous
instance is being recycled by ListView (e.g. transitioning from All
contacts in People to search in People).

Bug: 14437531
Change-Id: Ia1883ee43c4fe97b10f5c814fd8e34725cfcd89c
ommon/list/ContactListAdapter.java
b197fb095d6147702afe26a08d214cd821faf4ba 02-May-2014 Andrew Lee <anwlee@google.com> Merge "Delete mContactsCount tracking in ContactEntryListAdapter."
9cab8547bdd10ae74fe49a41d6edd65312d4dc17 01-May-2014 Andrew Lee <anwlee@google.com> Delete mContactsCount tracking in ContactEntryListAdapter.

Bug: 13956531
Change-Id: I0345cf85ae428441718c08d0b5a3a5eee2eef883
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactEntryListFragment.java
0b332d732b39f71206a953b4475fbc3108263690 01-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add circular photo support to ContactPhotoManager"
3f9c2f426058413055fa54c08c69ad9461717658 29-Apr-2014 Yorke Lee <yorkelee@google.com> Add circular photo support to ContactPhotoManager

* Use RoundedBitmapDrawable to draw circular bitmaps

* Add isCircular to DefaultImageRequest, and add circular
support to LetterTileDrawable

* Temporarily disable fading in contact photos using
TransitionImageDrawable

Bug: 13747208

Change-Id: I4d087b2dab701014297912ccb6cfac36ecffc673
ommon/ContactPhotoManager.java
ommon/lettertiles/LetterTileDrawable.java
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListAdapter.java
ommon/list/ContactListItemView.java
ommon/list/ContactTileView.java
ommon/list/PhoneNumberListAdapter.java
ommon/list/ShortcutIntentBuilder.java
69d9a537d208189763a0e9554cf80baa903b908d 01-May-2014 Brian Attwell <brianattwell@google.com> Merge "Remove "TODO use syncadapter package instead""
ceb851d9c2d5c73bdd9c60ca47be0902516636aa 29-Apr-2014 Andrew Lee <anwlee@google.com> Polishing text style and measuring for section headers.

- Added section header text color.
- Updated section headert style.
- Fixed selection bounds measurement in ContactListItemView.
- Deleted unused methods and imports in ContactListItemView.

Bug: 13956531
Change-Id: I1dea8691bb77fae90847474414ff6143c8fea5f5
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
f82484911e8dcefb720ca834f79bf17dfba355df 30-Apr-2014 Brian Attwell <brianattwell@google.com> Remove "TODO use syncadapter package instead"

Change-Id: Id8c082c5e9fbaf6be9317b52999776a751abecfa
ommon/model/AccountTypeManager.java
8ec561aa133b753f896ab2044fac2118bcadb305 28-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Moves section header in contacts list to the left side."

Change-Id: I59a2050e67cc0290df5fb28f7e5b8dcb844d2cf8
807d572391dd062c25e00a956a02412ce07cdfd7 28-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Moves section header in contacts list to the left side."
1f1e90d36fe914a7ce51e6f9884199580115d891 26-Apr-2014 Andrew Lee <anwlee@google.com> Moves section header in contacts list to the left side.

- Changed ContactListItemView to render section headers on the
left. This includes support for RTL layouts.
- Added setSectionHeaderEnabled to ContactListItemView so that
left padding can be rendered if there is a section header.
- Add newView() implementation in the ContactEntryListAdapter which
sets setSectionHeaderEnabled on new contacts list view instance.
- Changed the PinnedHeaderView to extend a TextView and gutted a
lot of unneeded logic and styling (including the Counts view).
- Add list_item_background_color to attributes, which is used to
specify the background color for the pinned header, so that when
it moves the underlying section header is not visible.
- Change layout and canvas logic in PinnedHeaderListview, so that
the pinned header is placed to match the new position.
- Add logic to the IndexerListAdapter to match the pinned header's
height to the height of the first list item in view.

Bug: 13956531
Change-Id: I78a0b505833e9ce1c889904ff51c17f6c1653de1
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListAdapter.java
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
ommon/list/IndexerListAdapter.java
ommon/list/PhoneNumberListAdapter.java
ommon/list/PinnedHeaderListView.java
a1523ce25c7f54b1cfd3543bb5dd0839c6119c66 26-Apr-2014 Yorke Lee <yorkelee@google.com> Merge "Use ShapeDrawable for floating action button."
a9950433dc469d24b314204075a6250d2410e01b 25-Apr-2014 Andrew Lee <anwlee@google.com> Change default photo position from right to left.

Bug: 13956531
Change-Id: I7ce2991394f7465eced2889c89b9b54887aaae2b
ommon/list/ContactListItemView.java
977f09765a1c4b6feafda1e8c0d7a1d21720061a 25-Apr-2014 Yorke Lee <yorkelee@google.com> Use ShapeDrawable for floating action button.

Framework support for providing an outline for ShapeDrawables
is currently still broken, so continue manually assigning an outline
to the floating action buttons.

Change-Id: Id068fda523970de4c38ca4d3c0de4b5e8fa35832
ommon/util/ViewUtil.java
9779f462bd7213e8e0d2aeeadcef84d8182f7594 25-Apr-2014 Andrew Lee <anwlee@google.com> Delete functionality to set count in the pinned header views.

Bug: 13956531
Change-Id: Iad1ab60ae486bfa059ad14a856eb6f3aa6637bdc
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListAdapter.java
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
ommon/list/IndexerListAdapter.java
7a8c2c3448395dac5aeb97260c755fa61700b737 24-Apr-2014 Andrew Lee <anwlee@google.com> Move floating action button constants and helpers to ContactsCommon.

- Move constants from Dialer to ContactsCommon.
- Move configure method from DialtactsActivity to Viewutil.

Bug: 13956531
Change-Id: I7013315a8bff25eb8137cd777fa9748b49ad8d4e
ommon/util/ViewUtil.java
83e86e25a0abd225cea17b9f182b3aada69c5a37 23-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Delete contacts list item dividers."
f4fcd3def28e5b1168f5160e476c05ad69339adc 23-Apr-2014 Andrew Lee <anwlee@google.com> Delete contacts list item dividers.

- Delete setDivider method, and associated layout logic.
- Delete unneeded list_item_divider attribute.

Bug: 13956531
Change-Id: I56d471ae637346cb6a1b9a56c6c43de2da603256
ommon/list/ContactListAdapter.java
ommon/list/ContactListItemView.java
ommon/list/PhoneNumberListAdapter.java
15a8f475646c8338be244f65771e560e4875acdd 19-Apr-2014 Jay Shrauner <shrauner@google.com> Handle null cursor

Handle null cursors sent in to setContactCursor

Bug:14165361
Change-Id: If9487b79fff9b21549b8c2267564f12c00922118
ommon/list/ContactTileAdapter.java
b49193d619da7e06b8cba41e443913825f6464f5 22-Mar-2014 Jay Shrauner <shrauner@google.com> Fix NPE when lack index counts

Fix NPE when index counts aren't present in bundle.

Bug:14140956
Change-Id: I491bce17be57b13e72e75a443de77550ed5e487e
ommon/list/ContactEntryListAdapter.java
353068614111bd79ac92e0ae98af433868ba3fb3 16-Apr-2014 Tyler Gunn <tgunn@google.com> Fixing issue where contact photos are shown in the wrong location due to
a concurrent change to the search results list which occurs after the
the request to load the contact photo is registered, but prior to it
being fulfilled.

Bug: 13967012
Change-Id: I6f14e69ad1841df8b7da5632e4a9551b6641e04b
ommon/ContactPhotoManager.java
ommon/list/ContactEntryListAdapter.java
0fe56533e7dbb3be29ea4a816665da8e8833103b 11-Apr-2014 Yorke Lee <yorkelee@google.com> Make sure country code is uppercase

getNetworkCountryIso returns a lowercase country code, causing number parse
exceptions when using PhoneNumberUtils.parse to try and format and geocode
an unknown phone number.

Bug: 13971546
Change-Id: I0112df7a6053b8d3fb2d63597977d20a02b33b4b
ommon/util/TelephonyManagerUtils.java
eabf27292960173c0600e022c64919453741c93f 09-Apr-2014 Yorke Lee <yorkelee@google.com> Temporarily disable phone number formatting in search

Formatting the phone numbers after highlighting sequences had been
assigned was causing possible IndexOutOfBoundsExceptions when
applying the highlights. Temporarily disable formatting until
highlighting logic is better refactored between the various
PhoneNumberListAdapters and ContactListItemView.

Bug: 13906816
Change-Id: I9082a68ee7c2aaa376da203a98a534098bb43e14
ommon/list/ContactListItemView.java
d632975fd69f4e0994d6fe66f099ab714ed709b1 01-Apr-2014 Andrew Lee <anwlee@google.com> Don't replace phone number text if formatted number is null.

Bug: 11734577
Change-Id: I21e11b9aed0dde06f96fcbdcc605cef0f2c4120f
ommon/list/ContactListItemView.java
62dbbf2f10e0e3bcb4d699d859a71a68c896f4a7 31-Mar-2014 Andrew Lee <anwlee@google.com> Format phone number before setting it on ContactListItemView.

Get the country ISO from the context in the PhoneNumberListAdapter.
Then, in ContactListItemView, use PhoneNumberUtils to format the
given phone number before setting it. Also, deprecates/deletes
showPhoneNumber() method.

Bug: 11734577

Change-Id: I890f1b090acb1814814396da654f75b23d9ef8de
ommon/list/ContactListItemView.java
ommon/list/PhoneNumberListAdapter.java
de73a2d75efb6aa04d82c241f66ede355cb394f4 20-Mar-2014 Yorke Lee <yorkelee@google.com> Merge "Remove unused fields in ContactLoader"
e5c5236faa007d2bb52af9e83618efc859a93682 18-Mar-2014 Yorke Lee <yorkelee@google.com> Remove unused fields in ContactLoader

RawContacts.ACCOUNT_TYPE_AND_DATA_SET
Data.RES_PACKAGE

These fields are private in ContactsContract and are not
actually used anywhere else within Contacts or Dialer.

Bug: 6948882

Change-Id: Ie5ca6d9c37fa40f2c5d7d27e15fdbf745f8fc74f
ommon/model/ContactLoader.java
ommon/model/RawContact.java
bb67024ef64a7853f5ec320652d80f0cdf7b660f 18-Mar-2014 Yorke Lee <yorkelee@google.com> Fix ContactsCommon tests

Remove stale testSetMask_LengthMismatch test
Update SpannedTestUtils to check for StyleSpan instead of ForegroundColorSpan
Add READ_CONTACTS permission

Bug: 13516535

Change-Id: Ibe10ca6cde42277697dc185e4cab35238d190023
ommon/format/SpannedTestUtils.java
ommon/list/ContactListItemView.java
9f51c9a0ec70ebc9945cc6d93e1441e455ad7775 17-Mar-2014 Yorke Lee <yorkelee@google.com> Remove unused Groups.ACCOUNT_TYPE_AND_DATA_SET column from query

Bug: 6948882
Change-Id: Ic11a4f826c1fa6aa461b0b1312fd215ae9b4b126
ommon/model/ContactLoader.java
954b2a41e25b0924337593ed108d52081719dbed 17-Mar-2014 Yorke Lee <yorkelee@google.com> Fix usage of PhoneNumberUtils.isUriNumber

PhoneNumberUtils.isUriNumber is private and should not be used.

Bug: 6948882
Change-Id: I0724364080a402b64c78f2d82aed72e9acc04111
ommon/CallUtil.java
3d7e2893cb55dc0f1bc4f7e731322973ee09bc1f 07-Mar-2014 Yorke Lee <yorkelee@google.com> Remove references to private view properties

Switch usages of mTop, mBottom, mRight and mLeft which are hidden
View properties to their non-hidden getter functions instead.

Bug: 6948882
Change-Id: I528ab18bc91eaacc784c1e79a9a417421e14e0cd
ommon/list/ContactListItemView.java
e61e6cc75e9671e763b04488a7745595aebad205 03-Mar-2014 Yorke Lee <yorkelee@google.com> Merge "Tweaks to redlines for letter tile avatars"
906ffc8a0655f0e78a9b7307e7e76717bfdc6d58 01-Mar-2014 Yorke Lee <yorkelee@google.com> Tweaks to redlines for letter tile avatars

* Add overridable method for subclasses to define their own layout
based on whether or not the contact photo is a letter tile avatar

* Update color palette for letter tile avatar backgrounds

Bug: 13101785
Change-Id: I69759d17867b15f9b7e35b1c48e9d85e4470cd56
ommon/list/ContactTileView.java
30dd6e7e1a9279b91e9ee0ad36c34545c5b6c45a 03-Mar-2014 Yorke Lee <yorkelee@google.com> Fix ShortcutIntentBuilder to use LetterTileDrawables

Use LetterTileDrawables, instead of Bitmap drawables when generating
shortcut icons for contacts without a contact photo.

To do this, the methods generatePhoneNumberIcon() and
generateQuickContactIcon have to be modified to draw a drawable on
the canvas instead of a bitmap.

Bug: 13279862
Change-Id: Ife7bbca27a7d1b942c8a8ea908dd9896c5fe063a
ommon/list/ShortcutIntentBuilder.java
6084726fbdda78bdb16e2d4cc1c3b81c84fd5da1 12-Feb-2014 Yorke Lee <yorkelee@google.com> 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
ommon/ContactPhotoManager.java
ommon/lettertiles/LetterTileDrawable.java
ommon/list/ContactEntry.java
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListAdapter.java
ommon/list/ContactTileAdapter.java
ommon/list/ContactTileView.java
ommon/list/DefaultContactListAdapter.java
ommon/list/PhoneNumberListAdapter.java
ommon/model/Contact.java
2105200e6414a7a35596f792af08a8841333a41d 27-Feb-2014 Yorke Lee <yorkelee@google.com> Fix Contact photo flicker in People and Dialer

Bug: 11634428
Change-Id: Ied6f6dcfe8ae905e6223973d32fb64406ca085a9
ommon/ContactPhotoManager.java
d49ca555adb44e3780c226ac3502555eff23a115 15-Feb-2014 Brian Attwell <brianattwell@google.com> Merge "GoogleAccountType extension schema from gmscore"
ea6d10e9917113fda1878370c79141aea7892af1 11-Feb-2014 Brian Attwell <brianattwell@google.com> GoogleAccountType extension schema from gmscore

Bug: 11629361
Change-Id: Ide0719c8c3a1da4ac9f27c11a40b7314d06f7adf
ommon/model/account/GoogleAccountType.java
6366a6122ef58cdd16d8565122e1e6f8a4b06190 13-Feb-2014 Yorke Lee <yorkelee@google.com> Merge "Make ContactTileLoaderFactory.COLUMNS_PHONE_ONLY visible for testing"
be381770c5be5f3cdf66bf4a044562d7f5c1a323 12-Feb-2014 Brian Attwell <brianattwell@google.com> Remove stream attributes from ExternalAccountType

Bug: 12975316
Change-Id: Id323c0e1972f72a52a6b253c8fa3d94f002d6f56
ommon/model/account/AccountType.java
ommon/model/account/ExternalAccountType.java
866e22c1602c90426c603d677ed72c83b41419d8 11-Feb-2014 Yorke Lee <yorkelee@google.com> Make ContactTileLoaderFactory.COLUMNS_PHONE_ONLY visible for testing

Change-Id: Ib052c165915bb90ee9577aea3ac6146ecb020399
ommon/ContactTileLoaderFactory.java
ae961fff72fd6612ccad09c9aa63e5ebabd826ea 04-Feb-2014 Jay Shrauner <shrauner@google.com> Fix search crash

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

Bug:12893832
Change-Id: Ie88aafb84b6d7129da02d6e0a4457ecfad5ca9b5
ommon/list/ProfileAndContactsLoader.java
1f44ffc294764250cb1e02290fabdc439126dc19 30-Jan-2014 Jay Shrauner <shrauner@google.com> 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
ommon/list/ProfileAndContactsLoader.java
4c81610029b83e65afdfc418b812a267d492efd6 29-Jan-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE with null cursor"
2148610dede65c774d95e2d44d7b742f1f08857a 28-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE with null cursor

Fix NPE when get null cursor back from CP2 query.

Bug:12760164
Change-Id: I88ff0a9bd5b58a3e837c943bf999c8636b749b64
ommon/list/ProfileAndContactsLoader.java
23fe38b225346526e3f425570f3648dd7d893a5d 28-Jan-2014 Jay Shrauner <shrauner@google.com> Fix potential NPE with null cursor

Detect and handle null cursors returned from CP2 queries.

Bug:12767708
Change-Id: I7bc4f97848a59140aba5a2c924c79fdc2749b150
ommon/model/ContactLoader.java
ommon/model/RawContactModifier.java
ommon/util/NameConverter.java
29a094106357ea806dc029437af77ec91b94cafb 10-Jan-2014 Jay Shrauner <shrauner@google.com> 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
ommon/model/RawContactModifier.java
fb47aac4d86461d78ddd0c2ea4df2462af2cec42 13-Dec-2013 Santos Cordon <santoscordon@google.com> Removing explicit destination for CALL intents sent from dialer.

Change-Id: I547d469e457397c9f9298b7f60da5324476affba
ommon/CallUtil.java
c8ec55d79f6b211b005397cbdab8c6be73d2390b 05-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Add null check for cursor in DirectoryListLoader"
bbdd06aae3873a062674a17a8fbd01559c132016 05-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Remove dead code using CountryDetector"
7919a27cf1e0b31dd5d2ac7b8815076f6a6ce9c2 05-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Copy private pointInView method to ContactListItemView"
903c973e0ef995ee05acf8fa7501377afa971384 05-Dec-2013 Yorke Lee <yorkelee@google.com> Add null check for cursor in DirectoryListLoader

Bug: 12015142
Change-Id: Iaf7a97efb31e06402d583d399fa1f66f12e086d9
ommon/list/DirectoryListLoader.java
23490a463186b8b8eb8f94a719c7667db5929924 05-Dec-2013 Yorke Lee <yorkelee@google.com> Remove dead code using CountryDetector

Bug: 6948882
Change-Id: Idaa3d59f40cd2aa27b1ddb6c1a9915394d796b99
ommon/GeoUtil.java
bded9d078784569efef4aec2d636ce3f733601d7 03-Dec-2013 Yorke Lee <yorkelee@google.com> Copy private pointInView method to ContactListItemView

Bug: 6948882
Change-Id: Ieef3d4c8933eacea59fe5a5398edc5ba0141fd2c
ommon/list/ContactListItemView.java
9c14089f5a08017413de04b29d2b096b22f74e82 03-Dec-2013 Yorke Lee <yorkelee@google.com> Remove private reference to RawContactsEntity.FOR_EXPORT_ONLY

This boolean parameter is not used at all anywhere in the
ContactsProvider

Bug: 6948882
Change-Id: I932a03362a0fbe64134e319694f02572a24a565d
ommon/vcard/ExportProcessor.java
888e8cbb7d0430e5271c18ad1ed53fd3d71545b5 03-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Replace usages of mContext with getContext"
90a368279bb3e94291e12fc0c7dc8676f194c33d 03-Dec-2013 Yorke Lee <yorkelee@google.com> Replace usages of mContext with getContext

Bug: 6948882
Change-Id: I730f690f36e9541dd6945abe6df9890c96d72676
ommon/list/ContactListItemView.java
7dfb24822010e130fa31612e5a488cbc4e9a798d 02-Dec-2013 Yorke Lee <yorkelee@google.com> Fix more libphonenumber dependencies

Bug: 6948882
Change-Id: I6b48e06f6cd6ed5434ee712926f5a3e8c43f2d68
ommon/MoreContactUtils.java
63c73552e6ace4dda84d05c28a948ec1a511b148 02-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Remove private references to android.R.styleable"
edda390e6beeb958e37017736690034ff0c987c0 02-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Copy quickcontact badge drawable in framework to ContactsCommon"
a7101edcf542aedbbe046e5d899902194077a30f 25-Nov-2013 Yorke Lee <yorkelee@google.com> Fix libphonenumber dependencies

Libphonenumber is already included as a library in Dialer's makefile, so
there is no need to refer to the internal framework methods.

Bug: 6948882
Change-Id: I93d8e8adb92e56d261a8db897a2acef045f05b01
ommon/GeoUtil.java
3aa2cb56ece8461f2df69d9300c9a1abf03f6989 26-Nov-2013 Yorke Lee <yorkelee@google.com> Remove private references to android.R.styleable

Define these framework attributes in our own attr.xml and use as
necessary

Bug: 6948882
Change-Id: I6862451133844251315dafeffd1921720eeb4964
ommon/list/ContactListItemView.java
ommon/model/account/ExternalAccountType.java
ommon/util/LocalizedNameResolver.java
f67d2e9a29257600a1560bc677cdd53cecaa0aec 26-Nov-2013 Yorke Lee <yorkelee@google.com> Copy quickcontact badge drawable in framework to ContactsCommon

Remove private reference to quickcontact badge drawable

Bug: 6948882
Change-Id: I4f9c9cce48e94632802bd056beed7e80f1c25f22
ommon/list/ShortcutIntentBuilder.java
a350efe79dd18df1d6e31694d68094ad99736a11 14-Nov-2013 Chiao Cheng <chiaocheng@google.com> Fix auto-merge conflict.

Merge commit 'd6714041' into manualmerge

Conflicts:
src/com/android/contacts/common/list/ContactListItemView.java

Change-Id: Icade3af50d0c509b17341d6bcb15d5ed0419109f
9552192be3977ce2a7fd21b091dffa38808df73e 14-Nov-2013 Yorke Lee <yorkelee@google.com> am 02de5655: am dfd7e86b: am 538e05b3: Fix a bug with pressed state in ContactListItemView

* commit '02de5655eef21607f2d20a1e643e230ce05669d6':
Fix a bug with pressed state in ContactListItemView
ab8ca3ff940c4e0941d90935229ae03a50be2bac 14-Nov-2013 Chiao Cheng <chiaocheng@google.com> Merge "Make fonts consistent in contact list." into klp-dev
d396439cb61b5470363fda394137f706b792f29a 14-Nov-2013 Chiao Cheng <chiaocheng@google.com> Make fonts consistent in contact list.

Bug: 11674807
Change-Id: I86e08025085e140ecee7cfa796aff006ea3e270b
ommon/list/ContactListItemView.java
538e05b3bbde399f25ccf1aad251fca6d7f4d6b3 13-Nov-2013 Yorke Lee <yorkelee@google.com> Fix a bug with pressed state in ContactListItemView

ContactListItemView was incorrectly maintaining its pressed state
even when touch events were moved outside its bounds.

Bug: 11668831
Change-Id: I36b596d33be4e44f78990a9fa8e5fd05d3388037
ommon/list/ContactListItemView.java
d991dc8bdbce22818d3e1da9245ad277ee9c309d 08-Nov-2013 Sailesh Nepal <sail@google.com> Merge "isLocalEmergencyNumber: Add null check"
5b9524ea90eb94012d274e34bab285fe6d2a6db7 08-Nov-2013 Yorke Lee <yorkelee@google.com> am 4f7a1ca4: am d8467baa: am 589bf503: Fix NPE in CallDetailActivity

* commit '4f7a1ca468f699b8ce7108a10e93ee6b3929d355':
Fix NPE in CallDetailActivity
589bf5030f9ecd687b8796a4571a9b1a3c4c6740 07-Nov-2013 Yorke Lee <yorkelee@google.com> Fix NPE in CallDetailActivity

Bug: 11574365
Change-Id: I8998e9a631ef5bb3d2e4e317e117e672c3b3d798
ommon/util/UriUtils.java
85ffa71501ee9ebb59615c2fc5808ba5a3a9e4b5 07-Nov-2013 Sailesh Nepal <sail@google.com> isLocalEmergencyNumber: Add null check

This is consistent with other functions that also do null checks.

Change-Id: I2fbdd330b37d3b32cb3dadc89e81727ca99b5ad4
ommon/util/PhoneNumberHelper.java
11d6e116ae4b02d0d11af7fc142b5e762e7bd6cd 07-Nov-2013 Jay Shrauner <shrauner@google.com> am d42e1c09: am bd3a4599: am adbb5e91: Don\'t display quick contact card when lacking info

* commit 'd42e1c099f1a6004d646a41255f04341d67dcafb':
Don't display quick contact card when lacking info
adbb5e91a12aff2ef64945424e3cecdc1cdc724d 06-Nov-2013 Jay Shrauner <shrauner@google.com> Don't display quick contact card when lacking info

Don't try to display a quick contact card for directory contacts
when we don't have a lookup key (this happens for Exchange contacts).

Don't allow users to dial empty string phone numbers.

Bug:11539561
Change-Id: I1da554f1ad60a5c2b6b82175074c218dffb5bcca
ommon/list/ContactEntryListAdapter.java
ommon/list/PhoneNumberPickerFragment.java
2437becfe567c87bbde50ad18a51da9991e3c36b 06-Nov-2013 Yorke Lee <yorkelee@google.com> am 963ade15: am 7c38711c: am cf3a8475: Merge "Move ContactLoader related code to ContactsCommon" into klp-dev

* commit '963ade153b9bee0ee7a1763dc3d530c55a7a7447':
Move ContactLoader related code to ContactsCommon
cf3a847584228a1f2b6c59b678352a3e91306735 06-Nov-2013 Yorke Lee <yorkelee@google.com> Merge "Move ContactLoader related code to ContactsCommon" into klp-dev
5ade0bb1757b216ace2f50d2357409bf9876a07a 28-Oct-2013 Yorke Lee <yorkelee@google.com> Move ContactLoader related code to ContactsCommon

This CL simply moves classes from Contacts into ContactsCommon.

This is needed so that Dialer can use ContactLoader related code
for b/11294679. A ContactLoader will also be needed in the future
to allow InCallUI to download hi-res photos while in call.

Bug: 11294679
Change-Id: If56a60aed2003ac7b8fcedac7ce4f1a7503bce94
ommon/ContactsUtils.java
ommon/GroupMetaData.java
ommon/model/Contact.java
ommon/model/ContactLoader.java
ommon/model/RawContact.java
ommon/model/RawContactDelta.java
ommon/model/RawContactDeltaList.java
ommon/model/RawContactModifier.java
ommon/model/dataitem/DataItem.java
ommon/model/dataitem/EmailDataItem.java
ommon/model/dataitem/EventDataItem.java
ommon/model/dataitem/GroupMembershipDataItem.java
ommon/model/dataitem/IdentityDataItem.java
ommon/model/dataitem/ImDataItem.java
ommon/model/dataitem/NicknameDataItem.java
ommon/model/dataitem/NoteDataItem.java
ommon/model/dataitem/OrganizationDataItem.java
ommon/model/dataitem/PhoneDataItem.java
ommon/model/dataitem/PhotoDataItem.java
ommon/model/dataitem/RelationDataItem.java
ommon/model/dataitem/SipAddressDataItem.java
ommon/model/dataitem/StructuredNameDataItem.java
ommon/model/dataitem/StructuredPostalDataItem.java
ommon/model/dataitem/WebsiteDataItem.java
ommon/test/InjectedServices.java
ommon/util/CommonDateUtils.java
ommon/util/ContactLoaderUtils.java
ommon/util/DataStatus.java
ommon/util/DateUtils.java
ommon/util/NameConverter.java
85ed24a10bf27248e142137375be1d6436783f0c 05-Nov-2013 Chiao Cheng <chiaocheng@google.com> am 7b337210: am 54da47db: am 7ded6b24: Merge "Fade out default avatar when fading in contact image." into klp-dev

* commit '7b3372101977d974f2f3f40424a3ed2a574cec90':
Fade out default avatar when fading in contact image.
a8ee5ec28c654866d49c7ea874cdd90b073a42cc 05-Nov-2013 Yorke Lee <yorkelee@google.com> Merge "Remove use of isLayoutRtl and move to utility method"
864c67691b5a0169b5cbb91469d67d93e24ad9eb 04-Nov-2013 Yorke Lee <yorkelee@google.com> Remove use of isLayoutRtl and move to utility method

isLayoutRtl is a hidden API and this CL moves the code into
an internal utility method.

Bug: 6948882

Change-Id: I20604b4233e0ce659e033133539662d9e3b558b3
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
ommon/list/PinnedHeaderListView.java
ommon/util/ViewUtil.java
7ded6b24ec12133fbca0bc9b1d50c00710c2de0e 04-Nov-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fade out default avatar when fading in contact image." into klp-dev
04d13ead6584fa73223c900dedad2279b193313f 01-Nov-2013 Yorke Lee <yorkelee@google.com> Cherrypick search highlighting fix

Manual cherry-pick of https://googleplex-android-review.git.corp.google.com/#/c/383300/
to master

Change-Id: Ib49499c520fb3aecf92d8fd2e8a3ba7b1a56489a
ommon/list/ContactListItemView.java
2ae78772bd8d55a2b90882b532a90a6fe1c23228 31-Oct-2013 Yorke Lee <yorkelee@google.com> Fix searchsnippet highlighting in People

Bug: 11451572
Change-Id: Id1490940488726f8e7573068dc8440acb7370170
ommon/list/ContactListItemView.java
6e4933a223de29b715e76c5d9da02381fba38e84 30-Oct-2013 Yorke Lee <yorkelee@google.com> Use TruncateAt.END instead of private TruncateAt.END_SMALL

Change-Id: I76e5705dd5ce849324fdf9d88c08bedaba76b993
ommon/list/ShortcutIntentBuilder.java
960dce93a7bb1a6cefee76fab9aee7cbd3afe7bd 28-Oct-2013 Chiao Cheng <chiaocheng@google.com> Fade out default avatar when fading in contact image.

Bug: 11415331
Change-Id: I7d58fb0bec01de104decedda4a5258bece330bcd
ommon/ContactPhotoManager.java
4c57ab6a3e4758c948f7f8e714525c5490706c91 25-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Remove private references from ContactsCommon"
8c2e3ee773f06920a4e231e5f2582ff504580a7d 25-Oct-2013 Christine Chen <christinech@google.com> Merge "Adding utility functions."
e9736747aa45ed6091a5479b38e3311823675853 22-Oct-2013 Yorke Lee <yorkelee@google.com> Remove private references from ContactsCommon

Cleanup mContext references
Substitute Guava methods for internal Android dependencies

Change-Id: Ibc36b25839d40fd36b32ded3c337ae32a7447f2b
ommon/list/ContactListItemView.java
ommon/util/ContactDisplayUtils.java
e0e7710f6dc5b5c5fcd9e4a31dbe7c72a78216fb 25-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Switch to using ActivityManager.isLowRamDevice in ContactPhotoManager"
d639bf051b5be165bd581f19ca46828aef94bf3f 24-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Remove use of applicationScale from ContactsCommon"
039b4d46787bd06f2faeaac8c332459c86f3cffe 24-Oct-2013 Yorke Lee <yorkelee@google.com> Remove use of applicationScale from ContactsCommon

ApplicationScale is always 1.0 by default if android:anyDensity
is not specified in AndroidManifest.xml

Change-Id: I22b50ed5d5db9cbdc63d3047232068bf64b8d70c
ommon/MoreContactUtils.java
ommon/list/ContactTilePhoneFrequentView.java
ommon/list/ContactTileView.java
e71d8eb89b4c33717ceb18120299d3c620668604 24-Oct-2013 Christine Chen <christinech@google.com> Adding utility functions.

- Incorporates Ben and Chiao's comments on the previous CL.

Change-Id: I0e3793b2329d451c2b629652ec8de5b704ef9574
ommon/util/PhoneNumberHelper.java
ommon/util/TelephonyManagerUtils.java
9a54849e59d9b95bd99112b1099431d3a1a9302e 24-Oct-2013 Yorke Lee <yorkelee@google.com> Switch to using ActivityManager.isLowRamDevice in ContactPhotoManager

Change-Id: Ib48022684939b41ff6af2a6db1721df5e811b983
ommon/ContactPhotoManager.java
ommon/util/MemoryUtils.java
4315d80b53b324c7f74b994e8c579101ae3577c1 18-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Don't use private resources in ContactsCommon/Dialer" into klp-dev
1af4d919420fab10d77356118dd9f75588186a2a 16-Oct-2013 Yorke Lee <yorkelee@google.com> Don't use private resources in ContactsCommon/Dialer

This removes all references to private resources needed for
Dialer to run on GPE devices

Bug: 11244110
Change-Id: I29f690bafdc1bb11938db8cbee4986da73781e0f
ommon/list/PinnedHeaderListView.java
ommon/model/account/ExternalAccountType.java
2be2e46d936b70e4e05e26e207a979d4b71c2b72 16-Oct-2013 Yorke Lee <yorkelee@google.com> Fix fast scroller regression in People

Bug: 10841097
Change-Id: I8abb74704dc106d82db3c7d1882e254b20e4df31
ommon/list/PinnedHeaderListView.java
0e199e0da07392d08f76274e131fab6af9dbad9e 14-Oct-2013 Yorke Lee <yorkelee@google.com> Section/directory font and size changes for ContactsCommon

Bug: 10861682
Change-Id: Ic34a46de80da691dfba1506b769df6b98a9fa9a3
ommon/MoreContactUtils.java
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
a63fbce25ea8cdcd7f44a4d65e9bdf4aa81560db 08-Oct-2013 Yorke Lee <yorkelee@google.com> Hide PII in encoded json uri in logs

Bug: 11127944
Change-Id: I481be889dd82ce9664753be8bb9c749c8d76f08f
ommon/list/PhoneNumberListAdapter.java
ommon/util/Constants.java
ad0bfab6c149d9442bca5c25ec6f3f25846f4181 03-Oct-2013 Yorke Lee <yorkelee@google.com> Disable animation for pinned headers

Bug: 11048864
Change-Id: Ife1cd02baec9d3b0fc41f6fece8014066b7968e5
ommon/list/PinnedHeaderListAdapter.java
175b8f7cbe72abafe47b256e25d3062e751572ee 02-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Support tapping on directory headers in PinnedHeaderListView" into klp-dev
e93d60921db4a6909ebfaf7214986bc2f3634a23 01-Oct-2013 Yorke Lee <yorkelee@google.com> Support tapping on directory headers in PinnedHeaderListView

Restore broken functionality that allowed you to directly scroll
to a directory partition by clicking on a directory header.

Also reduced animation duration to 100ms, to reduce frequency of
framework bug b/11010610

Bug: 10991974
Change-Id: Ie6cc185335a2d5dedea05321cca0fb87084c3844
ommon/list/PinnedHeaderListView.java
44248ce0d1c4abe9f6b2c484464f131819c0ded5 01-Oct-2013 Yorke Lee <yorkelee@google.com> Move list adapter creation from onCreateView to onCreate

Create the fragment's list adapter in onCreate, instead of onCreateView, which
can be called multiple times in the fragment's lifecycle. This fixes a crash in
Dialer where ContactEntryListFragments can be swapped out repeatedly multiple
times, and creating a new adapter each time causes problems.

Bug: 11014225
Change-Id: I37b4adc9606f7b25c444b2230081540320b34c17
ommon/list/ContactEntryListFragment.java
dc234559370585e45afa79c0e989ac72b385d20c 25-Sep-2013 Yorke Lee <yorkelee@google.com> Changes in ContactsCommon to add number type support in Dialer

Bug: 10888792
Change-Id: I6e203d598edb753c19b33bf1d60fa7e39e5bb404
ommon/ContactTileLoaderFactory.java
ommon/list/ContactEntry.java
ommon/list/ContactTileView.java
6fdda60818693821adfeecba920197ac410c8073 24-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Rename column in ContactTileLoader" into klp-dev
c45d8479e5fdb53922e42b2bf659d88883976a29 24-Sep-2013 Yorke Lee <yorkelee@google.com> Rename column in ContactTileLoader

Bug: 10888792
Change-Id: Ifc35461a6232d4404610b9ba4d82155cbdb8aad4
ommon/ContactTileLoaderFactory.java
7971d44b516c6e8b548acab1c2b598d69bf613ea 23-Sep-2013 Christine Chen <christinech@google.com> Merge "Adds starred field to ContactEntry" into klp-dev
7c1a3efb470d5dcd978f5a1b494687bedc29fa10 21-Sep-2013 Christine Chen <christinech@google.com> Adds starred field to ContactEntry

Bug: 10862067
Change-Id: I4d7988e39e68370f0ce7222cd97c1cf8dedc68ef
ommon/list/ContactEntry.java
ommon/list/ContactTileAdapter.java
0b8fc4af478f997bfc8bcaa785c9529ad8b797c7 21-Sep-2013 Yorke Lee <yorkelee@google.com> Fix fast scroller in PinnedHeaderListView

Bug: 10841097
Change-Id: I93400b623024054a3370e3957c464b2ea3e3818a
ommon/list/PinnedHeaderListView.java
b02b63804b1f6ebe060ff25d9b0c5f62afd5e013 13-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "UI Polish for list section headers in ContactsCommon" into klp-dev
42210256d3d584783ac2fb2742088ce57d9da766 12-Sep-2013 Yorke Lee <yorkelee@google.com> Fix search highlighting

Bug: 10713067
Change-Id: I6fd3e6018619d61f7c69bbcaf2ad7475b20499a6
ommon/format/TextHighlighter.java
ommon/list/ContactListItemView.java
b23d36979bad7dbdb0b2f6318fce7573f01fa6b4 11-Sep-2013 Yorke Lee <yorkelee@google.com> UI Polish for list section headers in ContactsCommon

Bug: 10671447

Change-Id: I72927f64a0bbbef1252e6d065546d6186622c96d
ommon/MoreContactUtils.java
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
675f39d654c1b905a26299baf8594d4c12177b88 11-Sep-2013 Paul Sliwowski <psliwowski@google.com> Merge "Update ContactCommon to handle new ui changes for People App." into klp-dev
88bc23f8e6a823415ef269fc523ce81e828468b6 11-Sep-2013 Yorke Lee <yorkelee@google.com> Fix missing search header in People

Bug: 10688908
Change-Id: Ibfdb0bdd1f706e115f56e56267e2c053308975d9
ommon/list/ContactEntryListAdapter.java
e1d3c390975751ec0eec838685de90b3938e7978 11-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update ContactCommon to handle new ui changes for People App.

Change-Id: Icfa18259718c98b51468f93f2031eb2e0ed3629b
ommon/list/ContactListAdapter.java
9a0f2498251247781c7ff0f20dc09c509eccecc9 10-Sep-2013 Jay Shrauner <shrauner@google.com> Support loading http images

Support loading http images for reverse lookup and local search.

Bug:10677317
Change-Id: I4cb3bc263dfb1ecb63900ee57dd810c0ff79feec
ommon/ContactPhotoManager.java
a6057cf46a154666c6f2888702d4109504b4da29 09-Sep-2013 Alon Albert <aalbert@google.com> Avoid NPE's in Extended Directories

Bug: 10676673
Change-Id: I52346b713fcab5176b6c73a158638708e623ed92
ommon/list/PhoneNumberListAdapter.java
5ac1896102a8622b3394d562c5fbc4245e7ba3e0 09-Sep-2013 Yorke Lee <yorkelee@google.com> Add Json-encoded uri methods to utils

Bug: 10600250
Change-Id: I2aeedc8cc7f6336cb496624f953d88baf1a3322d
ommon/util/UriUtils.java
45c6ba19db49f25dff41236ef05e5ed51fd85303 07-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Fix ContactListItemView selection bounds" into klp-dev
45597d9aeceb9f6835b22589435c24ecd79934f3 07-Sep-2013 Alon Albert <aalbert@google.com> Merge "Support QuickContacts For Extended Directories" into klp-dev
10349f190691f802b8935175dbf38bff74a8a703 06-Sep-2013 Yorke Lee <yorkelee@google.com> Fix ContactListItemView selection bounds

Don't select the first item in a bucket if the header of the bucket
is clicked.

Bug: 10513708
Change-Id: I9b7eaef92088f46680fa59976424e88b3c31a23e
ommon/list/ContactListItemView.java
27330d80bb6575df2964112d34143125c8af9b78 28-Aug-2013 Yorke Lee <yorkelee@google.com> Add shortcut support into contacts common

Add setDisplayName(CharSequence name) and setDrawableResources methods
to ContactListItemView so that we can add custom shortcuts into
PhoneNumberListAdapter

Bug: 10339630
Change-Id: I3e8a294dd9d47f034e6244929bdb61d834777974
ommon/list/ContactListItemView.java
ommon/list/PhoneNumberPickerFragment.java
bbdfd3bd233f0352899f63fa9b4841e88c00f204 05-Sep-2013 Paul Sliwowski <psliwowski@google.com> Merge "Update people app colors in ContactsCommon." into klp-dev
b5632a6ebe19ba1627f0e850b00e0e9de0fcd3ab 05-Sep-2013 Alon Albert <aalbert@google.com> Support QuickContacts For Extended Directories

Change-Id: I00128b882be3124e31cd2de6a974ec2d507344b1
ommon/list/PhoneNumberListAdapter.java
ommon/util/Constants.java
ad21d11eed06b39ede8f171da0faf119b7b6c4b2 05-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update people app colors in ContactsCommon.

Change-Id: I48916187b804f98c906a2cc7b0de0b321b8dc851
ommon/list/ContactListItemView.java
6af66a800ccf7599ea37374c8fc99a1489ef8fcb 03-Sep-2013 Alon Albert <aalbert@google.com> Show Address Instead of Number in Nearby Places

Change-Id: Ib1a96240e70628ff76e849ea4f6ca359791deebd
ommon/GeoUtil.java
ommon/list/DirectoryPartition.java
ommon/list/PhoneNumberListAdapter.java
1a2b2a318d9d0dacf183d49fd2363cb79a9f2335 29-Aug-2013 Jay Shrauner <shrauner@google.com> Add cache support

Add hooks for contact cache.

Bug: 10609551
Change-Id: I9a202772313eeab9b18031e20f78aba1e7d18a24
ommon/list/PhoneNumberListAdapter.java
ommon/list/PhoneNumberPickerFragment.java
7771c5f33492e6b9af55a49d921cbd909bbc2c90 30-Aug-2013 Yorke Lee <yorkelee@google.com> Allow subclasses of ContactTileView to customize name display

Bug: 10294357
Change-Id: I7706561b585d0e5eb8dd85b083534ae0724aab06
ommon/list/ContactTileView.java
768324c2d917f9ce79747007c57efcefbc06b472 28-Aug-2013 Alon Albert <aalbert@google.com> Make Nearby Places Display as "Nearby Places"

Rather than "Directory Nearby Place"

Change-Id: I91cbbed3c6005b91885a5bb2f3067c9c19b97e79
ommon/list/ContactEntryListAdapter.java
ommon/list/DirectoryPartition.java
ommon/list/PhoneNumberListAdapter.java
f210d229b042bef22863712b97a6cb20eaa2eadf 28-Aug-2013 Jay Shrauner <shrauner@google.com> Fix result count reporting for phone queries

Result count ordering was reporting number of phones as number of
contacts. Fix so for phone list queries we tally number of actual
contacts displayed.

Bug:10457343
Change-Id: Iabd3bd600d47e013a69f6e6ed2bf378a9b344e9f
ommon/list/ContactEntryListAdapter.java
ommon/list/PhoneNumberListAdapter.java
ad582fa758c6a276c26c5cc52079613a653c81bf 21-Aug-2013 Ben Gilad <gilad@google.com> Add Support For Extended Directories

Change-Id: I5097f9d45ce39aad93ede3a01f43e1c58e36c9f1
ommon/extensions/ExtendedPhoneDirectoriesManager.java
ommon/extensions/ExtensionsFactory.java
ommon/list/ContactEntryListAdapter.java
ommon/list/DefaultContactListAdapter.java
ommon/list/DirectoryPartition.java
ommon/list/PhoneNumberListAdapter.java
e31b07390729cced594404410efb4448f94a95cb 15-Aug-2013 Jay Shrauner <shrauner@google.com> Fix createCursorLoader NPE

Pass through context saved from onAttach() to the Loader init rather
than calling getActivity()

Bug:10323136
Change-Id: Ie7a23600361dd8681ee1b020b175fb36836be71a
ommon/list/ContactEntryListFragment.java
230cc076d141097a6d06b520bd955a69b472570c 14-Aug-2013 Jay Shrauner <shrauner@google.com> Make getCurrentCountryIso null safe

Catch case if CountryDetector isn't available or detectCountry()
returns null; in this case use Locale.getDefault().getCountry()

Bug:9438025
Change-Id: I28fc0278342f6801e64ca07f7255cbd612d26ec1
ommon/GeoUtil.java
3852e4f51fb6e28036f66f2b142af56ea71133c7 06-Aug-2013 Jay Shrauner <shrauner@google.com> Merge "Add GAL search support to Dialer"
7a160466a38bb631da02b7e93ab907eb2b3a2558 26-Jul-2013 Jay Shrauner <shrauner@google.com> Add GAL search support to Dialer

Enable GAL search in Dialer.

Bug:
Change-Id: If03dcbb570aebd5ba31c5d419e76b33b91be6eee
ommon/list/ContactListItemView.java
ommon/list/OnPhoneNumberPickerActionListener.java
ommon/list/PhoneNumberListAdapter.java
ommon/list/PhoneNumberPickerFragment.java
ad39a175a3acb3109fe03a7028a18650842454ae 05-Aug-2013 Yorke Lee <yorkelee@google.com> Remove comparable from ContactEntry

Change-Id: Ie4c0b43170f2f39e908ae8cf952663403936f974
ommon/list/ContactEntry.java
f31b6a268bb0b1f68401954fa9e54b94fb0a7f8b 02-Aug-2013 Yorke Lee <yorkelee@google.com> Add a blank entry constant to ContactEntry

Change-Id: Ia524020caa019184b272320f3e6e946d3fa37e25
ommon/list/ContactEntry.java
61da48a221682e741aa947c778b02d0df428e59e 01-Aug-2013 Yorke Lee <yorkelee@google.com> Changes to ContactCommon to support drag and drop

Change-Id: I6bbed9527a3f3cf0583a3f9ddf2bb6438f5a5eb1
ommon/ContactTileLoaderFactory.java
ommon/list/ContactEntry.java
0706c0d2e41e3c92cf9d04f0c4f0682a4bb0bf1f 17-Jul-2013 Christine Chen <christinech@google.com> Change ContactTileView listener behavior.

Change-Id: Ie2a3e22bd40c3dbe169dbd0e51faa234a704e6d8
ommon/list/ContactTileView.java
9078a0ae8404a1dd7dec44def5a037e4e50e9d77 13-Jul-2013 Yorke Lee <yorkelee@google.com> Moving of Dialer-specific classes to the dialer.

Moved some newly created classes in ContactsCommon to the Dialer
package since any further changes UI-wise will be dialer specific.

Extracted ContactEntry to its own class so that ContactTileView no
longer has a dependency on ContactTileAdapter.

Change-Id: I7d5b97e88073e7abf8f0c1223c992c5b3b5a8a07
ommon/list/ContactEntry.java
ommon/list/ContactTileAdapter.java
ommon/list/ContactTilePhoneFrequentView.java
ommon/list/ContactTileView.java
ommon/list/NewContactTileAdapter.java
ommon/list/NewContactTilePhoneFrequentView.java
ommon/list/NewContactTilePhoneStarredView.java
41eece0b05cdda7d7fdc19a263d9162f3139ae43 12-Jul-2013 Christine Chen <christinech@google.com> Merge "Changes ContactListItemView highlighting scheme."
f99a990be713ed35afe64ba8133c5428816390c6 12-Jul-2013 Christine Chen <christinech@google.com> Changes ContactListItemView highlighting scheme.

- Re-match smart dial query every time in BindView.

Change-Id: I42a54948481fead693db5a2db188bcc31202d6ee
ommon/format/SpannedTestUtils.java
ommon/format/TextHighlighter.java
ommon/list/ContactListItemView.java
39a11edba72ef54c4b72d3dbd7310b9a55755463 08-Jul-2013 Yorke Lee <yorkelee@google.com> Changes to contacts common for new dialer ui

Does not modify existing dialer behavior in any way, only
adds new classes required for new dialer UI.

New layouts/integers for new dialer lists.

Changes to support smart dial in search.
- Extends functionalities in text highligher.
- Changes pemissions in parent classes.

Change-Id: I5909b6948978a99c128d1bf955a35ecd241f1f72
ommon/list/ContactTileView.java
ommon/list/NewContactTileAdapter.java
ommon/list/NewContactTilePhoneFrequentView.java
ommon/list/NewContactTilePhoneStarredView.java
ommon/list/PinnedHeaderListAdapter.java
a81953a2b1818066ef5e44817f374ac288bab343 09-Jul-2013 Christine Chen <christinech@google.com> Changes to support smart dial in search.

- Extends functionalities in text highligher.
- Changes pemissions in parent classes.

Change-Id: Ib5717fe00760b5a88c747e1ff8fda598d987fa98
ommon/format/PrefixHighlighter.java
ommon/format/SpannedTestUtils.java
ommon/format/TextHighlighter.java
ommon/list/ContactEntryListFragment.java
ommon/list/ContactListItemView.java
ommon/list/PhoneNumberListAdapter.java
0543dbe1113dca036da00124513eeb8f922c94cb 30-May-2013 Jay Shrauner <shrauner@google.com> Use ContentResolver instead of IContentService

Switch to using public ContentResolver calls (needed for unbundling).

Bug: 6948882
Change-Id: I4affb6aaa14b670861c9b739b6b4bb457699985f
ommon/model/AccountTypeManager.java
e1348a4ac616ddeef69840f6eb9dbee117af8460 16-May-2013 Jay Shrauner <shrauner@google.com> Cap number of items we attempt to collapse

Cap number of items we attempt to collapse at 20. Algorithm used is n^2
and introduces noticeable delays with eg 70 phone numbers for a single contact.

Bug:8888517
Change-Id: Ifaa470a3dd91b783db23d5c694af4529cfbf1293
ommon/Collapser.java
195eb0250eaffee9c928954313b128f057847ec0 10-May-2013 Santos Cordon <santoscordon@google.com> Set explicit destination for CALL_PRIVILEGED.

bug: 8871505
Change-Id: Ib92cfe3b3bd6b56bd69ea7744f74e570a1794b5e
ommon/CallUtil.java
939837d76f33abdd3b44ce986329293d808ed41c 17-Apr-2013 Chiao Cheng <chiaocheng@google.com> Fixing regression in phone number collapse on detail page.

The case of collapsing phone numbers with different formats was broken due to
another bug fix. e.g...

(555) 555-5555
555-555-5555

would not collapse when they should.

The second problem was that an inconsistency was inadvertently introduced when
deciding what numbers are equal.

rule 1)
+14155551212 == 4155551212

rule 2)
14155551212 != 4155551212

implicitly a third rule was in effect....

rule 3)
+14155551212 == 14155551212

By transitive equality, then all version of the number are equal which broke
rule 2. This could be seen in the UI when all 3 version of the number exists
and they are all collapsed into 1.

Bug: 8621998
Bug: 7519057
Change-Id: Iafb36fbdc72f9a76d9313811894b57aafebb4f35
ommon/MoreContactUtils.java
bc8a5b4d1ca27c5b277e232e057a019003333f38 09-Apr-2013 Yorke Lee <yorkelee@google.com> Set layoutDirection for PinnedHeaderView on creation

Fixes crash when typing a character into the contact picker
caused by trying to access a null view.

Bug 8575063

Change-Id: Ie379b81cc1662143e395d89cad031a9c0749ebbb
ommon/list/IndexerListAdapter.java
ommon/list/PinnedHeaderListAdapter.java
ommon/list/PinnedHeaderListView.java
9f0c1621718b382531cbebfe38907e6d3db6ceae 04-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix for bug #8146846 Phone App should be mirrored for RTL languages

- add start/end aside left/right properties
- make default PhotoPosition depends on Locale layout direction
- add mirrored version of Drawables
- use android:textAlignment="viewStart" when needed on TextView

Change-Id: I0bf2fb83d94a3748d26d1825387b9b16830830a5
ommon/list/ContactEntryListFragment.java
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
ommon/list/ContactTileAdapter.java
ommon/list/PhoneNumberPickerFragment.java
ommon/list/PinnedHeaderListView.java
09f15e70e86d92ae0f4c15a726b777f170845a3c 06-Feb-2013 Yorke Lee <yorkelee@google.com> Fix photo alignment in RTL locales in ContactEntryListAdapter

Bug: 5590280
Change-Id: I17caf1d17b9b5ccac177e66d8b4e5605e0ac6be1
ommon/list/ContactListItemView.java
97020718356ec59704e618d38510c4d78638d4e1 09-Jan-2013 Jay Shrauner <shrauner@google.com> Merge "Dedup NANPA numbers"
4aa2f3e0fec6e8d58a1c32a232925770faeaa550 09-Jan-2013 Jay Shrauner <shrauner@google.com> Fix string overrun exception

Fix SearchUtil::contains() so doesn't overrun string buffer when trying
to match query that partially matches end of the buffer.

Bug:7971792
Change-Id: Ifff09049b0a82af17413a7e56b9e5de938ff009d
ommon/util/SearchUtil.java
dccb6cfd65b8d120a024bde6b0e31acaf58e743a 08-Jan-2013 Yorke Lee <yorkelee@google.com> Fix NPE in VCardService

Bug: 7967011
Change-Id: Idf53807959a40f164ef0c163479a75988de71e44
ommon/vcard/VCardService.java
b2c826a4c935a42f458ab187b257cd0b6a47bfb4 08-Jan-2013 Jay Shrauner <shrauner@google.com> Dedup NANPA numbers

Reverts changes from Bug 5779336 that stopped using libphonenumber for
detecting dups, although keep matching as strict except when one number
begins with +1, in which case collapse. Change Collapser to allow
preferred collapse direction.

Bug:7519057
Change-Id: Ib8ba6da611638d05781ed4363d71bc2628d907b7
ommon/Collapser.java
ommon/MoreContactUtils.java
cae605bed4d43e1925fc8c1803def0ef1d0924a5 28-Dec-2012 Chiao Cheng <chiaocheng@google.com> Find proper snippet in multi-line and large result.

Previous CL removed the use ContactsContract.snippetize(). This method
found the proper line in a multi-line results and then snippetized the
line if it was too long.

This CL adds that functionality back without using snippetize(). This
new code is faster because it only does text intensive processing when
the text is long. The previous snippetize method did processing for all
strings. In addition, the old method iterated over the snippet multiple
times (i.e. first with contains, then subsequently tokenizes, etc). This
change re-uses the initial search results and remembers the search
information so multiple iterations are not necessary. In addition,
tokenizing has been optimized based on the match. We only need to
chop off excess content rather than tokenizing the whole string.

This CL also makes snippet more friend to landscape mode. Previously,
the number of snippet tokens shown was hard-coded to 2 on each side.
Furthermore, this caused longer tokens to exceed screen real estate. Now
the number of tokens shown are determined more accurately by character
count versus real estate. In landscape mode, this allows us to show
much more of the search result.

Finally, fixed a highlight problem when the search query contained
punctuation. For example, a search for {.ben.} would not match {ben}.
This Cl resolves that issue by cleaning the search query.

Bug: 5929143
Change-Id: I5c368e6de8b34ca912f86926f862a02f95199fa7
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListItemView.java
ommon/util/SearchUtil.java
bd80fd64b9ff94c9ffbdb843beb4b363bb209463 22-Dec-2012 Chiao Cheng <chiaocheng@google.com> Fixing missing punctuation for punctuation search case.

Previous CL I9cbdf10d21c79f53bc621bacb7eeeb95a6a2435f fixed missing
punctuation at the start when searching without punctuation. (e.g.
{hello})

This CL fixes the case where leading punctuation is missing if you searched
with a leading punctuation. (e.g. {'hello}). The content provider
uses a different code path when it detects multi-words and snippeting
is actually done in sqlite using the FTS snippet method. The check for
multi-word was treating {'hello} as two words.

This means that multi-word searches will still have this issue as it still
uses the sqlite snippet method. Leaving this to a separate CL since it's
a riskier change.

Bug: 5929143
Change-Id: I1883621bb64452726cd92035d30001c29b478574
ommon/format/FormatUtils.java
ommon/format/PrefixHighlighter.java
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListItemView.java
05897c8e016942e10f0ef6f0da02d339480d4748 20-Dec-2012 Chiao Cheng <chiaocheng@google.com> Include starting and ending punctuation.

The snippetize method was leaving out the delimiters at the start and end of
the snippetized string. Upon further investigation, the snippetize method is
not needed because showSnippet() always puts the string back into it's original
form (i.e. it was undoing the work of snippetize) at the end of the method.

The solution is to pass the original form into setSnippet() when
deferred snippeting is requested. This eliminates a lot of unnecessary
processing.

Bug: 5929143
Change-Id: I9cbdf10d21c79f53bc621bacb7eeeb95a6a2435f
ommon/list/ContactListItemView.java
730e6f1a2439d11f6391bd3332533f551a560783 12-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Making sort order for strequent and starred consistent."
ffc4741fb2eeef40c5a5c4674663565e6420035c 12-Dec-2012 Chiao Cheng <chiaocheng@google.com> Log clean-up.

Bug: 5571947
Change-Id: I958311b44739fe8fedeb5fea0dd8e507837d8e31
ommon/model/AccountTypeManager.java
dacf0cd3a91518d052598a84fbea8b844fce0e39 12-Dec-2012 Chiao Cheng <chiaocheng@google.com> Making sort order for strequent and starred consistent.

Bug: 5783101
Change-Id: Id70313d6bfc0425445c954d90bf9dac9c2b9a764
ommon/ContactTileLoaderFactory.java
d07f81fd7ca4a86981a1d3237a8c89a6294b2d9f 11-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Add empty list message."
b6013cb63fb66c6b60c02d5c0447e2d29bb23d7c 11-Dec-2012 Chiao Cheng <chiaocheng@google.com> Add empty list message.

Bug: 7403225
Change-Id: Ib57e5bbb17ac7f3a7a08c2c0b015d2bd7a61a459
ommon/list/ContactEntryListAdapter.java
baefde748cd02bde8934d66c34b3e1067745771d 07-Dec-2012 Chiao Cheng <chiaocheng@google.com> Fixing bad import.

Bug: 6993891
Change-Id: I350d70a1edacfa3eaa6226e93a71981edacc0f40
ommon/widget/ProportionalLayout.java
cdab4eb17e2f880f59b1e64bbed4db90dce137e5 07-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Moving ProportionalLayout to ContactsCommon."
c79b28166660c5df4515fd580691397c09972dbc 07-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Refactor editor layout file dependencies out of common."
10392a75b43c34be8580a9fa101062201ce441d6 06-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving ProportionalLayout to ContactsCommon.

Bug: 6993891
Change-Id: I6a9d7905daa3d412248c83878db747e08982cc42
ommon/widget/ProportionalLayout.java
a167ed2b5228f0d02165173de47f87416e655c55 06-Dec-2012 Yorke Lee <yorkelee@google.com> Remove dead code

Bug: 6148388
Change-Id: I5b08d6534a794361e67ba2ad72148fed10a5b148
ommon/model/account/ExternalAccountType.java
ommon/model/dataitem/DataKind.java
393285b99f0746dab62899849262526a35d007dc 06-Dec-2012 Chiao Cheng <chiaocheng@google.com> Refactor editor layout file dependencies out of common.

Editor view layout files are only needed by the Contacts app. But they were
being referenced from within AccountTypeManager and several other classes.
These references are un-necessary and would have caused too many editor
dependencies, such as the EditorView classes, to go into common.

With the refactor, many layout files can move back into Contacts.

Bug: 6993891
Change-Id: Ifb3ce45120ba2181cb02cac9820a30c185108739
ommon/model/account/BaseAccountType.java
ommon/model/account/ExchangeAccountType.java
ommon/model/account/GoogleAccountType.java
ommon/model/dataitem/DataKind.java
d0c8da65af3b67ba551a220ca40be31f644dfed6 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Major resource move and clean-up.

Moving resources from Contacts to ContactsCommon and Dialer as necessary to
remove dialer dependencies on contacts app.

Bug: 6993891
Change-Id: I5ff17028cb675694809cdc08e5ee80c444ee8666
ommon/list/ContactTileFrequentView.java
ommon/list/ContactTilePhoneFrequentView.java
ommon/list/ContactTilePhoneStarredView.java
ommon/list/ContactTileStarredView.java
ommon/util/ViewUtil.java
ommon/widget/LayoutSuppressingImageView.java
ommon/widget/LayoutSuppressingQuickContactBadge.java
edc1cd98e3c3e991dcfb5281a008f7d2cfea1495 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving depedencies of DialtactsActivity into ContactsCommon.

This completes the clean-up of class depedencies for DialtactsActivity in
the Dialer.

Bug: 6993891
Change-Id: Ic22e5d6a643a569bfd76e5b913e6c45795ae80f2
ommon/list/ContactEntryListFragment.java
ommon/list/OnPhoneNumberPickerActionListener.java
ommon/list/PhoneNumberPickerFragment.java
333d375e891fa1d5285f0d8d514b85a30e707caf 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving ImportExportDialogFragment to ContactCommon.

This completes the dependency clean-up of the PhoneFavoriteFragment in the
dialer.

Bug: 6993891
Change-Id: I76200a7b2f6bc3c8d5e229b70c3cdf9998d32ec2
ommon/interactions/ImportExportDialogFragment.java
e420de7fca9005d7084be275f268962a14094a22 04-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving SelectAccountDialogFragment to ContactsCommon.

In preparation to move ImportExportDialogFragment to common.

Also moved a few more string resources left out from previous move.

Bug: 6993891
Change-Id: I978e490d256cf783db91b52bca46f4a1c678e415
ommon/editor/SelectAccountDialogFragment.java
ommon/util/AccountsListAdapter.java
7903d2473e1120e32fa5380a7d7532d0a21e2180 04-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving vcard UI to ContactsCommon.

Moving all class in vcard directory in preparation to move
ImportExportDialogFragment.

Bug: 6993891
Change-Id: I4391c6e63d20ebe91e240001885a6ce18388e51f
ommon/util/AccountSelectionUtil.java
ommon/vcard/CancelActivity.java
ommon/vcard/CancelRequest.java
ommon/vcard/ExportProcessor.java
ommon/vcard/ExportRequest.java
ommon/vcard/ExportVCardActivity.java
ommon/vcard/ImportProcessor.java
ommon/vcard/ImportRequest.java
ommon/vcard/ImportVCardActivity.java
ommon/vcard/NfcImportVCardActivity.java
ommon/vcard/NotificationImportExportListener.java
ommon/vcard/ProcessorBase.java
ommon/vcard/SelectAccountActivity.java
ommon/vcard/VCardCommonArguments.java
ommon/vcard/VCardImportExportListener.java
ommon/vcard/VCardService.java
ba2c125b07086a88a3517fcf381a3a400c42afd3 29-Nov-2012 Chiao Cheng <chiaocheng@google.com> Further clean-up of PhoneFavoriteFragment in Dialer app.

Moving dependencies of Dialer PhoneFavoriteFragment. Mostly filtering
dependencies.

Bug: 6993891
Change-Id: Ic2b29b80ae2367f54e619b30bdb71b098c8a0deb
ommon/list/AccountFilterActivity.java
ommon/list/ContactListFilterView.java
ommon/list/CustomContactListFilterActivity.java
ommon/list/ShortcutIntentBuilder.java
ommon/util/AccountFilterUtil.java
ommon/util/EmptyService.java
ommon/util/LocalizedNameResolver.java
ommon/util/WeakAsyncTask.java
8e3d59a4b2f9140f0b612055cf149cf73e4dde6d 30-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move ValuesDelta to ContactsCommon.

Bug: 6993891
Change-Id: Iaf94a00abfb64c9b0eb547dd446f743f6cd855ce
ommon/model/ValuesDelta.java
2b729670f9b5b392929102e109dcd7a2ae732508 27-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move AccountTypeManager to ContactsCommon.

Moving AccountTypeManager to ContactsCommon so it can be shared by Contacts
and Dialer.

Bug: 6993891
Change-Id: If8bc8137b0b5800f21ee46aa4027b79e0048d32e
ommon/list/ContactListFilterController.java
ommon/model/AccountTypeManager.java
d305a6e633b7315cdd1ce4711c0d3a2b18b3c05f 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Final move of AccountTypeManager dependencies.

After this change, AccountTypeManager can be moved into ContactsCommon.

Bug: 6993891
Change-Id: I73974557274379fd307ed2b5e787f448fb1fc3c5
ommon/MoreContactUtils.java
ommon/util/Constants.java
5e9f2a7a744b8ee651b258f60131d6d266b4ce06 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Use Objects from guava library.

Switch com.android.internal.util.Objects to com.google.common.base.Objects.

Bug: 6948882
Change-Id: I3756c3db7fc95728c052529e69735c6ee8e28665
ommon/model/account/AccountWithDataSet.java
59f85eb15f72fe8eb19836246c0c57dcaf37dbab 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move dependencies of AccountTypeManager into ContactsCommon."
273399bf829133a8385332ad43add3c34c889102 14-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move dependencies of AccountTypeManager into ContactsCommon.

Moving dependencies in preparation to move AccountTypeManager.

Bug: 6993891
Change-Id: I10893209986efd288315dc6b51c7971838ac3923
ommon/model/account/AccountType.java
ommon/model/account/AccountTypeWithDataSet.java
ommon/model/account/AccountWithDataSet.java
ommon/model/account/BaseAccountType.java
ommon/model/account/ExchangeAccountType.java
ommon/model/account/ExternalAccountType.java
ommon/model/account/FallbackAccountType.java
ommon/model/account/GoogleAccountType.java
ommon/model/dataitem/DataKind.java
ommon/test/NeededForTesting.java
ommon/util/CommonDateUtils.java
74caac49e59c78f28639b83b9cce71e802a78406 13-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge changes from conflicting accessibility change.

Resolved conflict from 3c0e293e8fbcf2636f45e729f6102cc752c59119. File was
deleted from Contacts and moved into ContactsCommon.

Bug: 7486402
Change-Id: I685af18c3d85b25ae81a34daac0f42a93e00793b
ommon/list/ContactTileAdapter.java
63ac534dcf60e9a6c651ef2434557bec922b9a7d 08-Nov-2012 Chiao Cheng <chiaocheng@google.com> Further clean-up of PhoneFavoriteFragment.

Moving common dependencies from Contacts to ContactsCommon.

Bug: 6993891
Change-Id: I7530d13771b65f17dafa3f4f8283965622b1c71e
ommon/MoreContactUtils.java
ommon/list/ContactTileAdapter.java
ommon/list/ContactTileView.java
ommon/list/PhoneNumberListAdapter.java
d6bba124836ec2f528b329759e38fda6297fec49 01-Nov-2012 Chiao Cheng <chiaocheng@google.com> Moving ContactListItemView and dependent classes.

Further clean-up of PhoneFavoriteFragment in Dialer app to move all necessary
dependencies into Contacts Common package.

Bug: 6993891
Change-Id: Ie310707da47d5e5c91e281d140f11e1eb47a5118
ommon/list/AutoScrollListView.java
ommon/list/ContactEntryListAdapter.java
ommon/list/ContactListAdapter.java
ommon/list/ContactListFilter.java
ommon/list/ContactListItemView.java
ommon/list/ContactListPinnedHeaderView.java
ommon/list/ContactsSectionIndexer.java
ommon/list/DefaultContactListAdapter.java
ommon/list/DirectoryListLoader.java
ommon/list/DirectoryPartition.java
ommon/list/IndexerListAdapter.java
ommon/list/PinnedHeaderListAdapter.java
ommon/list/PinnedHeaderListView.java
ommon/list/ProfileAndContactsLoader.java
ommon/preference/ContactsPreferences.java
a8feb7b88f2f67d8a80762dc54d336f1ea3a22d3 31-Oct-2012 Chiao Cheng <chiaocheng@google.com> Moving dependencies of PhoneFavoriteFragment.

Move common classes from Contacts to Contacts Common.

Bug: 6993891
Change-Id: Idd0b3115df810090340d1b10b04eb698d5facfb6
ommon/ContactPresenceIconUtil.java
ommon/ContactStatusUtil.java
ommon/ContactTileLoaderFactory.java
ommon/dialog/ClearFrequentsDialog.java
ommon/dialog/IndeterminateProgressDialog.java
ommon/format/FormatUtils.java
ommon/format/PrefixHighlighter.java
ommon/format/SpannedTestUtils.java
cf2644a893c3dcb5eecbb55f518ff00f202702f9 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move PhoneNumberFormatter to common."
0c7be815e789920d8157e125d2584f3768ff4fdd 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move label fetch logic into common utility class."
0241faf98fd678a2e824122ad4d5f41de72d498d 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move PhoneNumberFormatter to common.

Bug: 6993891
Change-Id: I7d55c473272e944d9dfc1d67a5b010edb9dbb1a9
ommon/util/PhoneNumberFormatter.java
81e755d9bd36eb7e022f9b897539d55b053ce0d8 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move StopWatch class into common.

Bug: 6993891
Change-Id: I60e9a1f63ea09dc0eb3c5ede64e9d5a15272526d
ommon/util/StopWatch.java
26ae5e29d0b54a1888e9607689a31d996ce05691 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move label fetch logic into common utility class.

- Move logic from PhoneActionInflater and PhoneActionAltInflater into common
utility method so it can be shared by PhoneNumberInteraction without going
through account manager.
- Added unit tests.

Bug: 6993891
Change-Id: I53e74df02bea031886ee512360b9f1abc083d66c
ommon/util/ContactDisplayUtils.java
0c355f691e91ff0d6dfd3765bf72b04cce8a1ceb 25-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move dependencies in prep for PhoneNumberInteraction move.

Committing this change first which is a pre-factor to moving
PhoneNumberInteraction into Dialer completely.

Bug: 6993891
Change-Id: Iceca505f6cd0dcbc1ebb39b98ab63a13bb263eda
ommon/Collapser.java
ommon/MoreContactUtils.java
ommon/activity/TransactionSafeActivity.java
ommon/database/ContactUpdateUtils.java
c36c3196c594b992cec8b5de1a3dba7556648804 16-Oct-2012 Chiao Cheng <chiaocheng@google.com> Adding ContactPhotoManager and dependent classes.

Moved from People package so it can be shared by dialer.

Bug: 6993891
Change-Id: I85268c040498621a324c459ce237a51b30e7d3a4
ommon/ContactPhotoManager.java
ommon/GeoUtil.java
ommon/util/BitmapUtil.java
ommon/util/MemoryUtils.java
ommon/util/UriUtils.java
439c352a9a23bdb89e43a8977eb0ae30f4e88824 10-Oct-2012 Santos Cordon <santoscordon@google.com> Do not change voicemail call to voicemail: uri automatically

Manual merge of Change-Id: I41ba17e419e3189a73f8032399deaa78febd525c

Change-Id: I66a20804d22bdf6c602f8fb27054f4894aed247e
ommon/CallUtil.java
bf1f360793c466dae12f8bc386161353355f2b28 14-Sep-2012 Chiao Cheng <chiaocheng@google.com> Adding custom AsyncQueryHandler to prevent null cursors.

In safe mode, a cursor can come back as null even though our providers never
allow for that. NoNullCursorAsyncQueryHandler should be used instead of
AsyncQueryHandler from now on. It will return EmptyCursor in place of a null.

Bug: 7012260
Change-Id: I5b8ba6fb85ae0f984ee8b0ff2f2f068232a03848
ommon/database/EmptyCursor.java
ommon/database/NoNullCursorAsyncQueryHandler.java
5a6b519447147a91eda94142c5667e86b2d4456c 06-Sep-2012 Chiao Cheng <chiaocheng@google.com> Adding build file and shared utils for ContactsCommon.

- Shared components for Contacts and Dialer app.

Bug: 6993891
Change-Id: I15ee8ccdc5119ee744db19726ce6d42e89fa509b
ommon/CallUtil.java
ommon/ClipboardUtils.java