Commit Graph

1899 Commits

Author SHA1 Message Date
Adrian Roos
69dc1232cf Merge \\"Add ApplicationErrorReport tests\\" into nyc-mr1-dev am: f86d855125
am: 4b39cfe203

Change-Id: I6510e4bb75e0780baef8e7a80622d8bbad9a932a
2016-07-15 20:19:15 +00:00
Adrian Roos
4b39cfe203 Merge \"Add ApplicationErrorReport tests\" into nyc-mr1-dev
am: f86d855125

Change-Id: I57d00e200ebf03010fca4ae0753200b981faaad4
2016-07-15 18:31:20 +00:00
Adrian Roos
f86d855125 Merge "Add ApplicationErrorReport tests" into nyc-mr1-dev 2016-07-15 18:24:28 +00:00
Seigo Nonaka
d6acdcee26 Merge \"Treat U+2695, U+2640, U+2642 as emoji characters.\" into nyc-mr1-dev
am: c0ab2e83ac

Change-Id: Iaa4d63c425f5d263d322d463c320312890588aaf
2016-07-14 22:37:53 +00:00
Seigo Nonaka
dc8ad8d49d Merge \"Delete gender-balanced emoji sequence by one backspace key event.\" into nyc-mr1-dev
am: ef9e2a5f4b

Change-Id: If60a0502875163ec60eeac61a3195e217b34e9f5
2016-07-14 22:37:50 +00:00
Raph Levien
c0ab2e83ac Merge "Treat U+2695, U+2640, U+2642 as emoji characters." into nyc-mr1-dev 2016-07-14 22:25:40 +00:00
Adrian Roos
a4f9ec94ba Add ApplicationErrorReport tests
Tests that long stack traces and exception messages are
truncated to a reasonable size when a CrashReport is generated.

Bug: 29918978
Change-Id: I4d8202ddca850a72e0853e4064d5690965ff371c
2016-07-13 15:08:20 -07:00
Seigo Nonaka
3c7a0a0af4 Treat U+2695, U+2640, U+2642 as emoji characters.
Bug: 29885295
Change-Id: If187a08574b86ab775b0a4594d21bc9e26f84e2f
(cherry picked from commit beb21afc2e)
2016-07-13 21:10:56 +00:00
Seigo Nonaka
f20ca2cb15 Delete gender-balanced emoji sequence by one backspace key event.
The gender-balanced emojis are made with ZWJ sequence and emoji
modifiers.  For example, U+1F469 U+1F3FD U+200D U+1F4BC should be
deleted at the same time by single backsapce key event.  Here, U+1F469
is WOMAN, U+1F3FD is EMOJI MODIFIER FITZPATRICK TYPE-4, U+200D is ZERO
WIDTH JOINER, U+1F4BC is BRIEFCASE.

This CL also renames the state name from STATE_BEFORE_ZWJ_EMOJI to
STATE_BEFORE_EMOJI since now all emoji can be a part of ZWJ sequence
after I572dad42ee108476962d4b3fe9f3a6019cb50098

BUG: 29728397
Change-Id: Ib114295db45c6592f1c65a0773ab236f8bf35209
(cherry picked from commit bba8d97c36)
2016-07-13 21:08:10 +00:00
Seigo Nonaka
beb21afc2e Treat U+2695, U+2640, U+2642 as emoji characters.
Bug: 29885295
Change-Id: If187a08574b86ab775b0a4594d21bc9e26f84e2f
2016-07-11 15:48:47 +09:00
TreeHugger Robot
b2969355c9 Merge "Move RemoteViewsTest to the right package" 2016-07-08 17:13:05 +00:00
Kirill Grouchnikov
8376f9eaa0 Move RemoteViewsTest to the right package
RemoteViews is in android.widget and not android.view

Bug: 29805243
Change-Id: I6210f60f60a21443d8a873c3a8e6f39d956ea123
2016-07-08 11:27:03 -04:00
Roozbeh Pournader
d9b51331d4 Merge "Set the locale explicitly for tests that depend on it" 2016-07-07 03:17:37 +00:00
Roozbeh Pournader
4262e94a18 Set the locale explicitly for tests that depend on it
Previously, the tests in DateUtilsTest and LinkifyTest assumed the US
English locale, which would not necessarily be the case when the
tests were run. Now we save the original locale, set the locale to
US English, and finally restore the original when the tests are done.

Bug: 29880704
Change-Id: Ieef59e5fc128b484b0db13f35bfa4372fed650d0
2016-07-06 17:15:28 -07:00
TreeHugger Robot
ca132ca6a1 Merge "Refactor WordIterator to avoid copying to internal buffers" 2016-07-01 00:03:59 +00:00
Roozbeh Pournader
b08a07165f Refactor WordIterator to avoid copying to internal buffers
Previously, since the assumption was that the string is passed down
to ICU4C for the iteration to run, a window of text was copied and
maintained. But now, we can just pass an iterator to the input
CharSequence directly to ICU4J.

