Commit Graph

15461 Commits

Author SHA1 Message Date
Adrian Roos
127dcbcf07 HIC: Improve AccelerationClassifier
am: 6b312a09fc

Change-Id: Ic0e0db4d8c0cdd507352b18904fb5fb0747168e9
2016-08-19 22:28:08 +00:00
Adrian Roos
6b312a09fc HIC: Improve AccelerationClassifier
Apply a bunch of improvements to the acceleration classifier:

- When dragging from the edges, we get some delay without
  movement between the DOWN and MOVE, which confounds the
  classifier. Now discounts data segments where the delay
  does not match the expected 16ms.
- The distance ratio did not compensate for differences
  in sampling. If it does it's equivalent to the speed
  ratio however. The distance ratio was removed and the
  impact of the speed ratio score doubled.
- If we cannot calculate the ratio, no longer penalize
  the traces for this.

Bug: 27405075
Change-Id: I067eb4d478593afbb20354e5c85a05353e2b4184
2016-08-19 13:38:02 -07:00
Jorim Jaggi
afaf4ac7a9 Fix a flicker when returning to the lockscreen
am: d11d1a9486

Change-Id: Ia0b617be2bb00db24115f04f362cd072d59ebe71
2016-08-17 18:28:59 +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
Selim Cinek
a9d3efd194 Fixed the animation of the no notifications view
The view was also animating when the shade wasn't expanded.

Change-Id: If235db60230525dda17c5df0681beec2ab01a79e
Fixes: 30880548
2016-08-16 21:46:47 +00:00
TreeHugger Robot
e68228fbd9 Merge "Fixed a bug where the summary could become visible even if it was suppressed" into nyc-mr1-dev 2016-08-16 18:36:25 +00:00
Adrian Roos
27c3c34fe1 Merge "NavBar: Use rotation watcher" into nyc-mr1-dev 2016-08-16 18:32:29 +00:00
Sriram Viswanathan
91ef993e2d Merge "Replace android auto assets with the latest" into nyc-mr1-dev 2016-08-16 18:20:11 +00:00
Selim Cinek
80c44dd800 Fixed a bug where the summary could become visible even if it was suppressed
Because the updating of the suppression was prohibited, some groups could loose
their suppression state when they were heads upped. This would lead to duplicate
notifications. We're now still allowing the state to be properly modified instead
but don't notify listeners anymore since that was only an internal update.

Change-Id: I6ae96ea8cfab00ef6bdb1ef047f8b77ea88e8206
Fixes: 30608517
2016-08-16 17:19:14 +00:00
TreeHugger Robot
60ab8d072a Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-08-16 15:32:05 +00:00
Bill Yi
ad0dfea172 Import translations. DO NOT MERGE
Change-Id: I7c27b0c03c815ecccf209cd70ab764b836c7932b
Auto-generated-cl: translation import
2016-08-16 00:29:56 -07:00
TreeHugger Robot
b14543d9d8 Merge "Introduce new constant for double tap gesture rotation hint." into nyc-mr1-dev 2016-08-16 01:21:57 +00:00
Adrian Roos
a98b32cea2 NavBar: Use rotation watcher
Replaces the display changed listener with a
rotation watcher. The display listener fired
too late and did not produce a rotated frame
in time. Also cleans up logging tags.

Change-Id: I3336275ae123f868ed9ee8cc28a6285a06f2e1a6
Fixes: 30312602
2016-08-15 17:46:16 -07:00
TreeHugger Robot
094b8b3321 Merge "Fix bug where RemoteInputView didn't reopen the IME" into nyc-mr1-dev 2016-08-15 23:45:05 +00:00
Adrian Roos
0356865dad Fix bug where RemoteInputView didn't reopen the IME
Editable TextViews are implicitly selectable. Setting the selectable
property to true however causes a bug where the onTouch logic thinks
the view is not editable and thus doesn't show the IME when clicking
that view.

