summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/Prefs.java
Commit message (Collapse)AuthorAgeFilesLines
* User switcher - Update when multiple users enabled/disabledMatt Pietal2022-04-111-2/+0
| | | | | | | | | | | | Listen for the overall multiuser setting and update the available list of users. Also remove an unused preference. Fixes: 228339026 Test: atest UserSwitcherControllerTest Change-Id: Idbaf97c599bacba2122cbce2d047eb59262ac63e Merged-In: Idbaf97c599bacba2122cbce2d047eb59262ac63e
* Add SharedPreferences keys for the nudge to setup dream.Xiaowen Lei2022-03-021-1/+5
| | | | | | | Test: atest NudgeToSetupDreamCallbackTest Test: flash device and check manually Bug: 213368707 Change-Id: I2d5b99ebc498772d0595b571c63c2fa0cc808e85
* Remove RecentsOnboardingTracy Zhou2021-07-191-6/+0
| | | | | | | | | RIP Fixes: 180248278 Test: manual Change-Id: Ifb73928ceab67c451776c1657bdc230670c9af81
* Update recents onboarding logicTracy Zhou2021-07-171-6/+0
| | | | | | | | | - Remove quickscrub tips - Add additional checks on nav mode Fixes: 180248278 Test: manual Change-Id: I1661bb1b63167c508c6164a1a4ef8fe31a9749e5
* Maintain the position of accessibility floating menujasonwshsu2021-06-031-1/+3
| | | | | | | | | | * 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
* Add the new dock tooltip for accessibility floating menu.Peter_Liang2021-05-111-1/+4
| | | | | | | | | | | | | | | | 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
* Update the conversation priority flowJulia Reynolds2021-04-301-4/+1
| | | | | | | | | Update the long press text and remove the separate onboarding screen Test: atest NotificationConversationInfoTest Fixes: 186100981 Change-Id: I8a90e99a4eaebf1e5136771856303e830a234d0a
* Prompt People tile on marking as priorityFlavio Fiszman2021-03-171-2/+2
| | | | | | Change-Id: I4ee1566762d381b6288e3b19c89db904a5d86d8b Test: manual Bug: 182570341
* Migrate Bubbles to wm-shell (3/n)Tony Huang2020-10-131-4/+0
| | | | | | | | Remove more sysui dependency in bubbles class. Bug: 161980186 Test: atest SystemUITests Change-Id: I73b60a387dfc85f1c477e4a5cea2484a80992367
* Add a command line interface to SystemUIEvan Laird2020-09-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Implement UserTrackerFabian Kozynski2020-08-241-2/+2
| | | | | | | | | | | | | | | | 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
* Merge "Animate the priority ring in the onboarding" into rvc-dev am: 675d4a78cbTreeHugger Robot2020-06-101-1/+1
|\ | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11795077 Change-Id: Id942d251c84e28b8cb2950842facda444023e6bc
| * Animate the priority ring in the onboardingJulia Reynolds2020-06-091-1/+1
| | | | | | | | | | | | Test: manual Fixes: 155490513 Change-Id: I5cb6b09420337a2957d5174c1e150d400eef3a03
* | Merge "Update conversation priority onboarding" into rvc-dev am: ff182768f7Julia Reynolds2020-06-031-1/+1
|\| | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11707052 Change-Id: Id4975ef9595efbb9461f7ffbe7088ee84f3d80cc
| * Update conversation priority onboardingJulia Reynolds2020-06-021-1/+1
| | | | | | | | | | | | | | | | | | And fix a bug with toggling priority I noticed while testing Test: atest Fixes: 157988478 Bug: 155490513 Change-Id: I8f5a6076ed2aa6c862a187bac15f3ad9af3cd141
* | Add SharedPreferences key for reverseJohn Li2020-04-241-0/+2
|/ | | | | | Bug: 151127557 Test: manual Change-Id: I86fd156eeab4f585207b1aabc044fea3eca832db
* DO NOT MERGE: Show an onboarding screen for priority conversationsEvan Laird2020-04-161-0/+16
| | | | | | Test: atest SystemUITests Bug: 151843296 Change-Id: I5280cff71591f8551016b6ba00d3a579507367cb
* Adds a tooltip for multiple structuresFabian Kozynski2020-03-091-1/+3
| | | | | | | | | | | | | | | | 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
* Bubbles user education for stack & manageMady Mellor2020-02-271-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make PhoneStatusBarPolicy injectable.Dave Mankoff2020-02-251-1/+1
| | | | | | | | | | | Add DateFormatUtil that makes DateFormat methods non-static, (is24HourFormat specifically). PhoneStatusBarPolicy no longer needs a context. Bug: 147505562 Test: atest SystemUITests Change-Id: I7b272441971f5a74f2736cd545498b8b4077fca6
* Remove interaction flag code replaced by QuickStepContract (1/2)Matthew Ng2019-04-261-2/+0
| | | | | | | | Test: manual Bug: 112934365 Bug: 131419978 Fixes: 129497226 Change-Id: Iee5f5f99a1bea84fc69c8291e3f982ed68b875c5
* Add tool tip view for first run of volume dialog to notify users of odiAnthony Tripaldi2019-03-211-1/+3
| | | | | | | | captions functionality. Bug:128970574 Change-Id: I4710fd1d84f4116e003c14720a2ce55c5b3ff899 Test: manual
* Show swipe-up tip with exponential backoffTracy Zhou2018-05-211-0/+2
| | | | | | Change-Id: Icd32c0bd98623173322e5e33bd5400e679a01a10 Fixes: 79985309 Test: Manual test
* Update QuickScrub tip according to the latest spec.Tracy Zhou2018-05-021-0/+2
| | | | | | | | | | - 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
* Implement swipe up and quick scrub onboardingTracy Zhou2018-04-181-4/+8
| | | | | | Bug: 70180942 Test: manual test Change-Id: I5c487d1e4ab800450c6b5a8f7ad1bf7434e45904
* Revert "Revert "Nav icons and quick step states are determined by service ↵Winson Chung2018-04-041-1/+3
| | | | | | | | | | | | enabled"" This reverts commit 317ee507c2ea69044dc91f7c6d019deeab1ebeae. Reason for revert: Have fix for b/77566214 Test: manual Bug: 77566214 Change-Id: Ie827e3651f70dfde5f02a5099fd81a5eb4e4cd5e
* Revert "Nav icons and quick step states are determined by service enabled"Winson Chung2018-04-041-3/+1
| | | | | | | | | | This reverts commit 8a7c97a16d7cfa7bcc602dfa969370bce9dfb686. Reason for revert: b/77566214 Bug: 77566214 Change-Id: Iba3ef20a304e3a47f1affe0b38598c7d7f0daef7
* Nav icons and quick step states are determined by service enabledMatthew Ng2018-04-021-1/+3
| | | | | | | | | | | | | | | | | 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
* Volume UI updatesJulia Reynolds2018-03-291-1/+3
| | | | | | | | | | | | | - 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
* Update mobile data off dialog.Amin Shaikh2018-03-191-1/+3
| | | | | | | | | | 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
* Import launcher style reveal animations to QS.Amin Shaikh2018-02-271-0/+11
| | | | | | | | | | | | 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
* New small volume dialogJulia Reynolds2018-02-221-21/+23
| | | | | | | | | | | | | | - 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
* [QS] Add header tooltip for long pressRohan Shah2018-02-211-0/+6
| | | | | | | | | | | | | | | | | 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
* Revert "[QS] Add header tooltip for long press"Evan Laird2018-02-161-6/+0
| | | | | | | | This reverts commit 22caf078e493ff49e021a8f5af80ac10d4926feb. Reason for revert: Quick settings is no longer expanding properly. Reverting this fixes it Change-Id: I63b82e948316726067214b088016661785982e3a
* [QS] Add header tooltip for long pressRohan Shah2018-02-121-0/+6
| | | | | | | | | | | | | | | | 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
* Get swipe up onboarding text from launcherTony Wickham2018-02-061-2/+2
| | | | | | | | | | | | 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
* Add swipe up onboarding from appsTony Wickham2018-01-231-0/+4
| | | | | | | | | | | | | 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
* Don't show multi-user in QS unless it has been activated beforeJason Monk2017-06-301-0/+2
| | | | | | | | Like adding another user or activating a guest at some point. Test: manual Bug: 37152893 Change-Id: Ifeadeb8e7f021c4854aa74b71ffb6bed116c9c0f
* QS: Move auto-add state to settings providerJason Monk2017-06-301-1/+6
| | | | | | | | And back it up. Test: runtest systemui Change-Id: I880909ce63ab32a5c11f31f449c1aa10221085d3 Fixes: 62667758
* Update zen introduction textJulia Reynolds2017-06-051-0/+1
| | | | | | | | | | And add alarm text to QS & volume dialog. Change-Id: I8e3c06d6629473c453e579f23c75acd7cdfd4db1 Fixes: 38303817 Fixes: 31533768 Fixes: 33815404 Test: manual
* TV PIP: Remove onboarding activity and overlay activityJaewan Kim2017-04-171-2/+0
| | | | | | | | | 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
* Add QS tile for Night Display when first usedChristine Franks2017-03-011-0/+2
| | | | | | | | | | 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
* Ensuring that there are per-user last stack active times.Winson Chung2017-02-151-0/+1
| | | | | | | | | | | | | | | | | | - 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
* Revert "Fixing issue with old tasks being visible in Overview"Winson Chung2016-09-091-1/+0
| | | | | | | | Bug: 28908500 This reverts commit b258f6a4bd685e5efcb36c02d5817f659e10479b. Change-Id: I9b3c04358d6ca693ed3fdcd9220af13f81eb704e
* Fixing issue with old tasks being visible in OverviewWinson2016-08-301-0/+1
| | | | | | | | | | | | | | | | | - 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
* Remove "Night mode" from tunerJustin Klaassen2016-07-081-2/+0
| | | | | Bug: 28887927 Change-Id: Ic1c217152e56db63a87a1f1e772696d97b4b58b3
* Add a 1st-time dialog for Data Saver title.Felipe Leme2016-04-271-0/+2
| | | | | BUG: 28098106 Change-Id: Ida19dcfc11ff74117af58fe1a4d43aa03e087f2b
* Completely removing dead code related to search widget.Winson2016-03-231-4/+0
| | | | | Bug: 27742174 Change-Id: Ie478c562f6152338417aca5262b7f33ee4ca7ed5
* Fix drag to add tiles showing too many timesJason Monk2016-02-251-0/+2
| | | | | | | | | | 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
* Add support for auto-adding tilesJason Monk2016-02-081-0/+8
| | | | | | | | | 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