Commit Graph

238290 Commits

Author SHA1 Message Date
Jason Monk
f306f85cae Merge "Settings dashboard performance work" into nyc-dev 2016-04-12 16:35:45 +00:00
Mady Mellor
2d2ec882c8 Merge "Fix gear not showing on left hand side of notification" into nyc-dev 2016-04-12 16:35:33 +00:00
Alan Viverette
0f0ffb0450 Merge "Default font scale is 1 if not otherwise specified" into nyc-dev 2016-04-12 16:29:28 +00:00
Adam Powell
f763ea3b05 Merge "Fix: ResolverActivity sometimes cannot update the last chosen activity" into nyc-dev 2016-04-12 16:24:36 +00:00
Diego Perez
37e16f8e3b Merge "Fix broken delegates for FontFamily and PathParser" into nyc-dev 2016-04-12 16:24:22 +00:00
Yohei Yukawa
cd1e1de4ce Merge "Make sure that Toast is always shown by Meta-Space." into nyc-dev 2016-04-12 16:22:48 +00:00
Diego Perez
a0a51b6fb6 Fix broken delegates for FontFamily and PathParser
The theme editor is throwing an exception with the last embedded
layoutlib because a missing method. Added also another missing method in
FontFamily.

Change-Id: I710ba7618df6444a3185b581cdc5dc8400f7c604
2016-04-12 17:21:00 +01:00
Yuichi Biwa
66e495e647 Fix: ResolverActivity sometimes cannot update the last chosen activity
Symptom:
Calling startActivity() with an implicit intent,
ResolverActivity displays preferred activity candidates.
At first user selects one of them as "JUST ONCE".
And next, the last one is shown again on the top with "JUST ONCE" and
"ALWAYS".

But even if user selects another ones except top with "JUST ONCE".
Next time, the last one is not shown on the top.
Instead of that, first one still remain on the top.

It means that user can't select activities as "ALWAYS"
except first one.

Root cause:
The implicit intent has a URI but not MIME type.
In this case, Intent#resolveTypeIfNeeded returns "null".
So MIME type is not passed to PackageManagerService.
That's why this issue happens.

Change-Id: I87b6da9c5d8b47e071bbedf9f7d5f3ecea730875
2016-04-12 09:18:20 -07:00
Yi Kong
0755fc6c61 Track libcore change 2115cc0ca7d60965a361129d8826478ff2d847e4
Bug: 28108421
Change-Id: I774f264bf538b0fa2aac63c8e5225f82d7b03c2e
(cherry picked from commit 5182e272ad)
(cherry picked from commit 05a77eee41)
2016-04-12 17:12:26 +01:00
Jason Monk
557c716a3a Merge "Guard against crashes from data saver listeners" into nyc-dev 2016-04-12 15:39:09 +00:00
Julia Reynolds
a20e8f314f Merge "Return everything but an autogroup summary." into nyc-dev 2016-04-12 15:33:21 +00:00
Julia Reynolds
4c4ad595dd Return everything but an autogroup summary.
Bug: 28132467
Change-Id: I9a6df6d3e876af00a9ef6fc8ed702ed8342c751a
2016-04-12 11:28:48 -04:00
Chris Wren
9bb991a3bb Merge "remove special case code for groups." into nyc-dev 2016-04-12 15:25:16 +00:00
Mark Renouf
bbc98232f3 Merge "Customizes input extract edit view for Wear" into nyc-dev 2016-04-12 15:18:18 +00:00
Gustav Sennton
ce2cb7630c Merge "Add initial unit tests for WebViewUpdateService." into nyc-dev 2016-04-12 15:17:05 +00:00
Mark Renouf
91eb2651a0 Customizes input extract edit view for Wear
Provides an alternate presentation of the extract edit area
of an input method window, designed for sub 250dp width screens.

An icon is used on a round material style button in place of a text
action, providing more horizontal space for the editing area.

BUG: 28098677
(cherry picked from commit fd71a6a5d99bad5d3ab32edc328fb5b026b66215)

Change-Id: I0e559d17f78d1a48b37979a49e11ae1aad7503f4
2016-04-12 15:05:13 +00:00
Daniel Sandler
064e612779 Merge changes from topic 'vr-fixes' into nyc-dev
* changes:
  Suppress immersive mode confirmation in VR mode.
  Suppress heads-up notifications in VR mode.
2016-04-12 14:57:41 +00:00
Alan Viverette
04fd67cb8e Default font scale is 1 if not otherwise specified
Prevents the previous user's font scale from being used as the default.

