233691 Commits

Author SHA1 Message Date
Vadim Tryshev
ec018434d4 Don't show UNLOCK button when there are no users.
Alternate lock screen shows UNLOCK button in the middle of an
empty screen before any user has been created. See the screenshot
in the bug.

This fixes it. The approach is similar to the check in
KeyguardViewMediator.handleHide().

Bug: 27109342
Change-Id: I25536364b2c456d6fd55c79de7f25d2b0667e26f
2016-02-22 14:23:58 -08:00
Jorim Jaggi
7587e38992 Merge "Restrict dock sides after rotation" into nyc-dev 2016-02-22 22:07:54 +00:00
Julia Reynolds
c791e05f76 Scale volume panel with density changes.
Also remove invisible settings buttons.

Bug: 26846853
Change-Id: I15722f5705a7718a90033d24c185eb21c8c41bc9
2016-02-22 17:05:44 -05:00
Wale Ogunwale
ae846f4a15 Fixed bug with non-focusable stack activity not displaying on start.
Activity manager normally singals window manager that it is okay to
start the app transition process for an activity we are launching
during the resume process. However, the activity will not be resumed
if the activity is been launched in a non-focusable stack
(e.g. pinned stack). So, the app transtion will not start and it will
not be visible until the app transition time's out in window manager.
Activity manager now tells window manager to execute app transitions
if we are launching an activity in non-focusable stack.

Bug: 27224884
Change-Id: I35245fceb2637b927e7885b2c02daa1d55deaabb
2016-02-22 14:00:56 -08:00
Sami Tolvanen
a6e9e24be5 Support persist.sys.audit_safemode
Don't leave safe more if persist.sys.audit_safemode is set, unless the
current build date is newer than the specified value.

This allows us to keep the device in safe mode across reboots until an
OTA has been applied or user data is wiped.

Bug: 26902605
Change-Id: I781c3059ea8d4fb2f0c923e4488b1932d69678d3
(cherry picked from commit ee2b49283261f7b4518ec7c98f568f883f817c9d)
2016-02-22 14:00:01 -08:00
Jorim Jaggi
5060bd8910 Restrict dock sides after rotation
Bug: 27167078
Change-Id: If51626b75321eebc277eb2399ee753ffe489642b
2016-02-22 16:59:43 -05:00
Yohei Yukawa
5a19477ec4 Merge "Unify windowGainedFocus() and startInput()." into nyc-dev 2016-02-22 21:52:56 +00:00
Jason Monk
f12cfb75ab Fix QS battery details not updating
Bug: 26849421
Change-Id: I708d413f8a6fc67bf6d696b35f770df9a247ba09
2016-02-22 16:42:43 -05:00
Chris Craik
339fc0a1d2 Merge "Add create_trivial_array" into nyc-dev 2016-02-22 21:40:58 +00:00
Jorim Jaggi
0822a7e272 Merge "Fix leaking animation" into nyc-dev 2016-02-22 21:18:32 +00:00
Jorim Jaggi
02b74b9420 Fix leaking animation
Clear animation when destroying window surface.

Because we are not stepping in animations for windows if they don't
have a surface, we can't use it as a detached wallpaper target
animation.

When the surface was destroyed while animating,
winAnimator.mAnimating was still true, and never got false, because
we didn't call stepAnimation on the WindowAnimator anymore.

Thus, we were constantly animating, using a lot of battery (surface
flinger was constantly pushing frames) and impacting overall system
performance.

Bug: 27276043
Change-Id: I8b0943da0908c85740dc1113aedb573fb440f162
2016-02-22 16:17:46 -05:00
Anthony Hugh
1e413f5b77 Merge "Allow button events in ambient." into nyc-dev 2016-02-22 20:46:44 +00:00
Alan Viverette
379b0d45b8 Merge "Remove night mode from developer settings" into nyc-dev 2016-02-22 20:44:01 +00:00
Christopher Tate
2f36fd6fc9 Limit scheduled jobs to 100 per app
Packages that are entitled to schedule jobs on behalf of other uids
are not subject to the limit.  Also break the JobStore's monolithic
set of jobs into per-uid slices for efficiency and orthogonality.

Bug 27150350

Change-Id: I8f5f718bf200d55f9977a6fc53b7f617e7652ad9
2016-02-22 12:42:29 -08:00
Yohei Yukawa
05c25f8a3a Unify windowGainedFocus() and startInput().
This is a safe refactoring that changes nothing.

In order to improve the keyboard dismissal lags [1][2], we have used
IMMS#windowGainedFocus() as a combined event to do startInput() in
certain situations.

To make the intent of those CLs clear, this CL renames
IMMS#windowGainedFocus() to IMMS#startInputOrWindowGainedFocus().  Note
that these are @hide internal IPC protocols.  Hence this change is never
observable to application developers.

 [1] I8494cbd6e19e2ab6db03f2463d9906680dda058b
     a82ba54b0bbc3ff41f29db3998806cb45b261d58
 [2] Icb58bef75ef4bf9979f3e2ba88cea20db2e2c3fb
     7663d80f6b6fd6ca7a736c3802013a09c0abdeb9

