Commit Graph

605 Commits

Author SHA1 Message Date
Rohan Shah
785f3d7f14 Add time until Night Light is on/off as secondary label
Added secondary label text for Night Light.

2 modes with 2 text options:
1) Twilight - until sunrise OR on at sunset
2) Custom - until <time> OR on at <time>

Test: Visually tested - tried all 4 variations + manual toggle + updates
Bug:69973398
Change-Id: I5d0d213b470608b7dfa9d6cce0c33be1365e10a0
2018-01-18 11:14:35 -08:00
Salvador Martinez
6644e252cd Merge "Refactor code to support overridden low battery warning" 2018-01-16 16:29:33 +00:00
Alison Cichowlas
a2cd19e3d1 Screenshot global actions item.
Refactor TakeScreenshot code out of PhoneWindowManager;
add power menu item for Screenshot.

Test: runtest systemui

Change-Id: Ie8602386cd59f8fd991369d2117f7c4d76f65e41
2018-01-12 17:30:41 -05:00
Salvador Martinez
f9e4750af7 Refactor code to support overridden low battery warning
This adds support for enabling the hybrid notification using data
from Device Health Services.

Test: SystemUITests
Bug: 27567513
Change-Id: I5fae3d85f2d4956210bb067ff7c8b14146c8c89c
2018-01-11 09:14:56 -08:00
Julia Reynolds
437cdb1464 Inline noti blocking is now in the form of a question
And has an 'undo' flow that matches snoozing.

Test: runtest systemui
Bug: 63927402
Change-Id: Idc17b8d950bc3da7ec9fe035dc8a65146d12c456
2018-01-10 12:56:57 -05:00
TreeHugger Robot
8abf129f1f Merge "Removing PIP notification for menu action" 2018-01-02 23:51:38 +00:00
Winson Chung
a556fe6a35 Removing PIP notification for menu action
Bug: 65482444
Test: Launch PiP, tap to show menu, tap settings to go to settings
Change-Id: I204e18ffa0b63acbfef899bda91f5da9daf9f0a5
2017-12-19 15:09:54 -08:00
Julia Reynolds
dd2b96ba0e Add media routing to output chooser
Test: manual
Bug: 63096355
Change-Id: I8dab6f0d46fe786bd408b4b86f109a98fe0feee8
2017-12-19 11:30:33 -05:00
Julia Reynolds
fba474a86e Add an output chooser dialog to volume panel
It shows paired bluetooth devices, filtered on major type
audio_video and uncategorized.

Test: manual
Bug: 63096355
Change-Id: I606cbd581f382752a05b4ffec7707427252ac788
2017-12-13 15:42:16 -05:00
Julia Reynolds
7d37e95d54 Merge "Move and reshape volume dialog" 2017-12-08 14:13:24 +00:00
Jon Boekenoogen
b6b5d41d07 Rename "Go to web" -> "Go to browser"
Update text based on PM guidance.

Screenshot:
https://screenshot.googleplex.com/zmN3oFSLNkj (before)
https://screenshot.googleplex.com/wdtT9qN0h5q (after)

Test: Screenshot from marlin above.
Bug: 68952332
Change-Id: I436fbf5801306776c7052146da451dfb601fd7c0
2017-12-07 20:40:28 +00:00
Julia Reynolds
36dd4f1fbe Move and reshape volume dialog
- Move the volume dialog back to the top
- curve some corners
- Add a ringer toggle row

Bug: 63096355
Test: manual
Change-Id: Ife8a3fa4fabf3a0f26ddca3cf05b16425b325ef3
2017-12-07 15:00:40 -05:00
TreeHugger Robot
c32dec1f26 Merge "Battery Saver master case changes" 2017-11-27 18:32:41 +00:00
Evan Laird
576cdcfd6b Battery Saver master case changes
Test: visual
Change-Id: I473108b3c2e1a48e17416c33f4beab606abfab88
Fixes: 69481756
Fixes: 69481988
2017-11-22 18:34:08 +00:00
Evan Laird
bc8a3da709 Remove unused strings from sysui
status_bar_settings_signal_meter_wifi_nossid
and
status_bar_settings_signal_meter_disconnected

