Add support for CMHome (2/2)

All installed DashClock extensions on the device will be represented
with a card for each. They can be swiped away or clicked to view
additional options. Cards are refreshed upon returning to CMHome.

Change-Id: Ic2a735bb6c7a450ee72ab1abce31961bd0ccd90d
Fix bug where extension icons would not be updated

When extensions publish new data to CMHome, they can change the icon
resource. Previously, this would never be updated in the card until the
application was restarted. Now icons will be updated immediately when the
resource changes.

Change-Id: I4b1f41006ee7c27378b894c125dcf436a1ba5093
Prevent cards from being swiped left (2/2)

Specify that cards can only be swiped to the right, so that a left swipe
motion will always return the user to Trebuchet.

Change-Id: I8a749b599a772f9e71203ce1aae8b8cf1eab1091
Change to respect DashClock extension visibility.

Update DashClock Extension support to respect the visible parameter of
extension data, so that invisible extensions are hidden from the card
list, reappearing if they become visible later.

Change-Id: I7767985659f24d5aed304ebbdc1e133d47f18d9d
Fix bug that displayed incorrect extension icons.

Cardslib caches the thumbnail image of each card in a Map. Previously,
we used the resource id of the DashClock extension as the key, but this
can result in a collision across multiple extensions. Change the key to
be ComponentName String + Resource ID or URI of the image.

Change-Id: I870ad155e64c42645240aac2c2984c336bae2fef
CMHome: Make app name translatable

Change-Id: Ib8dab1b279576b98ca27aa651675ded283217176
Merge changes I870ad155,I77679856 into cm-11.0

* changes:
  Fix bug that displayed incorrect extension icons.
  Change to respect DashClock extension visibility.
CMHome: Cleanup translatable resources

Change-Id: I6605cf773508a2410c8b39baa6b894be3ddccd19
Hide dismissed cards for at least three hours.

Implement a time out feature so that if cards are dismissed by the user,
they will not be allowed to reappear until three hours have elapsed. The
card will next appear any time after three hours when the Extension has
an available update and is set to be visible.

Change-Id: I9306957e49862565a2e40c1cd243894e21fe0d12
Fix card display issues on lower density screens.

Removed the text line restriction for simple_message_card, as it isn't
necessary. Changed the layout of dashclock cards to display more lines
before ellipsizing and have a dynamic height. Fix minor color display
issue in Trebuchet.

Change-Id: I901c0a23b44325d8c133dc71b5c07e4c8137876c
Fix Undo Bar appearance during Google Now use.

Sometimes the Undo Bar can be in a visible state when a Trebuchet user
toggles to use Google Now instead. Since CM Home is used to provide a
transition effect, the Undo Bar should not be visible at that time. Fix
this by setting visibility to GONE when setShowContent(false) is called.

Change-Id: I4f48096500c0dde6dacead3b59ff4c4eb050c30f
Automatic translation import

Change-Id: I47feae70fb98ead0f6646abe55f8b378dac97fda
CMHome: Fix permission strings

Follow the guidelines

Change-Id: Iaf28f8b1e46a100a4c71e266bb73200b1100c802
Fix UndoBar display issue in Google Now mode.

If Google Now mode is enabled in Trebuchet, the UndoBar will unintentionally
be displayed in CM Home after a reboot, until swiping to Google Now the first time.
Fix this by hiding it as soon as the view is created. Add a minor line
wrap style fix.

Change-Id: Ibd5bedb846aed66905db9f88c870d08d3e4d68c3
Fix UndoBar display issue in Google Now mode.

If Google Now mode is enabled in Trebuchet, the UndoBar will unintentionally
be displayed in CM Home after a reboot, until swiping to Google Now the first time.
Fix this by hiding it as soon as the view is created. Add a minor line
wrap style fix.

Change-Id: Ibd5bedb846aed66905db9f88c870d08d3e4d68c3
(cherry picked from commit 8ac22f20e7d178da3b3ee96c3f4c5b515153bba5)
Automatic translation import

Change-Id: I00d0fc45f3b8c5d64d52c022d9aedafd8f56b497
Add license file.

Change-Id: I3fd7a9f527c591882834fadc72d74ca08a82cf0d
Add undo listener parameter for if undo occurred. (2/2)

Support UndoBar API change in cardslib so that the listener is notified
even if the undo for a card swipe times out.

Change-Id: Ifec15f9eb919ac67af603aa41fb05f1b7e7ae0b8
Automatic translation import

Change-Id: I23b7c85660008a7bcbe3b17859ab7de7d4bdd153
Automatic translation import

Change-Id: Ib201498ab5c19ca7431a3d1e01bb4079d114a504