Commit Graph

748 Commits

Author SHA1 Message Date
Fabian Kozynski
5d44a4f426 Fixes strings
Bug: 119835271
Bug: 119835278
Bug: 119835773
Test: visual
Change-Id: Ifb860cfac3354d0a64d856c003fc33d112f2d0f8
2018-11-21 15:01:10 -05:00
Fabian Kozynski
ef12449cf8 Version 2 of Ongoing Privacy Dialog
Minor changes to colors and layout of chip.

Redesign of dialog using new mocks.

Dialog launches Permission Hub

Test: visual & atest PrivacyDialogBuilderTest
Fixes: 117646163
Bug: 112331475

Change-Id: Ic8008f05fcb139c2581794abbb47c00819c20d7f
2018-11-16 09:16:25 -05:00
Gus Prevas
9abc50646f Adds silence toggle to notification settings.
This change modifies the UI that appears when a notification is
long-pressed to include a third option when the notification could
potentially buzz or make sound, allowing the user to promote or demote
the notification's channel such that it will not alert (or will start
alerting) for future notifications.

Test: atest SystemUITests
Bug: 116622974
Change-Id: Ia070d0ef1b181b4de8b3d49ace9ff2a65fed8deb
2018-11-09 13:19:11 -05:00
Gus Prevas
4a13aab57b Updates button label on AIA notification.
Change-Id: I2085ede4611daeea2ef13894927c5e20662a8596
Fixes: 36989738
Test: manually
2018-11-07 11:16:03 -05:00
Fabian Kozynski
1263824ae5 Dialog and chip for privacy showing
Creates a chip and a dialog to show the current apps using certain app
ops (location, microphone, camera).

Dimens are estimated. Settings button dismisses dialog for now.

Test: atest && visual
Bug: 117646163
Change-Id: Ida5b42acf331d6c9da06141379eadc0da5e72df2
2018-11-02 12:14:10 -04:00
Beth Thibodeau
5898ac47b2 Adding screen recording function.
Screen recording can be launched via long press on screenshot in
the global actions menu if the local feature flag is enabled.
Otherwise, long press on screenshot will also trigger a screenshot.

Demo videos: https://drive.google.com/open?id=1oJzfzJb8aGXSUqn4CZ_Yn7qWmJ2dvRd5

Test: manual
Change-Id: I373d38ad86291ff6f26f7dca3195001bd8f5ee16
Bug: 111395687
Bug: 118826991
2018-11-01 15:56:39 -04:00
TreeHugger Robot
8a57b4d4fa Merge "Revert "Proxy notification improvments"" 2018-11-01 01:21:23 +00:00
Daniel Sandler
d0a52b6013 Revert "Proxy notification improvments"
This reverts commit ac98aea2ed.

Reason for revert: b/118700922 (broken CTS test)

Bug: 118700922
Change-Id: I7d55365b3f64acd82e377dc973e2de5d654cc352
2018-10-31 20:14:02 +00:00
Julia Reynolds
8775b65952 Merge "Proxy notification improvments" 2018-10-30 17:02:24 +00:00
Gus Prevas
33619afa8b Hides low-priority icons from status bar.
This change modifies NotificationIconAreaController such that icons for
low-priority notifications are not shown.  This behavior is controlled
by a new switch in the SystemUI Tuner.

Test: manually
Bug: 116622974
Change-Id: I7f1d5b6c5757936aba93da3d0e50ae1dd8434b33
2018-10-30 13:41:53 +00:00
Julia Reynolds
ac98aea2ed Proxy notification improvments
- Fix a bug where the notifications weren't being posted
- Add attribution to the notification guts

Bug: 111452544
Test: atest
Change-Id: I58d104fe0ad8450a4722585335011ea633fee52a
2018-10-29 14:16:03 -04:00
Winson Chung
2dbcf0973b Moving SysUI with legacy Recents to another build target
- Move all legacy recents code out of the core sysui code
- Add separate target for products which still depend on it
- Move overview proxy implementation into another implementation of the
  recents interface

Test: atest SystemUITests
Test: Push SystemUiWithLegacyRecents to the system image
      adb shell pm disable com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
      and ensure that the old recents implementation still works (and split
      screen)

