1688 Commits

Author SHA1 Message Date
Selim Cinek
a05719a278 Merge changes If7c3a55e,I68dcba41,Ib96a15da into nyc-mr1-dev
* changes:
  Fixed a bug where the dimmed background could be invisible
  Fixed an issue where the inline controls where not usable
  Added Emergency affordance feature
2016-09-23 21:51:22 +00:00
Michal Karpinski
6f81529e28 Fingerprint Strong auth timeout am: 0b72a722ed
am: 369672b8bb

Change-Id: Id152e63ba4b378ea10787198c3f6cd58d2f07495
2016-09-23 07:13:34 +00:00
Selim Cinek
705442fa7d Added Emergency affordance feature
Added a service that listens whether emergency affordances
are necessary.

If the they are needed, it adds an option to the
global actions dialog that directly launches the
emergency call and also adds a long-press listener
to the keyguard emergency button.

Test: adb shell settings put global force_emergency_affordance 1 && adb shell settings put global emergency_affordance_number 111112
Fixes: 30404490
Change-Id: Ib96a15da2ef4b568a8d77140ebca6aa6f20f5ddb
2016-09-22 12:25:57 -07:00
Michal Karpinski
0b72a722ed Fingerprint Strong auth timeout
Allows PO and DO configure strong auth timeout for fingerprint.

Bug: 31430135
Change-Id: Ie6451d49aa95527adc3720d9a2a0848f58940510
(cherry picked from commit 8f010dd25d18151cc47accc7d853b4f8f7fe8491)
2016-09-15 12:01:26 +00:00
Michal Karpinski
4a134a93d2 Merge "Fingerprint Strong auth timeout" 2016-09-15 07:46:07 +00:00
Selim Cinek
9e60c1f55b Escalate HeadsUp when dreaming starts am: 994153944e am: 0234c7f164
am: 205e105306

Change-Id: Id3fc653d2ee1f01b732aea352c36d3fd63937ab4
2016-09-14 18:15:33 +00:00
Selim Cinek
205e105306 Escalate HeadsUp when dreaming starts am: 994153944e
am: 0234c7f164

Change-Id: I5678a8b1c7e5bd536095b5f9b32d4bd1ebfeed79
2016-09-13 02:21:10 +00:00
Selim Cinek
994153944e Escalate HeadsUp when dreaming starts
1. When dreaming starts before locking, notifications can remain
pinned. This is because the device is locked without
screen off, and HeadsUp are not escalated.
As a result is the pinned heads up shown behind the bouncer
when unlocking.
In this case touchable bound is limited to headsup bounds,
so the user can't unlock at all.

2. Escalate HeadsUp when bar state changes to KEYGUARD

3. This also fixed a bug where the bouncer isn't touchable
When device is occluded and locked, HeadsUp can appear.
If the user then clicks on the HeadsUp and try to send
pending intent, Bouncer can be shown without expanding
panel.

Bug:30820511
Change-Id: I8604c9d00d839d773b32d8b913dfdcd2ed72f1dd
2016-09-12 16:41:54 -07:00
Sudheer Shanka
2c4522cc1b Add usermanager related perf tests - part2
- Add onLockedBootComplete callback to UserSwitchObserver.

Bug: 30948225
Test: adb shell am instrument -e class android.multiuser.UserLifecycleTest -w com.android.perftests.multiuser/android.support.test.runner.AndroidJUnitRunner
Change-Id: I87533094805a81fbd85d4f492e637b3304ecd5e2
2016-09-08 13:30:34 -07:00
Jorim Jaggi
5f6baf891d Fix slow PIN dismiss animation am: 6bd3890ff9 am: 2db2153719
am: 90e224bda9

Change-Id: Iea4072a619d6a7ba058da0bd2e8c01d323f29fd1
2016-09-07 21:48:34 +00:00
Jorim Jaggi
90e224bda9 Fix slow PIN dismiss animation am: 6bd3890ff9
am: 2db2153719

