Commit Graph

469 Commits

Author SHA1 Message Date
Andrew Sapperstein
27d2440ae4 Update CHAR LIMIT for notification body. am: 429cafb85e
am: ddb2539508

Change-Id: I0aa9498f9669db6d55e5bacf5f23ae5b01ca3229
2017-01-06 21:03:26 +00:00
Andrew Sapperstein
429cafb85e Update CHAR LIMIT for notification body.
Test: is comment change
Bug: 34097363
Change-Id: I8ae19c3b5108c9c2f00614cd5d32cee06082a052
2017-01-06 18:57:41 +00:00
Julia Reynolds
bb983d20d2 Use internal volume controller and status bar.
Remove code that let these components be replaced by external
processes.

Bug: 33006669
Bug: 34106436
Test: manual. reboot device, play music, change volume,
view notifications
Change-Id: I458f11537ab9db6f23735487513815553004613f
2017-01-06 15:59:45 +00:00
Andrew Sapperstein
67e97053c5 Show notif when device reaches throttling temp
Adds logic to SystemUI that shows a notification alerting the user
that their phone has reached a certain temperature and has throttled
itself in order to cool down.

The logic is controlled by a configuration resource:
R.bool.config_showTemperatureWarning. If false, no action is taken.

When true, PowerUI checks every 30 seconds if the current temp of
HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN is greater than
the throttling temp of HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN.
If any one of the temperatures returned is greater, a notification is shown.

Clicking on the notification will show a dialog explaining more details
about what the device is doing in response to the high temperature.

The notification will disappear once the temperature drops below
the throttling temperature.

In order to check the temperature in SystemUI, HardwarePropertiesManager
has been updated to also allow any calls made by callers holding the
signature-level DEVICE_POWER permission.

Test: runtest systemui
Bug: 30995038

Change-Id: I1b3f122341911c68e90c8a49ad35267ac382b356
(cherry picked from commit b7caf1d06d)
2017-01-04 16:53:44 -08:00
Andrew Sapperstein
9625b4fce1 Merge changes from topics 'thermal-notif-2', 'thermal-notif'
* changes:
  Add VR mode check for thermal notification
  Show notif when device reaches throttling temp
2017-01-04 19:18:24 +00:00
Geoffrey Pitsch
f47277805a Merge "Change Notification Inline Settings for Channels" 2016-12-29 15:36:56 +00:00
Jorim Jaggi
8812fb0695 Merge "Change screen pinning back to old gesture" into nyc-mr2-dev 2016-12-28 17:01:22 +00:00
Geoffrey Pitsch
4dd5006ff5 Change Notification Inline Settings for Channels
Removes slider advanced settings.
Move more Guts internals out of BaseStatusBar.

Test: runtest systemui
Change-Id: I0cf7f144859d1248bd54e281cfe0b35a817376a6
2016-12-28 10:13:02 -05:00
Jorim Jaggi
ac5fa1bb60 Change screen pinning back to old gesture
This makes the code a bit more complicated, but allows apps to
receive long-press back again and also makes the mode harder
to exit for toddlers.

Test: Without TalkBack enabled, make sure the following works:
- Enter multi-window mode with long pressing recents
- Long press back gets sent to the app.
- Enter screen pinning, make sure you can exit with gesture
Test: With TalkBack enabled, make sure the following works:
- Enter multi-window mode with long pressing recents
- Long press back gets sent to the app.
- Enter screen pinning, make sure you can exit with gesture
Fixes: 324407
Change-Id: Icd7347aa9c60af00fdb0b3991baabb730552d097
2016-12-28 14:57:40 +01:00
Jorim Jaggi
4e723e6087 Change screen pinning back to old gesture
This makes the code a bit more complicated, but allows apps to
receive long-press back again and also makes the mode harder
to exit for toddlers.

