New assets for chips backgrounds.

Change-Id: I4e768a0e6006d42c227053625713f676affea447
Merge "New assets for chips backgrounds."
merge in ics-release history after reset to master
Clear the checked position and reset it always.

I beleive this fixes the issues reported internally this morning, as
previously the checked position ws being incorrectly cached.

fixes bug:5274898 trouble picking the right email addresses for people in gmail

Change-Id: I442a9a3c1b147de41a48bb8b3e72492083bf1f03
Merge "Clear the checked position and reset it always."
Mke sure we commit chips that are being edited

The isse was that text editing of a chip now holds the chip
in the selected chip field. This makes sure that we commit any chip
that has an invalid id before continuing.

Fixes bug:5277118 Chip layout is weird if there are "+x more" text and a recipient not in your contact list

Change-Id: I7480a3677e1fa1d17e365c3057dd74ae46ede858
Fix excess copy dialogs showing up.

Make sure we send through all events so that long press gets cancelled
by a move (that will scroll)

Fixes bug:5277603 Scrolling a long recipient list falsely triggers copy-paste dialog

Change-Id: I65c1bd6bf0d2055cbfc1758be13d21c5bd16f98a
Fix playback in variable speed audio.

- Recent changes to system/media broke variable speed playback.
- Traced to http://go/android-cl/132098 which presumed that variable
  speed playback wasn't using the renamed sample rate field, but we
  had our own copy of the field (it wasn't previously available in the
  api).
- This cl also fixes the TODO by removing our own copy of the fields,
  and using instead the defines from the OpenSL android api directly.

Bug: 5282965
Change-Id: I58033e9299d26d6a05259e4d50708d27fc3fa7e1
Add ability to set overscroll slot count

Change-Id: I10541172d99e1ede5b27bfcef106afadc0e540d4
Update logic to look for the correct token if there are multiple entries.

This was mistaken for a bug with paste but the actual issue is:
1) enter a recipient
2) enter a few more other recipients
3) enter recipient from step 1 again
4) remove focus to create "more chip"
5) focus: we were not getting the correct recipient position from step
4; we were getting the first instance which was the chip from step 1

Fixes bug:5267557 duplicating an address causes odd behavior

Change-Id: I3fdc27c22820056f5470832e1ed634768283703f
Add ability to set overscroll slot count

Change-Id: I10541172d99e1ede5b27bfcef106afadc0e540d4
Dont allow this to scroll when a chip gets selected.

The way we accomplish this is by setting the field to disabled
when a chip is selected so the IME does not pop up and change
the position of the field.

Fixes bug:5277127 No way to remove a recipient from a long list of recipients using chip UI

Change-Id: Id0783ddb159c98daeb1738d10a0660dd03819649
Merge "Add ability to set overscroll slot count"
merge in ics-release history after reset to master
Merge "Dont allow this to scroll when a chip gets selected."
Make photo and delete icons fit within the chip background.

Fixes bug:5289589 Chip thumbnail image should not extend outside the chip

Change-Id: I8191c52a531b47e45073a9a08b879051ec10af37
merge in ics-release history after reset to master
Protect against editing a chip that is no longer spanning text in the field.

Result of a moneky crash. No idea how a person could repro this, but the
protection step is easy.

Fixes bug:5278667 com.google.android.calendar: java.lang.ArrayIndexOutOfBoundsException: length=2; index=-1 at android.text.MeasuredText.setPara(MeasuredText.java:113)

Change-Id: I3bf35b94dfd474d5d6604799b848b5817f747a4c
Handle the case where a user is editing an invalid contact chip correctly.

We now treat an invalid contact chip (ie just text the user is editing
that was a chip) as being a selected chip. Make sure we handle the
edit cases for this correctly.

Fixes bug:5288176 Email address not distinguished in Email application

Change-Id: Ia9d3803f22d6d2f92cf280fc65b9d95b1a21c713
Update HC LTE to match HC MR2 DO NOT MERGE

Change-Id: I30cbd7ddcabc0841a21b236fe0e19f11129e5440