229725 Commits

Author SHA1 Message Date
Michael Wright
9b974bf25b Merge "Make sure NaturalSurfaceLayout is consistent with SurfaceControl" am: 6fa9c5cd01
am: 35bdda107f

* commit '35bdda107fe76ab62087527946b201551ddfe965':
  Animate backlight quickly when display state request to change or power mode changed
  Make sure NaturalSurfaceLayout is consistent with SurfaceControl
2016-01-13 18:57:49 +00:00
Keisuke Kuroyanagi
3bb115ba5c Tests for getPrimaryHorizontal with grapheme boundaries
am: a5c53291a8

* commit 'a5c53291a8123fa0296c849fe153a7dcf79b4dda':
  Tests for getPrimaryHorizontal with grapheme boundaries
2016-01-13 18:57:42 +00:00
Alan Viverette
7a66ba9ddb Merge "Clean up lint warnings in popup menu presenter classes" 2016-01-13 18:56:24 +00:00
Kenny Root
5be30a6d49 Merge "Track changes in libcore" am: a15ef2abab
am: 5defc912cd

* commit '5defc912cd2d8f15d03226b901ffc43db9f2d39e':
  Track changes in libcore
2016-01-13 18:53:10 +00:00
Alan Viverette
61a8fa83ff Merge branch 'master' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base 2016-01-13 18:51:40 +00:00
Alan Viverette
03d50e4855 Merge "Avoid drawable invalidation during draw()" into mnc-dr1.5-dev am: cf6885b7b7 am: c783ebc13a
am: ea2e422c23

* commit 'ea2e422c2381298b67f3ce81d01b454e85dbe269':
  Avoid drawable invalidation during draw()
2016-01-13 18:51:02 +00:00
Chris Craik
8e77ff5eff Merge "Disable buildLayer crash" 2016-01-13 18:50:56 +00:00
Keisuke Kuroyanagi
a5c53291a8 Tests for getPrimaryHorizontal with grapheme boundaries
Bug: 25375561
Change-Id: I022473627499d7f18105e3a300754fae5be7da8e
2016-01-13 18:50:43 +00:00
Alan Viverette
beb0978401 Merge "Handle null result from getVirtualChildAt()" into mnc-dr1.5-dev am: d9434699e4 am: 9c0890ea4b
am: 19150f05c4

* commit '19150f05c4c3b4b73175edc764fbd64fe6988197':
  Handle null result from getVirtualChildAt()
2016-01-13 18:47:59 +00:00
Jason Monk
5bdfd8c126 Get data type from service state as well am: 67b2c16a9a am: 05130f3f23
am: 8ced692e44

* commit '8ced692e445526a74d51391f2c7c30bd43322d46':
  Get data type from service state as well
2016-01-13 18:46:13 +00:00
Chong Zhang
7d5f510e6c Launch non-resizeable task with fullscreen bounds in docked stack.
This case could happen in real world if a non-resizeable activity opens
another activity (eg. Messenger app opens an activity to write up the
message). Need to make sure the new activity is not resized.

Change-Id: I222985fa7ee2cbd94c843ac1190239cce31d3c0c
2016-01-13 10:40:59 -08:00
Alan Viverette
02cd0f9105 Clean up lint warnings in popup menu presenter classes
Change-Id: I6b4cce1c4788b408615af0c93575e02e75b4c3ca
2016-01-13 13:33:17 -05:00
Steve McKay
f3b34603de Merge "Stop listening root change events when the activity is destroyed." 2016-01-13 18:21:08 +00:00
Dongwon Kang
ab064b3b36 Merge "Add a way for SystemUI to receive media resource (e.g. A/V codec) usage" 2016-01-13 18:21:00 +00:00
Clara Bayarri
4fce66668e Merge "Request Keyboard Shortcuts for SysUI Dialog via Window" 2016-01-13 18:06:38 +00:00
Jae Seo
1365602813 Merge "TIF: Fix typos" 2016-01-13 17:50:19 +00:00
Robert Sesek
81d867f5db Merge "Add external services, a way to run isolated processes as a different package." 2016-01-13 17:23:36 +00:00
Geoff Mendal
61f8f5d6a7 Merge "Import translations. DO NOT MERGE" 2016-01-13 17:05:42 +00:00
Clara Bayarri
75e097965c Request Keyboard Shortcuts for SysUI Dialog via Window
Keyboard shortcuts are requested via WindowManager, and
the request pipes through to the view root and the window
callback.

