Commit Graph

893 Commits

Author SHA1 Message Date
Robert Horvath
993e82eec7 Merge "Add setting to go to sleep after long user inactivity" 2019-11-15 15:05:15 +00:00
Mady Mellor
53162c13a3 Add Bubble as an option in NotificationInfo longpress menu
- If the content is able to bubble, the bubble option will show in
  the menu
- If that notif is able to bubble (either via bubble metadata or via
  notification contents), then show the menu
- Adds tests for the bubble menu option, also tests selection for alert
  and silence buttons; removes unused test code

Test: atest NotificationInfoTest NotificationGutsManagerTest
Test: manual - post a bubble with bubbles test app, longpress on notif
               and demote it via menu => bubble is gone
             - long press on notif and promote it via menu => bubble is
               created
Bug: 138116133
Bug: 143173197
Change-Id: I2f2767ec12c49e5d3a8d2a7b86db5457d062275c
2019-11-11 16:29:37 -08:00
Robert Horvath
5560f38654 Add setting to go to sleep after long user inactivity
The European Commision prescribes an auto-standby feature for TV panels:
After some hours of inactivity, the device has to go from on-mode to
standby-mode or off-mode, or another condition not exceeding the
applicable requirements for standby-mode or for off-mode.

After a long time of no user activity the device should go to sleep,
even if wakelocks are held (eg. during video playback).

Test: 1. Set attentive timeout low, to 35s:
         `adb shell settings put secure attentive_timeout 35000`
      2. Play a YouTube video
      3. Observe warning dialog appearing after 5s
      4. Verify: Clicking a remote button or changing the setting higher hides
         the warning. Remote button press is consumed.
      5. Verify: After 35s of not pressing a button the device goes to sleep
      6. Verify: If "Stay awake" developer option is enabled, then
         warning is not displayed and device does not go to sleep after 35s
      7. Verify: No warning or sleep if setting is set to -1
Test: `atest frameworks/base/services/tests/servicestests/src/com/android/server/power/PowerManagerServiceTest.java`
Bug: 137633812
Change-Id: I551b6cffc336437fb1c5a00b4102f68ae0e003e9
2019-11-08 15:18:28 +01:00
Edward Savage-Jones
c669e81af5 Merge "translate="false" -> translatable="false"" am: dd87b30266 am: 2225dc01d4 am: 37c6b9d646
am: d5cb604a81

Change-Id: I57ae295ae26b3901998227f811d8005eedcbcdae
2019-10-21 09:30:10 -07:00
Edward Savage-Jones
d5cb604a81 Merge "translate="false" -> translatable="false"" am: dd87b30266 am: 2225dc01d4
am: 37c6b9d646

Change-Id: I376f320659cc71fd0be58bf027f0546dca3f612a
2019-10-21 09:19:03 -07:00
Edward Savage-Jones
37c6b9d646 Merge "translate="false" -> translatable="false"" am: dd87b30266
am: 2225dc01d4

Change-Id: I580f58080a01776837249afbb93e02a6ce79a33d
2019-10-21 09:08:01 -07:00
Edward Savage-Jones
2225dc01d4 Merge "translate="false" -> translatable="false""
am: dd87b30266

Change-Id: Ie1ea3ee801339639c131e5cb89b3024d13c4b24c
2019-10-21 08:57:02 -07:00
Edward Savage-Jones
c2d63dc5e9 translate="false" -> translatable="false"
Fixed a typo related to String translation

Bug: 142888682
Test: Manual
Change-Id: I75f1ce67492f54bdfdf859b283d5095909cc63f5
2019-10-18 17:26:28 +08:00
Paul McLean
79ce5e08a9 Add "record through USB" warning to UsbConfirmActivity.
Bug: 142742243
Test: install UsbPeristenPermissionsTestApp, connect USB Audio device
w/ record activity, notice additional warning.

Change-Id: Ic6f49d108617945079d24f71ab0487c46f3e27cb
2019-10-15 14:57:27 -06:00
Kevin Chyn
ff168dc49d 12/n: Add LockPatternView for setDeviceCredentialAllowed(true)
Includes lock icon, title, subtitle, description, lock pattern view.
Corner radius and padding animates nicely from !=0 --> 0.

Support for password/pin will come in a subsequent CL.
Unit tests for AuthCredentialView will be added when
password/pin are implemented.

Support for persisting across configuration changes
and landscape view will also be added in a subsequent
change.