Test: Without TalkBack enabled, make sure the following works:
- Enter multi-window mode with long pressing recents
- Long press back gets sent to the app.
- Enter screen pinning, make sure you can exit with gesture
Test: With TalkBack enabled, make sure the following works:
- Enter multi-window mode with long pressing recents
- Long press back gets sent to the app.
- Enter screen pinning, make sure you can exit with gesture
Merged-In: Icd7347aa9c60af00fdb0b3991baabb730552d097
Change-Id: Icd7347aa9c60af00fdb0b3991baabb730552d097
Fixes: 32440409
2016-12-28 05:56:17 -08:00
Jean-Michel Trivi
0310e8c8f3 Do not translate system-reserved stream type names
Do not translate the names of stream types that are reserved
  for the internal workings of the audio system, and are
  never meant to be read by the end user.
Also fix the string for STREAM_TTS.

Test: make
Bug: 33790976
Change-Id: Ied97b1ad38ad90911ac41ed277a618bc50c531c4
2016-12-23 20:54:11 +00:00
Sean Stout
5721e75a0a Merge "Renamed "Demo mode" to "System UI demo mode"" 2016-12-21 19:36:53 +00:00
Andrew Sapperstein
b7caf1d06d Show notif when device reaches throttling temp
Adds logic to SystemUI that shows a notification alerting the user
that their phone has reached a certain temperature and has throttled
itself in order to cool down.

The logic is controlled by a configuration resource:
R.bool.config_showTemperatureWarning. If false, no action is taken.

When true, PowerUI checks every 30 seconds if the current temp of
HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN is greater than
the throttling temp of HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN.
If any one of the temperatures returned is greater, a notification is shown.

Clicking on the notification will show a dialog explaining more details
about what the device is doing in response to the high temperature.

The notification will disappear once the temperature drops below
the throttling temperature.

In order to check the temperature in SystemUI, HardwarePropertiesManager
has been updated to also allow any calls made by callers holding the
signature-level DEVICE_POWER permission.

Test: runtest systemui
Bug: 30995038

Change-Id: I1b3f122341911c68e90c8a49ad35267ac382b356
2016-12-20 18:19:03 -08:00
Sean Stout
b69b744e07 Renamed "Demo mode" to "System UI demo mode"
Test: Manually verified string in "Developer options"
Bug: 33694332
Change-Id: Ib47adda7e2637c8f3c0cee5f64ed7054e5b3c6f1
2016-12-20 10:52:15 -08:00
Selim Cinek
23e117a50e Merge "Fixed a bug where the shelf was clickable outside of keyguard" 2016-12-20 16:24:07 +00:00
phweiss
2f512047c2 DO NOT MERGE Rework Device Monitoring Dialog in Quicksettings
If a device owner is active, the layout is changed from a
standard AlertDialog with only one string to a custom dialog
that includes information on Device Owners, and VPN and Network Logging,
if enabled.

Cherry-picked from master and modified to not rely on changes that are not in
N:

A change in master renamed some variables in QSFooter.createDialog() and made
them final, this change is also included here.

The owner's organization name cannot be set in N.

In the case of active Device Owner and active VPN, there was a specialized
string for this in N. This string was now replaced by using the simpler
Device Owner string + an own entry for VPN in the new layout.

Some imports had to be included that were already there on master.

The dimen-tag throws an error message on floats during build, replaced by an
item-tag.

BUG: 29748723
BUG: 33126622
Test: Manual, CTS-Verifier tests will be added later

(cherry picked from commit 9e450e1233)

Change-Id: I2bfca9d9d02a42d9c3b17683625eda29e9369666
2016-12-20 17:11:01 +01:00
Selim Cinek
810bcde182 Fixed a bug where the shelf was clickable outside of keyguard
This lead to an issue where notifications on the very bottom weren't
clickable.

