237499 Commits

Author SHA1 Message Date
Aga Wronska
d42a9bed93 Make Metrics.logKeyboardAction() method take @KeyboardAction type
instead of KeyEvent

Change-Id: Ib9a19532612b679141b6d611e448247d3b0bab23

Fixing: b/27942360
2016-04-04 14:07:27 -07:00
Gustav Sennton
ab3b6b1258 Provide command to change WebView implementation.
Add a shell command for switching webview implementation so that this
can be done automatically - without interacting with a Dev Setting.

Bug: 27540566
Change-Id: I3c4acaa1b8f4ba24c637ef8a1d48cc7b2616bd91
2016-04-04 20:46:50 +00:00
Ruchi Kandoi
a68fe1e4d3 Merge "PowerManager: Adds isSustainedPerformanceModeSupported()" into nyc-dev 2016-04-04 20:42:12 +00:00
Chris Craik
136d1af1cc Fix how outlines are sent to rendernode
bug:27918183

Fixes an issue where all convex outlines were pushed as empty rects to
RenderNode.

Also adds outline/reveal clip property logging, so such issues are
easier to debug in the future.

Change-Id: Ic4a996ecd09a8ef84cdf8b963bdb4853c7f6d180
2016-04-04 13:40:39 -07:00
Jorim Jaggi
bcff1431dd Move docked stack to the side in landscape instead of clip
Bug: 27154882
Bug: 27972642
Change-Id: Ie170571e356199bfbde014c80d670fd238825828
2016-04-04 20:31:04 +00:00
Jorim Jaggi
e1d4361497 Fix screen rotation animation
Bug: 25019187
Change-Id: I65b5a76147b93e081466035bfc3cce0c9473610e
2016-04-04 20:30:26 +00:00
Derek Sollenberger
c6418c04ab Merge "Cleanup addtional files that were missed in the first purge of AvoidXfermode" into nyc-dev 2016-04-04 20:26:28 +00:00
Rob Carr
817ef323c7 Merge "Ensure we leave space between layers in docked stack." into nyc-dev 2016-04-04 20:24:29 +00:00
Bo Liu
2f1eb93354 Merge "Expose setDrawGLFunctionDetachedCallback to webview" into nyc-dev 2016-04-04 20:20:10 +00:00
Gustav Sennton
7182d98777 Merge "Move more code from WebViewUpdateService to separate overridable class" into nyc-dev 2016-04-04 20:19:56 +00:00
Makoto Onuki
24b74150fb Merge "ShortcutManager: More command for CTS, more tests.." into nyc-dev 2016-04-04 20:03:22 +00:00
Mady Mellor
dc6c97df48 Fix slow dismiss animation
An accelerated interpolator is used for dismissing when the
the velocity = 0 which can occur with dismiss all or if the
noti is swiped far enough but not fast enough.

There is no duration specified when the noti is swiped far
enough, and the velocity passed in is 0 so the default
duration is used without taking into account the velocity.

This CL alters the code to pass in the velocity so that a
duration is calculated.

Bug: 27864379
Change-Id: Ifac04bb8d1b714c040102fef035d55737c844157
2016-04-04 12:53:49 -07:00
Eric Laurent
d7a267de78 MediaActionSound: fix SoundPool load race condition
If play() was called shortly after load() and before the load
completion callback, the sample was considered
loaded although the SoundPool was not ready to play it.

Fixed by implementing a more robust state machine for sound
load and play control.

Bug: 22499793
Change-Id: I727e07f842a0adc5225dc248f16bc4a7225a1c8e
2016-04-04 12:53:01 -07:00
Adam Lesinski
3524a23edb AAPT2: Add option to add JavaDoc annotations to Java classes
Change-Id: I7ee8c20cdd91380927a65c41097ffd3a6ffa2df5
2016-04-04 12:42:05 -07:00
Eino-Ville Talvala
68a5811711 Merge "Camera: Allow preview operation of SCENE_MODE_HDR" into nyc-dev 2016-04-04 19:38:53 +00:00
Eino-Ville Talvala
ecfbb0a1bb Merge "Camera: Add proper buffer drop errors to LEGACY mode" into nyc-dev 2016-04-04 19:38:10 +00:00
Jason Monk
23c60f6736 Merge "Add app attribution to QS editing" into nyc-dev 2016-04-04 19:28:51 +00:00
Ruchi Kandoi
b4aa2e9c37 PowerManager: Adds isSustainedPerformanceModeSupported()
isSustainedPerformanceModeSupported() returns true if the device
supports the mode. It checks for the boolean config
"config_sustainedPerformanceModeSupported" to be set.

