History log of /frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6c2a016fb00482339dc66b93822042f9f9e2424f 18-Aug-2014 Jin Cao <jinyan@google.com> [Quantum chips] change chips into ReplacementSpan

There seems to be an issue with ImageSpan where it
sets the default text cursor size to the height of
the ImageSpan. In this CL I changed the chips to
extend ReplacementSpan and simply draw the chip
ourselves by overriding the draw method.

b/16700424

Change-Id: I66a8bf3068e24a669121c7323323fd03138ca7b3
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
219cbfbd7806b17ce10ba2cfb3f0cd45d167d46c 04-Jun-2014 Régis Décamps <regisd@google.com> Allow to paste text or html into a chip

Allows to paste into a chip HTML mime content, as long as
it can be represented by text.

This resolves the inability to paste email addresses copied from
a web page, with content text/html.

Also, fix an IndexOutfOfBounds bug when there is no selection.

Bug: 13361722 users cannot paste html content in chip
Change-Id: I31434105e4326d78e99df338f81d9e56fc5b83c5

Conflicts:
src/com/android/ex/chips/RecipientEditTextView.java
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
858e094f1c695aefdf6a23f522c0f16d81bd79f7 10-Oct-2013 Scott Kennedy <skennedy@google.com> Merge chips from jb-ub-mail-ur11 into klp-ub-dev

Change-Id: Ied8877d7613ca1dbb5047a0c8c611a1138fc47e3
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
983c99b9e00913e8d2a5642cd05ccb9a81570be7 22-Mar-2013 Scott Kennedy <skennedy@google.com> Add unit test for creating fake phone entries

There was a problem with numbers formatted like:
"(888) 555-1234".

Bug: 8449554
Change-Id: Ic70998104bd5151aba2dca5202bc4f99ced362be
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
194d427ebcfc2133bda410e0e4c399250d9a6066 07-Mar-2013 Scott Kennedy <skennedy@google.com> Refactor some of thie chips code

VisibleRecipientChip and InvisibleRecipientChip had a lot of the same
code, so I moved it all into a delegate class. This resulted in a
bunch of "RecipientChip" classes, so I moved them all into their own
sub-package.

Change-Id: I01dfc931e006270dd37721c73e7bc3c0e7b67515
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
20c8aa75e7213ee82089b9aea9f407ca62302167 07-Mar-2013 Scott Kennedy <skennedy@google.com> Add a test case for b/8321211

Emails like:
"Ex Ample" <example@example.com>
were displaying improperly.

Change-Id: Idd43814352e0c4455733adc13b89eb6fc1aca1bb
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
cb62027cbeb0975c6becdef144dc5ec7dc5eb7a3 07-Mar-2013 Scott Kennedy <skennedy@google.com> Merge "Initial clean up of the chips code" into jb-ub-mail-ur9
d2240c52c38d67ee6c340d625a240ded51e2ddae 07-Mar-2013 Scott Kennedy <skennedy@google.com> Fix a failing test

Change-Id: Iaa45618d69ea12aa6714bcae36c8f12a253d5df2
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
f7e202d8b83bfbd73ca47ba7843ebc4dd57c2fa4 07-Mar-2013 Scott Kennedy <skennedy@google.com> Initial clean up of the chips code

Change-Id: I56a3dd5968a3ea435d6dcae9256021bac1f74ee6
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
3ff3589ef691918ae7b3e96412c6064c6daccbf5 06-Mar-2013 Scott Kennedy <skennedy@google.com> Remove waitForDebugger()

This was accidentally commited in
I8d2c978c0f346ffa3b8fa0f993efb6df6b0c224a

Change-Id: I56481d0a6ea72ff9c61ee45fd98ad3f91c86460b
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
b1cddbb70524197b68d99a6805a97d50eef4e353 06-Mar-2013 Scott Kennedy <skennedy@google.com> Fix the chips tests so they build

Change-Id: I8d2c978c0f346ffa3b8fa0f993efb6df6b0c224a
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
bdf58b6b2b95396b080f13727ddcb459fa0fa16a 02-May-2012 Mindy Pereira <mindyp@google.com> Fix null ptr in test cases by supplying a test adapter.

Change-Id: If979703d1140f8ad74b2896825a6b490af746442
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
f6519d2aabaac51fd62dc819c109db86748d79e8 02-Nov-2011 Mindy Pereira <mindyp@google.com> If message starts with > 50 chips, dont chipify anything.

Also added test cases for new plain text version when there are too many
recips.
fixes b/5556474 Gmail ANR when replyi-all to a msg with many recipients

Change-Id: I69ba560bf8d8112b81a582aee17a07bf3da1aa65
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
aca23c4de8d85b04e6044c9a8f047c337cf427c9 14-Oct-2011 Mindy Pereira <mindyp@google.com> General cleanup of the chips view.