Bug: 27187556
Change-Id: I51a66ddf2d6272bd74d433158db1c8cc54b45b6d
2016-04-12 10:54:04 -04:00
John Reck
d2eec0efb2 Merge "Framework-side of SurfaceView#getBitmap" into nyc-dev 2016-04-12 14:36:11 +00:00
Jason Monk
b0ae8f8209 Settings dashboard performance work
- Allow rebuilding apps not in the foreground
 - Allow rebuilding apps without a comparator
 - Initially apply current configuration so we don't immediately clear
   tile cache

Change-Id: I8d57f7e8f7fa119915bf6fdc8ece8bee976edbdc
Fixes: 26541310
2016-04-12 10:30:43 -04:00
Chris Wren
8ab776cd90 remove special case code for groups.
Once all the platforms as special, none of them will be.

Bug: 26919636
Change-Id: I70eb05126184feb2af310e71f0ffd82ab9dcebc6
2016-04-12 09:31:17 -04:00
Gustav Sennton
53b78241ff Add initial unit tests for WebViewUpdateService.
The logic in the WebViewUpdateService is now more complex and there
are lots of edge cases that should be tested to make sure we don't
regress anything.

Also refrain from running fallback logic on boot if fallback logic not
enabled (bug found through a failing test, yeeah buddy!).

Catch uncaught MissingWebViewException (very timing-dependent!) and add
test for this.

Add tests for:
Some package setups (single package, non-default vs. default packages,
    valid vs. invalid packages).
Ensure correct error codes used
Switching provider through settings-method
Switching provider through adding more prioritized provider
Switching provider in the middle of already running webview preparation
Ensure fallback logic is run when enabled and not run when disabled (at
    boot, packageStateChanged, and when adding a new user).

Bug: 27635535

Change-Id: I275ecb0f6129f71258da0fa053e7f7b36a675886
2016-04-12 14:25:38 +01:00
Shubham Ajmera
68b19f2778 Merge "Track libcore change 135ea6cd4f7ebe2f225351a1928d8a62bce5cb00" into nyc-dev 2016-04-12 12:23:01 +00:00
Gustav Sennton
67dd51831e Merge "Add more checks for invalid states when reading webview packages config." into nyc-dev 2016-04-12 11:43:20 +00:00
Oleksandr Peletskyi
26e3385508 Merge "Fixed cross profile usage of TextClock." into nyc-dev 2016-04-12 11:33:19 +00:00
Gustav Sennton
631de99ef9 Add more checks for invalid states when reading webview packages config.
There should be at least one available-by-default package (otherwise the
user would have to explicitly choose webview implementation before using
webview). Furthermore a fallback package should always be available by
default (otherwise it would have to be chosen by the user to be used
after being enabled).

Bug: 28014401
Change-Id: I90c300898a5be4219317d65f15878e1d421193d7
2016-04-12 11:31:14 +01:00
Andrei Stingaceanu
73c9391d9b Merge "Keyboard shortcuts: minor type change" into nyc-dev 2016-04-12 10:19:07 +00:00
Andrei Stingaceanu
9cfcafc353 Keyboard shortcuts: minor type change
Stop using Lists.newArrayList() in favor of new ArrayList().

Bug: 28014459
Change-Id: I7e00564b402f90019a89c52f70bc943f88ff75fb
2016-04-12 11:16:10 +01:00
Shubham Ajmera
a871ab1687 Track libcore change 135ea6cd4f7ebe2f225351a1928d8a62bce5cb00
Bug: 27426743
Change-Id: I4c77de05c99b811f60f2421d1f41e62c1404a4a4
2016-04-12 10:10:25 +01:00
Yohei Yukawa
b2f901ab22 Make sure that Toast is always shown by Meta-Space.
It turns out that my previous CL [1] does not always show Toast when
Meta-Space is hit multiple times in a short period.  With this CL, we
attempt to make sure that the Toast is shown every time when Meta-Space
rotates the current IME subtype.

This CL also removes a rule that we do not show Toast when the IME
window has InputMethodService.IME_VISIBLE bit as it turns out to be
confusing.  In Android N, we just provide a consistent behavior
no matter the IME window is visible or not.

 [1]: If3fe17adbffe4c1125783fc77fed3cfe78fc7933
      ebda7d7ae1

Bug: 27547054
Bug: 28127795
Change-Id: I551c51cd672dba6e7693d23cb181007f51b0de9d
2016-04-12 01:19:31 -07:00
Seigo Nonaka
b026b6a40f Merge "Fix incorrect boot time locale." into nyc-dev 2016-04-12 05:18:24 +00:00
Mihai Niță
e544d408c0 Merge "Use DisplayNameWithDialect only for some locales" into nyc-dev 2016-04-12 04:56:05 +00:00
Daichi Hirono
6b34b31059 Merge "Fix flakiness DocumentLoader#testCancelTask." into nyc-dev 2016-04-12 03:54:59 +00:00
Daichi Hirono
3edcde2953 Fix flakiness DocumentLoader#testCancelTask.
For testing, we use blockDocument and unblockDocument test mehtods to
control flow of DocumentLoader's background thread.
Previously testCancelTask may exit before the background thread goes
back from blocking, which causes InterruptedException.