Bug: 21832431
Change-Id: Ife5dfdb1d90b3eda2817d4d75747b7abc34a2299
2016-06-30 15:29:38 -07:00
Siyamed Sinir
f1cee7a586 Merge "Enable Text core tests" 2016-06-30 18:48:14 +00:00
Roozbeh Pournader
3e0a7f64a7 Merge "Add locale checks to DateUtilsTest" 2016-06-30 18:39:29 +00:00
Roozbeh Pournader
9e5c91768a Add locale checks to DateUtilsTest
This is to debug why the tests are failing on some scenarios.

Bug: 29880704
Change-Id: Ibae466681a6b40fced98f5f907ffd3582dc37ebf
2016-06-30 11:33:53 -07:00
Siyamed Sinir
68089c8106 Enable Text core tests
Some of the tests were disabled because of the access permissions. This
CL:
* Removes @Suppress annotations
* Annotates the test classes with related annotations such as @SmallTest
* Removes unused imports
* Replaces android.test.sitebuilder.annotation.SmallTest annotations with
  android.support.test.filters.SmallTest

Bug: 29879498
Change-Id: I9e6e326bc6eaf365d7d5c6d1f7edec35e6957302
2016-06-30 10:55:55 -07:00
Siyamed Sinir
fcef4a3b62 Merge "Visibility fixes for text related tests." 2016-06-30 17:54:58 +00:00
TreeHugger Robot
9324764e9e Merge "Update test expectations." 2016-06-30 08:08:28 +00:00
Seigo Nonaka
1e22227117 Update test expectations.
After Ie49b378250, all emoji can be a part of ZWJ sequence, so need to
update the test expectations.

Bug: 29871956
Change-Id: I89ee3e432b6855c86df187cd36c78e9a4e275b79
2016-06-30 15:08:14 +09:00
TreeHugger Robot
7401bd7346 Merge "Fix failing unit tests for android.text.format.Formatter" 2016-06-30 01:34:54 +00:00
Roozbeh Pournader
7ad781c026 Fix failing unit tests for android.text.format.Formatter
An update was needed for I34ae16bb68a28e60b09a7c17ac3b1d5ab9ddbeea,
but was forgotten. The updated tests assume standardized SI rounding,
using powers of 1000 instead of the previous powers of 1024.

Bug: 27672362
Bug: 29871955
Change-Id: Ib42124e9ec24bcb1309c3c940c1d830a18c4802f
2016-06-29 16:50:21 -07:00
Siyamed Sinir
ed09ae1fcc Visibility fixes for text related tests.
Some of the text and text layout related tests fail because of the
visibility of parameters/functions they use. This CL updates
annotations and visibility of related classes.

Bug: 29871441
Change-Id: Ia06072815261379ff839c440482d94570ec05a80
2016-06-29 22:44:29 +00:00
Roozbeh Pournader
9dad5811d7 Get failing WordIterator unit tests to pass again
WordIterator is now following the pattern in java.text.BreakIterator,
throwing an IllegalArgumentException when receiving an invalid argument.
Previously, it failed inconsistently.

Also add @SmallTest annotations to the WordIterator tests.

Bug: 29868991
Change-Id: I8158f2f419c8c4467205031655c0e62cc9ef5c1c
2016-06-29 13:14:13 -07:00
TreeHugger Robot
c8fc16ca1c Merge "Delete gender-balanced emoji sequence by one backspace key event." 2016-06-28 06:54:58 +00:00
Seigo Nonaka
bba8d97c36 Delete gender-balanced emoji sequence by one backspace key event.
The gender-balanced emojis are made with ZWJ sequence and emoji
modifiers.  For example, U+1F469 U+1F3FD U+200D U+1F4BC should be
deleted at the same time by single backsapce key event.  Here, U+1F469
is WOMAN, U+1F3FD is EMOJI MODIFIER FITZPATRICK TYPE-4, U+200D is ZERO
WIDTH JOINER, U+1F4BC is BRIEFCASE.

This CL also renames the state name from STATE_BEFORE_ZWJ_EMOJI to
STATE_BEFORE_EMOJI since now all emoji can be a part of ZWJ sequence
after I572dad42ee108476962d4b3fe9f3a6019cb50098

BUG: 29728397
Change-Id: Ib114295db45c6592f1c65a0773ab236f8bf35209
2016-06-28 13:54:19 +09:00
TreeHugger Robot
503e8c0a58 Merge "Add missing test annotation to ActionMode tests" 2016-06-27 16:10:47 +00:00
Clara Bayarri
e097c097d6 Add missing test annotation to ActionMode tests
Bug: 29753756
Change-Id: I892652c4d95b8a17ba07bd21f50ca3d8554a1d5c
2016-06-27 15:47:25 +01:00
Adam Lesinski
3d26f768a2 Merge \\"Update DisplayMetrics when resizing\\" into nyc-mr1-dev am: 038084e61c
am: 89aea239cd