Change-Id: Iad67218ec37c13c79b6393d87f6bdc4f3996e2c6
Signed-off-by: Winson Chung <winsonc@google.com>
2018-10-26 10:15:50 -07:00
Fabian Kozynski
4235b2a802 CastTile becomes unavailable when not connected to Wifi
CastTile registers with NetworkController and shows unavailable
status when not connected to WiFi (regardless of internet connectivity).
Includes accessibility context for this state.

Added tests for behavior.

Test: manual && atest
Change-Id: I3004ed18e545d8d8c448f01d33eb70bcfd9831b2
Fixes: 78152102
2018-10-11 16:41:02 -04:00
Gus Prevas
fbcc82869f Shortens "Manage notifications" link to "Manage".
Test: manual
Change-Id: I3af98ea14ac8c65afffbb6e28297598cbb648c66
Fixes: 115531288
2018-10-02 11:18:36 -04:00
TreeHugger Robot
2a0b67d0f3 Merge "Updates copy and contentIntent on AIA notification." 2018-09-24 16:27:42 +00:00
Gus Prevas
71e15d15c0 Updates copy and contentIntent on AIA notification.
Test: manually
Bug: 36989738
Change-Id: I769df6d70a4e5482a61bdfd020545b562478ec88
2018-09-21 11:12:21 -04:00
Kevin Chyn
6cf54e8190 3/n: Add FaceDialogView and "confirmation" plumbing
This change adds plumbing from <Biometric>Service to SystemUI for requiring
user confirmation (or not). This change also fixes some layout bugs
that were hard to notice.

Bug: 111461540
Fixes: 113130114
Fixes: 116135579

Test: With confirmation, crypto operation does not work until token
      is added to Keystore
Test: Without confirmation, crypto operation works when biometric is
      authenticated
Test: BiometricPromptDemo works, UI elements are all correct
Test: Talkback messages are correct

Change-Id: I2c05577699a29c09777cae4db6c7334c1e6bc179
2018-09-20 17:53:10 -07:00
Jovana Knezevic
b64490ed86 Merge "Adds an info dialog when a maximum number of users on the device is reached." 2018-08-23 22:50:19 +00:00
TreeHugger Robot
a41579bf5c Merge "Added header to QS Edit view" 2018-08-22 22:25:22 +00:00
Fabian Kozynski
39ec861009 Added header to QS Edit view
The TileAdapter associated with the RecyclerView used to Edit
the Quick Settings was modified to contain a TextView as a Header.

Position arguments were corrected by 1 to support this. In particular
those of the Accessibility contexts.

Padding in the TextView as well as the RecyclerView was reduced to
minimize the movement of the tiles when switching into the Edit View.
This is not completely achieved and it is dependent on the size of
the font.

Change-Id: Ic89cec8cae15c238ac6e0b1c554c06c6b7086bab
Bug: 77326457
Bug: 36076720#24
Test: Manual - Screenshots
2018-08-22 15:22:55 -04:00
Aurimas Liutikas
dcb3b508a8 Add positions to strings in SystemUI that had multiple place holders.
This shuts aapt2 up about "multiple substitutions specified in non-positional format"

Test: None
Change-Id: I0366b4d530c7c9f6e8b79dce5b739b059a74c271
2018-08-22 11:14:44 -07:00
jovanak
a17e16897c Adds an info dialog when a maximum number of users on the device is reached.
Change-Id: I559ddbcbc22f0388af22d807711533659eed8421
Fixes: 111075706
Test: Manual tests on mojave, pre-limit and post-limit reached.
(cherry picked from commit bc4d90d0c99607cf2b812345c2192814a06649aa)
2018-08-22 00:02:18 +00:00
Fabian Kozynski
8f3763dc71 Talkback for edit QS, action as part of context.
Accessibility context for moving or adding tiles has context label as
"Add tile X to position Y" or "Move tile X to position Y" while moving
cursor. No confirmation announcement after accepting.

Removed unused strings.

Change-Id: I6cf0fbe110f9231e592ee51820edd24541f98c5c
Fixes: 79154713
Test: Manual
2018-08-16 11:37:17 -04:00
Julia Reynolds
2ad4753fb6 Remove managed profile toast
Change-Id: I9f324a94d7fab35b0f00a1bd9c675708dac6f85a
Fixes: 110418889
Test: atest SystemUITests
2018-06-19 16:09:37 -04:00
Beverly
f1ef5833b0 Merge changes Id4feeefa,Ie0a501b8 into pi-dev am: 45a250a2be
am: 6e66b320fd

