Commit Graph

22 Commits

Author SHA1 Message Date
Tony Wickham
05c1f854ad Get swipe up onboarding text from launcher
Launcher sends the text when binding to the overview service,
which stores the text for when it needs to be shown.

Also renamed some files and strings to be more generic

Test: install launcher with updated text and ensure it is shown

Bug: 72999860
Change-Id: I5998ab8867754d877f954673e03e5faf44b606ed
2018-02-06 17:28:44 -08:00
Tony Wickham
fb63fe85f2 Add swipe up onboarding from apps
After launching 3 apps, we create a window at the bottom
attached to the nav bar to teach users to swipe for recents.
There is an X on this window to dismiss it, but we will keep
showing the onboarding every time they open apps until they
perform the swipe up action.

Test: manual

Bug: 70180942
Change-Id: I4b15fac918b7b1633a3c09ab0819f2acb1dce697
2018-01-23 16:02:27 -08:00
Jason Monk
24f8a75888 Don't show multi-user in QS unless it has been activated before
Like adding another user or activating a guest at some point.

Test: manual
Bug: 37152893
Change-Id: Ifeadeb8e7f021c4854aa74b71ffb6bed116c9c0f
2017-06-30 11:36:44 -04:00
Jason Monk
cb5296a6f0 QS: Move auto-add state to settings provider
And back it up.

Test: runtest systemui
Change-Id: I880909ce63ab32a5c11f31f449c1aa10221085d3
Fixes: 62667758
2017-06-30 11:36:40 -04:00
Julia Reynolds
d7a00aa186 Update zen introduction text
And add alarm text to QS & volume dialog.

Change-Id: I8e3c06d6629473c453e579f23c75acd7cdfd4db1
Fixes: 38303817
Fixes: 31533768
Fixes: 33815404
Test: manual
2017-06-05 11:23:03 -04:00
Jaewan Kim
e630923b55 TV PIP: Remove onboarding activity and overlay activity
Remove both activities until the new OC UX spec is finalized.

Bug: 36370535
Test: Manual test (Checked that onboarding nor overlay activities aren't
    shown after the FDR)
Change-Id: I97c4b2038aabf4f00cac957af6b79dcd874000ae
2017-04-17 19:36:27 +09:00
Christine Franks
69c2d1d752 Add QS tile for Night Display when first used
Bug: 30994985
Test: runtest systemui, and manual - verify that the quick settings
panel does not have a Night Display quick settings tile, then turn
Night Display on and verify that the tile has appeared. Multiuser
does NOT work and is tracked separately.

Change-Id: I997b4ca7952016fc703a6bb777e500f4eccce189
2017-03-01 20:35:06 +00:00
Winson Chung
28217a4ca2 Ensuring that there are per-user last stack active times.
- This fixes an issue where the last stack active time would be clobbered
  when switching between users.  With the policy in the phone/stack
  recents, this is fine, but with the grid recents, it no longer only
  applies when out of the historical window, so it is always wrong (it
  would normally be wrong if switching back from another user after the
  historical time of six hours).

  This CL will migrate the last stack active time to a per-user secure
  setting, which will be used going forward.

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
      return to the original user

Change-Id: I9941526de5d1dd52d1f9003e795995389064b19d
2017-02-15 13:46:52 -08:00
Winson Chung
36f3f0337d Revert "Fixing issue with old tasks being visible in Overview"
Bug: 28908500

This reverts commit b258f6a4bd.

Change-Id: I9b3c04358d6ca693ed3fdcd9220af13f81eb704e
2016-09-09 01:29:18 +00:00
Winson
b258f6a4bd Fixing issue with old tasks being visible in Overview
- This CL does two things, firstly, it ensures that all first & last
  active times are monotonically increasing and independent of the
  current system time.  This allows us to better keep track of which
  tasks are historical and should be hidden, and which are not.
  Secondly, this CL moves the tracking of the last visible active time
  into the system (per user) where it can be adjusted along with the
  task active times when they are loaded.
- Following this CL, all active times in the future will be adjusted on
  boot such that old tasks are made relative to the current boot time.
  It’s not important exactly what time they are, only that they are
  adjusted along with the last visible task active time so that we
  always keep track of what is visible.