Test: add single notification on the bottom, click it
Change-Id: I444a8de60bec6dda2227a2df4d78c2564c59aa2b
Fixes: 33643806
2016-12-20 13:19:34 +01:00
phweiss
9e450e1233 Rework Device Monitoring Dialog in Quicksettings
If a device owner is active, the layout is changed from a
standard AlertDialog with only one string to a custom dialog
that includes information on Device Owners, and VPN and Network Logging,
if enabled.

BUG: 29748723
BUG: 33126622
Test: Manual, CTS-Verifier tests will be added later

Change-Id: I2bfca9d9d02a42d9c3b17683625eda29e9369666
2016-12-19 17:53:00 +01:00
TreeHugger Robot
5fb5881dbd Merge "Adding support for PIP actions." 2016-12-15 22:52:30 +00:00
Julia Reynolds
03c548f292 Volume header changes
- Show always
- Update locale immediately

Bug: 31847162
Bug: 33277887
Test: manual
Change-Id: I89c5cbddf08df3a9eba20f2fb3b76eec69926777
2016-12-15 11:42:37 -05:00
Winson Chung
a29eb98d9f Adding support for PIP actions.
- Introduced generic RemoteAction to represents an action
  that can be made across processes with an icon and text
  description based on a Notification action.
- Modified PinnedStackController to ensure that it notifies
  the listeners from the source of truth, this ensures that
  SysUI is in the right state if killed and re-registers
  itself.

Test: Enable menu & minimize in SystemUI tuner.
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testNumPipActions

Change-Id: I5b5d0cf9de3f06b5687337d59cfb91e17355bdb1
Signed-off-by: Winson Chung <winsonc@google.com>
2016-12-14 12:15:07 -08:00
Bartosz Fabianowski
46bea2e685 Link from Quick Settings to Enterprise Privacy page
This CL updates the information shown in Quick Settings when a device
is managed by a Device Owner and adds a "learn more" link that takes
the user to the Enterprise Privacy page in Settings.

Bug: 32692748
Bug: 25779452
Test: runtest --path frameworks/base/packages/SystemUI/tests &
      runtest --path frameworks/base/core/tests/coretests

Change-Id: I8cbb6f2bb5c6da29ae581b6dcf7a01b1a4f2af2b
2016-12-06 08:13:30 +01:00
Jean-Michel Trivi
4c7394a854 Volume dialog controller: make loading of stream names more robust
The loading of the stream type volume names assumes there are
  as many read as declared stream types. Verify this is the
  case, if not, complete the array of names with empty strings,
  or remove unneeded entries.

Test: boot in non en-US language
Bug: 33260083

Change-Id: I6632eadd34c4b8af2c8fd01ae7eae45fc513b3e1
2016-12-02 16:13:06 -08:00
TreeHugger Robot
38d20cc5c9 Merge "Revert addition of a11y stream in VolumeDialogController" 2016-12-01 19:43:22 +00:00
Jean-Michel Trivi
82a6655714 Revert addition of a11y stream in VolumeDialogController
Revert addition of STREAM_ACCESSIBILITY as R.array.volume_stream_titles
  needs to contain STREAMS.length entries in all languages,
  whereas this had only been done for the default system language.

Test: boot in a different language than en-US
Bug: 33260083
Change-Id: If869c5f913bb42b94eeb3fa2e1b6f575a6f7ca70
2016-12-01 08:49:19 -08:00
Bartosz Fabianowski
5f045007e0 Add enterprise disclosure to Keyguard screen
With this CL, a disclosure text is shown on the Keyguard screen when
a Device Owner is managing the device.

Bug: 32692748
Test: runtest --path frameworks/base/packages/SystemUI/tests

Change-Id: I7a48df7dc010c39b2db94fcd26b75313a7ceee08
2016-12-01 10:36:18 +01:00
Jean-Michel Trivi
ac48767f91 Conditional behavior for a11y stream volume
VolumePolicy: define two a11y modes: 1/ legacy where
  a11y volume aliases to media volume, 2/ a11y where
  the a11y volume is independent from any other stream
  type volume.