Bug: 22864186
Change-Id: I0f9f0bcbb8c02b19f37e9c87570d88e8f78f7992
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-04-04 19:25:23 +00:00
Anna Galusza
cd1e9ad83c Merge "Fix bug where service disabled with disableSelf() would not reset soft keyboard behavior. Bug: 27947344" into nyc-dev 2016-04-04 19:19:32 +00:00
Mady Mellor
4666cbd506 Fix showing gear behind notification when RTL language selected
Need to alter the translation to place the view when in RTL.

Bug: 27596418
2016-04-04 12:08:56 -07:00
Derek Sollenberger
93ab281e1c Cleanup addtional files that were missed in the first purge of AvoidXfermode
bug: 14650725
Change-Id: Ib7fb6a31705fb60535ecf2017db321c15e3d06cc
2016-04-04 14:49:51 -04:00
Robert Carr
063988c40c Properly handle DimLayers which become fullscreen.
If a DimLayer becomes fullscreen while it is animating out,
then it will not be the shared fullscreen dim layer. However,
state.continueDimming will be false (as we are ending the Dim),
so around DimLayerController.cpp L191 we will identify it as
fullscreen, skip animating it for now, and not set fullScreenAndDimming
to the index (because continueDimming is false). fullScreenAndDimming
will be -1 so we will now animate the dimmer at index "fullscreen"
this will simply be the last fullscreen state we found, which would be
fine if the state we had skipped was the shared fullscreen dim layer,
but it wasn't. Ensure that we identify the layer as fullscreen and the
shared fullscreen dim layer.

Bug: 27775427
Change-Id: I49d4f59bb09af6a7e5bd666e499be1c7e11ee766
2016-04-04 18:36:19 +00:00
Rob Carr
84e69c3bbb Merge changes I7d406cc8,Id6cf70ea into nyc-dev
* changes:
  Do not set docked divider as IME target.
  Fix IME adjustment for docked.
2016-04-04 18:34:39 +00:00
Robert Carr
6412d755f4 Ensure we leave space between layers in docked stack.
We need to leave space WINDOW_LAYER_MULTIPLIER between Z-order
adjacent normal windows, for things such as Dim Layers, etc. The
existing logic was breaking DIM_UNDER DimLayers in DockedStack. Consider
two normal windows, the second on top and with a DIM_UNDER. If we are
docked we will have restacked all the docked windows at HighestLayer+1
HighestLayer+2, etc...and so our second normal window is only one higher
than our first one. So when we put a dim under the second window
we end up with the same layer and the output is undefined.

Bug: 27721903
Change-Id: Ic27e0a10da2d1ab4a6058e0755ad4409b29527eb
2016-04-04 11:26:22 -07:00
Makoto Onuki
ac21497f17 ShortcutManager: More command for CTS, more tests..
and fix flakey tests.

Bug 27548047

Change-Id: Ia5f189278f6111850277ca16aa747469f48c5f14
2016-04-04 11:02:06 -07:00
Yohei Yukawa
3942978af2 Merge "Show toast when subtype is rotated by Meta-Space." into nyc-dev 2016-04-04 17:56:36 +00:00
Eino-Ville Talvala
c7c569d5e4 Camera: Allow preview operation of SCENE_MODE_HDR
Some devices support HDR output for preview in addition to still
capture, so explicitly allow for that in the documentation of
SCENE_MODE_HDR.

Bug: 27313038
Change-Id: I894d7449dc0cfb7353f535db23acd12143590208
2016-04-04 10:48:38 -07:00
Chong Zhang
ebdb34d67a Merge "Never "save" if the surface control is null." into nyc-dev 2016-04-04 17:31:06 +00:00
Chong Zhang
133b07a0a7 Merge "Fix missing exit animation when app is closed during starting window" into nyc-dev 2016-04-04 17:30:52 +00:00
Yohei Yukawa
ebda7d7ae1 Show toast when subtype is rotated by Meta-Space.
This follows up to my previous CL [1], with which we changed global
hardware key combinations regarding how multilingual user can manage
multiple keyboard layouts / input methods.  Now we offer Meta-Space to
rotate input method (subtype), while we offered Shift-Space to rotate
hardware keyboard layouts previously.

One thing that is lost during above transition is an indication when the
such a key combination takes effect.  Actually there was a toast that
shows new keyboard layout name, which is now lost.

With this CL, we bring back a toast so that we can show the new input
method (subtype) name. Note that the toast will be shown if all of the
following conditions are met.
 - The input method (subtype) is rotated by a hardware key combination.
 - IME window does not have IME_VISIBLE bit.  Otherwise, showing a toast
   is likely to cause UI overlap with the current IME's window.

  [1]: I4005692215edfcf8bed3e86b1e07000148f986f5
       ae61f7118a92e097e854c840d5726c0920f5db0e