Change-Id: I9cc73d39e690d30c736b705235bb93e92bd029a6
2016-06-24 22:15:56 +00:00
Adam Lesinski
89aea239cd Merge \"Update DisplayMetrics when resizing\" into nyc-mr1-dev
am: 038084e61c

Change-Id: I82318bbd8dbf03ab4bc01533b8c5650306cff0aa
2016-06-24 22:11:14 +00:00
Adam Lesinski
8e8d23214a Update DisplayMetrics when resizing
Previously the DisplayMetrics passed to a new ResourcesImpl
object would be generated from the default DisplayAdjustments.
We now use the correct DisplayAdjustments for the ResourcesImpl
and make sure to update them for things like rotation changes.

Bug:29619314
Change-Id: If2ba0d7670a4554dcd3fde9766e2337f20a191fd
2016-06-24 13:13:19 -07:00
Tenghui Zhu
1dbad03004 Merge "Refactor the java side APCT perf test" 2016-06-22 17:05:03 +00:00
Bennie Ouyang
2b713ee4f6 Merge \\\"Fixed notificaiton Stress Test\\\" into nyc-dev am: 2f59ee10b2 am: 557251287d
am: 1d7379b651

Change-Id: Ied6646c6e8de0f23fdb6f19db9a9e2b1a02d9c04
2016-06-21 23:56:38 +00:00
Bennie Ouyang
1d7379b651 Merge \\"Fixed notificaiton Stress Test\\" into nyc-dev am: 2f59ee10b2
am: 557251287d

Change-Id: Idd499dfb8cbd04ec0f758b8df1c836ca0a825e79
2016-06-21 23:37:46 +00:00
Bennie Ouyang
26eed32de7 Merge \"Fixed notificaiton Stress Test\" into nyc-dev
am: 2f59ee10b2

Change-Id: I7d52973c6d2d85b3aef692b7447d7ab77034d939
2016-06-21 23:35:06 +00:00
Teng-Hui Zhu
23d1fdded5 Refactor the java side APCT perf test
Relocate everything into apct-tests/
Setup the share static java lib for the common code and use it.

b/28980976

Change-Id: I74c80c0b54ad18ee5fc44da43249d3c88fb926e2
2016-06-21 16:11:31 -07:00
Bennie Ouyang
557251287d Merge \"Fixed notificaiton Stress Test\" into nyc-dev
am: 2f59ee10b2

Change-Id: I4629e78b47f23624638955d1f7bdabfb8cb86b4b
2016-06-21 20:47:29 +00:00
Bennie Ouyang
4316180061 Fixed notificaiton Stress Test
Bug: 29506953
Change-Id: I8f8e7b2f0b03b48665b524472a8e81aef6a7a708
2016-06-21 09:59:53 -07:00
Tony Mak
39fcc6acbc Merge "Fix the handling of bundle array in RestrictionsManager" 2016-06-21 09:14:48 +00:00
Seigo Nonaka
6a643348de Add test case for issue 29491345
Bug: 29491345
Change-Id: Icd7d1612ad317978356a17688d6ceb8b6a4825a8
2016-06-21 10:31:03 +09:00
Tony Mak
1d18efe080 Fix the handling of bundle array in RestrictionsManager
Fix: 29506624

Change-Id: I0683d406f8b70d5d5f78bfc337d3952b6513d102
2016-06-20 19:41:08 +00:00
TreeHugger Robot
68e1b0ba8b Merge "Test presubmit infrastructure" 2016-06-09 00:07:29 +00:00
Yuchao Zhou
994c577523 Merge \\"Update enable/disable code to reduce flakiness\\" into nyc-mr1-dev am: a2da20d334
am: 4b780d6bc9

Change-Id: I7ad8c5bc17e9929b25553b647239873f4a2d25a3
2016-06-08 23:39:52 +00:00
Yuchao Zhou
4b780d6bc9 Merge \"Update enable/disable code to reduce flakiness\" into nyc-mr1-dev
am: a2da20d334

Change-Id: Icf4936922afa7d5fd8cf309a5205b3dd6bfe95cc
2016-06-08 23:33:47 +00:00
Chet Haase
9392d40ac7 Test presubmit infrastructure
Annotating a single test to vet the presubmit infrastructure for TreeHugger

Change-Id: Iee8f4014d037d44c0700a596d8f51591a31ba649
2016-06-08 15:40:46 -07:00
Yuchao Zhou
571a4a97cd Update enable/disable code to reduce flakiness
Change-Id: I9d3f69ca583b365bb5f89cfe16adcd6e604614c6
2016-06-08 14:14:37 -07:00
Lorenzo Colitti
2f310da52e Merge changes Ic98e3bcb,Idb0c55fc,Ia8649061,I5e7e5a87 into nyc-mr1-dev am: 3e2bfbd135
am: 3feff1367b

Change-Id: I776625bbc557c747477db70235847dd8b3ab8baf
2016-06-08 06:44:24 +00:00