Test: BiometricPromptDemo with the following:
      1) Confirm pattern, callback received
      2) Rejected, error string shown
      3) Lockout (5 attempts), countdown string shown,
         pattern view disabled until countdown is over
      4) Cancel pattern auth, callback received
Test: atest BiometricServiceTest
Test: atest com.android.systemui.biometrics

Change-Id: Idc01e33be0074a6c8a43f60b172a4391bfbe5e8a
2019-10-03 14:00:16 -07:00
Kevin Chyn
396a84129f 11/n: Animate panel to full-screen when "Use Password" is pressed
Bug: 140127687
Test: atest com.android.systemui.biometrics
Test: BiometricPromptDemo, enable device credential, press password button

Change-Id: I6a4c6ea7fb4a4f0c55faa049a8e7e71a1c5f19ff
2019-10-03 14:00:16 -07:00
Paul Mclean
843c2951fc Merge "Adding additional prompt to UsbPermissionsDialg for audio devices." 2019-10-03 19:33:39 +00:00
Paul McLean
d336453217 Adding additional prompt to UsbPermissionsDialg for audio devices.
To support, adding members to UsbDevice to mark devices as having audio
playback and audio capture capabilities.

Bug: 136080195
Test: Run "UsbAccess" test bed. Connect audio and non-audio USB devices
and see the additional prompt shown/not-shown.

Change-Id: Ie7c614d9ed30a163c350b18a54b8a9115698779d
2019-10-03 11:54:05 -06:00
Fabian Kozynski
2f9dd75611 Added secondary label to flashlight
When flashlight is disabled, specify that it's because the camera is in
use.

Fixes: 138872957
Test: manual

Change-Id: I40836d8a51fca625d2a4391ba6a7315dd9d895eb
2019-10-02 13:15:41 -04:00
Evan Laird
a3b5dd1b89 DO NOT MERGE Allow for HTML styling in mobile data type content descriptions
This CL implements a (somewhat hacky) way to enable HTML attributes in
the mobile data type content description strings. This way we can use
some basic styling in the Quick Settings cellular data tile which uses
it in a TextView.

We do this by assuming that the content description is valid, escaped
HTML, and send two separate CharSequences to all of the listeners, all
of which can then decide if they need the regular content description or
the prettified version.

Test: atest SystemUITests; system ui demo mode
Bug: 141177147
Change-Id: Idf387111b0cdc34ad3762eac0ec6c2b484b393e3
Merged-In: Idf387111b0cdc34ad3762eac0ec6c2b484b393e3
2019-09-25 11:13:24 +00:00
Evan Laird
83c87e50b1 DO NOT MERGE Allow for HTML styling in mobile data type content descriptions
This CL implements a (somewhat hacky) way to enable HTML attributes in
the mobile data type content description strings. This way we can use
some basic styling in the Quick Settings cellular data tile which uses
it in a TextView.

We do this by assuming that the content description is valid, escaped
HTML, and send two separate CharSequences to all of the listeners, all
of which can then decide if they need the regular content description or
the prettified version.

Test: atest SystemUITests; system ui demo mode
Bug: 141177147
Change-Id: Idf387111b0cdc34ad3762eac0ec6c2b484b393e3
2019-09-25 11:12:37 +00:00
Kevin Chyn
e9744e406e 8/n: Ensure accessibility works on new implementation
Bug: 123378871
Test: manual test with talkback enabled

Change-Id: I7f4da76ef7ebcbb74f1984b2859b85aa72e8d946
2019-09-11 15:54:09 -07:00
Hongwei Wang
98d0858138 Update the string on how to exit pinning mode in gesture navigation
Bug: 139438042
Test: Back gesture in screen pinning mode
Change-Id: Ia21e0324cb9a78c6664f4ba787189c6a2423a03d
Merged-In: Ia21e0324cb9a78c6664f4ba787189c6a2423a03d
2019-08-15 18:16:59 +00:00
Hongwei Wang
0e62574bd0 Update the string on how to exit pinning mode in gesture navigation
Bug: 139438042
Test: Back gesture in screen pinning mode
Change-Id: Ia21e0324cb9a78c6664f4ba787189c6a2423a03d
2019-08-15 11:11:55 -07:00
Lucas Dupin
adce35309b Clearer message when face auth fails
Before we were saying "Swipe to open" on bouncer and some users though
it was a bug, not we're being more explicit and saying "Swipe up to try
again"

