Commit Graph

923 Commits

Author SHA1 Message Date
Jay Aliomer
15d855465b Custom dark theme scheduling
allows the use to set the start and end automatic dark theme
activation within a day.
Fixes: 147649309
Test: atest UiModeManagerServiceTest UiModeManagerTest
Change-Id: Iaa3593d4e8863412e3703ce9f089b88dd4df1225
2020-01-21 14:13:23 -05:00
TreeHugger Robot
0b56225ecf Merge "Add screen recording QS tile" 2020-01-15 21:29:10 +00:00
Julia Reynolds
12ba4cf7a8 Add conversation-centric inline controls
Round one - needs polish, and actions may be added or removed
in the future, and demote isn't working yet.

Bug: 137397357
Test: atest
Change-Id: Ia52598bec58fc54b8bde29168cd419a24d1e4dab
2020-01-15 10:20:29 -05:00
Beth Thibodeau
77c2545dd9 Add screen recording QS tile
Currently defaults to no taps, no audio. This adds a 3s countdown before
actually launching the recording, which can be stopped from either the
notification or the tile.

Bug: 137153302
Test: manual
Change-Id: I0e194dc8d43d8834e07e1f6d8de90a2c703a4c3a
2020-01-10 15:05:49 -05:00
TreeHugger Robot
5ba7d903a6 Merge changes Id007cc64,I94afce96
* changes:
  Minified people row
  Current user and work profile availability in peoplehub
2020-01-08 17:33:43 +00:00
Steve Elliott
d991c048bc Minified people row
Bug: 146664602
Test: manual, atest
Change-Id: Id007cc64a6d37dea51bbdd5d70d7eac4df7556ac
2020-01-08 11:19:48 -05:00
Narayan Kamath
1fe15700f7 SystemUI: Remove stray space at the end of a sentence.
In the interests of grammatical accuracy. Was also confusing
to the localization team.

Test: manual
Bug: 146821690
Change-Id: I1404423e29904052a899aa406adf17417be67914
2019-12-27 13:06:49 +00:00
TreeHugger Robot
cbb570901c Merge "Change media projection permission dialog." 2019-12-19 12:38:27 +00:00
Automerger Merge Worker
872b451e77 Battery Saver capitilized in tile am: 730fc5b2c9 am: 9315c09b30
Change-Id: I0777856e60828bd739737779b92b9fd1ac0363a3
2019-12-18 02:58:37 +00:00
Automerger Merge Worker
9315c09b30 Battery Saver capitilized in tile am: 730fc5b2c9
Change-Id: I2df5bce6d717a6dc22e42aa489d9da3d14b52bf5
2019-12-18 02:42:39 +00:00
Jay Aliomer
730fc5b2c9 Battery Saver capitilized in tile
When the phone is in battery saver mode, the "Battery Saver" secondary
label should be capitalized

Test: manual

Fixes: 145694753
Change-Id: Ia88547aa05ad441b07da3044e7148e1a918c28b5
2019-12-18 02:07:12 +00:00
Automerger Merge Worker
6edce1b1cc Merge "Dark theme battery saver tile secondary text" into qt-qpr1-dev am: a8a1e592aa am: 24beda9edb
Change-Id: I6242f9ff875715eae91c38558313556502df1072
2019-12-17 23:13:28 +00:00
Automerger Merge Worker
24beda9edb Merge "Dark theme battery saver tile secondary text" into qt-qpr1-dev am: a8a1e592aa
Change-Id: Icb7b51383b444748077d019cccb9e5416261599a
2019-12-17 22:09:27 +00:00
Jay Aliomer
f19ce4af1d Dark theme battery saver tile secondary text
Dark theme tile on battery saver should show
"Dark theme" and "Battery saver" on two lines

Test: manual. turn battery saver on while dark theme on auto

Fixes: 146439388
Change-Id: I460b582ca7fcf244b406d6eaf70c10e4edc52d85
2019-12-17 20:57:08 +00:00
chaviw
4ce1ddff79 Added WindowMagnification for Accessibility in System UI
Added support for window magnification as an accessibility feature. The
UI can either be dragged to a new a location or arrow controls can move
the window around.

Test: adb shell settings put secure window_magnification 1
Bug: 136250281
Change-Id: If3098df098f2a1b88b2170e773dccc8f86946abf
2019-12-16 13:49:53 -08:00
Sunny Goyal
b4a26016c4 Moving product specific strings to a separate directory
This allows for easier organization of gradle project

Test: Verified everything builds
Change-Id: Idde32a0ccdf0c6cf0fca7898d7ad770b709fc1f5
2019-12-06 17:48:39 +00:00
Narayan Kamath
d47702cd09 Change media projection permission dialog.
Based on feedback from partners.