Bug: 25373872
Change-Id: I56934f18e30d90fcdf77bcbb0c35a92a5feb1b82
2016-02-22 12:41:17 -08:00
Joe LaPenna
90776de6bb Allow button events in ambient.
See thread: "key presses & Ambient"

Bluetooth media button presses and Stem buttons were being rejected in ambient.  This change allows those keys while disabling touch events while in ambient.

BUG: 25964771
BUG: 26524301

Change-Id: I914edd447c38678a06d27677be4597c0ee384635
(cherry picked from commit 7528f57c4ddbde1c6d0a2a352bd8a1af43711013)
2016-02-22 20:39:48 +00:00
Jason Monk
15e124f2df Merge "Fix crash on QS edit immediate collapse" into nyc-dev 2016-02-22 20:34:27 +00:00
Steve McKay
2fbb40eebd Add CREATOR class to Selection.
Bug: 27236334
Change-Id: I5f50cd63b850785194fec2db3eb68e40aa7af34f
2016-02-22 12:29:37 -08:00
Jason Monk
77a2c5f56b Fix crash on QS edit immediate collapse
Bug: 27164002
Change-Id: Idd47716c08987eba14826c7b1f428c3231f9fdbd
2016-02-22 15:18:36 -05:00
Shawn Willden
272fe13331 Merge "Add option to allow key validity after fingerprint enrollment." into nyc-dev 2016-02-22 20:12:42 +00:00
Steve McKay
cddd034ca7 Merge "Move directory and roots support to own ui bots." into nyc-dev 2016-02-22 20:01:48 +00:00
Adam Lesinski
43c452eea8 Merge "DO NOT MERGE ANYWHERE: Hack to get devices booting again." into mnc-dr-dev am: d201f48687 -s ours am: ab4d629294 -s ours
am: 202fbf2c34  -s ours

* commit '202fbf2c34cee4d3b66fd26dec7f49259ef638b5':
  DO NOT MERGE ANYWHERE: Hack to get devices booting again.
2016-02-22 19:56:20 +00:00
Adam Lesinski
209d706d2b Merge "DO NOT MERGE ANYWHERE: Don\'t change screen on time on time changes" into mnc-dr-dev am: 3e439db8c8 -s ours am: 83fd156e21 -s ours
am: 5c918ee029  -s ours

* commit '5c918ee029276efe090e82086fd4089d7686e60f':
  DO NOT MERGE ANYWHERE: Don't change screen on time on time changes
2016-02-22 19:53:54 +00:00
Steve McKay
b9a20d10c9 Move directory and roots support to own ui bots.
Also...sorry, snowball, don't automatically open folders
    that are created in Files app. Only do this in DocumentsActivity.

Change-Id: I271655fd3566496eced4aaa7a44d5110233150a0
2016-02-22 11:50:34 -08:00
Adam Lesinski
202fbf2c34 Merge "DO NOT MERGE ANYWHERE: Hack to get devices booting again." into mnc-dr-dev am: d201f48687 -s ours
am: ab4d629294  -s ours

* commit 'ab4d62929412556b90f8927fb05602d2e630518c':
  DO NOT MERGE ANYWHERE: Hack to get devices booting again.
2016-02-22 19:44:19 +00:00
Adam Lesinski
5c918ee029 Merge "DO NOT MERGE ANYWHERE: Don\'t change screen on time on time changes" into mnc-dr-dev am: 3e439db8c8 -s ours
am: 83fd156e21  -s ours

* commit '83fd156e2173ff65fd8afdaca1ccd20fc91a5d33':
  DO NOT MERGE ANYWHERE: Don't change screen on time on time changes
2016-02-22 19:42:04 +00:00
Keisuke Kuroyanagi
f2629d481e Merge "Make drag shadow grapheme cluster aware." into nyc-dev 2016-02-22 19:40:13 +00:00
Keisuke Kuroyanagi
5396d7eb13 Make drag shadow grapheme cluster aware.
[start, min(end, DRAG_SHADOW_MAX_TEXT_LENGTH)) was used to make drag
shadow. It ignores grapheme cluster, so unexpected shadow was created for
characters that contain multiple code units.

Bug: 23097276
Change-Id: Ic7d34ec02ea04a3f17337e4253babac87ef3b03c
2016-02-22 19:37:26 +00:00
Toni Barzic
b799d3f127 Properly handle non split system user when showing bouncer
For system user, there should be no atempt to dismiss keyguard,
but only if system user is split (i.e. not a meat user).