Are no longer used as of what looks like L, and the latter string had an
errant capitalized "Internet" which is silly.

Test: it compiles?
Change-Id: I7b53994d85808743264fef7500d12ef4b3b69954
Fixes: 69389014
2017-11-17 15:19:47 -05:00
Philip P. Moltmann
5a633c6e4d Don't show "always use" when app can't be default
Each USB device can have one default handler. This app is launched when
the device is plugged in. A default handler automatically gets
permission to access the device when launched.

All other apps have to request the permission to access the USB device
via UsbManager.requestPermission. In the permission dialog there is an
option to make the app the default app for the device. Of course this
only makes sense if this app declares the right properties to be
auto-launched. Hence check this and only then show this options.

Also made the string in the dialogs easier to understand.

AccessoryFilter and DeviceFilter needed to be copied so I can access
them from system-ui. No code change in these classes.

Test: requested permissions from app that could by the default for the
      device and from an app that could not. Also tested "confirm" flow
      that is executed when the device is plugged in and a app that
      might be default is installed.
Bug: 67381583
Change-Id: I12eb7efed0ad107c70ae32433a5629108f252486
2017-11-09 16:58:20 -08:00
Winson Chung
6519c1b0fe Moving some recents logic into the shared lib.
- Creating com.android.system.shared library with recents model code and
  corresponding recents tests
- Removing notion of blacklisted apps since that is now obsolete.

Bug: 67510855
Test: It builds, Recents runs

Change-Id: Ib1f5eefa6e4d4964366061246002509e2e15b19e
2017-10-17 12:24:41 -07:00
Beverly
07eec8db3b Consistently uses ASCII numbers in notif category translation.
Bug: 64947172
Test: manual
Change-Id: I3f18be578bd441cecdd22af221953c9bf0c64666
2017-08-23 17:19:06 -04:00
Beverly
830d54f2c7 USB debug dialog won't give permission if obscured.
Previously, the USB debugging dialog was suceptible
to tapjacking over tcp if a malicious party obscured
the USB debugging text to mask the id of the system
requesting permissions.

The fix prevents users from giving permissions if the
dialog being displayed is partially obscured.  Instead,
it will present a toast explaining to the user why they
cannot give permissions.

Test: manual
Bug: 62187985
Change-Id: I3bdcd1876cd6dbe8a728bbce74edb52ab79f3e4c
2017-08-17 11:07:28 -04:00
Jason Monk
ce2f47ec6b Switch battery saver to sentence case
Test: strings
Change-Id: I01bc6f3621758dc155347946b8a15c885c695b2c
Fixes: 27844148
2017-08-14 10:50:25 -04:00
TreeHugger Robot
eb098f2681 Merge "Change PiP menu activity title to prevent duplicate announcement." into oc-mr1-dev 2017-08-11 21:38:41 +00:00
Julia Reynolds
1e3b38bce1 usb string update
Change-Id: Ib55ce7dbb0e9e5d25e01fd70b99cad5494cd619c
Fixes: 63157187
Test: make
2017-08-11 13:53:26 +00:00
TreeHugger Robot
106dc34fb2 Merge "Fix the strings accordingly for policy transparency dialogs" into oc-mr1-dev 2017-08-11 10:42:24 +00:00
Winson Chung
addb48a2ae Change PiP menu activity title to prevent duplicate announcement.
Bug: 64489467
Test: Hover over PiP in accessibility
Change-Id: I27532f6a7825e57757d8ddab336c5cee5fa92acd
2017-08-10 14:00:54 -07:00
Tony Mak
57d22f6b31 Fix the strings accordingly for policy transparency dialogs
Bug: 64555046

Test: Built and observe the strings.