Change-Id: I49c639a9a6fee09f9a3361e1a91f57b492e060cb
2016-09-07 21:41:56 +00:00
Jorim Jaggi
6bd3890ff9 Fix slow PIN dismiss animation
We need to do the slow dismissal when the user is locked, and not the
other way around.

Bug: 31203310
Change-Id: I6ad0fc831bd9dc26e7375916a0a091552f7790ae
2016-09-06 15:27:56 -07:00
Muyuan Li
af69525d7b resolve merge conflicts of 1dfb41c to master
Change-Id: If389fa5e9139005766e694bc83ec6a07c025da1b
2016-09-05 19:53:52 -07:00
Jorim Jaggi
1dfb41cc83 Only do slow unlock transition if real home is not running am: 031f79560f
am: eb2d50dd0d

Change-Id: Ia00cfe414741f8a1898266fb8bdc528dae77c288
2016-09-04 01:52:19 +00:00
Michal Karpinski
8f010dd25d Fingerprint Strong auth timeout
Allows PO and DO configure strong auth timeout for fingerprint.

Bug: 29825955
Change-Id: Ie6451d49aa95527adc3720d9a2a0848f58940510
2016-09-02 15:42:27 +01:00
Jorim Jaggi
031f79560f Only do slow unlock transition if real home is not running
Test: Tested the first unlock on both FDE and non-FDE device.

Change-Id: Ibfbb9d67fb83456acd7b12bbe2d03a961a998ba9
Fixes: 31203310
2016-09-01 16:57:25 -07:00
Jorim Jaggi
6fb0e52b85 Fix a flicker when returning to the lockscreen am: d11d1a9486 am: afaf4ac7a9
am: 9322632f6a

Change-Id: I9cd7ead4caa2843e3063d55ea357e9e989c72f0e
2016-08-18 00:17:02 +00:00
Jorim Jaggi
9322632f6a Fix a flicker when returning to the lockscreen am: d11d1a9486
am: afaf4ac7a9

Change-Id: I26eb19aba2c68fea5faa82bf1e41286b8999bf4a
2016-08-17 18:54:20 +00:00
Jorim Jaggi
d11d1a9486 Fix a flicker when returning to the lockscreen
If we return to the lockscreen from a FLAG_SHOW_WHEN_LOCKED activity,
there was an additional black flicker as the wallpaper wasn't shown
for a couple of frames. The issue is that we didn't set the wallpaper
flag again, to fix another flicker with lockscreen wallpapers. Now,
we pass the state whether we currently have a lockscreen wallpaper
and if we don't have one, we immediately set the wallpaper flag
again.

Bug: 30829255
Bug: 30883413
Change-Id: I9faeaa77b98eb02058171ce19cf90b43826ebe9e
2016-08-17 18:10:54 +00:00
Yohei Yukawa
a78d446d2e Fix a race to detemine IME switcher visibilityde am: 982a94c5e3 am: 28c87d5d3b
am: ed56804385

Change-Id: I89e2f79edf8a8213117f7cb46a2c0438ae6ca874
2016-08-12 18:13:21 +00:00
Yohei Yukawa
ed56804385 Fix a race to detemine IME switcher visibilityde am: 982a94c5e3
am: 28c87d5d3b

Change-Id: I2dd8354b3addeb9f989e8df73ab5edfefe91fbac
2016-08-12 18:05:00 +00:00
Yohei Yukawa
28c87d5d3b Fix a race to detemine IME switcher visibilityde
am: 982a94c5e3