Change-Id: Ia2c1e7a3e197c5be72446f21b3883e853485ff26
(cherry picked from commit aa401afb4cdfd5bab441e633aee801c2a127aec2)
2016-02-22 19:32:15 +00:00
Toni Barzic
a2ab1d6932 Merge "Try to dismiss Keyguard bypassing bouncer only for active users" into nyc-dev 2016-02-22 19:31:52 +00:00
Adam Lesinski
ab4d629294 Merge "DO NOT MERGE ANYWHERE: Hack to get devices booting again." into mnc-dr-dev
am: d201f48687  -s ours

* commit 'd201f486871e825e713ae0df2f2f01e3dfff94d8':
  DO NOT MERGE ANYWHERE: Hack to get devices booting again.
2016-02-22 19:31:32 +00:00
Adam Lesinski
83fd156e21 Merge "DO NOT MERGE ANYWHERE: Don\'t change screen on time on time changes" into mnc-dr-dev
am: 3e439db8c8  -s ours

* commit '3e439db8c829023645a54eee4cd531928bccb03d':
  DO NOT MERGE ANYWHERE: Don't change screen on time on time changes
2016-02-22 19:27:18 +00:00
Tao Bao
9de7952aa9 Merge "Add support for update-on-boot feature." into nyc-dev 2016-02-22 19:24:25 +00:00
Youngsang Cho
ffd4c73a29 Merge "PIP: Rename closeInternal to closePipInternal" into nyc-dev 2016-02-22 19:22:32 +00:00
Youngsang Cho
336007ba71 PIP: Rename closeInternal to closePipInternal
Change-Id: I6e1e98a1a75728d057a7dee3edbd2f2a6f32112d
2016-02-22 11:17:29 -08:00
pkanwar
e64afb84be Changing string in notification when data is blocked.
b/25209821

Change-Id: I8b0a4614c7052a1203f5d225e1977c7e358a0dbc
2016-02-22 11:17:19 -08:00
Felipe Leme
ab9a9b09fd Merge "Removed bugreport intents from protected list." into nyc-dev 2016-02-22 19:17:08 +00:00
Chad Brubaker
62df07eee1 Merge "Use provided context directly" into nyc-dev 2016-02-22 19:11:51 +00:00
Chad Brubaker
7879b8f4ab Use provided context directly
getApplicationContext may return null so use the provided context
instead.

Bug:27293859
Change-Id: Ic3b218bf5b0c23982c75a793f0374870bd8e9da1
2016-02-22 11:08:59 -08:00
Youngsang Cho
d78bf970ca Merge "Close PIP when PIP activity is finished" into nyc-dev 2016-02-22 19:04:29 +00:00
Felipe Leme
66d7588078 Removed bugreport intents from protected list.
These intents are send by Shell, which is not a protected uid, and
already required the android.permission.DUMP permission, hence they are
protected by permission.

BUG: 27287868
Change-Id: Ie7cfe20a119e8abe989186ca2e0ae16454b4cf22
2016-02-22 11:04:03 -08:00
Youngsang Cho
23df699451 Close PIP when PIP activity is finished
Bug: 26717072
Change-Id: I5dd431b0ee64ca152bd49013bb6bbb3e8d9fba71
2016-02-22 11:03:00 -08:00
Alan Viverette
a2a859932d Remove night mode from developer settings
It's in SysUI Tuner now.

Change-Id: Id8fbce5462fc0a317c56f70ab2dbb2ffc004ffeb
2016-02-22 14:02:17 -05:00
Felipe Leme
c657f3d0ba Merge "Improved OpenExternalDirectoryActivity so it returns right away when an app already has the requested permission." into nyc-dev 2016-02-22 18:55:22 +00:00
Mady Mellor
e03688068f Merge "Fix crash when clearing all notifications" into nyc-dev 2016-02-22 18:54:40 +00:00
Adam Lesinski
d201f48687 Merge "DO NOT MERGE ANYWHERE: Hack to get devices booting again." into mnc-dr-dev 2016-02-22 18:47:13 +00:00
Adam Lesinski
3e439db8c8 Merge "DO NOT MERGE ANYWHERE: Don't change screen on time on time changes" into mnc-dr-dev 2016-02-22 18:47:03 +00:00
Mady Mellor
3cb40246f1 Fix crash when clearing all notifications
Bug: 27284789
2016-02-22 10:43:35 -08:00
Toni Barzic
657f88516a Try to dismiss Keyguard bypassing bouncer only for active users
Some bouncers might allow showing keyguards for users that are not
currently active (e.g. before any user is signed in, in which case the
system user is active). Make sure that keyguard is not dismissed
without showing bouncer in these cases.

Change-Id: I0e037b2d4e095d49c1f0d06a9fe1b9a6233421b0
(cherry picked from commit aa69fd417f32435d7d7c06f8d033efa7fa21475a)
2016-02-22 18:39:22 +00:00
Tony Mak
eb83ab52b2 Update javadoc of DISALLOW_OUTGOING_CALLS
It is no longer true that we always forward the intent to personal side
after the introcution of work dialer.

Change-Id: I07b247c15d366278a07afab76b23c9d8847b01ef
2016-02-22 18:36:08 +00:00