Commit Graph

41850 Commits

Author SHA1 Message Date
Lucas Dupin
ae861e8ee0 Show scrims when bouncer is on top of QS
Test: visual
Change-Id: I09c37c8478e1c409854af837cabf7bb12c5de79b
Fixes: 74511816
2018-03-13 00:14:34 -07:00
Kevin Chyn
7b97503caa Merge "Polish FingerprintDialog" into pi-dev 2018-03-12 18:35:05 +00:00
TreeHugger Robot
82bc5baeb5 Merge "Adding generation of ACTION_TOGGLE_RECENTS to shared lib" into pi-dev 2018-03-12 18:13:16 +00:00
Chris Tate
15e91e6f3a Merge "Defer deleting a http cache" into pi-dev 2018-03-12 18:00:05 +00:00
Hidehiko Tsuchiya
d160479a24 Defer deleting a http cache
Symptom:
StatementService was crashed due to the exception;
"java.lang.IllegalStateException: cache is closed"

Root cause:
The http cache is deleted at DirectStatementService#onDestroy
in main thread. If a worker thread is still alive and it tries to
access the cache, it fails with IllegalStateException.

Solution:
The request of deleting a cache was moved from the main thread to
worker. Now, the cache can be deleted safely.

Cherrypick from AOSP master.

Bug: 73911877
Test: manual
Change-Id: I61f4e62b00e35f4a272ef983758e61ef3bf2d180
Merged-In: I61f4e62b00e35f4a272ef983758e61ef3bf2d180
2018-03-12 17:59:27 +00:00
Rohan Shah
71120e1b20 Merge "Nit cleanup: Update TileLayout.onLayout" into pi-dev 2018-03-12 16:53:56 +00:00
TreeHugger Robot
df59556a9e Merge "[QS] Fix alarm text in QS header" into pi-dev 2018-03-12 16:53:13 +00:00
TreeHugger Robot
0cee663bf6 Merge "[QS] Update hotspot tile secondary text (data saver)" into pi-dev 2018-03-12 16:46:18 +00:00
TreeHugger Robot
c82bcf4d3c Merge "Fix resource directory references" into pi-dev 2018-03-12 16:23:29 +00:00
Alan Viverette
8f919514d5 Fix resource directory references
Fixes: 74514647
Test: make
Change-Id: I47d65e56f7cdd3faa80c14d18e2e7767ca293ee4
2018-03-12 14:39:11 +00:00
TreeHugger Robot
fb2304e720 Merge "Add the ability to refresh to the captive portal app." into pi-dev 2018-03-12 08:42:05 +00:00
Chalard Jean
94bc48f7bb Add the ability to refresh to the captive portal app.
Bug: 69840796
Test: manual
      created a small app that brings up the captive portal app,
      checked that pulling down does show the refresh spinner,
      refresh the page, and hide the spinner when refreshed.
      Checked that it works multiple times in a row.

Change-Id: Ieefdaffa9325b0c5f1b02ab6052c29a381f3a4d4
2018-03-12 15:05:43 +09:00
TreeHugger Robot
560b26a9d2 Merge "Bouncer animation" into pi-dev 2018-03-12 02:04:21 +00:00
Lucas Dupin
7557234316 Merge "Correct button measuring" into pi-dev 2018-03-10 19:00:03 +00:00
Vadim Tryshev
2f4d2af93a Adding generation of ACTION_TOGGLE_RECENTS to shared lib
Bug: 72967764
Test: atest google/perf/app-transition/sysui-latency-test, watch for 1_*
entries in output

Change-Id: I0bfaa46df4f3167687099742cb3063e88dab30ae
2018-03-09 19:15:56 -08:00
TreeHugger Robot
fe700fc694 Merge "Adding isNotInRecents to RemoteAnimationTarget" into pi-dev 2018-03-10 01:11:27 +00:00
Lucas Dupin
bc9aac10e2 Bouncer animation
More obvious animation where bouncer position is influenced
by touches.

Test: Pull up bouncer, press back button
Test: Pull up bouncer, unlock with fp
Test: Unlock with fp with bouncer hidden
Test: Unlock with SmartLock
Test: Ask for auth on top of FLAG_SHOW_WHEN_LOCKED activity, press back
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Fixes: 3699775
Change-Id: I016dfa17f17571261691669c82385d2d844c5917
2018-03-09 17:03:36 -08:00
Winson Chung
3955e1979f Merge "Stop preloading recent tasks in SysUI when bound to overview service" into pi-dev 2018-03-10 00:22:31 +00:00
TreeHugger Robot
01487d9734 Merge "Filter out detached views from touch" into pi-dev 2018-03-10 00:18:34 +00:00
Rohan Shah
a160ab18f8 [QS] Fix alarm text in QS header
Alarm text would go away until a restart. Turned out that we were
incorrectly making the view invisible immediately after animating it in
because the listener persisted on the ViewPropertyAnimator (single
instance per View).