Change-Id: I03f2a9377a72d9c9e826bf4bffd81a85b90eca83
2016-08-12 17:50:05 +00:00
Yohei Yukawa
41941689b7 Merge "Fix a race to detemine IME switcher visibilityde" into nyc-mr1-dev 2016-08-12 17:43:43 +00:00
Bill Yi
cf9a807e7e Import translations. DO NOT MERGE
Change-Id: I27949ecc8590b8c00ddac9c45000e34c11205a29
Auto-generated-cl: translation import
2016-08-12 00:13:54 -07:00
Yohei Yukawa
982a94c5e3 Fix a race to detemine IME switcher visibilityde
When the current user is switching to a user who requires password to
unlock, there is a chance that InputMethodManagerService has not
completed InputMethodManagerService#onSwitchUser() when the keyguard is
calling InputMethodManager#getEnabledInputMethodList() to detemine
whether the IME switcher icon should be shown or not.  If this occurs,
and if the previous user enables only one IME but the new user enables
multiple IMEs, it's possible that the IME switcher icon is not shown
when it should be.  Although the user is still able to work around this
by switch back to the previous user then the current user again until
the icon shows up, or can rely on a way to switch to next
IME (e.g. globe key) if it's available, the lack of the IME switcher
is still concerning since it can prevent the user from unlocking the
device.

As a quick workaround for this situation, this CL introduces a delayed
task to re-evaluate if we need to show the IME switcher icon on the
keyguard or not (currently the delay is set to 500msec) until this race
condition is fundamentally fixed.

Bug: 30640917
Change-Id: I93ea71d73540c31fbbe1cc4bd6747871f957dcc6
2016-08-11 19:16:02 -07:00
Bill Yi
d8702e86b0 Merge "Import translations. DO NOT MERGE" 2016-08-11 03:07:49 +00:00
Adrian Roos
367e0761c5 Only disable trust agents after lockout am: 9d6fc9246b am: 73b2f5981e
am: bbf52f2e85

Change-Id: I4606854b24313cc8231aaa0ce3ea33ea909f68b0
2016-08-11 02:51:07 +00:00
Adrian Roos
bbf52f2e85 Only disable trust agents after lockout am: 9d6fc9246b
am: 73b2f5981e

Change-Id: Idec9662345a8ed9f75605d1b5dd39f04ef488389
2016-08-11 02:44:42 +00:00
Adrian Roos
73b2f5981e Only disable trust agents after lockout
am: 9d6fc9246b

Change-Id: I1fd7860a5a2c452e4b3c2e3e8d1073c423c9f054
2016-08-11 02:38:45 +00:00
Adrian Roos
9d6fc9246b Only disable trust agents after lockout
Previously trust agents would be disabled even after one
wrong attempt. Now we wait for the cooldown (usually 5 attempts),
the same as fingerprint.

Also adds a TrustArchive entry of when device policy changes are sent to
trust agents.

Bug: 30037948
Change-Id: I9e284d994ddae45ef66b5b8b601297c63d8ba667
2016-08-10 18:01:32 -07:00
Bill Yi
e9a44ea7f2 Import translations. DO NOT MERGE
Change-Id: I1db6d455d32ed7da2858b91378b44324cbed4d04
Auto-generated-cl: translation import
2016-08-10 14:15:10 -07:00
Bill Yi
10540d5a5e Import translations. DO NOT MERGE
Change-Id: Iaefc1628f743935d0969a9e353388b587dcf244c
Auto-generated-cl: translation import
2016-08-10 08:43:23 -07:00
Jim Miller
391a1019e3 Bind fingerprint when we start authentication am: 837fa7e56d am: 3871272fc6
am: 1b3261902d

Change-Id: I0d974f25f0565b3d2724db4ac78a007324cd5f8a
2016-08-10 00:12:22 +00:00
Jim Miller
1b3261902d Bind fingerprint when we start authentication am: 837fa7e56d
am: 3871272fc6

Change-Id: I950703c466265ec5e164f6e75772800745579d34
2016-08-10 00:06:16 +00:00
Jim Miller
3871272fc6 Bind fingerprint when we start authentication
am: 837fa7e56d

Change-Id: Id2e84b60102653598e6d459e83835739b57ef404
2016-08-09 23:58:11 +00:00
TreeHugger Robot
e11059694a Merge "Bind fingerprint when we start authentication" into nyc-mr1-dev 2016-08-09 23:50:41 +00:00
Jim Miller
837fa7e56d Bind fingerprint when we start authentication
This fixes a bug where it was possible to authenticate the wrong user.
We now bind the userId when we start authentication and confirm it when
authentication completes.