Change-Id: I9dd6139195bd98b26293e330290650d4e5549a6d
Fixes: 30595718
2016-08-15 15:02:57 -07:00
Selim Cinek
d381bc3133 Fixed an issue where the background could show in a wrong way
Change-Id: Icefeb2275d6cbabc576c35990ce4441b3a41ebd9
Fixes: 30855224
2016-08-15 21:42:09 +00:00
TreeHugger Robot
aedfa81517 Merge "QS Footer: Don't update icon from wrong thread." into nyc-mr1-dev 2016-08-15 19:25:46 +00:00
Robert Carr
57d9fbd17f Introduce new constant for double tap gesture rotation hint.
As discussed in ag/1192965/ we have a special case for rotation
animation selection in launch from double tap. This was set to
ROTATION_ANIMATION_CROSSFADE as the goal was just to avoid
ROTATION_ANIMATION_ROTATE on the viewfinder surface and
seamless rotation in launch scenarios was initially descoped. Now we
are aiming at fixing this though, and ROTATION_ANIMATION_CROSSFADE
does not quality for seamless rotation. ROTATION_ANIMATION_JUMPCUT
also would not be a good choice because in the situation that the
rotation occurs before the app starting window appears, then we would
jump cut from unrotated wallpaper to rotated app, I think we want
a crossfade in this scenario. To this end introduce and use a new @hide constant
ROTATION_ANIMATION_SEAMLESS which qualifies for seamless but falls back
to CROSSFADE if seamless can't occur.

Bug: 30171992
Change-Id: If1945b17b5159be4cd5ba0b139d6bea9f7fcca33
2016-08-15 12:25:37 -07:00
Selim Cinek
45d2ff9b6a Merge "Fixed that HUNs wouldn't show when the keyguard is occluded" into nyc-mr1-dev 2016-08-15 18:35:59 +00:00
Jason Monk
f9c6026a7d QS Footer: Don't update icon from wrong thread.
Change-Id: I25191818579fac57236b67d7291b6ee00dd838b5
Fixes: 30748384
2016-08-15 13:57:43 -04:00
TreeHugger Robot
6912cf9b30 Merge "Fix LockscreenWallpaper jank" into nyc-mr1-dev 2016-08-13 00:13:00 +00:00
Adrian Roos
d866b02d54 Fix LockscreenWallpaper jank
Change-Id: I3f11d26eaa51eb509284fb1bb25eab03a4f243a0
Fixes: 30493315
2016-08-12 15:31:24 -07:00
Sriram Viswanathan
e45311adc9 Replace android auto assets with the latest
The latest assets which matches up with that in the App.
Also the matches up with sizes with icons the nexus launcher.

BUG:30388078

Change-Id: Iffac75b86c3d736392fa7a1809ffdf921d610b3d
2016-08-12 13:51:31 -07:00
Jason Monk
de214f40cf Merge "Start listening on notifications/QS panels on expansion started" into nyc-mr1-dev 2016-08-12 17:04:47 +00:00
Bill Yi
7e33c8c4d2 Import translations. DO NOT MERGE
Change-Id: Ib152ecb48817f123084dd0c776f3aa6393fc3f83
Auto-generated-cl: translation import
2016-08-12 00:26:31 -07:00
Julia Reynolds
2af6932ae8 Merge "Don't run expand/collapse animations when dismissing." into nyc-mr1-dev 2016-08-11 14:28:48 +00:00
TreeHugger Robot
f6487b63a1 Merge "Only disable trust agents after lockout" into nyc-mr1-dev 2016-08-11 02:30:32 +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
Jaewan Kim
25796925d9 Merge "PIP: Hide play/pause button by default" into nyc-mr1-dev 2016-08-10 23:22:21 +00:00
Julia Reynolds
48242f0ac6 Don't run expand/collapse animations when dismissing.
Also restore some padding.

