1500 Commits

Author SHA1 Message Date
Fyodor Kupolov
1682dad7ed Moved system user apps whitelisting to PM
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
2015-11-12 13:48:18 -08:00
Seigo Nonaka
a17d8766d4 Merge "Clear suggestionSpan reference once popup window is closing." 2015-11-12 06:55:34 +00:00
Doris Liu
81963e3d56 Add tests for calling end() before start() on ValueAnimator
Bug: 23713124
Change-Id: I55c86a43249fd36a9e633a6f75d6316c2e69ec61
2015-11-09 14:41:07 -08:00
Abodunrinwa Toki
a295ef2f33 Merge "Fix failing TextActivityTest." 2015-11-03 16:06:38 +00:00
Abodunrinwa Toki
e36c7112e7 Fix failing TextActivityTest.
It seems like setOrientation(...) is not working.
Instead, fix the orientation of TextViewActivity to portrait.
See: I2f9372997f8301d800109981c6e1a6d4419b641d
Bug: 24495166

Change-Id: I0c5480b7ce6ba1fb8e4e4e3daabe94ebccca4dfd
2015-11-03 14:08:03 +00:00
Jeff Sharkey
46cfd93aa2 Let's sprinkle some FastJNI into Resources.
Before:

               benchmark   us linear runtime
                GetColor 14.9 ===========
              GetInteger 19.9 ===============
    GetLayoutAndTraverse 38.4 =============================
               GetString 38.5 ==============================

After:

               benchmark   us linear runtime
                GetColor 13.9 ==========
              GetInteger 18.8 ==============
    GetLayoutAndTraverse 38.1 =============================
               GetString 38.2 ==============================

Change-Id: I8c20e14182d2645bc62a0e7fc6345e298b11933c
2015-11-02 19:49:11 -08:00
Fyodor Kupolov
9147ce4cf9 Merge "Enable default system IMEs for system user" 2015-10-28 17:05:58 +00:00
Erik Kline
7ae47acb0b Merge "Also treat loss of IPv6 as a loss of provisioning." 2015-10-28 07:07:51 +00:00
Fyodor Kupolov
b3b4f61525 Enable default system IMEs for system user
Added GET_DEFAULT_IMES flag to AppsQueryHelper. Default system IMEs are now
enabled for system user.

Bug: 25276229
Change-Id: I38d74903951200e2207e1864bb3a815f8f2d572f
2015-10-27 13:55:40 -07:00
Keisuke Kuroyanagi
ead6ba3a63 Stop making a reversed selection with mice.
Bug: 24889605
Bug: 24475013
Change-Id: I6d39e050656dc28e523fab862c84054169e6300b
2015-10-27 17:26:07 +09:00
Erik Kline
1ad4e22534 Also treat loss of IPv6 as a loss of provisioning.
Bug: 23226635
Change-Id: Icebb7d83ed5b3b796901b9f023909a02eb461941
2015-10-27 17:11:27 +09:00
Keisuke Kuroyanagi
09424c83d6 Merge "Add mouse interaction UI test for TextView." 2015-10-27 05:46:00 +00:00
Mitchell Wills
61da59bd9c Merge "Fix TimeUtils.formatDuration for exactly one of a unit" 2015-10-26 23:53:57 +00:00
Jerry Wong
32d52f344a Incorrect time used in some NTP server responses
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
2015-10-17 03:36:32 +09:00
Seigo Nonaka
7afa67ca22 Clear suggestionSpan reference once popup window is closing.
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
2015-10-15 19:11:50 +09:00
Doris Liu
a0942e2121 Test ValueAnimator when duration scale is set to 0
Change-Id: I33a90bc39d3b451696752eae02edfacb4ddfd80e
2015-10-14 11:02:25 -07:00
Doris Liu
68dcb30c27 Add more tests for seeking and reversing
Change-Id: I00fc4a9655760dea29ecca3f02d19c636cea28f7
2015-10-13 00:20:36 +00:00
Lorenzo Colitti
69eedb4de0 Merge "Add a null check to hasIPv4AddressOnInterface." 2015-10-09 04:04:27 +00:00
Lorenzo Colitti
89b6392046 Add a null check to hasIPv4AddressOnInterface.
Change-Id: Ie38505ec0a93f4060348d92db341c536b7d60ed0
2015-10-09 12:36:30 +09:00
Abodunrinwa Toki
c9e924eb53 Set device orientation for tests.
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
2015-10-08 16:58:18 +00:00
Keisuke Kuroyanagi
88cabede9b Add mouse interaction UI test for TextView.
Bug: 19544351
Bug: 24475013
Change-Id: If8109ad30a13d5cef4c7aff212b2a8389db0e57d
2015-10-08 19:12:56 +09:00
Abodunrinwa Toki
8a5e1ae2f4 FloatingToolbarEspressoUtils + more TextView selection by touch tests
Bug: 24102650
Change-Id: Idd7d8b29ad8cfdf10d75137762bb1cb677bda6b7
2015-09-29 15:27:11 +01:00
Abodunrinwa Toki
ca4aaf3c17 Add more TextView selection (by touch) tests.
This change adds simple tests for:
 - longpress and drag to select
 - double-tap and drag to select

Bug: 24102650
Change-Id: I8614c8ec430dfc204159a03be409a2361cd7d844
2015-09-25 10:53:19 +01:00
Elliott Hughes
434a481b21 am ea1831d2: am b57dd722: resolved conflicts for a884d81e to stage-aosp-master
* commit 'ea1831d211ea0e6b2d161c714bb0786369ef2df5':
  constify JNINativeMethod function pointer tables