Change-Id: I8f185099f0f00f62a9ae6e219f29c9dd2efd8d2d
2018-05-18 17:01:25 -07:00
Beverly
872cc2dec7 Update DND strings
Test: manual
Bug: 79525632
Change-Id: Ie0a501b8bec964b760c7f686d93ee83ec3454897
2018-05-18 17:09:45 -04:00
Lucas Dupin
c778c6fd68 Merge "AOD group notification style" into pi-dev am: b0e503f96d
am: 9c8900ce8d

Change-Id: I69d80674a8c063df363851b275bc7bc6c50f5418
2018-05-10 00:13:44 -07:00
Lucas Dupin
b0e503f96d Merge "AOD group notification style" into pi-dev 2018-05-10 06:49:42 +00:00
Lucas Dupin
4c797d6a61 AOD group notification style
Change-Id: Ibcabb20f6d4eb48bf36204f8068f48176844f88d
Fixes: 76110106
Test: visual
2018-05-09 11:12:01 -07:00
Yohei Yukawa
61932f38ec Use Meta+Space for hard-keyboard layout switching
Currently we are not quite ready to have a system-level shortcut to
rotate IME language.  Until we become ready to do so, let's use
Meta+Space for hardware keyboard layout switching.

Fix: 79150878
Test: Manually tested as follows.
 1. Connect a hardware keyboard.
 2. Enable multiple hardware keyboard layouts.
 3. Make sure the hardware keyboard layout switches to the next one
    with Meta+Space.
 4. Make sure the hardware keyboard layout switches to the next one
    with Ctrl+Space.
 5. Make sure the hardware keyboard layout switches to the previous
    one with Shift+Ctrl+Space.
 6. Make sure the hardware keyboard layout switches to the previous
    one with Shift+Meta+Space.
Change-Id: Ife8a7100ec52792f4c42af2aa99298687c9af457
2018-05-07 15:35:10 -07:00
android-build-team Robot
478e0805a0 Merge "a11y edits to dnd dialog and volume ring toggle" into pi-dev 2018-05-07 18:05:28 +00:00
android-build-team Robot
dd0f6709f8 Merge "Added toggle overview custom action over home button for a11y" into pi-dev 2018-05-07 17:17:10 +00:00
Julia Reynolds
15db7cdf8d Don't be clever with strings
The app ops strings were not translating well, leading to
crashes in some languages

Test: atest SystemUITests
Change-Id: Iee18504217c5c13543ad130f502695e3919d7ddf
Fixes: 77640411
2018-05-07 11:09:20 -04:00
Matthew Ng
44b14508de Added toggle overview custom action over home button for a11y
The toggle overview custom action only appears when swipe up ui is shown
(2 buttons).

Change-Id: I8b3790c98b663dd04bec921a9f7372733c73ea4e
Fixes: 78177915
Test: use talkback, enable swipe up ui and toggle overview via home btn
2018-05-04 17:54:07 -07:00
Beverly
f138ba29de a11y edits to dnd dialog and volume ring toggle
- don't use announce in the dnd enable dialog - instead make the radio
button content a live region
- add hints to volume dialog ring button and edit content descriptions

Change-Id: I4b0db5e9d8dc6df3f48a4eccad1045d7baca4031
Fixes: 78914992
Fixes: 76385188
Test: manual
2018-05-04 20:59:13 +00:00
android-build-team Robot
aeaefe91bc Merge "Revert "Update 'dnd is hiding notifications' view"" into pi-dev 2018-05-03 13:46:56 +00:00
Julia Reynolds
34f14968b6 Revert "Update 'dnd is hiding notifications' view"
This reverts commit 85bad9b5bb.

Change-Id: Ic68475a8df0ae377c4fc357017b7d2a6b5311433
Fixes: 79155510
Fixes: 79156480
2018-05-03 12:40:20 +00:00
Dan Sandler
4d90d1ede7 SystemUI heap monitor & hprof dump tile.
Adding the tile to your active set will start a continuous memory tracker,
updating the tile every minute with the latest pss value. Tapping the tile
will pull a full heap dump, zip it, and share it via ACTION_SEND.

Additionally, @integer/watch_heap_limit can be set to the heap size (in KB)
at which ActivityManager will automatically generate a heap dump and notify
the user when it's ready.

Available only on IS_DEBUGGABLE builds. Supplies limited. Order now!