Bug: 22405482
Change-Id: Ic0071e91c7b554be3ac9df71e9539ee8a60e822e
2016-01-13 16:56:56 +00:00
Geoff Mendal
76cc58e19c Import translations. DO NOT MERGE
Change-Id: I02b0f5198801a8c8f836a123d15bd1dd8e2caf52
Auto-generated-cl: translation import
2016-01-13 17:56:52 +01:00
Alan Viverette
5190f1737f Apply menu callbacks to existing Toolbar menu view
Bug: 25872174
Change-Id: I44f4fad27e5e48a8ecdf0c63e135fbf566517cea
2016-01-13 11:20:26 -05:00
Jason Monk
a5abf80104 Merge "Make QS only have one Host and Tiles" 2016-01-13 15:58:42 +00:00
Adrian Roos
dc5b453516 Scroll to RemoteInputView
Scrolls to the RemoteInputView when it's beneath the IME.
Also fixes ViewRootImpl to take into account translation
when calculating the location of the focused rect.

Bug: 22452379
Change-Id: I9b9649edeabf9bcab8fc487fe92dec62f388737e
2016-01-13 15:40:42 +00:00
Chet Haase
f83464ed0a Make Animation.cancel() actually work
Cancel() has apparently never worked. Calling cancel() results
in the startTime being set to Long.MIN_VALUE. In theory, this means that
on the next animation frame (getTransformation()), the elapsed time
(currentTime - startTime) should result in a large positive number, which
is way more than needed to prove that the elapsed fraction is >1 and
therefore that the animation has ended. But in practice, anything subtracting
MIN_VALUE will result in a large negative number due to Long wraparound, so the
end check fails and the animation continues. Forever.

Moreover, event fixing the cancel issue results in a repeating animation
continuing to repeat, because the logic was never there to determine whether
a repeating animation was canceled.

This fix addresses both issues, but in a minimal way. The risk in fixing this
for real is changing the behavior of cancel in a way that existing apps would not
expect. For example, it's weird that cancel causes one more frame to run. And even weirder
that it does so with a negative elapsed duration (resulting in an animation fraction of 0).
But I wouldn't want to change that behavior for fear that I'd break apps who rely on
that weird behavior.

Instead, there's a simple check for for the "expired" check and the "repeat?" check that
sees whether the startTime has the magic value of MIN_VALUE, which should only happen
when an animation has been canceled. If this is the case, it ensures that the animation ends.
For real.

Issue #24984018 canceled animation runs forever

Change-Id: Ia137eb04bd7df3976a4d9cef86fd39a78dc56f39
2016-01-13 07:37:29 -08:00
Derek Sollenberger
613e5a0ee6 Merge "CreateLightingFilter is now on SkColorMatrixFilter" 2016-01-13 15:34:57 +00:00
Alan Viverette
8a77da8626 Merge "Apply tick mark tint during view construction" 2016-01-13 15:16:11 +00:00
Alan Viverette
d154a5bb8d Apply tick mark tint during view construction
...otherwise it never gets applied.

Change-Id: I06991b3cedcf3dcfb8e98ae61e3d679c35b68839
2016-01-13 10:10:22 -05:00
Mike Reed
8ee246b4c7 CreateLightingFilter is now on SkColorMatrixFilter
Change-Id: Ic53071aa5dc618ce1a72c531180d18304c7e522a
2016-01-13 14:35:45 +00:00
Alan Treadway
fd53d56e38 Merge "Add extra to control USER_SETUP_COMPLETE behavior." 2016-01-13 14:07:38 +00:00
Clara Bayarri
25a2c21360 Merge "Fix missing MANAGE_USER error on calls to isDeviceSecure" 2016-01-13 14:04:20 +00:00
Geoff Mendal
57072d09c8 Merge "Import translations. DO NOT MERGE" 2016-01-13 13:58:38 +00:00
Geoff Mendal
5378a5bf3a Merge "Import translations. DO NOT MERGE" 2016-01-13 13:58:06 +00:00
Geoff Mendal
4da11f31c3 Import translations. DO NOT MERGE
Change-Id: If349d6b1bd99c61e78a7076d4c7b506abb7c9ac0
Auto-generated-cl: translation import
2016-01-13 05:55:54 -08:00
Geoff Mendal
be84a1b1e6 Import translations. DO NOT MERGE
Change-Id: I81cf6e3ce955937cc57289a59ffb794e75f72d20
Auto-generated-cl: translation import
2016-01-13 05:52:37 -08:00
Geoff Mendal
0cfb11063d Merge "Import translations. DO NOT MERGE" 2016-01-13 13:43:16 +00:00
Geoff Mendal
3e3a451f79 Import translations. DO NOT MERGE
Change-Id: I488d48ed5a95fb2764dd2129fc512fa1c2db5fdb
Auto-generated-cl: translation import
2016-01-13 05:37:19 -08:00
Clara Bayarri
8d35de8445 Fix missing MANAGE_USER error on calls to isDeviceSecure
A poorly placed clear identity was causing some crashes as
apps were required to have the MANAGE_USERS permission to
query if the current user is secured.