2015-09-24 17:23:00 +00:00
Elliott Hughes
ea1831d211 am b57dd722: resolved conflicts for a884d81e to stage-aosp-master
* commit 'b57dd722f1dc0663417da37d3a82f8283ad3c982':
  constify JNINativeMethod function pointer tables
2015-09-24 17:14:10 +00:00
Elliott Hughes
b57dd722f1 resolved conflicts for a884d81e to stage-aosp-master
Change-Id: Ice485967fa96f13786024b6939b826638e906ff0
2015-09-24 10:01:32 -07:00
Erik Kline
02cc5a030a Refactor netlink and IpReachabilityMonitor into services/net
- netlink from core to services/net/netlink
    - IpReachabilityMonitor from core to services/net/ip

Change-Id: I45ac3f591bade45dd5ec441111b02b621234c0e4
2015-09-24 12:50:36 +09:00
Mitchell Wills
f9a80cbbfe Fix TimeUtils.formatDuration for exactly one of a unit
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
2015-09-22 15:42:16 -07:00
Daniel Micay
76f6a86de2 constify JNINativeMethod function pointer tables
Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
2015-09-22 17:10:35 -04:00
Seigo Nonaka
ead8501db2 Merge "Update SuggestionsPopupWindowTest for multiple words." 2015-09-18 03:39:06 +00:00
Jeff Sharkey
8452d94064 Fix some PackageManagerTests.
Change-Id: Iba9afc731fce69fe2f310661a0bfcf6bc7432e2c
2015-09-17 10:17:47 -07:00
Seigo Nonaka
90dc849f63 Update SuggestionsPopupWindowTest for multiple words.
Bug: 15347319
Change-Id: I9bdc1b202e8174c3bdbd038535d0075d9147ee89
2015-09-17 16:52:29 +00:00
Seigo Nonaka
70125f70dc Merge "Move buildInputMethodsAndSubtypesString to InputMethodUtils" 2015-09-17 06:01:13 +00:00
Seigo Nonaka
2a099bcd6f Move buildInputMethodsAndSubtypesString to InputMethodUtils
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
2015-09-17 12:30:00 +09:00
Seigo Nonaka
f3b53ec795 Merge "Introduce getTextWidths test cases." 2015-09-17 03:17:27 +00:00
Yuchao Zhou
882898bc06 am 77ad02fc: am c95668c5: am 88daa997: am c38ffecc: Merge "Moving BTtraffic from experiment location to here" into cw-d-mr1-dev
* commit '77ad02fcc3a2bb3560f4a6a22ea558fcdfc4ff95':
  Moving BTtraffic from experiment location to here
2015-09-17 02:55:11 +00:00
Yuchao Zhou
77ad02fcc3 am c95668c5: am 88daa997: am c38ffecc: Merge "Moving BTtraffic from experiment location to here" into cw-d-mr1-dev
* commit 'c95668c5d4c3d29f8b9d1c0202415e5cbea47416':
  Moving BTtraffic from experiment location to here
2015-09-17 02:45:00 +00:00
Yuchao Zhou
88daa997fc am c38ffecc: Merge "Moving BTtraffic from experiment location to here" into cw-d-mr1-dev
* commit 'c38ffecc348687ae30c5fa2dc1761d9138b406b6':
  Moving BTtraffic from experiment location to here
2015-09-16 22:53:10 +00:00
Yuchao Zhou
2de4b74d80 Moving BTtraffic from experiment location to here
Change-Id: I1b0ec7fba87a098aa6509bd9be3f0e0ff624bf6e
2015-09-16 15:37:40 -07:00
Abodunrinwa Toki
ff5d138c33 Merge "TextViewActions for Espresso-testing TextView." 2015-09-16 18:52:42 +00:00
Abodunrinwa Toki
90cdfe0514 TextViewActions for Espresso-testing TextView.
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
2015-09-16 15:58:55 +01:00
Keisuke Kuroyanagi
4968a219bf Remove TextViewWordLimitsTest and add WordIteratorTest.
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
2015-09-14 12:57:16 -07:00
Seigo Nonaka
5532c34613 Introduce getTextWidths test cases.
This CL includes HintedAdvanceWidthTest-Regular.{ttx|ttf} for fixing
test expectation, which has hinting information.

Bug: 11256006

Change-Id: Ia79a1d093e39cd47c914395e034cb90eda51c5c0
2015-09-10 13:59:07 +09:00
Doris Liu
3991985e12 Merge "A new test for AnimatorSet's clone" 2015-09-04 22:20:22 +00:00
Alan Viverette
0ac567bf7b Remove flaky ListManagedCursorTest tests, clean up lint warnings
Also removes trailing ws.

Bug: 23811652
Change-Id: I2ae5c954606e95bcb4cfe52297717d4caf444cd0
2015-09-04 10:39:40 -04:00
Abodunrinwa Toki
cbfbf0f2bf Merge "Suppress tests in ListManagedCursorTest." 2015-09-04 14:37:09 +00:00
Abodunrinwa Toki
43d5ccca03 Suppress tests in ListManagedCursorTest.
These tests are flaky.

Bug: 23811652
Change-Id: Ic2aac3e852fbdaf3cfae54997212b976e830d121
2015-09-04 15:33:57 +01:00
Abodunrinwa Toki
396d3ca719 Merge "Suppress tests in ListManagedCursorTest." 2015-09-04 13:31:51 +00:00
Abodunrinwa Toki
191f2114ff Suppress tests in ListManagedCursorTest.
These tests are flaky.

Bug: 23811652
Change-Id: I6b61cebab9517393b6dc0a315e1589739ea50fb8
2015-09-04 14:16:40 +01:00
Abodunrinwa Toki
6ef116b168 Merge "Suppress AutoCancelTest." 2015-09-04 10:52:13 +00:00