Test: visual
Bug: 143183960
Change-Id: Ifa734cc8b2f7ca7696af03327709728731ca9490
2019-11-28 15:00:36 +00:00
Wilson Wu
fe7f309fae Merge "Support showing alignment hint based on aligniment state of dock" into qt-qpr1-dev
am: fc3f1408da

Change-Id: I4b9b1fd4c3209a6e3ae42c65d0a2b4c8484fc8ba
2019-11-26 02:39:29 -08:00
Wilson Wu
fc3f1408da Merge "Support showing alignment hint based on aligniment state of dock" into qt-qpr1-dev 2019-11-26 10:29:40 +00:00
Jerry Chang
4bbf1596b9 Support showing alignment hint based on aligniment state of dock
Bug: 141984730
Test: atest SystemUITests:KeyguardIndicationControllerTest
Change-Id: Ic0911683725a0e54406df06b948169c4dde94764
Merged-In: Ic0911683725a0e54406df06b948169c4dde94764
2019-11-26 11:03:10 +08:00
Fabian Kozynski
228e310d19 Remove all Privacy chip classes.
Test: atest SystemUITests
Test: atest HistoricalAppopsTest
Test: adb shell device_config privacy permissions_hub_enabled true
Fixes: 144801684
Change-Id: I9c79ac6ac75b0197af0bfb6595b99a458916b761
2019-11-25 15:38:38 -05:00
Jay Aliomer
8fd7fb99cf Dark theme twilight mode backend and tile
am: 381e3300e8

Change-Id: I0d5b96795d5ad818a9b7a21758721e35059d18ed
2019-11-21 12:23:42 -08:00
Jay Aliomer
381e3300e8 Dark theme twilight mode backend and tile
When the user has Dark theme scheduling turned on (b/141567787), the quick settings tile subtext should reflect the following:
If Dark theme is on: "Until sunrise"
If Dark theme is off: "On at sunset"
If the user does not have Dark theme scheduled, the text should not appear.
This matches the appearance of the Night Light QS tile.
All starting windows snapshots will be deleted and splash screens
will be used instead.

Test: atest UiModeManagerServiceTest
Fix: 143874807
Merged-In: Ie2ce64b5c5544fffe76be7ec3f971eb7461f8c4d

Change-Id: Ie2ce64b5c5544fffe76be7ec3f971eb7461f8c4d
(cherry picked from commit 8b2671b029)
2019-11-21 18:05:22 +00:00
Jay Aliomer
9d2c933544 Merge "Dark theme twilight mode backend and tile" 2019-11-20 16:41:22 +00:00
Jerry Chang
6a8fb02aa7 Support showing alignment hint based on aligniment state of dock
Bug: 141984730
Test: atest SystemUITests:KeyguardIndicationControllerTest
Change-Id: Ic0911683725a0e54406df06b948169c4dde94764
2019-11-19 22:37:59 +08:00
Jerry Chang
945589890e Merge "Revert "Support showing alignment hint based on aligniment state of dock"" 2019-11-19 10:51:23 +00:00
Jerry Chang
dcbffea788 Revert "Support showing alignment hint based on aligniment state of dock"
This reverts commit 43a49c8398.

Reason for revert: Should be topic with the other changes

Change-Id: I84223ddd28a6b1bfc3fde27bc4af4940e0df3636
2019-11-19 09:15:37 +00:00
TreeHugger Robot
80a32fe061 Merge "Support showing alignment hint based on aligniment state of dock" 2019-11-19 08:50:26 +00:00
Jerry Chang
43a49c8398 Support showing alignment hint based on aligniment state of dock
Bug: 141984730
Test: atest SystemUITests:KeyguardIndicationControllerTest

Change-Id: I8e6cbfbb8f77c71f2cadc09904ae05dc7eee8d46
2019-11-16 09:13:07 +08:00
Robert Horvath
993e82eec7 Merge "Add setting to go to sleep after long user inactivity" 2019-11-15 15:05:15 +00:00
Jay Aliomer
8b2671b029 Dark theme twilight mode backend and tile
When the user has Dark theme scheduling turned on (b/141567787), the quick settings tile subtext should reflect the following:
If Dark theme is on: "Until sunrise"
If Dark theme is off: "On at sunset"
If the user does not have Dark theme scheduled, the text should not appear.
This matches the appearance of the Night Light QS tile.
All starting windows snapshots will be deleted and splash screens
will be used instead.

Test: atest UiModeManagerServiceTest
Fix: 143874807

Change-Id: Ie2ce64b5c5544fffe76be7ec3f971eb7461f8c4d
2019-11-14 21:26:20 +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