Test: Visually using repro steps
Bug: 74359491
Change-Id: I2e0b8a9f4b767450df72f7ea7953f4ed75ae8f4c
2018-03-09 15:47:36 -08:00
Rohan Shah
853cd8f6d2 Nit cleanup: Update TileLayout.onLayout
Made it a little easier to read onLayout/onMeasure. Separating this from
landscape CL just to keep a minor cleanup separate.

Bug: 73808887
Test: Visually
Change-Id: I817d6c92cda37ee0d99cd20ace06959a3bdc608d
2018-03-09 15:25:02 -08:00
TreeHugger Robot
12da48e095 Merge "Fixes KeyButtonView to dismiss ripple after aborting for long press" into pi-dev 2018-03-09 23:20:26 +00:00
Lucas Dupin
4603fe2c2f Correct button measuring
Test: set wallpaper to white, black, look at AOD
Change-Id: If0e0da4315240fcc26be6cad3de717f37d5d1864
Fixes: 74393005
2018-03-09 14:04:39 -08:00
Vadim Tryshev
593e9567fd Adding isNotInRecents to RemoteAnimationTarget
For animations required by Recents, we calculate whether the task is
going to be presented in Recents UI.

Bug: 70789568
Test: Manual: swipe a normal app to Recents; swipe an app with a
      half-screen assistant on top of it to Recents.