Bug: 76208386
Test: atest com.android.systemui.util.leak.GarbageMonitorTest
Test: runtest systemui
Change-Id: I0434dd7dc330784c750469b013e40b31ef92638d
2018-05-01 21:51:15 +00:00
Bingyu Zhang
3e169cac13 Merge "Accessibility change when Trusted Face icon shows." into pi-dev 2018-05-01 18:14:31 +00:00
Julia Reynolds
85bad9b5bb Update 'dnd is hiding notifications' view
Add an icon and alawys show the view if DND is on and suppressing
notifications from the shade. 'Manage notifications',
'no notifications', and 'clear all'are hidden when this view is visible.

Bug: 78586809
Test: atest SystemUITests
Change-Id: I9d68fda8a3bc3213c20f9e57ca64d75eebdc1d94
2018-05-01 09:04:38 -04:00
Bingyu Zhang
bfe6dcf3fc Accessibility change when Trusted Face icon shows.
When unlocking device, if Trusted Face is on, "Scanning face" should be
automatically announced.
Also change the contentDescription for face icon, then when clicking the face icon,
instead of "unlock button", "Scanning face" will be talked back.

Test: manual
Bug:74328543
Change-Id: I94f9faa45bf5f6f7ceaf7df5acab0a970f651395
2018-04-25 10:20:36 -07:00
Makoto Onuki
778ce66697 DO NOT MERGE Make "Want to start battery saver?" dialog better.
- Don't line-break in "Battery" (only in English)
- Add "Learn more" link.

Bug: 78261259

Test: Manual test with:
- adb shell dumpsys battery unplug
- adb shell settings delete secure low_power_warning_acknowledged
- Enable battery saver
- Make sure the link is clickable if a link is set.
- Make sure there's no "learn more" link if the link is not set in strings.xml

Change-Id: I83364f628dd596a4d50bf2aca4db7cbfe7cf4909
2018-04-25 15:27:47 +00:00
Salvador Martinez
2cdc5281e1 Update title for SysUI battery warning
We're changing the text from "battery is low" to talk about the
battery running out soon instead so users are not confused if the
time based trigger occurs at higher battery percentages.

Test: robotests pass
Bug: 77587724
Change-Id: Ib7b2c507e150e06e307f810f89c6da407c77990a
2018-04-23 16:13:19 -07:00
TreeHugger Robot
df173b59f6 Merge "Rely on tile state for on/off a11y announcement." into pi-dev 2018-04-18 23:53:11 +00:00
Amin Shaikh
3468e5a016 Rely on tile state for on/off a11y announcement.
Do not include on/off in QS tile content descriptions.

Change-Id: I10ddeb6c56f99fe4dad3eaaa98a56cafba68be9f
Fixes: 78171152
Test: manual
2018-04-18 12:58:01 -04:00
Julia Reynolds
6013e5cc96 Color and text changes
Change-Id: I2b1837ffd16911be20b5d5f9a7007ff3071265ab
Fixes: 78191129
Fixes: 77810424
Fixes: 78196346
Test: manual inspection
2018-04-18 08:45:12 -04:00
Milo Sredkov
66da07bf81 Set accessibility action label for smart replies.
Currently the TalkBack reads something like "I am here, button,
double-tap to activate". Set an accessiblity delegate that changes
the click action label to "send", so the TalkBack message becomes
"I am here, button, double-tap to send".

Bug: 72216277
Test: In Notify post a notification with choices. Read it via TalkBack.
Change-Id: Ib50f6ff6f698196d905aea2e303b6bd2e5531587
2018-04-17 16:16:15 +01:00
Tracy Zhou
0ad27632ca Move QuickStep onboarding strings from Launcher to SysUI
Test: N/A
Bug: 70180942
Change-Id: Ic3bd63899017f23c011a41a7a5a9e73a87b9eec1
2018-04-12 11:23:17 -07:00
TreeHugger Robot
497bc2cbe9 Merge "[QS] Update mobile tile secondary text" into pi-dev 2018-04-11 21:29:20 +00:00
Rohan Shah
7bc3744ccd [QS] Update mobile tile secondary text
Since the mobile data string is required for the content description,
adding a new string for the short version and updating the footer impl
and icon setup logic to reference the content description instead.

Test: Manually, via string check in QS
Bug: 77693344
Change-Id: I794500bcd445f98d69c096f6bf2f3b7d147c2780
2018-04-11 12:41:23 -04:00