Test: manual
Fixes: 134042651
Change-Id: I1a057819253252cc3912ff6b66505a8d55dc93ae
2019-08-02 11:17:39 -07:00
Zhen Zhang
788232785d Merge "Change quick setting min_num_tiles number and text to resources value." into qt-dev
am: bc058faaa3

Change-Id: I329be5dee77d6f45b4bd5314971655df52525294
2019-07-02 11:21:48 -07:00
TreeHugger Robot
bc058faaa3 Merge "Change quick setting min_num_tiles number and text to resources value." into qt-dev 2019-07-02 17:56:59 +00:00
Fabian Kozynski
6288f173ed Merge "Fix case of Dark theme" into qt-dev
am: 093af798e4

Change-Id: I8abccc7a1eae8a25bf23a058d98b812ea8ce40bd
2019-06-24 13:03:31 -07:00
Fabian Kozynski
42c30aec01 Fix case of Dark theme
Test: manual
Fixes: 135711083
Change-Id: Ie97422e25e0dffd500d31496a4114b81d1f7218a
2019-06-24 09:52:41 -04:00
Kevin Chyn
d4e0b3b0d2 Don't show hint while authenticating, show hint while pending confirmation
Also, restore "enabled" state of confirm button, otherwise it becomes
available when changing configurations.

Also, "confirm" button should become visible+disabled when tapping try again

Fixes: 135618797

Test: E2E fingerprint and face, with various tests such as rotation during
      various states

Change-Id: I1073a4479077355f1c275faed933ac8510927251
2019-06-19 13:39:23 -07:00
Zhen Zhang
ea2d2267be Change quick setting min_num_tiles number and text to resources value.
Bug: 130030850
Test: manually test by removing quick setting tile until we have 6. The
system will stop them at 6 and showing message "You need at least 6
tiles".

Change-Id: If2a4a42a4d3859908a2b529e2faae214fe6cebb6
(cherry picked from commit ad0a6fdbb1)
2019-06-12 16:09:45 +00:00
Lucas Dupin
877adf1dfd Lock screen string change
Test: manual
Fixes: 133876098
Change-Id: Ie45c68098b7e4cf4605c33ea4767444ddc85537e
2019-06-04 18:56:49 -07:00
Amin Shaikh
44386742fd Update battery content description.
Ensure "battery" and "percent" are included.

Bug: 134035327
Test: make; enable talkback
Change-Id: I4c8a0a2c53333bc24b7075f19ca9ec4f9203167e
2019-05-31 09:25:38 -04:00
Mehdi Alizadeh
4a0c923c96 Adds strings for notifications when default launcher changes
Bug: 129532605
Test: None
Change-Id: Ie85dfc704939db217c9b59724e0a586020aaa797
2019-05-30 12:00:39 -07:00
Ned Burns
369f147e8f Update guts to match latest specs
- Updates dimens and margins to match specs
- Adds selection color for border, icon, and text
- Adjusts fonts to be theme-aware

Test: manual
Bug: 132689331
Change-Id: Ibd2ca853c9a571f25d82151bdd736edb4d5c5d5e
2019-05-28 11:27:05 -04:00
Badhri Jagan Sridharan
775f334fad Merge "Add support for LearnMore option" into qt-dev 2019-05-21 00:31:45 +00:00
Ned Burns
25443162c3 Merge "Hide silent notifications section header on lockscreen" into qt-dev 2019-05-20 21:27:53 +00:00
Salvador Martinez
f4d733405e Merge "Update battery saver suggestion to go to right page" into qt-dev 2019-05-20 21:22:57 +00:00
Ned Burns
4a58ec22e1 Merge "Revert to basic icons in notification info." into qt-dev 2019-05-20 20:16:44 +00:00
Ned Burns
7eeccdd8eb Hide silent notifications section header on lockscreen
Change things so we remove the gentle header when we're on the lock
screen. We still want to show the break between sections, so we
also modify beginsSection() to count either the header or the first
gentle child if there is no header.

Test: manual
Bug: 132689331
Change-Id: I02708a3a532cc2b9df2d1cec8192387dff132152
2019-05-20 13:36:55 -04:00
Salvador Martinez
84b5bff352 Update battery saver suggestion to go to right page
Now that there are several different versions of automatic
battery saver, this notification should just take you to the
battery saver schedule page rather than setting it to 15%
automatic triggering.

Test: adb shell am broadcast -a PNW.autoSaverSuggestion
      --ez extra_confirm_only false
Bug: 122599859