Change-Id: Iada58be574c52651931ea733aaa4022c71e136b5
Fixes: 30764259
Fixes: 30781039
2016-08-10 20:36:33 +00:00
Selim Cinek
00a6c2979b Merge "Put the affordance launch animation back on the renderthread" into nyc-mr1-dev 2016-08-09 23:41:36 +00:00
Selim Cinek
2dabc8286b Fixed that HUNs wouldn't show when the keyguard is occluded
Change-Id: Ia6fcb57eceb8e3b3e0d193d9f274cc64343fe5af
Fixes: 30770767
2016-08-09 16:28:17 -07:00
Selim Cinek
4ae263c87c Put the affordance launch animation back on the renderthread
Change-Id: I10f6b7062d9c6ca89e139ef6b67af30cb39adcb2
Fixes: 30484027
2016-08-08 17:27:24 -07:00
Winson Chung
d983386c31 Merge "Reverting ag/1288123" into nyc-mr1-dev 2016-08-08 22:34:00 +00:00
Julia Reynolds
eded2fcf7a Restore padding.
Change-Id: I532e5007c2a9152554b8f5130196a2f0cb3c8f1e
Fixes: 30738806
2016-08-08 19:48:48 +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
Jason Monk
c1aac02a37 Merge "QS: Tweak animation paths when few icons" into nyc-mr1-dev 2016-08-08 15:32:47 +00:00
Jason Monk
a6ab28d3c9 Merge "QS: Fix expanding on closing detail" into nyc-mr1-dev 2016-08-08 15:32:24 +00:00
Bill Yi
b046cefd8a Import translations. DO NOT MERGE
Change-Id: Ia177ed731331dbc6420eafe17a1615a7bc65dac2
Auto-generated-cl: translation import
2016-08-08 04:16:48 -07:00
Selim Cinek
61b350cca6 Improved the transition when clicking on the last notification
In the locked shade, we were returning to the lockscreen when
the last notification was clicked and removed due to autocancel.
We're now not going back there anymore if we're closing.

Change-Id: Idc4c2c145fb2ca308f236b99408cc6096dd02302
Fixes: 30642902
2016-08-05 14:26:51 -07:00
Winson
08deff0a67 Reverting ag/1288123
- Reverts the change to draw the drop targets opposite of the nav bar
- Fixes the issue with the drop divider being occluded by the nav bar
  when the phone is in landscape orientation.  Instead, expand the 
  drag overlay to include the nav bar space.

Bug: 30548794
Change-Id: I70ed3513547e101e49c8eba114a153c5a1f36bee
2016-08-05 14:12:39 -07:00
TreeHugger Robot
ba8f3d03ac Merge "Switch volume animation to Scene." into nyc-mr1-dev 2016-08-05 20:50:48 +00:00
Julia Reynolds
568585b47c Switch volume animation to Scene.
animateLayoutChanges is too janky.

Bug: 30070005
Change-Id: I88bb94c2de18a8ebc14f0f0aed48877a8b328d8a
2016-08-05 15:27:14 -04:00
Selim Cinek
aa3901a5ee Fixed a bug that could lead to an empty notification
With sensitive notifications, notification groups could
become empty.

Change-Id: Ibea016c64287d1952db136e038372b778d8febc2
Fixes: 30641080
2016-08-05 11:41:58 -07:00
Adrian Roos
c49dfaf4d6 Merge changes from topic 'smooth_unlock' into nyc-mr1-dev
* changes:
  Keyguard: Improve trusted unlock while occluded
  Keyguard: Refactoring for improving trusted unlock while occluded
2016-08-05 18:37:29 +00:00
Jason Monk
c896963063 QS: Fix accidental a11y tile removal
Change-Id: I5b5c3bac0b92a7cc5585dcd55571fa055da0e5eb
Fixes: 30443933
2016-08-05 10:08:11 -04:00
TreeHugger Robot
b11cc6cbd3 Merge "Call userActivity when dismissing keyguard" into nyc-mr1-dev 2016-08-05 11:53:59 +00:00
TreeHugger Robot
4d140b72f2 Merge "Fix flickering issues with FLAG_SHOW_WHEN_LOCKED and fingerprint wake" into nyc-mr1-dev 2016-08-05 11:53:38 +00:00
Adrian Roos
d88eb2693b Keyguard: Refactoring for improving trusted unlock while occluded
- Adds a trusted signal from Keyguard to PhoneWindowManager
- Allows PhoneWindowManager to exempt DISMISS_KEYGUARD windows from force hiding
- Allows PhoneWindowManager to dismiss Keyguard while occluded

Bug: 27410215
Change-Id: I3ad490b64a5805b6f3888a9f37fcfbdd0116395e
2016-08-05 00:04:07 +00:00
Adrian Roos
d1726e7598 Merge "HIC: Add report facility for overzealous anti-falsing" into nyc-mr1-dev 2016-08-04 23:24:04 +00:00