Commit Graph

612 Commits

Author SHA1 Message Date
Mike Digman
90402957be Add a11y, hover support to rotate suggestion button
Tweaks timeouts from volume dialog for a11y and hover. Repurposes
volume dialog code to detect when a11y feedback services are active.
New content description needs to be localized. Also includes some 
related cleanup.

Test: a11y manual by toggling service, hover manual with usb mouse

Change-Id: Ife12c74910c1658e06e75a4baf393a56568e985b
2018-01-22 16:05:51 -08:00
Jason Monk
e8f8be7698 Revert "Revert "Slices permission model""
This reverts commit 1214c878a8.

Test: boot device
Bug: 72270082
Bug: 68751119
Change-Id: I7d0e709a04ffeb8b877aef539a978ee251a75742
2018-01-21 11:53:28 -05:00
TreeHugger Robot
6ebcfe3109 Merge "Revert "Slices permission model"" 2018-01-21 13:14:37 +00:00
Artem Iglikov
1214c878a8 Revert "Slices permission model"
This reverts commit f762496b7f.

Reason for revert: continuous crash, blocks LON from working on master

Test: flashed build from TreeHugger and verified that it boots and doesn't crash anymore
Bug: 72270082
Change-Id: I68d771357488c5c17ab00803d8f51a6c7ed37d01
2018-01-21 13:09:23 +00:00
TreeHugger Robot
6e3be00778 Merge "Slices permission model" 2018-01-21 03:31:27 +00:00
Jason Monk
f762496b7f Slices permission model
- Launcher/assistant get access to all slices
 - Apps with uri access to access a specific slice
 - Apps without access get a permission granting slice
 - If the user authorizes access to the slice for the app
   then the app will be granted access to the app's slices
   (this happens through a temp grant in the service, and a
   full uri grant from the app the next time it binds)
 - Add a hint that apps to add to allow them to return different
   slices depending on the caller, this allows custom permission
   checks.

Test: runtest --path frameworks/base/services/tests/uiservices
Bug: 68751119
Change-Id: I8f8cd0182cfcbfba3f307e2eaba5aae6f6fbe214
2018-01-20 20:35:31 -05:00
Mike Digman
d17e5f7cc3 Update SysUI tuner so rotation button can be added/removed
Fixed bug where rotation button could be removed but not added
back.

Test: manual
2018-01-20 01:22:50 +00:00
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