Commit Graph

1669 Commits

Author SHA1 Message Date
Sudheer Shanka
dc589ac82b Update usage of ActivityManagerNative.
- Remove references to ActivityManagerProxy.
- Add isSystemReady to ActivityManager.

Bug: 30977067
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts
      adb shell am instrument -e class com.android.server.am.ActivityManagerTest,com.android.server.am.TaskStackChangedListenerTest \
          -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I07390b6124fb1515821f5c0b37baf6ae74adc8fa
2016-11-14 11:27:12 -08:00
Tamas Berghammer
383db5ebcc Update package names to work with the proto3 compiler
Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
2016-11-08 14:06:09 +00:00
Jorim Jaggi
8d78693157 The big keyguard transition refactor (6/n)
Cleanup:
- Make sure all the state is nicely dumped.
- Remove some unused stuff.
- Fix a flicker when occluded -> unlocked

Bug: 32057734
Change-Id: Id87e26adccef740d608b325c2dc1f6db14dd4ec3
2016-11-01 15:36:40 -07:00
Adrian Roos
154b9ee638 Fix broken KeyguardMessageArea
Fixes a bug where the keyguard message area would reorder clears
after a new message was set, leading to the bouncer prompt reason
not showing.

Change-Id: I33001300d9175c521809cd4fdae5158269245c00
Fixes: 32306174
Test: runtest -x $T/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/KeyguardMessageAreaTest.java
2016-10-21 16:48:55 +00:00
Adrian Roos
2ec2019f00 Merge "Keyguard: Clean up security message display" 2016-10-17 18:32:59 +00:00
Adrian Roos
db327e9f59 Keyguard: Clean up security message display
- Remove timinig out of messages. This is no longer
  necessary because we do not show the owner and charging
  info in that area anymore.
- Remove the "important" parameter, which was equivalent to
  clearing the message if false.

Change-Id: I5fae5432724ad90a68f53f678f933c4a15dc6e9b
Fixes: 28270749
Test: manual; reboot device, swipe up, verify message doesn't disappear after 5s
2016-10-17 18:31:49 +00:00
Bill Yi
21f5d2e0ef Import translations. DO NOT MERGE
Change-Id: Iff8f9a53e2dbe6d1df00304e4301accecbff8cf1
Auto-generated-cl: translation import
2016-10-13 22:11:56 -07:00
Jorim Jaggi
96a153a3f1 Don't output latency if it wasn't started
Test: Make sure you don't get double latency output for a single
action.
Fixes: 32085767

Change-Id: I7f57f974737ce21e8513688a8d5fbf80a1f0571b
2016-10-13 11:44:07 +00:00
Jorim Jaggi
1edc4ac74f Merge "More latency tests (1/2)" 2016-10-10 11:50:39 +00:00
Jorim Jaggi
b1ce491d78 Merge changes from topic 'latency_pin'
* changes:
  Unlock latency improvements
  Add latency tracking for checking PIN (1/2)
2016-10-10 11:48:06 +00:00
Edward Savage-Jones
8d6f73f644 Merge "Make PIN/password failed attempts dialog non-cancelable" am: 708543b5ff am: d94cc68123 am: 05efd16c46
am: e6f8904cd1

Change-Id: I99478a82c9b9db6147836e6e3ad053f2d767f9a7
2016-10-08 21:21:51 +00:00
Jorim Jaggi
c3fe204780 More latency tests (1/2)
- Move latency fake actions into a central location, LatencyTester
- Add latency test for screen turning on

Change-Id: I8aa3f475d56a4ee7a36b97bd6ece32e60c5851cd
2016-10-07 18:54:21 +02:00
Jorim Jaggi
ed3032b6b8 Unlock latency improvements
- Make sure the latency also gets tracked on first unlocked in
which we cancel the AsyncTask.
- Also add it for pattern authentication

Change-Id: Ie1561264b0a3b75c09819ccc6d269e61e367e1be
2016-10-07 17:26:59 +02:00
Jorim Jaggi
d05651790a Add latency tracking for checking PIN (1/2)
Also move tags to Keyguard as we need it in Keyguard.

Change-Id: I718581cb4081830da1c3a2f4ad9b9f0ec6f09ae5
2016-10-07 16:18:00 +02:00
Jorim Jaggi
90f6279f42 Merge commit '2a30b7600992d136f63b26aa28204e8e97730e10' into HEAD
Change-Id: Ibcd5bab971c82a551623d226e4490b39d32fa8c0
2016-10-07 15:16:07 +02:00
Edward Savage-Jones
e6f8904cd1 Merge "Make PIN/password failed attempts dialog non-cancelable" am: 708543b5ff am: d94cc68123
am: 05efd16c46