Fixes bug 30744668

Change-Id: I346d92c301414ed81e11fa9c171584c7ae4341c2
2016-08-08 20:16:22 -07:00
Evan Rosky
c837e4bc0d Merge changes Idfd40156,Ic903fc25
* changes:
  Make user-switch transitions customizable
  Add support for custom user-switch UI
2016-08-08 21:33:03 +00:00
Selim Cinek
06510c5072 Removed contentDescriptions that hindered accessibility usability am: d871f95f49 am: dafed80e62
am: a73a9769b0

Change-Id: I336854c8ed054260c6ee2d4899d3595020d37178
2016-08-08 21:05:59 +00:00
Selim Cinek
a73a9769b0 Removed contentDescriptions that hindered accessibility usability am: d871f95f49
am: dafed80e62

Change-Id: Ic0d7c57ab495318c3318b0f1827cde4c86e8e3d2
2016-08-08 19:42:16 +00:00
Selim Cinek
dafed80e62 Removed contentDescriptions that hindered accessibility usability
am: d871f95f49

Change-Id: I53bc3cfc98f749d0675b6893e2ccf247cc7cbdad
2016-08-08 19:31:28 +00:00
Selim Cinek
5a3e33a82a Merge changes Idc4c2c14,Ibea016c6,I49ab58c3,Id911d405,I0f17dc5f, ... into nyc-mr1-dev
* changes:
  Improved the transition when clicking on the last notification
  Fixed a bug that could lead to an empty notification
  Removed contentDescriptions that hindered accessibility usability
  Fixes a bug where setting a null bigLargeIcon would not clear it
  Fixed the transition of the background of the notifications
  Fixed a bug where the notification would fade out in a ugly way
2016-08-08 19:18:33 +00:00
Evan Rosky
1839645126 Add support for custom user-switch UI
Given config_customUserSwitchUi, AM/UserController will not show any
UI during user-switch (no dialog or screen-freeze).

Provides a mechanism (WM.setSwitchingUser) by which a custom user-switch
UI can notify WM/Keyguard when it expects a user-switch operation to
be running.

Bug: 29329555
Change-Id: Ic903fc251d7ec3a54bc6a77906d3afa45a6a5fac
2016-08-08 10:22:25 -07:00
Selim Cinek
d871f95f49 Removed contentDescriptions that hindered accessibility usability
This lead to a whole area being accessibilityfocusable even though
it shouldn't have been.

Change-Id: I49ab58c3da768930576880d8793b2fe2657a0aa8
Fixes: 30315141
2016-08-04 18:12:25 -07:00
Bill Yi
9ca2d0e626 Import translations. DO NOT MERGE
Change-Id: I8e5cc9b6d0a477dba3a567a027f4ebdda2621496
Auto-generated-cl: translation import
2016-08-03 21:52:21 -07:00
Selim Cinek
de549a5102 Improved vibration feedback completely am: 0fc298ffc7 am: de55d281c0
am: 99831520c5

Change-Id: Ie8e385bb628cb4e3a9e8d8aa2475cc8a5d007dc7
2016-08-03 20:16:10 +00:00
Selim Cinek
99831520c5 Improved vibration feedback completely am: 0fc298ffc7
am: de55d281c0

Change-Id: I6aeb82701087c050c296b37df202350040259169
2016-08-03 01:11:30 +00:00
Selim Cinek
de55d281c0 Improved vibration feedback completely
am: 0fc298ffc7

Change-Id: I9c6c7dc7bf1e330092f572dd7fde97b86851bf1b
2016-08-03 01:03:14 +00:00
TreeHugger Robot
c9682ab5b5 Merge "Improved vibration feedback completely" into nyc-mr1-dev 2016-08-03 00:57:53 +00:00
Selim Cinek
0fc298ffc7 Improved vibration feedback completely
Certain paths were still vibrating at the wrong time.

Change-Id: I660a84efa798a8c1198d8899584ecec48ff2e9d8
Fixes: 30000347
2016-08-02 15:58:45 -07:00