Change-Id: I1120b1e4405e78389fcbcb3e7d1dba8c80500da3
2016-01-13 13:21:03 +00:00
Geoff Mendal
899a711591 Merge "Import translations. DO NOT MERGE" 2016-01-13 13:15:14 +00:00
Adrian Roos
acc11c0701 Improve bouncer restart prompt message
Bug: 26325366
Change-Id: I21ce92b763417f8f9cef571ceab840db71224bb7
2016-01-13 13:06:39 +00:00
Geoff Mendal
e1161b06d1 Import translations. DO NOT MERGE
Change-Id: I7e6b5a16f8f7c7835fb85abf4453ef979b2cfb2e
Auto-generated-cl: translation import
2016-01-13 05:06:28 -08:00
Alan Treadway
94de8c890c Add extra to control USER_SETUP_COMPLETE behavior.
For split-user cases it has been identified that provisioning
a profile-owner during user setup-wizard shouldn't cause
the setup-wizard to exit early generally. Adding this extra
allows a DPC to control whether the user can take further steps
in the setup-wizard after management provisioning completes.

Adding as a hidden extra since we don't expect this to be useful
until after N release.

Bug: 25858670
Change-Id: I599a5df4aef659769a6323402efe078d0d12d2ed
2016-01-13 12:49:23 +00:00
Clara Bayarri
a1771110d6 Create Work Challenge per-user condition
Change the current static condition to a per-user condition so we
can check and enable/disable the work challenge properly. Also add
an isAllowed API, as the Work Challenge can only be used when the
user's DPC targets N or above to maintain backwards compatibility.

Change-Id: I0cb8b475838816801868ffb24726407aa257b4de
2016-01-13 10:27:12 +00:00
Keisuke Kuroyanagi
2d12690d70 Merge "TextView: Offer suggestions in context menu." 2016-01-13 08:02:00 +00:00
Jae Seo
2a2b299dca TIF: Fix typos
Change-Id: I82f7fc68840d9fcdc579fc451e9d295c04512083
2016-01-12 23:13:14 -08:00
Jaewan Kim
a1dcb87565 Merge "Revive volume up/down long press in TV" 2016-01-13 04:58:46 +00:00
Jaewan Kim
765487f929 Revive volume up/down long press in TV
PhoneWindowManager.interceptKeyBeforeQueuing isn't good place
to handle long press because rejecting a down event will not
synthesize further key repeat.

Move the logic to PhoneWindowManager.interceptKeyBeforeDispatching
instead.

This is the regression caused by following CL
001c59c Route volume keys directly to the audio system on TVs

Bug: 26268032
Change-Id: Ic8f6dfaec473c0d45ffa42475763622dc700e635
2016-01-13 13:55:46 +09:00
Daichi Hirono
da19ee00a3 Stop listening root change events when the activity is destroyed.
BUG=26454244

Change-Id: I4be98f21843d6d501dd9c6fc343e905e107fc1c1
2016-01-13 13:19:02 +09:00
Chris Craik
3145247b3e Disable buildLayer crash
Change-Id: Ia51e8da01d5c694fb1a084cea8dfce865c56a456
2016-01-12 18:55:15 -08:00
Chris Craik
860c7669fe Merge "Fix the build" 2016-01-13 02:27:29 +00:00
Chris Craik
48cb62018c Fix the build
Change-Id: I11aaa6dabdc3998155ee7f1ee58083bb88f19aad
2016-01-12 18:26:55 -08:00