16910 Commits

Author SHA1 Message Date
Jorim Jaggi
304e377227 Merge "Fix wrong mode for fingerprint unlock when bouncer not showing" into mnc-dr-dev 2015-09-02 20:43:04 +00:00
Jorim Jaggi
bf04cf51e6 Fix wrong mode for fingerprint unlock when bouncer not showing
Bug: 23748205
Change-Id: I4c751fcbb99d1f409a1433309e795addf1a2232c
2015-09-02 11:53:02 -07:00
Tim Kilbourn
7cd6aaafda am ee72f99d: Merge "Allow shell to disable keyguard when not secure" into mnc-dev
* commit 'ee72f99dd14c8e531cd1a114d162a49636e7b809':
  Allow shell to disable keyguard when not secure
2015-09-02 17:40:36 +00:00
Tim Kilbourn
ee72f99dd1 Merge "Allow shell to disable keyguard when not secure" into mnc-dev 2015-09-02 17:28:08 +00:00
Selim Cinek
2af5010a67 am 36a75d6a: Merge "Fixed a crash in the notification group manager" into mnc-dev
* commit '36a75d6aefcddb91df7d513292d346f1f51ec702':
  Fixed a crash in the notification group manager
2015-09-02 00:54:32 +00:00
Selim Cinek
0b4aeab281 Fixed a crash in the notification group manager
When 2 notifications were posted as the summary of the same
group, then the system would eventually crash.

Bug: 23676310
Change-Id: Ia8f95e624f3f43d1b55169dd8102e3c89427dc76
2015-09-02 00:10:45 +00:00
Selim Cinek
146dc26511 am 9a2d5742: Merge "Fixed when the notification effects are being cleared" into mnc-dev
* commit '9a2d5742bd11c2a7a583d53b1ef1ad12d75e239e':
  Fixed when the notification effects are being cleared
2015-09-01 23:33:50 +00:00
Jim Miller
c467bd641f Fix broken enter key after failed PIN attempts.
Fixes bug 23699953

Change-Id: Id099443b830f5608c0bf955075c3407b401f3d53
2015-09-01 15:21:55 -07:00
Tim Kilbourn
bba73a038e Allow shell to disable keyguard when not secure
Bug: 22694837
Change-Id: I0f08048f617d064017468f331a5c6875ab27174b
2015-09-01 14:21:09 -07:00
Zhentao Sun
363c694a44 Merge "Don't launch the camera if it already in foreground." into mnc-dr-dev 2015-09-01 00:40:39 +00:00
Jorim Jaggi
3a46478508 Add a private API to get notified about lockout resets
SystemUI uses it to start authentication again after lockout reset
expired.

Bug: 22846755
Change-Id: I90a987c6aa4ac52cc7e7aff1bce262d1db3f12ee
2015-09-01 00:37:54 +00:00
Selim Cinek
6577cae496 Fixed when the notification effects are being cleared
Previously the notification effects were not correctly cleared in certain
cases and the user could end up in a state where the notification light would
always blink.

Bug: 22931139
Change-Id: I9a71e56cf4479354a9d773b5b6f0edd7693f2b05
2015-08-31 23:24:28 +00:00
Adrian Roos
781953123e Merge "Disable fingerprint after force lock" into mnc-dr-dev 2015-08-31 20:04:46 +00:00
Geoff Mendal
469fa94613 Import translations. DO NOT MERGE
Change-Id: I770ccd06cea0e57fa92434a33e4e183d79010921
Auto-generated-cl: translation import
2015-08-29 08:37:22 -07:00
Zhentao Sun
04f974082e Don't launch the camera if it already in foreground.
b/23431496. This change will not launch the Intent if the target app of
this Intent is already running in the foreground.

Change-Id: Ic8c99cf3312a2ead12dbdb94825181aed934e9f0
2015-08-28 17:43:46 -07:00
Adrian Roos
0cb50efdc2 Disable fingerprint after force lock
Bug: 23275072
Change-Id: Icaeffaa1fa22a4a800ddf0f38105099557c74317
2015-08-28 23:54:43 +00:00
Selim Cinek
e774bdd6f0 Merge "Added animation for trusted to fingerprint error" into mnc-dr-dev 2015-08-28 23:09:19 +00:00
Jorim Jaggi
acace94c17 Fix race condition by guarding callbacks
Bug: 23587553
Change-Id: Ia71760013f3acbb5aeb4e30bb716683c9c672742
2015-08-28 22:08:03 +00:00
Jorim Jaggi
b774e554f3 Optimize fp touch to wake: Shortcut for report next draw
When telling window manager that Keyguard window is in the correct
state for a fp-touch-to-wake sequence, it takes more than 1 frame at
the moment because the signal that WM is waiting for the next draw
is delayed by one frame because it is posted at the end of the
runnable queue.

To correctly fix this, we should post it at the beginning at the
queue, but this is way too risky this late. Instead, add a isolated
SysUI hack to report it faster.