Bug: 27547054
Change-Id: If3fe17adbffe4c1125783fc77fed3cfe78fc7933
2016-04-04 17:30:12 +00:00
Yohei Yukawa
40358e4362 Merge "Fix a bug that IMS#mShowInputFlags is never updated." into nyc-dev 2016-04-04 17:29:03 +00:00
Eino-Ville Talvala
385f9e2146 Camera: Add proper buffer drop errors to LEGACY mode
The correct stream ID is required to be sent along with buffer drop
errors, and LEGACY mode was putting in a placeholder.  This would
cause an error in the client-side implementation, triggered by
abortBuffers (Which is the only source of buffer drops from LEGACY).

Bug: 27828602
Change-Id: If3fba7a76f7aa0ff305efa4cce6c225eb720b30e
2016-04-04 10:28:20 -07:00
Yang Ni
4a70df58a3 Avoid destroying Device separately
Bug: 27983025

Device should be destroyed inside the destructor of the associated
Context.

Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5
2016-04-04 10:23:57 -07:00
Robert Shih
5bf198c380 Merge "Fix MediaExtractor.getDrmInitData implementation for webm" into nyc-dev 2016-04-04 17:09:45 +00:00
Anna Galusza
8a12f640fc Fix bug where service disabled with disableSelf() would not reset soft keyboard
behavior.
Bug: 27947344

Change-Id: I19583cad14616416be3582c30653d244a27aa366
2016-04-04 09:59:27 -07:00
Phil Weaver
7eb716c0f4 Merge "Make a11y text navigation by page symmetric." into nyc-dev 2016-04-04 16:37:05 +00:00
Phil Weaver
2bf5f20a2b Merge "Support SET_TEXT for editable text views." into nyc-dev 2016-04-04 16:36:35 +00:00
Phil Weaver
d4a1932608 Merge "Add accessibility window title and anchor." into nyc-dev 2016-04-04 16:36:01 +00:00
Phil Weaver
5af3084049 Merge "Remove docs for removed a11y gesture methods." into nyc-dev 2016-04-04 16:34:27 +00:00
Jason Monk
0b349adcd8 Add app attribution to QS editing
Add a divider between where system tiles and custom tiles are and
add their app label to them as well.

Change-Id: I8890a7fee54e4c5340bbe95c6e100c58f81ee5c3
Fixes: 27874624
2016-04-04 11:18:03 -04:00
Wonsik Kim
e8c5480ba6 Merge "Don't try to compress .mkv resources" into nyc-dev 2016-04-04 14:46:10 +00:00
Todd Kennedy
6dffdf8285 Merge "Fix intent filter priorities" into nyc-dev 2016-04-04 14:20:17 +00:00
Gustav Sennton
065b7e6ef5 Move more code from WebViewUpdateService to separate overridable class
Move more code from WebViewUpdateService to utility classes (methods
handling settings and uninstalling/enabling/disabling packages) to be
overridden during tests.

Also rename system utility class.

Bug: 27635535

Change-Id: If49999fba4fd0962f103f389898fa5ddf19365bd
2016-04-04 14:47:46 +01:00
Diego Perez
18e7e10f67 Merge "Update Path and RenderNode delegates to new API" into nyc-dev 2016-04-04 12:22:21 +00:00
Yi Kong
faec9eb76c Merge "Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787 (part 2)" into nyc-dev 2016-04-04 11:57:32 +00:00
Yi Kong
876f7df346 Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787 (part 2)
Bug: 27960078
Change-Id: I74709bc8a2543ceb54ad3cf2c3018f175ff20e24
(cherry picked from commit c2a708596ff37cb01499a8a5a82af038baa85463)
2016-04-04 11:55:16 +00:00
Yi Kong
6a196372ae Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787
Bug: 27960078
Change-Id: If89390ad1ddc3088a8552107bf27a51b1d3c6d02
(cherry picked from commit 2513fc3b7eb3a8b668fcf280cc8ed45bd20e1893)
2016-04-04 11:55:05 +00:00
Diego Perez
8f43dfef2b Update Path and RenderNode delegates to new API
RenderNode_Delegate nCreate now takes a reference to this. In the
Path_Delegate, the native_offset call with a destination path has been
removed.

Change-Id: I6332bb4733974b817e8a29eab82e2218fcf942c4
2016-04-04 10:18:55 +01:00
Martijn Coenen
23c8292acc Merge "Grant NFC tag app default permissions." into nyc-dev 2016-04-04 08:05:16 +00:00
Sungsoo Lim
16bbf7d8ed Merge "MediaBrowser: Make EXTRA_PAGE zero-based" into nyc-dev 2016-04-04 06:56:13 +00:00