Change-Id: If0343d701dee24d392b0578131e50b9002433a9b
2017-08-10 15:11:54 +00:00
Beverly
334bc5fc77 Low battery notification has unique sound.
Change-Id: I51c8e099da04d4bf1a55d081c9fce7fc8fb90bd1
Fixes: 63853037
Test: runtest systemui
2017-08-09 16:57:28 -04:00
Jason Monk
54de77e1c6 Merge "Add confirmation dialog when turning off cell data from QS" into oc-dr1-dev
am: 18cb24ba33

Change-Id: Ibdb8fa6a4e9ce57009342c12cf169df959974dd2
2017-07-25 23:27:38 +00:00
Jason Monk
54ff0efbd5 Add confirmation dialog when turning off cell data from QS
Test: manual
Change-Id: I1956750700c8fa2bf0e715b5ec92cf10fa3e9486
Fixes: 36436115
2017-07-25 14:44:28 -04:00
Jack He
0e08fef65a Merge "Add strings for battery level info of connected devices" into oc-dr1-dev am: e269956acb
am: 4429f9a68d

Change-Id: I38134417bc4413a620b76dba12691a9303da1167
2017-06-30 02:37:36 +00:00
Jack He
0e16a861dd Add strings for battery level info of connected devices
* SystemUI: quick_settings_connected_battery_level
* SettingsLib:
	bluetooth_connected_battery_level
	bluetooth_connected_no_headset_battery_level
	bluetooth_connected_no_a2dp_battery_level
	bluetooth_connected_no_headset_no_a2dp_battery_level

Bug: 63027849
Test: make, test using these strings
Change-Id: I9052dad87d2afd30d005d050c6b3bfc4813853df
2017-06-29 16:45:28 -07:00
Rajeev Kumar
07a8445ad0 Fixes the apostrophe and its escaping for zen_priority_introduction,
zen_alarms_introduction, zen_silence_introduction_voice,
pip_notification_message

Change-Id: I6abab7be04f18a1d65604a05b388cb265d6551a5
2017-06-08 16:40:23 -07:00
Julia Reynolds
d7a00aa186 Update zen introduction text
And add alarm text to QS & volume dialog.

Change-Id: I8e3c06d6629473c453e579f23c75acd7cdfd4db1
Fixes: 38303817
Fixes: 31533768
Fixes: 33815404
Test: manual
2017-06-05 11:23:03 -04:00
TreeHugger Robot
a92028966e Merge "Revisions to Inline Controls for unblockable apps" 2017-06-02 13:09:25 +00:00
Geoffrey Pitsch
b43486a2ae Revisions to Inline Controls for unblockable apps
- Do not call out the channel name, just display "Notifications"
- Secondary text: "Notifications from this app can't be turned off"
- Button string is "More Settings" instead of "ALL CATEGORIES"

Fixes: 37539747
Test: runtest systemui
Change-Id: I75c80e0ef1ba320c9ff5cccf073116b70bb5a3bc
2017-06-01 13:47:56 -04:00
Mady Mellor
6143b90644 Switch to using plural strings for hours and minutes in the snooze menu
Test: Manual - show the snooze menu, expand to see options
Bug: 38207398
Change-Id: I081464b2205d4241af02f71d2fec0286020fc6d8
2017-05-31 11:34:03 -07:00
Mady Mellor
b7a55a898f Merge "Add 2 hours as an option for snoozing, update default to 1 hour" into oc-dev am: 03a243889c
am: 8da8f55295

Change-Id: I2e117f71446b88956621d64ac9a977675b16370c
2017-05-26 14:53:48 +00:00
Mady Mellor
651fbdec08 Add 2 hours as an option for snoozing, update default to 1 hour
Test: Show snooze menu, note the default is 1 hour, expand the menu, note
      that there is an additional option for 2 hours
Bug: 38207398
Change-Id: I027990a373c14de0a88b3ceb1cde7a3e747a7824
2017-05-18 14:36:53 -07:00
Zachary Iqbal
dc05aa049b Added indication text stubs for changes to trust being managed.
Notes:
- Subclasses of KeyguardIndicationController can now provide indication text
to be displayed when a trust agent is managed.