Bug: 23401557
Change-Id: Icf64101e27611c7c01d108123021b22186f1e70c
2015-08-28 20:07:35 +00:00
Jeff Sharkey
71f1579190 am d88152b4: Merge "Give shell permission to move apps." into mnc-dev
* commit 'd88152b4d910fa5e79908dcb6f14cd56ad03b21a':
  Give shell permission to move apps.
2015-08-28 19:36:31 +00:00
Selim Cinek
c384198529 Added animation for trusted to fingerprint error
Bug: 21781452
Change-Id: Ib3b229c9ebece926a68a0c6a69341d0f68166698
2015-08-28 11:51:46 -07:00
Jeff Sharkey
e515c6495d Give shell permission to move apps.
Also clear identity when measuring ASEC sizes to relax a second
permission requirement.

Bug: 23600574
Change-Id: Ib3a104426758e0e8f35dff0e504fe874bed7311f
2015-08-28 11:50:22 -07:00
Adrian Roos
16d7245b64 Merge "Prevent Fingerprint when SIM is locked" into mnc-dr-dev 2015-08-27 18:06:44 +00:00
Jim Miller
dfb8cca04d Merge "Don't check the keyguard PIN a second time" into mnc-dr-dev 2015-08-27 02:44:18 +00:00
Jim Miller
ed7dcc2dc5 Don't check the keyguard PIN a second time
If you tap the enter key twice on the keyguard PIN entry
screen, the second tap can sometimes register because keyguard
hasn't been dismissed yet.  The fix is to ignore a second attempt
after the PIN has already been verified.

Fixes bug 19216025

Change-Id: I73a004e91e43f3da65ec84f90de6943e717d737f
2015-08-26 18:17:37 -07:00
Adrian Roos
733b663cc2 Prevent Fingerprint when SIM is locked
Bug: 23214670
Change-Id: I8192ded696c1908871b2578194e2a226bb51b1e9
2015-08-26 16:38:28 -07:00
Nicholas Sauer
59af87c2b6 am 7c17ec5f: Merge "Add GET_APP_OPS_STATS to Shell" into mnc-dev
* commit '7c17ec5fa5cb51d12713016622e4b5a939c8bb76':
  Add GET_APP_OPS_STATS to Shell
2015-08-26 18:25:26 +00:00
Selim Cinek
e67268e66d Merge "Migrate camera vibration to the systemUI" into mnc-dr-dev 2015-08-26 18:25:07 +00:00
Nicholas Sauer
7c17ec5fa5 Merge "Add GET_APP_OPS_STATS to Shell" into mnc-dev 2015-08-26 18:17:03 +00:00
Selim Cinek
a07177f0ad Merge "Launching the camera now from systemUI including animations" into mnc-dr-dev 2015-08-26 17:20:50 +00:00
Selim Cinek
69ff8afcee Migrate camera vibration to the systemUI
Also make sure the device is awake before vibrating.

Bug: 23200352
Change-Id: I63d04a82a4b8d9fa3e8f9deff5dd71295c82c930
2015-08-26 10:12:19 -07:00
Selim Cinek
372d1bdd54 Launching the camera now from systemUI including animations
The GestureLaunchService now informs systemUI that a launch
has been requested and the systemUI, depending on its state
will launch the Camera in the correct mode, including
animations.

Bug: 22957192
Bug: 22958025
Change-Id: I815437c8bd33638245ac61a750f64af74fe3e1e3
2015-08-26 10:12:06 -07:00
Raph Levien
f03c090f3e am 8304c6c0: Merge "Truncate and ellipsize app name if too long for dialog." into mnc-dev
* commit '8304c6c0f9d4b8624ab9cf5cfe5dce15db64c4de':
  Truncate and ellipsize app name if too long for dialog.
2015-08-25 23:35:37 +00:00
Jorim Jaggi
e30e8980a1 Merge "Disable RT animations for header ripple" into mnc-dr-dev 2015-08-25 22:54:34 +00:00
Michael Wright
58950a9476 Truncate and ellipsize app name if too long for dialog.
If the given app name is too long for the permissions dialog, then
it can push the warning that the application will be able to record
the screen below the fold, letting the app basically set its own
dialog message in a way that a user would be difficult to detect as
fraudulant.

Bug: 23345192
Change-Id: If5881ca75d5c155ef5174351d245dbc3abdaa584
2015-08-25 23:12:34 +01:00
Nicholas Sauer
1344cb9b1b Add GET_APP_OPS_STATS to Shell
bug: 23397072
Change-Id: I9f60f175380048e0f3888d866069f8f76166c732
2015-08-25 08:47:50 -07:00
Jorim Jaggi
2cb7004928 Scale notifications on lockscreen for 420 dpi devices
Bug: 23299488
Change-Id: Ied4505532aad41a3a1469efce2464a491661fb6c
2015-08-25 04:56:43 +00:00
Jorim Jaggi
d94d3a2aa5 Fix issues with light status bar and fp wake-and-unlock
- When wake-and-unlocking, make sure to skip the light status bar
transition.
- Fix race condition with window manager when unlocking when device
is interactive for supplying the timings for the light status bar
transition.
- Fix media artwork when wake-and-unlocking while pulsing.

