summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/Prefs.java
AgeCommit message (Collapse)Author
2021-07-19Remove RecentsOnboardingTracy Zhou
RIP Fixes: 180248278 Test: manual Change-Id: Ifb73928ceab67c451776c1657bdc230670c9af81
2021-07-17Update recents onboarding logicTracy Zhou
- Remove quickscrub tips - Add additional checks on nav mode Fixes: 180248278 Test: manual Change-Id: I1661bb1b63167c508c6164a1a4ef8fe31a9749e5
2021-06-03Maintain the position of accessibility floating menujasonwshsu
* Use percentage of X-aixs and Y-axis as last position, so it could be restored at approximately position when device screen size changed. * Fine-tune AccessibilityFloatingMenuViewTest Bug: 183342667 Test: atest AccessibilityFloatingMenuViewTest PositionTest Change-Id: I58ed608a03bc20f15a9d0852c95907107516c9ba
2021-05-11Add the new dock tooltip for accessibility floating menu.Peter_Liang
Goal: Pop up the tooltip to show how to move the menu and hide after users move the Accessibility floating menu first. Patch Action: 1. Create new SharedPrefernece for dock tooltip. Bug: 182532449 Test: atest AccessibilityFloatingMenuViewTest AccessibilityFloatingMenuTest AnnotationLinkSpanTest AccessibilityFloatingMenuTooltipViewTest DockTooltipViewTest MigrationTooltipViewTest Change-Id: I71d29761acd4e9d48f776e5c701149b3ed40fda4
2021-04-30Update the conversation priority flowJulia Reynolds
Update the long press text and remove the separate onboarding screen Test: atest NotificationConversationInfoTest Fixes: 186100981 Change-Id: I8a90e99a4eaebf1e5136771856303e830a234d0a
2021-03-17Prompt People tile on marking as priorityFlavio Fiszman
Change-Id: I4ee1566762d381b6288e3b19c89db904a5d86d8b Test: manual Bug: 182570341
2020-10-13Migrate Bubbles to wm-shell (3/n)Tony Huang
Remove more sysui dependency in bubbles class. Bug: 161980186 Test: atest SystemUITests Change-Id: I73b60a387dfc85f1c477e4a5cea2484a80992367
2020-09-22Add a command line interface to SystemUIEvan Laird
This CL adds some basic support for a command line interface in SystemUI, using `adb shell cmd` as the jump-off point. The basic design is kind of as follows: [ shell ] -> [ system_server ] -> [ StatusBarService ] -> [ SystemUI ] | [ shell output ] <- [ sbm service ] <- [ CommandRegistry ] Where StatusBarManagerService implements a new `passthrough` interface and forwards all remaining arguments to SystemUI. SystemUI then spawns a new thread and sends the commands off to the CommandRegistry. Commands are parsed and executed from there, and all output is written to the given ParcelFileDescriptor, which is piped back to SBMService using a TransferPipe. Commands will by default run on the main executor, but can register with an executor in order to send work off to any other thread. The command registry thread will block on the completion of the command. Implementing new commands as of now is trivial: create a new concrete implementation of CommandLine and add it to the command map inside of CommandRegistry. Test: `adb shell cmd statusbar prefs list-prefs` should have output Change-Id: I189fa55df6caabe25d693c2241a4d994e7473a2c
2020-08-24Implement UserTrackerFabian Kozynski
This implements a new UserTracker for SystemUI that is meant to centralize information about current user and current profiles. It will serve the same function as CurrentUserContextTracker (replaced), CurrentUserTracker (to be removed), and ACTION_USER_SWITCHED broadcasts (to be removed). It'll also serve to remove all other calls to ActivityManager.getCurrentUser(). Test: SystemUITests Test: manual Bug: 163579262 Change-Id: I6a7251485d88ce9b9131b9aff3b4343c3e8c823b
2020-06-10Merge "Animate the priority ring in the onboarding" into rvc-dev am: 675d4a78cbTreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11795077 Change-Id: Id942d251c84e28b8cb2950842facda444023e6bc
2020-06-09Animate the priority ring in the onboardingJulia Reynolds
Test: manual Fixes: 155490513 Change-Id: I5cb6b09420337a2957d5174c1e150d400eef3a03
2020-06-03Merge "Update conversation priority onboarding" into rvc-dev am: ff182768f7Julia Reynolds
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11707052 Change-Id: Id4975ef9595efbb9461f7ffbe7088ee84f3d80cc
2020-06-02Update conversation priority onboardingJulia Reynolds
And fix a bug with toggling priority I noticed while testing Test: atest Fixes: 157988478 Bug: 155490513 Change-Id: I8f5a6076ed2aa6c862a187bac15f3ad9af3cd141
2020-04-24Add SharedPreferences key for reverseJohn Li
Bug: 151127557 Test: manual Change-Id: I86fd156eeab4f585207b1aabc044fea3eca832db
2020-04-16DO NOT MERGE: Show an onboarding screen for priority conversationsEvan Laird
Test: atest SystemUITests Bug: 151843296 Change-Id: I5280cff71591f8551016b6ba00d3a579507367cb
2020-03-09Adds a tooltip for multiple structuresFabian Kozynski
Adds a tooltip (manager) to display tooltips in Controls surfaces. The manager supports the following: * The tooltip will not be shown after a certain number of times. Tracked by a Shared Pref that is passed to the TooltipManager * The tooltip will be shown pointing to a given position on screen * The tooltip can be parametrized to show the arrow pointing up (default) or down. Fixes: 150707923 Test: manual Change-Id: I70e7c38343a16ae6cd887a0fdcfa5b0f896e413e
2020-02-27Bubbles user education for stack & manageMady Mellor
Two types of education 1) highlighting the bubble when it first appears on screen (after user tap) 2) highlighting manage button when a bubble is expanded * Both of these are added in BubbleStackView & respond to theme changes * Prefs to save whether user has seen either education * Simple animations in / out; we can tune them later * Adjusts the starting position of the stack to work with user education positioning * Adds a secure setting string to force user education to show for demo purposes. Test: manual: 1) get bubble for first time 2) tap on flyout => flyout disappears & user education shows 3) get another update to that bubble => note that it doesn't show bc user education is displaying 1) get bubble for first time 2) tap on bubble => flyout disappears & user education shows 3) tap outside of the user education => user education hides 1) get bubble for first time 2) wait => after flyout disappears, user education shows 3) tap on the bubble => user education hides & bubble expands, after expansion "manage" user education appears 4a) interact with content in the activity view 4b) collapse the stack (via back or tapping outside) 4c) tap on the manage button 4d) select a different bubble => each of 4x) should dismiss the manage button user education Check that switching themes (and dark mode) gets the right colour for user education backgrounds & text. Bug: 148105621 Change-Id: I8e6401573c1ac21dfe636aa1132461fe04ce67ac Merged-In: I8e6401573c1ac21dfe636aa1132461fe04ce67ac
2020-02-25Make PhoneStatusBarPolicy injectable.Dave Mankoff
Add DateFormatUtil that makes DateFormat methods non-static, (is24HourFormat specifically). PhoneStatusBarPolicy no longer needs a context. Bug: 147505562 Test: atest SystemUITests Change-Id: I7b272441971f5a74f2736cd545498b8b4077fca6
2019-04-26Remove interaction flag code replaced by QuickStepContract (1/2)Matthew Ng
Test: manual Bug: 112934365 Bug: 131419978 Fixes: 129497226 Change-Id: Iee5f5f99a1bea84fc69c8291e3f982ed68b875c5
2019-03-21Add tool tip view for first run of volume dialog to notify users of odiAnthony Tripaldi
captions functionality. Bug:128970574 Change-Id: I4710fd1d84f4116e003c14720a2ce55c5b3ff899 Test: manual
2018-05-21Show swipe-up tip with exponential backoffTracy Zhou
Change-Id: Icd32c0bd98623173322e5e33bd5400e679a01a10 Fixes: 79985309 Test: Manual test
2018-05-02Update QuickScrub tip according to the latest spec.Tracy Zhou
- Treat inreaction to the tip as 1st dismissal. - Show tip after 1st dismissal based on Overview opened count instead of app launch count. Bug: 70180942 Test: manual test Change-Id: I4410c78ac547ad49bd135dede71e79aaca2e1b10
2018-04-18Implement swipe up and quick scrub onboardingTracy Zhou
Bug: 70180942 Test: manual test Change-Id: I5c487d1e4ab800450c6b5a8f7ad1bf7434e45904
2018-04-04Revert "Revert "Nav icons and quick step states are determined by service ↵Winson Chung
enabled"" This reverts commit 317ee507c2ea69044dc91f7c6d019deeab1ebeae. Reason for revert: Have fix for b/77566214 Test: manual Bug: 77566214 Change-Id: Ie827e3651f70dfde5f02a5099fd81a5eb4e4cd5e
2018-04-04Revert "Nav icons and quick step states are determined by service enabled"Winson Chung
This reverts commit 8a7c97a16d7cfa7bcc602dfa969370bce9dfb686. Reason for revert: b/77566214 Bug: 77566214 Change-Id: Iba3ef20a304e3a47f1affe0b38598c7d7f0daef7
2018-04-02Nav icons and quick step states are determined by service enabledMatthew Ng
When the device quickly changes states (such as language or font size), it would disconnect and then reconnect the service and as a result a flash of the nav buttons will occur. Since the nav bar is connected to launcher service unless 3rd party launchers are used, that should determine if the icons should change or quick step should be enabled/disabled instead of if there is a connection. Also hold the last interaction flags and apply on startup until service is disabled (using 3rd party launcher). Test: go to settings and change the font size under display Change-Id: Ibebc8c3f8493574dd21774bd292c2096cfdad469 Fixes: 74199057 Fixes: 73483047 Fixes: 72225004
2018-03-29Volume UI updatesJulia Reynolds
- Reorder streams - constrain ripples - Show an introductory ripple on the ringer toggle - Add sound/vibration feedback for the ringer toggle - resize some elements Test: manual Bug: 76438403 Fixes: 73892482 Change-Id: I92dd6f5681f1822ae493a5a2b218b15970293e80
2018-03-19Update mobile data off dialog.Amin Shaikh
Show the mobile data turn off dialog until the user taps the turn off button. All subsequent toggles will immediately toggle data on/off. Also update the message copy. Fixes: 74072757 Test: runtest systemui && manual Change-Id: I489d5c3c19d52a6f531b1b925b3210019412243b
2018-02-27Import launcher style reveal animations to QS.Amin Shaikh
When a new QS tile is added automatically (not through user customization), the next time the user pulls down QS, reveal this new tile in the same style as the launcher. Only play this animation once for each new tile added. This reveal animation will only run if the new tile is not on the first page in QS. Bug: 73741556 Test: visual Change-Id: I8f642d8fd51f63f999eb3f811c13c40f2bea60fa
2018-02-22New small volume dialogJulia Reynolds
- Remove labels - Remove output chooser dialog - Reorder icons - Add settings affordance - Add instructive toast Test: manual Change-Id: I6640fb8147707936fe22e3c756ab29116973fbe3 Fixes: 73719758 Fixes: 73333233 Fixes: 71663761
2018-02-21[QS] Add header tooltip for long pressRohan Shah
Added some hooks in animator to pass along expanded/animating/collapsed state in a more clear manner. Added tooltip view with the teaser text to animate in at the top of the view (and fade out either when we start animating or automatically after 5 seconds). Added prefs for tracking how often tooltip is shown/hiding it based on that number. Updated dimensions for correct spacing (based on redlines). Test: Visually Bug: 72528203 Change-Id: I70e4654ed95057fac6d8dbb890d575c2a5d9f215
2018-02-16Revert "[QS] Add header tooltip for long press"Evan Laird
This reverts commit 22caf078e493ff49e021a8f5af80ac10d4926feb. Reason for revert: Quick settings is no longer expanding properly. Reverting this fixes it Change-Id: I63b82e948316726067214b088016661785982e3a
2018-02-12[QS] Add header tooltip for long pressRohan Shah
Added some hooks in animator to pass along expanded/animating/collapsed state in a more clear manner. Added tooltip view with the teaser text to animate in at the top of the view (and fade out either when we start animating or automatically after 5 seconds). Added prefs for tracking how often tooltip is shown/hiding it based on that number. Updated dimensions for correct spacing (based on redlines). Test: Visually Bug: 72528203 Change-Id: Ided991da43fbede43c84c53ef22688d21aabe291
2018-02-06Get swipe up onboarding text from launcherTony Wickham
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-01-23Add swipe up onboarding from appsTony Wickham
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
2017-06-30Don't show multi-user in QS unless it has been activated beforeJason Monk
Like adding another user or activating a guest at some point. Test: manual Bug: 37152893 Change-Id: Ifeadeb8e7f021c4854aa74b71ffb6bed116c9c0f
2017-06-30QS: Move auto-add state to settings providerJason Monk
And back it up. Test: runtest systemui Change-Id: I880909ce63ab32a5c11f31f449c1aa10221085d3 Fixes: 62667758
2017-06-05Update zen introduction textJulia Reynolds
And add alarm text to QS & volume dialog. Change-Id: I8e3c06d6629473c453e579f23c75acd7cdfd4db1 Fixes: 38303817 Fixes: 31533768 Fixes: 33815404 Test: manual
2017-04-17TV PIP: Remove onboarding activity and overlay activityJaewan Kim
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-03-01Add QS tile for Night Display when first usedChristine Franks
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-02-15Ensuring that there are per-user last stack active times.Winson Chung
- 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
2016-09-09Revert "Fixing issue with old tasks being visible in Overview"Winson Chung
Bug: 28908500 This reverts commit b258f6a4bd685e5efcb36c02d5817f659e10479b. Change-Id: I9b3c04358d6ca693ed3fdcd9220af13f81eb704e
2016-08-30Fixing issue with old tasks being visible in OverviewWinson
- 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-07-08Remove "Night mode" from tunerJustin Klaassen
Bug: 28887927 Change-Id: Ic1c217152e56db63a87a1f1e772696d97b4b58b3
2016-04-27Add a 1st-time dialog for Data Saver title.Felipe Leme
BUG: 28098106 Change-Id: Ida19dcfc11ff74117af58fe1a4d43aa03e087f2b
2016-03-23Completely removing dead code related to search widget.Winson
Bug: 27742174 Change-Id: Ie478c562f6152338417aca5262b7f33ee4ca7ed5
2016-02-25Fix drag to add tiles showing too many timesJason Monk
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-08Add support for auto-adding tilesJason Monk
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-02PIP: Implement the initial version of onboarding screenJaewan Kim
Redlines and assets will be applied later. Bug: 26676479 Change-Id: I1a42fad0b918681c64ae84abb1bff8fac3289004
2015-11-25Separating the stack vs the historical tasks.Winson
- 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