Change-Id: I3f8cd73b146d7528bf4125e40efa564a96b0ee6c
2019-05-17 13:09:55 -07:00
Narayan Kamath
9f72a1e3e8 Changes to MediaProjection UX.
Description strings are changed for privileged apps that hold the
REMOTE_DISPLAY_PROVIDER permission.

Test: Visual
Bug: 132924545
Bug: 132924713
Change-Id: Ib9a3be6dc096124d5cec4769ed1f7e8e3eec63f5
2019-05-17 16:37:55 +01:00
Badhri Jagan Sridharan
f603a2c62d Add support for LearnMore option
UsbContaminant dialog no longer uses AlertActivity/AlertController
as UI design has been updated to a custom design to support
the Learn more option.

The CL also incorporates string updates.

Bug: 132737150
Test: dumpsys usb add-port "matrix" ufp;
dumpsys usb set-contaminant-status "matrix" true
Change-Id: I2b27e60e48986e669ef9bfe0239a56430d14a5a2
2019-05-16 18:01:55 -07:00
Dan Sandler
0ed02298e7 Revert to basic icons in notification info.
Also:
 - hide subtext---just show icon + label.
 - Revert to "Alerting" / "Silent" language for labels.

Bug: 132689331
Test: manual
Change-Id: I3f672d9197663b56cc7f6bd489e3363c1895b7fe
2019-05-14 20:10:44 -04:00
Kevin Chyn
bb79c0026b Update content descriptions when text/icons are updated
Fixes: 132300444

Test: manual

Change-Id: Ic43f516ac0b26db6104e4cfaeda53795931170e9
2019-05-14 14:05:47 -07:00
Kevin Chyn
8ab1de6804 Fix several accessibility issues with BiometricPrompt
1) Ensure spaces can be tapped/double-tapped with talkback enabled
2) Do not explicitly set focus
3) Give empty spaces content description for talkback

Fixes: 132376836
Fixes: 132378618

Test: Enabled talkback, the above are fixed
Change-Id: Ic923ba8aed4922e852a8b82b6120644ca627d651
2019-05-14 12:19:50 -07:00
TreeHugger Robot
46c92d3f27 Merge "Disable dark mode tile when in battery saver" into qt-dev 2019-05-10 23:19:38 +00:00
Lucas Dupin
e7acd0ff79 Disable dark mode tile when in battery saver
Test: toggle battery saver, try to toggle dark mode
Test: toggle battery saver, look at dark mode tile
Fixes: 132348329
Change-Id: I265309fb554637ac342c4cb360b03897d0b47b8f
2019-05-10 14:48:16 -07:00
TreeHugger Robot
d8f241214d Merge "Create notification channel interstitial shelf" into qt-dev 2019-05-09 19:52:41 +00:00
Evan Laird
47dc4546ec Create notification channel interstitial shelf
From NotificationGuts, tapping "Turn off notifications" will now present
a half-shelf allowing the user to directly block up to 4 channels (the
one given from the notification guts + up to 3 other channels from
that app) or the app itself.

Test: visual (for now)
Bug: 130307442
Fixes: 131432719
Change-Id: I7e82928dfd56b9e25e5bef02607eede55b11d9e3
2019-05-09 11:13:19 -04:00
Joshua Tsuji
4accf598a9 Adds the new dismiss target, with fling/magnet to dismiss.
Test: atest SystemUITests
Bug: 123541855
Change-Id: Id2a149f8551eb58b240ece35569ca394c06e811d
2019-05-08 18:37:32 -04:00
Ned Burns
9eb06333c4 Add "Gentle Notifications" header to gentle section
Missing "clear all" support, will add in later CL.

Test: manual

Bug: 131358199
Change-Id: I18aaacb1bf3f173b151bcac8df9dd953d0a7f513
2019-05-06 14:52:07 -04:00
TreeHugger Robot
37503a0637 Merge "Replace bubble settings icon with "manage" text" into qt-dev 2019-05-01 23:36:21 +00:00
Lyn Han
754e77b726 Replace bubble settings icon with "manage" text
Bug: 130346513
Test: manual
Change-Id: I01e5dbd79976bf58a037258952bbdd3550e2251f
2019-05-01 12:24:04 -07:00
Julia Reynolds
4d1dd798bc Another guts redesign
Test: atest
Bug: 131290247
Fixes: 131441935
Fixes: 131621405

Change-Id: I5a6840f3f2a5a241facaeab8cf9b19f41606d8ed
2019-04-30 12:09:29 -04:00