Bug: 28908500
Change-Id: I4f789df3a6bd825517cf3a70e26fb60deff89d06
2016-08-30 15:01:49 -07:00
Justin Klaassen
e81fa85782 Remove "Night mode" from tuner
Bug: 28887927
Change-Id: Ic1c217152e56db63a87a1f1e772696d97b4b58b3
2016-07-08 11:46:27 -07:00
Felipe Leme
0281a9908f Add a 1st-time dialog for Data Saver title.
BUG: 28098106
Change-Id: Ida19dcfc11ff74117af58fe1a4d43aa03e087f2b
2016-04-27 13:17:08 -07:00
Winson
008ee15fe8 Completely removing dead code related to search widget.
Bug: 27742174
Change-Id: Ie478c562f6152338417aca5262b7f33ee4ca7ed5
2016-03-23 18:49:22 -07:00
Jason Monk
cb654cb172 Fix drag to add tiles showing too many times
It was appearing from the night tile being unavailable and causing
extra nulls in the list.  Fix the night mode tile so the nulls don't
happen.  Also fix the null handling to avoid this happening with other
bad specs.

Bug: 27061683
Change-Id: I48f769c06ed17c2ff1f166434857ec1faff14d02
2016-02-25 15:43:07 -05:00
Jason Monk
c3f42c1024 Add support for auto-adding tiles
hotspot, color inversion, data saver, and work profiles should add
themselves when they first become applicable.

Also refactor the availability flow a little bit.

Change-Id: Iaed89059540a98fefd4d26ce69edc0dde987b992
2016-02-08 15:17:11 +00:00
Jaewan Kim
977dcdc3cd PIP: Implement the initial version of onboarding screen
Redlines and assets will be applied later.

Bug: 26676479
Change-Id: I1a42fad0b918681c64ae84abb1bff8fac3289004
2016-02-02 11:48:38 +09:00
Winson
250608a5cd Separating the stack vs the historical tasks.
- Adding a notion of session to the stack.  If the history is enabled,
  the stack will now be constrained to show either tasks that were last 
  active in a window of time, or a minimum number of tasks.
- Giving the history button the full space above the stack so that it 
  looks more balanced.

Change-Id: If7b647349e8bb164ae86fd6dba3f7e974257eb5b
2015-11-25 19:43:58 +00:00
Winson
c742f973b1 Adding tuner param to enable fast-toggling.
- Moving constants to a more explicit flags class, which also handles
  tuner changes.
- Removing some unused flags

Change-Id: If370581d431784f606c4b8d0c0face5b9a4b9fad
2015-11-17 19:26:46 +00:00
Winson Chung
af3bb69367 Refactoring recents search bar widget logic.
Bug: 19062975

Change-Id: I303710598675aeebca8f34ac57de6249462ec033
2015-06-24 18:44:44 -07:00
John Spurlock
d9c75dba75 Volume: Simple dialog footer, DND in quick settings.
- Show DND tile by default, this is now the only
   place to manage DND modes / end conditions.
 - Remove super footer from volume dialog, replace with
   a simplified version that displays the current mode
   and allows ending DND.
 - Remove obsolete text-only footer from codebase.
 - Migrate remaining volume items into main resource files.
 - Rename "No interruptions" to "Total silence".
 - Add new user information banner for "Total silence"
 - Crude media filtering for Total Silence.
   (deeper muting changes will be done as a followup)
 - Disable volume dialog sliders completely if muted due
   to zen.
 - Cleanup ZenModePanel: assume embedded mode, remove
   expandable subhead
 - Remember "favorite" DND mode inside the DND config panel.
 - AudioService: consult ringer-mode-delegate before voluming
   down into silent.
 - Add new hour options to time-based exit conditions.
 - Volume dialog visual updates to move closer to final visuals.
 - Unify ringer=silent with DND.

Bug: 19260237
Change-Id: I05d7e001eca3b5125418ec3bc4087d0cb8866717
2015-04-29 09:58:38 -04:00
John Spurlock
f55b7f2fb6 Zen: Add new user introduction msg for "Priority only".
Bug: 19260237
Change-Id: I3b5785befc05685c7f676e918710fb7500221172
2015-04-14 10:18:34 -04:00
Andrew Flynn
82862573bc Consolidate SystemUI SharedPreferences.
Makes it easier to use from any place and gets us type-safety.

Change-Id: I472e340e8332d9a173335b6f337525d58d801881
2015-04-10 09:54:17 -04:00