Fixes: 28125289
Change-Id: Id03826733c5b6f1da66b9280838eb1d2897ed5fc
2016-04-12 12:38:03 +09:00
Mady Mellor
8ae2c55025 Fix gear not showing on left hand side of notification
This is a work around for b/28050538, casting these values to
floats should be unnecessary. Once this bug is fixed this can
be reverted.

Bug: 28029191
Change-Id: I5c3efe9e01dbac4e9f30753a88a4fe59cb13e7e7
2016-04-11 19:52:23 -07:00
Marco Nelissen
5b6fd0fc1a Merge "Add javadoc" into nyc-dev 2016-04-12 02:33:43 +00:00
Siyamed Sinir
9f986466f4 Merge "Fix Patterns.UCS_CHAR character class" into nyc-dev 2016-04-12 02:26:28 +00:00
Winson Chung
87c343cddc Merge "Updating visuals for incompatible apps." into nyc-dev 2016-04-12 01:51:06 +00:00
Winson
9b001396c2 Updating visuals for incompatible apps.
Bug: 26774190
Change-Id: I688d5dbab0305e794cad832ae92a8e5c9440737a
2016-04-11 18:48:49 -07:00
Siyamed Sinir
7903aba3ca Fix Patterns.UCS_CHAR character class
Wrap Patterns.UCS_CHAR character class with brackets. Previously CL
Ie6df818dc4d33dfee6ee54432a2231cca51ec423 broke autoLink email and URL
patterns while excluding the empty spaces.

Bug: 28020781
Change-Id: Ieb7d09cb5e544c1e7cbc1a4d665b979c65e7e773
2016-04-11 18:45:29 -07:00
Jorim Jaggi
4e9817ec87 Nuke minimum time for camera double tap gesture
When the device was sleeping, we get really really low values so
we can't use that as a filter for anti-falsing, or else the gesture
is extremely unreliable when the device was sleeping.

Bug: 26731262
Change-Id: I9b31a3d58ffc22fca31defb40c69a830cf4aa648
2016-04-12 01:38:20 +00:00
Jaewan Kim
52cb241948 Merge "PIP: Implement overlay text fade in/out" into nyc-dev 2016-04-12 01:30:26 +00:00
Tomasz Mikolajewski
fbd4b558d5 Merge "Fix selecting with touch in multi-window." into nyc-dev 2016-04-12 01:06:24 +00:00
Siyamed Sinir
4b92594857 Merge "Exclude unicode space characters from autoLink URL patterns" into nyc-dev 2016-04-12 00:35:29 +00:00
Philip P. Moltmann
75a19a6fca Merge "If a Disk goes away, remove the notifications that asks the user to format it." into nyc-dev 2016-04-12 00:06:19 +00:00
Jeff Sharkey
01a1ad511e Merge "Fix notifications that are sent for USER_ALL." into nyc-dev 2016-04-11 23:19:07 +00:00
Jeff Sharkey
012bc7bb9f Fix notifications that are sent for USER_ALL.
Also avoid creating a heavy LoadedApk object which will be cached
around in the long-lived system process.

Bug: 28116427
Change-Id: I1a5fc43e6d559a09088636b2fe4b5c76f08d3413
2016-04-11 17:18:29 -06:00
Mihai Nita
1b2e7adc88 Use DisplayNameWithDialect only for some locales
Although DisplayNameWithDialect seems to return friendlier, more
"casual" names (e.g. "American English"), the result was inconsistent,
and (at times) debatable. And since this setting affects not only
the language of the translation, but a locale, names like "Flemish"
kind of lost the whole "locale / location" idea.

So we revert to use DisplayName for all but a few selected locales
(that we verified are better with the "dialect" form).

Bug: 27704583
Change-Id: I587081da1293cccac3cdabcd188a9b8160c233ea
2016-04-11 16:13:54 -07:00
Makoto Onuki
bc20320f7f Merge "ShortcutManager: First cut of CTS" into nyc-dev 2016-04-11 23:11:41 +00:00
John Reck
10dd0585c1 Framework-side of SurfaceView#getBitmap
Bug: 27708453

Change-Id: Ie6fd7eca522d3e6549d8af587c975fd7e6053649
2016-04-11 16:00:22 -07:00