Test: runtest sysui
Bug: 38397982
Change-Id: I1b7ee3041aceae94d12da25608f8e7b2e9ebbbe2
2017-05-17 19:19:10 -07:00
Mady Mellor
d7637ece5c Merge "Remove PIP tuner items" into oc-dev am: 86339dc8ee
am: 2d11f63de9

Change-Id: I93aef75b94b56bfe2f31958c373a44582df0ec02
2017-05-11 06:56:39 +00:00
TreeHugger Robot
86339dc8ee Merge "Remove PIP tuner items" into oc-dev 2017-05-11 01:13:48 +00:00
Mady Mellor
8c7dc429b5 Remove PIP tuner items
Test: Check tuner for items, also try moving PIP around note it doesn't
      minimize, also try long drag to dismiss, note it doesn't dismiss
Bug: 37476193

Change-Id: I1ac1abd9c75d40bd84f59dab8aba5cdb98cd59bb
2017-05-10 12:55:39 -07:00
Julia Reynolds
c12676b449 Update zen introduction text
And add alarm text to QS & volume dialog.

Fixes: 31533768
Fixes: 33815404
Test: manual
Change-Id: I82f119a8bdbfbc62b0ace752dca0fbc0d5bf8a35
2017-05-10 14:16:41 +00:00
Geoffrey Pitsch
5bc430556d Remove period in Notification Inline secondary text.
Bug: 38115976
Test: manual
Change-Id: I1fb453e8a3d5f2906c07878423fa32d8bfca67c2
2017-05-09 17:08:56 +00:00
Dianne Hackborn
1391e2348b Merge "All kinds of little foreground services fixes." into oc-dev am: 525044e987
am: 596fc8b8d4

Change-Id: I79d7fc47855bdf0043d770b0a59a704260aa55e7
2017-05-05 09:13:24 +00:00
Dianne Hackborn
4ae51e09d8 All kinds of little foreground services fixes.
- Better explanations of some strings.
- Fix to use the right package when an item is pressed in
  the foreground services dialog.
- Improve java docs on Service.startForeground().

Bug: 37925387
    735566 lv - Android - [Source] Context unclear or missing:
    Apps running in background
Bug: 37925888
    735566 lv - Android - [Source] Context unclear or missing:
    Tap for details on battery and data usage
Bug: 37897953
    735566 gl - Android - [Source] Context unclear or missing:
    LEFT_SIDE, RIGHT_SIDE
Bug: 37943079
    Music is dying mid playback

Test: manual
Change-Id: Ied41932c61f59335bd18dfba3fcb13af28a0bddd
2017-05-04 23:31:33 -07:00
Dianne Hackborn
8a40a4ca27 Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev am: f1a4b50739
am: a766f1d1ec

Change-Id: I82c6b62af3d4eddbd4e97c83b2bb7d4a1657c63d
2017-04-30 17:44:10 +00:00
Dianne Hackborn
83b40f69be Work on issue #36891897: Need to ensure foreground services can't...
...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user.  We ensure they are shown to the user for at least 30 seconds
(configurable).  If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't.  By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior.  There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
2017-04-29 19:41:12 -07:00
Zachary Iqbal
8f4c2426f6 Added indication text stubs for changes to trust.
Notes:
- Subclasses of KeyguardIndicationController can now provide indication text to be displayed when trust has been granted.

Test: runtest sysui
Bug: 37487319
Change-Id: I030954d51a5c3000c45e465fcd261e4887520aa6
2017-04-28 13:39:50 -07:00
TreeHugger Robot
ddb460c18f Merge "Add ability to fling to dismiss PIP from anywhere" into oc-dev 2017-04-26 20:52:02 +00:00
Adrian Roos
60a7739798 AOD: Remove wake up fully config flag
Fixes: 37270258
Test: Double tap, make sure device does not wake up to lockscreen, only to ambient display
Change-Id: Iaf0c3bfb5dcf566adae7f37b51c866d92bce7a1d
2017-04-25 14:28:41 -07:00