Refactor accessibility service listening to accomodate
  communicating to the volume controller when the
  a11y service is running.
Make accessibility stream alias conditional on a11y
  service running. Reflect the behavior in the
  volume controller.

Test: enable Talkback and verify logs in Vol controller
Bug 30448020

Change-Id: I80535ba259a22b6d93e62a7b3ca462a19d4c84b7
2016-11-23 16:31:38 -08:00
Jason Monk
97a06a12ed Add switchable theme to tuner
Allows option in tuner to switch between system theme overlays
if multiple exist. Requires a restart to take effect.

Test: Settings -> Tuner -> Other -> Theme
Change-Id: Iea43b9cbb67fd91c6008be594ad4cfd19c3f57ec
2016-11-11 09:01:20 -05:00
Winson Chung
fa7053789f Adding experiment for minimized pinned stack.
- Also refactoring the PIP touch handling to be independent gestures

Test: Enable the setting in SystemUI tuner, then drag the PIP slightly
      offscreen. This is only experimental behaviour, and
      android.server.cts.ActivityManagerPinnedStackTests will be updated
      accordingly if we keep this behavior.

Change-Id: I5834971fcbbb127526339e764e7d76b5d22d4707
2016-11-10 23:09:17 +00:00
Winson Chung
dff5c08bfd Experiment for snapping PIP to closest edge.
Test: Enable in SysUI tuner, drag PIP.  This is only experimental to help
      figure out what UX we want to keep.

Change-Id: I0d6f2f0c5909d6a76aae4a8fb84c5076f6996fdd
2016-11-02 18:25:29 -07:00
Winson Chung
15504af3f7 Experiment with allowing tap to break through to interact with the PIP.
Test: Enable SysUI tuner, tap once on PIP to interact with the activity.
      This is only experimental behaviour, and
      android.server.cts.ActivityManagerPinnedStackTests will be updated
      accordingly if we keep this behavior.

Change-Id: I278ab8c360c44718cfcac0fd761f476a875f9b15
2016-11-02 18:11:36 -07:00
Adrian Roos
ebea7a7e56 AmbientDisplay: Add always on prototype
Test: adb shell settings put secure doze_always_on 1
Change-Id: I3f293b3ef43847b7848af416b44f212fc40514d4
2016-10-31 14:49:52 -07:00
Winson Chung
5cd26ff4d9 Adding option to swipe to dismiss.
- Adding tuner settings for PIP

Test: Manual, open PIP and swipe offscreen to dismiss

Change-Id: I62f8e4c4b96984b9f266dde5efc3c511cf37f7dd
2016-10-26 15:33:00 -07:00
Peeyush Agarwal
d86c106568 Correct the keyboard shortcut for SMS
Earlier, there was a keyboard shortcut for IM. Replace it with SMS +
Meta_S.

Bug: 32137976
Change-Id: Id8978126d16dcbea4eb993cd067a92257895b5da
Fixes: 32137976
Test: manual
2016-10-17 12:42:42 +01:00
Dan Sandler
028a60f003 Essential packages' notifications can no longer be silenced.
Particularly useful for Dialer, whose incoming call
notifications are basically useless if you accidentally mute
them.

Test: manual. With config_nonBlockableNotificationPackages
      set to include com.android.dialer, receive or miss a
      call and longpress the notification. No radio buttons
      should be available.
Bug: 31360343
Change-Id: I6b8fa374fb8e811ec6922acbf222f23f18775a61
2016-10-11 22:21:18 +00:00
Justin Klaassen
8cbf1fb125 Fix contentDescription for NightDisplayTile
Fixes: 32092641
Test: Manually verified TalkBack description for "Night Light" tile.
Change-Id: Id950e3e8111ec21e71c2761ee2874baa769c9474
2016-10-11 21:49:17 +00:00
Jason Monk
ef0d34d32e Add plugin controls to tuner
Allow plugins to be manually turned off from within the tuner. This
screen only shows itself if at some point in time a plugin has been
active on this device.  Plugins can also serface settings there by
receiving the com.android.systemui.action.PLUGIN_SETTINGS action.