Change-Id: Ife64f5db81028f665101d434cd6345ed8dac2d7c
2016-10-07 11:29:51 +00:00
Edward Savage-Jones
05efd16c46 Merge "Make PIN/password failed attempts dialog non-cancelable" am: 708543b5ff
am: d94cc68123

Change-Id: I69df9317467dc48fdd0c39081fcd5a9e65d72cc1
2016-10-07 11:21:55 +00:00
Jorim Jaggi
2a30b76009 Reload state when user unlocks am: dadafd4109
am: 1ad950823b

Change-Id: I26b1826986ccba9d0c7fc1a6adb6f9118795557a
2016-10-06 20:51:08 +00:00
Edward Savage-Jones
b08a146617 Make PIN/password failed attempts dialog non-cancelable
This commit makes it harder for a users pocket to trigger an MDM
remote wipe, by setting the warning dialog to noncancelable.

With this change the pocket would first need to tap on OK before
being able to attempt to enter a PIN. This mirrors the existing
behaviour of both PIN and PUK warning dialogs.

Test: manual - enable an MDM set to trigger a wipe of the device/user
on unsucessful unlock attempts. Then incorrectly enter your PIN until
the warning dialog appears.  The dialog should only be dismissable
by pressing the 'OK' button.

Change-Id: I4d86af555a5d8b226ceffa4711bd5e277db93f1e
2016-10-05 16:55:24 +02:00
Bill Yi
e96e0bde19 Import translations. DO NOT MERGE
Change-Id: I47e511a867d00c2f40499a79961eb7dc6ba3cc45
Auto-generated-cl: translation import
2016-10-03 18:33:35 -07:00
Jorim Jaggi
dadafd4109 Reload state when user unlocks
Test: Unlock freshly booted non-FBE device, make sure the transition
is fast as well as the icons have the correct state

Change-Id: I6427427d16edeceb0f410be0b88de601a3dffdb4
Fixes: 31203310
2016-10-03 05:56:47 -07:00
Bill Yi
24749794c7 Import translations. DO NOT MERGE
Change-Id: I0ec7888e60f776d7ceeb2082e0ff79d650a3eb37
Auto-generated-cl: translation import
2016-09-26 17:01:46 -07:00
Adrian Roos
8740e37939 Show PLMN on CryptKeeper am: 316bf54484 am: 3b09d5028c
am: 8249ef437c

Change-Id: Ifaa93b7d4772c46ecb4a301606f29acc2aa8139e
2016-09-26 09:30:25 +00:00
Selim Cinek
2cae5760c6 Added Emergency affordance feature am: 705442fa7d am: 0e1f78da65
am: 10691456b8

Change-Id: Ieb3a0da5d5693a186c92ab1c21ba189558207ae3
2016-09-26 08:46:30 +00:00
Adrian Roos
8249ef437c Show PLMN on CryptKeeper am: 316bf54484
am: 3b09d5028c

Change-Id: Ide966f8d1c3f9ebe639000aa007532514387ec54
2016-09-24 02:12:28 +00:00
Adrian Roos
3b09d5028c Show PLMN on CryptKeeper
am: 316bf54484

Change-Id: Ia1e078cca8e29aa0f36b46daf74ce91ec1a90f48
2016-09-24 02:07:38 +00:00
TreeHugger Robot
c3fddb984c Merge "Show PLMN on CryptKeeper" into nyc-mr1-dev 2016-09-24 01:58:55 +00:00
Sudheer Shanka
42ed497416 Merge "Add usermanager related perf tests - part2" 2016-09-24 01:12:01 +00:00
Adrian Roos
316bf54484 Show PLMN on CryptKeeper
Also shows the state only once radio is enabled.

Fixes: 30301831
Change-Id: Iaf3b96c3622e20d8ada6e1f6391d6065101fb281
2016-09-23 17:28:38 -07:00
Selim Cinek
10691456b8 Added Emergency affordance feature am: 705442fa7d
am: 0e1f78da65

Change-Id: I6f8220b18bce7889e3b9efe1b075a680a0ae7187
2016-09-23 22:12:33 +00:00
Selim Cinek
0e1f78da65 Added Emergency affordance feature
am: 705442fa7d

Change-Id: I03ebb84119f9cb310882ba9ea90ee1e1d7118d03
2016-09-23 22:00:42 +00:00
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 8f010dd25d)
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