Commit Graph

15467 Commits

Author SHA1 Message Date
Bill Yi
780931dd46 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 31424274
Change-Id: Ibd2890c12c630e9bfc41fe222fa626ab87b77500
2016-09-30 09:57:53 -07:00
Bill Yi
870fa8fec7 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 31516661
Change-Id: I830397cb29a3bd15cec9f3687de09bb108ea6872
2016-09-17 00:01:37 -07:00
Jason Monk
d67fbe6201 Change bang to x for indication of no internet
Bug: 31271895
Change-Id: I14f71974f0549991d448fe68b30573d2ae033b19
2016-09-14 15:18:29 +00:00
Jason Monk
34f6cbc288 Fix QS CTS failure caused by tile backup
The CTS tests weren't receiving the onTileAdded callbacks since the
shade was not in the listening state when tiles were added. This is
not possible for users (since tiles are added while the UI is
listening), but add a flushMessagesAndUnbind call to make sure the
tiles always receive onTileAdded.

Since now flushMessagesAndUnbind can be called before a real call
to setBindService(true), add a clause that will clear out its
immediate unbind state.

Change-Id: Idd13c432a4af5741813da9a9b1b292a47fd9443b
Fixes: 31147742
2016-08-30 20:37:04 +00:00
Jason Monk
baade7573f Backup system QS tiles
Add QS tiles to the backup list.  Non-system tiles will get removed
since they won't be installed when restore happens.

Change-Id: Iccf6e773384c45bd4d1f10c21aa8af356b3920d2
Bug: 28782938
2016-08-26 13:15:49 +00:00
Adrian Roos
190e532c86 DirectReply: Fix bugs when replying from HUNs
Fixes a bug that would re-open the remote input when
it was sent while HUN'd. Also fixes a bug that would
not properly clear a notification if swiped away and
at the same time HUN'd and having a reply active.

Change-Id: I3e8b5f81eaffd8e4b8602f3dbdd025229ba201fa
Fixes: 30454772
2016-08-24 20:41:19 +00:00
Adrian Roos
97de2b2666 Ambient: Pulse for every noisy notification exactly once
Also increases the pulse duration and switches timing to
elapsed realtime instead of wall time for robustness. Also
remove triggering for notification light for simplifying code.
Only noisy notifications are able to trigger the light anyway and
noisy notifications already trigger ambient on their own.

Change-Id: I4efbe530bb1a60cabaa46c2b04bcd5e12cdef680
Fixes: 31004875
2016-08-23 15:49:04 +00:00
Adrian Roos
4dc14b231e 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
(cherry picked from commit 6b312a09fc)
2016-08-22 13:41:39 +00:00
TreeHugger Robot
edddb17a67 Merge "Fix a flicker when returning to the lockscreen" into nyc-mr1-dev 2016-08-17 18:11:49 +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