Test: Manual
Change-Id: Ifb043c85e383fc072c6445ae322293a6401a6f2c
2016-09-27 12:41:34 -04:00
Tyler Gunn
5a52c9806d resolve merge conflicts of 5ea76c1 to master
Test: Compiled code using make -j32
Change-Id: I0c0a5cd79fba9a9c9cf9306e91dc0e9f1979a299
2016-09-26 12:21:52 -07:00
Tyler Gunn
65ed8f9512 Change data usage alert/disabled messages.
Bug: 31551177
Change-Id: I936645ab5f6ffde9245c8e234ffa01935530431c
2016-09-19 11:20:53 -07:00
Jason Monk
be14cbf18e Add branded VPN messages to go along with branded icons am: 802bc6ee06 am: 57bf03152c
am: cd72f9a1ce

Change-Id: Iad0153394159f46ef3838087a3749b57d60b3986
2016-09-02 19:59:51 +00:00
Jason Monk
802bc6ee06 Add branded VPN messages to go along with branded icons
Change-Id: Id2089d50581a958ebab6af1d5b172ec61b1aced3
Fixes: 31019697
2016-09-01 10:45:08 -04:00
Jorim Jaggi
28b4a699fc Remove swipe-up gesture from Tuner am: 3793aff806 am: 55f4b0e9be
am: 76821e7c36

Change-Id: I772d743a1e1e243a1b34988c4c5dea576ec41b9e
2016-08-25 21:47:02 +00:00
Jorim Jaggi
3793aff806 Remove swipe-up gesture from Tuner
We can't do it anymore with the slippery flag, so remove the entry
in the tuner.

We'll clean up the code in master.

Change-Id: Ib3dee0c947e7925b5847f2edc4801495c659dfa5
Fixes: 30891575
2016-08-23 20:49:18 +00:00
Adrian Roos
dde2b293ba HIC: Add report facility for overzealous anti-falsing am: 7bb38a941b am: 9d28754215
am: 29549a23f1

Change-Id: I121d70753fa466eba853a721409d12003f9c6123
2016-08-04 23:53:09 +00:00
Adrian Roos
9d28754215 HIC: Add report facility for overzealous anti-falsing
am: 7bb38a941b

Change-Id: Ie40c0e42dcdc788757f18f65d8edc3e8ba2a6995
2016-08-04 23:37:29 +00:00
Adrian Roos
d1726e7598 Merge "HIC: Add report facility for overzealous anti-falsing" into nyc-mr1-dev 2016-08-04 23:24:04 +00:00
John Reck
811983b468 Merge "Fix RNA crash" into nyc-mr1-dev am: f09b5d7a78 am: dac945cbaa
am: 07a28dfb53

Change-Id: I8a895e2ebd3d538ab1b8b959e70faf265fb1bf92
2016-08-03 20:29:37 +00:00
Winson
fc73eec235 Adding support for blacklisting apps from Recents transition.
Bug: 30602323

Change-Id: I2a6e75a989264ce72ac552e2c7f82225ccd68adf
2016-08-03 19:28:11 +00:00
Adrian Roos
7bb38a941b HIC: Add report facility for overzealous anti-falsing
Bug: 27405075
Change-Id: I15e5d601af3c7cc067371bbe51c873d2ce15ec83
2016-07-28 12:17:57 -07:00
Jason Monk
ca124785ce Merge \\"Add LTE+ and update 4G+ icons\\" into nyc-mr1-dev am: 5768a5dd30
am: a98d09462a

Change-Id: I8e88b9fee51729347a7273051ff1f388ebac8612
2016-07-14 20:31:24 +00:00