1) remove extra code
2) make sure we use convenience methods where possible
3) always make sure that we use sorted recipient chips when looking
for the position of a chip
4) test the convenience methods
5) rempove unused code
6) make methods package private that don't have to be public
Change-Id: I586eac795a548456ec29bd384abd2e7611a24a03
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
20c9d620e79ae28994856541761a951074551518 12-Oct-2011 Mindy Pereira <mindyp@google.com> Update pasting to handle more cases.

Fixes bug:5026774 pasting in email addresses changes

Change-Id: Id16e7470eb10a998fdb5efde06cb4449bb9d49e7
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
62397a5ac6b2df89ec4c2f8f23680add5850c17a 03-Oct-2011 Mindy Pereira <mindyp@google.com> Revert "Make the space part of the replacement image span."

This reverts commit a1d52e9203ea3cdfc0d1c69a8a4f99445fdd5ca1
Also reverts later change:
https://android-git.corp.google.com/g/#/c/138160/3
That was made to remove code that took into account having a space not
covered by the span character.
Fixes tests cases to respect the space character again.
Change-Id: I96d52a5df4d01e757f72949cbcf3b1f582679a46
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
fecc6f882abd4287cdffafa947457e06b1db5112 27-Sep-2011 Mindy Pereira <mindyp@google.com> Add comments to chips. Test replace first, middle, last chips.

Change-Id: Ib4c7b32879bc6a2f81ebd970645ae956ef177e10
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
97cb25912dab282cf732757f68b0405ed005f00b 27-Sep-2011 Mindy Pereira <mindyp@google.com> Add more tests.

Tests verifying where a chip is position, removing a chip,
and creating a chip.

Change-Id: I2e9c6719a6efc365ab73c4d3c32bb29209b73e48
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
dfeb97f6b18cdeff9872f8d32cd7a33baa1f8825 23-Sep-2011 Mindy Pereira <mindyp@google.com> Make the space part of the replacement image span.

This eliminates the need for manually adding extra spaces at the end.
This also fixes bug:5323325 Chips sometimes have no spacing between them on deleting
since now the space is ALWAYS deleted when the chip is deleted.

Change-Id: I8923940a070bcc1ce6894af3efa1449e98aa4830
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
d71925073f008dccd8c4b65d5d66534e6451e64d 22-Sep-2011 Mindy Pereira <mindyp@google.com> Protect against focus lost before drawing/uesrs already tokenized.

Fixes bug:5339625 odd behavior on orientation change in the "to field"

Also, added more test cases around adding/ removing more chip.
Change-Id: I1b24526b5be82835b5ec7c0345b7d73a31169a8f
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
8eb031e6de46e477412d92ab0c5ef20b431f1804 21-Sep-2011 Mindy Pereira <mindyp@google.com> More tests for sanitizing text between chips.

This specifically tests sanitizing content that is before
a chip when there is only 1 chip around.
Also, makes sure we don't look for a chip that isn't
attached (startLooking or end < 0)
Change-Id: I2591f29490a53c23527bbee487f1446b18c3f161
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
01162ce6739af1c9d9870f8e7e489f805c7e6794 20-Sep-2011 Mindy Pereira <mindyp@google.com> Add test cases for creating display tex and sanitzing spans.

Also, fixed a case we didn't catch where if the span start
was -1, we would crash.
Change-Id: Ia7d70dee117632ef2064c1f592fdc09694014846
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
399bda87ad1a4d003609d6d27afc50c8359846b9 20-Sep-2011 Mindy Pereira <mindyp@google.com> Fix crash in calendar.

Protect against walking off the end.
Fixes bug:5347150 Calendar crash on selecting guest suggestion after changing device orientation (java.lang.IndexOutOfBoundsException: charAt: 52 >= length 52) in IRK82

Change-Id: I6216a770175adac34416dfabda202ac9846c95ac
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
d8c15c328eaa109946f8f9093f3c2f2773d525dd 20-Sep-2011 Mindy Pereira <mindyp@google.com> Catch a couple of interesting/ odd cases for creating display text.

1) User Name <User Name <username@username.com>>
2) User Name,Jr <user@username.com>

Change-Id: Ic148def8d3dd630af3fc5765958d59a682e1accd
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java
7cb970b6d9b60b9b9828d40fea8cff395a40ecd9 19-Sep-2011 Mindy Pereira <mindyp@google.com> Add test infrastructure for chips.

This adds test infrastructure, manifest, and make files plus
an initial test file that doesn't do anything.

Change-Id: Icbca2584f315a2b001f580cb2648352e48eb284d
/frameworks/opt/chips/tests/src/com/android/ex/chips/ChipsTest.java