This change adds simple tests for:
- longpress and drag to select
- double-tap and drag to select
Bug: 24102650
Change-Id: I8614c8ec430dfc204159a03be409a2361cd7d844
This CL is mechanical code moving and does not change any existing
behavior.
buildInputMethodsAndSubtypesString is introduced by
If0104151b3526da6ecc669adde3119a239ecafeb for addressing Bug 19822542.
This code moving is one of the TODOs in above change.
Bug: 22285167
Change-Id: Ie63cf593794c9062919887e04a64208a900b1b8b
The plan is to add common TextView actions here so they can be used
in tests.
The locateTextAtIndex method is probably not the most efficient way
to locate a particular spot in the TextView but it works well enough
and doesn't use any private/hidden APIs. This might make it easy to
port this test as CTS.
Ideas on alternative implementations for this method are welcome.
Bug: 24102650
Change-Id: Ifb07cc86c58bd5833c37919fa9294a2374dba2a0
TextViewWordLimitsTest tests TextView methods that no longer exists.
This removes the obsolete test class and add tests for WordIterator instead.
Bug: 24024480
Change-Id: Iffe16c2d7fa680089bc49d1384ce5e232330fb7c
This CL includes HintedAdvanceWidthTest-Regular.{ttx|ttf} for fixing
test expectation, which has hinting information.
Bug: 11256006
Change-Id: Ia79a1d093e39cd47c914395e034cb90eda51c5c0
Fixed up the tests and re-enabled it.
Still suppressed one test because what it relies on Settings.Bookmarks
is broken because Settings query format changed.
Fixed a bug in SettingsProvider that the package query is using the
wrong user id.
Bug: 19913735
Change-Id: Ied86a261defba2706f726a13bc32f385f7d93787
Previously any call to post() while a view was detached would stash the
runnable on a thread-local RunQueue. If the post() call happened off the
UI thread to which the view would later be attached, this would result
in the runnable either failing to run or running on some other UI thread.
Bug: 22828132
Change-Id: I5289ee91ea4b56c45f003a387a9f7f0e6dc050f9
Set up an AnimatorSet, and make the first clone during the animation run, and
the second after the run. Add one listener to each animator. When the clones
animate, listeners of both the clones and the animator being cloned should
receive animation lifecycle events.
Change-Id: I197440e2cd404592eb29be76864a66a0d110a9a5
This CL depends on ag/749611
With the custom timing pulse provider, we are free from the chaos that could
happen on UI thread and any delay that comes as a result. Therefore we can
count on more accurate timing for each frame, which enables us to test things
such as AnimatorUpdateListener, among other things.
Note that there will still be ~2ms delays in addition to the frame interval
in between frames, due to the MessageQueue processing time.
Change-Id: I6de0aa06125d1ecfae788f5dd22536a5fa52e651
For the system user, enable apps based on the following conditions:
- app has no launcher icons or has INTERACT_ACROSS_USER_FULL permission
- app is whitelisted
- app is not in the blacklist
Bug: 23283899
Change-Id: I90fa266e8cfb28d002e5f792998fdddb6a1e6969
Allow specifying sharedpref without .xml suffix as it is for
getSharedPreferences Android API. If .xml extension is missing for
sharedpref file name, it is added in include/exclude filters.
BUG: 20923818
Change-Id: I8bf3d43654b69d847e57c94f23aa3799e01948e6
This updates the tests to match the older commit
f723017481 and also adds support for
negative values.
Bug: 23191381
Bug: 11237727
Change-Id: Ib9a1f10031b730ee460658949b388c779cefa041
This CL introduces very simple test case for SuggestionPopupWindow.
I'm going to introduce more test cases for complex scenario once this
approach is accepted, e.g. multiple suggestion span and misspelled flag.
This CL is a part of groundwork for Bug 15347319 and no user visible
change is intended with this CL.
Bug: 15347319
Change-Id: Idf166cbecb3e33be213e4104cf1afd827906f2ad
This CL contains a few tests for ValueAnimator around start/resume, listener
callbacks, state checks, and start delay.
Change-Id: Ib67f36c1b266faff69f66f945ed846f9f7eb1193
This is a follow up CL for Ibdafe89474dd69c5b70c67ec98fed46656f9f,
which introduced several unit tests with the fix of Bug 21183019
but forgot to add test annotations for new test cases.
This CL makes sure that those newly added tests are annotated with
standard annotations. Here we use @SmallTest since those test
cases basically checking the behavior only of TextView.
Bug: 21183019
Change-Id: Id6c5950cf8cfc8706e90669c7517f62b1e54f057
The target unit test is introduced by
I01f5fafbbcfe3e3f5313829162ec011eaf2ad991 but it lacks @SmallTest
annotation which is necessary for continuous unit tests.
Bug: 22285167
Change-Id: I75235f26fe7a3baffbc60222bd9485ade85e13e8
This CL is mechanical code moving and does not change any existing
semantics.
parseInputMethodsAndSubtypesString is introduced by
If0104151b3526da6ecc669adde3119a239ecafeb for addressing Bug 19822542.
This code moving is one of the TODOs in above change.
Bug: 22285167
Change-Id: I01f5fafbbcfe3e3f5313829162ec011eaf2ad991
This CL moves existing (non-CTS) unit tests used for input
method under core/tests/coretests/ to reduce the maintenance
cost.
Although some package names and import lines are updated
to be consistent with new file locations, test cases are
are kept to be the same.
Change-Id: I4efce90b232458212ac48292dc01b812a9e851e5
This CL contains more test coverage of functionalities in AnimatorSet.
Specifically, set/get duration, add/remove listeners, start/cancel/end
and pause/resume AnimatorSet and some state check are included here.
Change-Id: Ic8a17f3733ab0d8d4453b0c1f1e8650a331c016f