Previously applications where uninstalled for the system user at a later stage
in a boot process, when PM has already been initialized and registered as
a service. This was causing a flood of PACKAGE_REMOVED broadcasts.
Applications are now uninstalled at an earlier stage, when PM hasn't been
registered. Packages can simply be marked as not installed and broadcast
can be skipped.
Bug: 25626819
Change-Id: Ib64e7c45619809b0efb99cc566a9a2120ed48cd3
It seems like setOrientation(...) is not working.
Instead, fix the orientation of TextViewActivity to portrait.
See: I2f9372997f8301d800109981c6e1a6d4419b641d
Bug: 24495166
Change-Id: I0c5480b7ce6ba1fb8e4e4e3daabe94ebccca4dfd
Added GET_DEFAULT_IMES flag to AppsQueryHelper. Default system IMEs are now
enabled for system user.
Bug: 25276229
Change-Id: I38d74903951200e2207e1864bb3a815f8f2d572f
Per RFC 4330, a NTP server response should be discarded when:
- the stratum is 0 (unspecified), or
- the leap indicator is 3 (unsync'ed), or
- the mode is not 4 (server) / 5 (broadcast), or
- the transmitted time is 0.
Update SntpClient so that such responses would be discarded.
Additionally:
- make some variables suitably "final"
- enable logging
- add alternate requestTime() for testing
- add some miniscule test coverage
Cherry-picked from Jerry Wong's
https://partner-android-review.googlesource.com/#/c/460074
Bug: 24719581
Change-Id: Id11a79a6e53ce95500ed4b4d691a29c260666f6c
Clear suggestionSpan reference since it is not necessary once the
suggestion window is closed.
suggestionSpan is kept for identifying the target text region in
onItemClick method.
This CL is a part of groundwork for Bug 15347319 and no user visible
change is intended with this CL.
Change-Id: Ie0edf215a1b90629e280ce09df4fd6f5d95fbb06
Some tests were failing in the lab based on device orientation:
In landscape mode, the TextView goes into ExtractEditTextMode.
This mode behaves a bit differently from typical TextView mode
and doesn't support accelerated drag selection (e.g. longpress+drag).
This CL adds OrientationUtil that allows test to specify the
orientation (portrait/landscape) that the test should run in.
This CL also fixes the failing tests.
Bug: 24495166
Change-Id: I2f9372997f8301d800109981c6e1a6d4419b641d
This change adds simple tests for:
- longpress and drag to select
- double-tap and drag to select
Bug: 24102650
Change-Id: I8614c8ec430dfc204159a03be409a2361cd7d844
Previously printing a duration where a unit (except ms) was one and the
next smallest unit was zero would result in the duration being being
expressed in the next smallest unit. For example 1m0s0ms would be
formatted as 60s0ms.
Update testFormatHugeDuration to supporting times > 999 days
The implementation was fixed in 3d1933c45fe9ba2389ebd166d96abeceab1971d1
Change-Id: I9d609f7a0f82755ea653a205293a6e3785a10d1e
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