Bug: 23365544
Change-Id: I209ca1e6684811f5f313354ca1614a0ebd49388c
2015-08-24 21:49:49 +00:00
Jorim Jaggi
4351111bbb Merge "Fix jank when clicking on HUN" into mnc-dr-dev 2015-08-22 01:10:17 +00:00
Jorim Jaggi
b7303a36ba Disable RT animations for header ripple
Bug: 22208997
Change-Id: I10a890d4f8f70c7c786940ffdb86cf4d21bdaf05
2015-08-21 15:21:12 -07:00
Adrian Roos
1de8bcb1e5 Invoke strong auth callback and default strong auth expired to true
Split off from I0af11da1b7cd7c8d837bc5ba3a62ef2ffca74b1b.

The initial value did not matter previously because
a SystemUI crash triggered the boot logic and forced
a manual entry before fingerprint works.

Long term the timeout logic should be moved to StrongAuthTracker
so it can be shared with the trust agent implementation (currently
implemented by the trust agents themeselfes)

Bug: 22846469
Bug: 22115393
Change-Id: I0af11da1b7cd7c8d837bc5ba3a62ef2ffca74b1b
2015-08-21 13:28:01 -07:00
Adrian Roos
b5e4722891 Add StrongAuthTracker
Bug: 22846469
Bug: 22115393
Change-Id: I6ef5322d02e540fc043e7f20d3aabf595ce7c224
2015-08-21 13:28:00 -07:00
Jorim Jaggi
5eb67c2248 Fix jank when clicking on HUN
There is jank at the beginning of the transition when the heads-up
disappears when clicking, because a lot of stuff is going on. In
order to make it consistent with other notification clicks in the
shade, introduce a delay for the disappear animation.

Bug: 23365512
Change-Id: Ib7c5db552d6803f96374198c2af38cf8236769cd
2015-08-21 12:43:40 -07:00
Jorim Jaggi
ab45a217b0 Make wake-and-unlock faster
- Scrims: When dismissing Keyguard, don't wait until the next frame
to start the animation. Saves 16ms
- Scrims: Skip first frame, because it's completely black anyways.
Saves 16ms.
- Don't wait with navigation bar to show until the screen has turned
on. Window manager is blocked on DisplayPowerController anyways, so
the animation will exactly be started when the screen turns on. Fixes
some jank as well.
- Window manager: Don't wait for the window below Keyguard for draw
completion until turning on screen. Saves a lot of time depending on
how the app is behaving.

Bug: 23401557
Change-Id: I9734f9a12143f0e3c0647e9aa066831a29a6de63
2015-08-21 19:29:30 +00:00
Jorim Jaggi
86bed40605 Fix fingerprint listening state race conditions
When calling cancel() on the cancellation signal, it doesn't happen
immediately. Now, because of a state messup during boot, we go
through the sequence

startListeningForFingerprint
stopListeningForFingerprint
startListeningForFingerprint

However, the cancellation callback from stopListeningForFingeprint
happened AFTER the second startListeningForFingerprint, so we assumed
that fingerprint detection was not running anymore but in reality it
was - leading to weird states and all kinds of small state messups.

Introduce a state machine to track when we we called cancel but
waiting for the confirmation of FingerprintService in order to track
this properly.

Bug: 23380500
Change-Id: I403479fb749cf7c22b73611b69698e8b771777d0
2015-08-21 19:29:05 +00:00
Mitchell Wills
b460cc8886 Merge "Remove wifi enabled checking from settings TetherUtil" into mnc-dr-dev 2015-08-20 16:58:02 +00:00
Jorim Jaggi
1fa7384a10 Merge changes Ie8264c4d,Ic83ac0f1 into mnc-dr-dev
* changes:
  Fix jank in wake-and-unlock while pulsing
  Don't call authenticate immediately after getting valid fingerprint
2015-08-20 02:18:20 +00:00
Jorim Jaggi
37c1180060 Don't animate in the navigation bar when going to full shade
Fixes some jank.

Bug: 22537253
Change-Id: Ia816fea6274e38cc2b18e2f28008b3a8341d37f7
2015-08-20 01:33:18 +00:00
Jorim Jaggi
909788500b Fix jank in wake-and-unlock while pulsing
- Don't hide keyguard after the animation is done, because this
would cause a measure in the middle of the fade animation.
- Don't use a layer for the notification panel in this case - we
don't need it and it only adds latency.
- Speed up the whole thing a bit because the animation is now
smoother.

Bug: 23225107
Change-Id: Ie8264c4d0e62bd6a78227e04b9900b4348ddd649
2015-08-19 17:14:08 -07:00
Jorim Jaggi
71448a7003 Don't call authenticate immediately after getting valid fingerprint
After gettin a callback onAuthenticationSucceded we set the
fingerprint listening state to false. However, when waking up, we
immediately started listening again because the state was false.
Protect against that by only calling authenticate only once, except
when the unlock doesn't go through because unlocking with fingerprint
is not allowed.

Also fixes some animation "jank" because of the state messup.

Bug: 23304421
Change-Id: Ic83ac0f1590dd4f8017bb55dca9e19a60cfdf99f
2015-08-19 17:06:29 -07:00