Change-Id: I1ec9c36865dd4f57e843ae58811f90f3096365a5
2018-03-09 14:00:32 -08:00
Rohan Shah
2c23b13011 [QS] Update hotspot tile secondary text (data saver)
Updating the secondary text to show a different message when data saver
is enabled (to explain to the user why they can't toggle the tile).

Also collapsed double ternary to make it a bit easier to read.

Test: Visually
Bug: 33003328
Change-Id: I8a98f95c60ec9dcbe5899e87e29759e8d377b106
2018-03-09 13:47:05 -08:00
TreeHugger Robot
c7a25dc939 Merge "Fix AutoTileManagerTest" into pi-dev 2018-03-09 20:20:29 +00:00
TreeHugger Robot
3dc91c1426 Merge "Update battery saver colors to make them more obvious" into pi-dev 2018-03-09 19:17:00 +00:00
TreeHugger Robot
25092e1d93 Merge "Add vibrate on down over nav bar and tick on motion up" into pi-dev 2018-03-09 18:38:40 +00:00
TreeHugger Robot
874b009137 Merge "Don't allow foreground notis to be blocked inline." into pi-dev 2018-03-09 18:08:19 +00:00
TreeHugger Robot
b87b032786 Merge "Display mobile data type icons in status bar." into pi-dev 2018-03-09 18:03:55 +00:00
Jake Wharton
3f7751fe00 Correct directory location.
This moved as part of e94ca6676f8f845741369d4967255f642a4cefbb.

Bug: 74390715
Test: none
Exempt-From-Owner-Approval: build fix of support library folder reference
Change-Id: I4109ef44748deb03a91e372b40b85d025f0d2765
2018-03-09 12:58:52 -05:00
Julia Reynolds
e03414876a Don't allow foreground notis to be blocked inline.
Offer a 'minimize' option instead.

Also I'm changing the guts, do a little layout
cleanup in the confirmation dialog.

Change-Id: I9f2ef824d1f322752bc4161356f16a5dae166caf
Fixes: 73898083
Fixes: 73657862
Fixes: 73657452
Test: runtest systemui-notification
2018-03-09 11:02:15 -05:00
Amin Shaikh
3585574afa Fix AutoTileManagerTest
Bug: 74431173
Test: runtest systemui
Change-Id: I7d375e913dfab42ffc2e2006b86375f62a8f1165
2018-03-09 10:54:50 -05:00
Amin Shaikh
d64e6269da Display mobile data type icons in status bar.
Instead of showing the type in the top left corner of the signal.
- Add new status bar mobile data indicator assets
- Remove unused qs/status bar mobile data indicator assets

Bug: 72540392
Test: visual using demo mode
Change-Id: Ic63ad3307daabf2e0f023308b7e0682dbd29f1ca
2018-03-09 10:44:45 -05:00
TreeHugger Robot
75a81749f3 Merge "Move mobile signal indicator to QS footer." into pi-dev 2018-03-09 14:56:59 +00:00
Julia Reynolds
0b4626aa23 Merge changes from topic "jr-viseffects" into pi-dev
* changes:
  Make systemui obey new visual effect flags
  Expand the visual effects that DND can suppress.
2018-03-09 13:38:06 +00:00
Adrian Roos
802bf39664 Merge "SysUI: Fix a bunch of hacks around insets and cutouts" into pi-dev 2018-03-09 12:40:37 +00:00
Amin Shaikh
0e00331e8f Move mobile signal indicator to QS footer.
- Change mobile data tile to a static icon with mobile data indicators
- Add the status bar mobile network signal icon to QS footer
- Show SIM status in the carrier text in the QS footer only if the
status is not simply "No SIM card" since that status is shown in the
secondary text of the mobile data tile

Bug: 72540392
Test: visual && runtest systemui
Change-Id: I6fee19887decf68db5084edc8c0e2d23bb1938d1
2018-03-08 22:56:55 -05:00
Kevin Chyn
27e1f26e01 Polish FingerprintDialog
Bug: 73818869

Test: dialog matches spec
Change-Id: Ibba456e656559ffbebf1bcae79480ce91772572f
2018-03-08 18:37:00 -08:00
Winson Chung
2592f80b55 Stop preloading recent tasks in SysUI when bound to overview service
- When bound to the overview service, trim the entire cache in the SysUI
  recents cache. This is only useful until we remove the recents code
  in SysUI entired.

Bug: 74198066
Test: Manual, dump hprof and ensure no references to thumbnails
Change-Id: I694c917f2ed2b84c842c2815c4071947437446ed
2018-03-08 17:48:21 -08:00
Matthew Ng
5c0592e252 Add vibrate on down over nav bar and tick on motion up
Added a tick vibration for down and up (after 150ms delay) over back and
home button. Vibration on touch down covers the entire bar.

Fixes: 73942704
Test: tap nav bar or tap home button
Change-Id: Ib53c3667cbdf61a502bab53d98a2874a511acb3f
2018-03-08 17:13:58 -08:00
TreeHugger Robot
24d888aab6 Merge "Add secondary text to mobile data tile." into pi-dev 2018-03-08 21:51:40 +00:00
TreeHugger Robot
92078d34fb Merge "[QS] Disable hotspot when data saver is enabled" into pi-dev 2018-03-08 21:43:11 +00:00
TreeHugger Robot
a24322afc6 Merge "[QS] Update Cellular/data usage tile" into pi-dev 2018-03-08 21:36:59 +00:00
Lucas Dupin
59a1bef8e9 Merge changes Ib8f43601,I61d82dca into pi-dev
* changes:
  Show battery percentage on indication field
  Revert "Show battery percentage on indication field"
2018-03-08 21:31:28 +00:00
TreeHugger Robot
b450537f8f Merge "[QS] Tweak tooltip color & shown count" into pi-dev 2018-03-08 20:14:35 +00:00
Amin Shaikh
43ad7fef06 Add secondary text to mobile data tile.
- Update data content description for the mobile data tile to include no
internet connectivity
- Update strings for telephony icons to show that they are no longer
only used for accessibility purposes

Bug: 74192657
Test: runtest systemui
Change-Id: I95f36e871dedfc9caea53326e8ee198f141fb8a8
2018-03-08 14:49:28 -05:00
Adrian Roos
edfab3b832 SysUI: Fix a bunch of hacks around insets and cutouts
PhoneStatusBarView: update correctly on rotation
VolumeUI: properly place window instead of accounting for bars and letterbox
PhoneWindowManager: remove special policy for TYPE_VOLUME_OVERLAY
GlobalActions: Adjust for removal of special policy for volume overlays

Bug: 74195186
Test: Use VolumeUI, GlobalActions, Keyguard and Status bar in all kinds of orientations and cutout configurations
Change-Id: I72281cee202fea0a69766ff0d58ea55dcb5a36e1
2018-03-08 20:37:43 +01:00
TreeHugger Robot
ce18c717c8 Merge "Cutout: Fix status bar layout" into pi-dev 2018-03-08 19:25:07 +00:00
Evan Laird
9eb4610db7 Update battery saver colors to make them more obvious
Use colorError for the plus symbol (when in status bar) and always draw
the fill as colorError when below 15%

Test: turn on systemUI demo mode
      adb shell am broadcast -a "com.android.systemui.demo" -e command battery -e plugged false
      adb shell am broadcast -a "com.android.systemui.demo" -e command battery -e powersave true
      # verify that the plus sign is red
      adb shell am broadcast -a "com.android.systemui.demo" -e command battery -e level 15
      # verify that the fill color is red and the plus stays red

Change-Id: I9898c3d56372bad822aeff021a470958ed3908a6
Fixes: 71873178
2018-03-08 14:22:06 -05:00