History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e25c18da7d2cc3e02620dadfcb976521821bc9d8 18-Jun-2016 Adrian Roos <roosa@google.com> SystemUI: Override notification app name

Overrides the notification app name for all SystemUI notifications.

Change-Id: Ic7676069aa03d5b83f0fbe0e8c3ad9820453118a
Fixes: 26517701
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
d9c75dba75ad4742dbaadc34db99d2b76cebca91 28-Apr-2015 John Spurlock <jspurlock@google.com> Volume: Simple dialog footer, DND in quick settings.

- Show DND tile by default, this is now the only
place to manage DND modes / end conditions.
- Remove super footer from volume dialog, replace with
a simplified version that displays the current mode
and allows ending DND.
- Remove obsolete text-only footer from codebase.
- Migrate remaining volume items into main resource files.
- Rename "No interruptions" to "Total silence".
- Add new user information banner for "Total silence"
- Crude media filtering for Total Silence.
(deeper muting changes will be done as a followup)
- Disable volume dialog sliders completely if muted due
to zen.
- Cleanup ZenModePanel: assume embedded mode, remove
expandable subhead
- Remember "favorite" DND mode inside the DND config panel.
- AudioService: consult ringer-mode-delegate before voluming
down into silent.
- Add new hour options to time-based exit conditions.
- Volume dialog visual updates to move closer to final visuals.
- Unify ringer=silent with DND.

Bug: 19260237
Change-Id: I05d7e001eca3b5125418ec3bc4087d0cb8866717
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
90be37953d3da8e222d00c119b87f55e9f99a02d 16-Apr-2015 John Spurlock <jspurlock@google.com> An update on VolumePanel.

Retired, and removed all claimed resources.

VolumeDialog is now the only option.

Bug: 19260237
Change-Id: I6e8abff0f8c16c4e02c47c8b7f24d5703cb3dbdf
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
f55b7f2fb614b917b7d1943396880978258dd1bb 14-Apr-2015 John Spurlock <jspurlock@google.com> Zen: Add new user introduction msg for "Priority only".

Bug: 19260237
Change-Id: I3b5785befc05685c7f676e918710fb7500221172
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
f88d8082a86bee00c604cbbcfb5261f5573936fe 25-Mar-2015 John Spurlock <jspurlock@google.com> Introduce new volume dialog.

- New VolumeDialog (presentation) + VolumeDialogController (state)
to implement a volume dialog that keeps track of multiple audio
streams, including all remote streams.
- The dialog starts out with a single stream, with more detail available
behind an expand chevron.
- Existing zen options reorganized under a master switch bar
named "Block interruptions", with "None" renamed to "No interruptions"
and "Priority" renamed to "Priority only".
- Combined "Block interruptions" icon replaces the now-obsolete star/no-smoking
icons in the status bar.
- New icons for all sliders.
- All sliders present a continuous facade, mapped to discrete integer units
under the hood.
- All interesting volume events and state changes piped through one central
helper for future routing.
- VolumePanel is obsolete, still accessible via a sysprop if needed.
Complete removal / garbage collection deferred until all needed
functionality is ported over.

Bug: 19260237
Change-Id: I6689de3e4d14ae666d3e8da302cc9da2d4d77b9b
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
4a357cd2e55293402d7172766f7f9419815fc1e8 19-Mar-2015 Alan Viverette <alanv@google.com> Replace usages of deprecated Resources.getColor() and getColorStateList()

Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
a48d779dad4c48aa2f97ad021ae3a5649c058312 03-Mar-2015 John Spurlock <jspurlock@google.com> Volume policy updates.

- Make volume policy settable by the volume UI instead
of hardcoded in AudioService.
- Add status bar icon for silent mode.
- Limit unmute-on-volume-adjust behavior to tvs.
- Ensure all changes to device volume are sent through
setIndex so no change events are missed.

Bug: 19260237
Change-Id: Iea070a7a6f90ff620e39629f2da3f33f87223d72
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
ee5ad729b90deff435f9875337cbc434be4f8fe7 03-Mar-2015 John Spurlock <jspurlock@google.com> Audio: Remove the concept of master volume.

- Remove two config resources (use master volume, and volume ramp).
- Remove master volume adjustments / getters / intents.
- Retain @hidden setMasterMute, needed for device admin
- Remove master volume logic in AudioService.
- Remove master volume logic in VolumePanel.
- Rename "getMasterStreamType" to "getUiSoundsStreamType" to avoid confusion.

Bug: 19582978
Change-Id: Id02c8fa4898cff3b913147f5ac1b4038e2e7cc24
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
af5d44e441e8fe77d896a834a4d3d219c06df63c 26-Feb-2015 John Spurlock <jspurlock@google.com> Merge "VolumePrototypes: Better handle removals/upgrades."
c72d4cbc818bb5e755e1fd86c9c6c30c4e2375dd 26-Feb-2015 John Spurlock <jspurlock@google.com> VolumePrototypes: Better handle removals/upgrades.

- Repoke the setting at startup to ensure we have the latest UID.
- Automatically restore the default volume UI when the current
vcs is uninstalled.

Bug: 19260237
Change-Id: Ie1fe356fea08392278340b54230ab429d14e1583
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
2a574d33313415a828703377b5ff6725f2e39918 26-Feb-2015 John Spurlock <jspurlock@google.com> Merge "VolumePrototypes: Fix restoration notification intent."
0c6ba18b5caaed79d0432124fedd20c9169f064d 26-Feb-2015 John Spurlock <jspurlock@google.com> VolumePrototypes: Fix restoration notification intent.

Change-Id: Id54268d1b167e7be982d6cbd13c34913279fe97a
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
3c4076a2465a89cf21ffd2e94cabd15be1d31689 24-Feb-2015 John Spurlock <jspurlock@google.com> DND: Add a hidden DND tile to quick settings.

Invisible by default, not activatable when the platform
volume controller is active.

However, when the platform volume controller is not active,
it can be enabled via a broadcast intent.

When enabled, the status bar icon also changes to a single
dnd icon.

Very little more than embedding the existing zen mode panel
into the detail pane of a new QS tile.

Change-Id: I1e0ff6fbb99b00f67b53bceda8cbf121f3ef6b52
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
cdb57aeb0e2c83a887c86da0ca2a890df7f02f41 12-Feb-2015 John Spurlock <jspurlock@google.com> Allow sysui-managed remote volume controllers.

- Relax restriction on audio service calls that assume the volume
ui is systemui, allow calls from a blessed component app.
- Blessed component app service saved in secure settings.
- SystemUI mediates requests to replace the volume dialog, prompts
the user on activation.
- Show a low pri ongoing notification when the volume dialog is
being replaced, to allow user restoration at any time.
- Replace the controller management code in VolumeUI to use a
ServiceMonitor, backed by the new blessed app component setting.
- Add proper zen-related noman client wrappers, make avail to the
registered volume controller.
- Everything is still @hidden, no api impact.

Bug: 19260237
Change-Id: Ie1383f57659090318a7eda737fdad5b8f88737d4
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
bcc1087af40a0e1bb35dbe8a39c830ecdea8280b 28-Nov-2014 John Spurlock <jspurlock@google.com> Volume: Improve inline volume controls used in settings.

- Make the system internal ringer mode change signal available to
other system components via a standard intent, instead of a
volume-controller-only binder call.
- Update sysui to use new intent for icon policy.
- Add proper muting state to the volumizer, to look more like
the associated volume panel slider.
- Add basic ringer mode state tracking for the notification-ring
slider setting.

Bug: 17899613
Change-Id: Ie2df52edb070055ef59c74039162a0e785d2fdbb
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
661f2cf45860d2e10924e6b69966a9afe255f28b 17-Nov-2014 John Spurlock <jspurlock@google.com> VolumeZen: Introduce internal vs external ringer mode.

Stabilize mapping between ringer-mode=silent and zen=priority
by keeping track of two ringer modes:
- Internal ringer mode: Used for underlying stream muting
- External ringer mode: Reported to clients

The mapping between external ringer mode + zen is:
- normal = all
- vibrate = all
- silent = priority (read-write) or none (read)

Changes include:
- Remove "zen check" from audio service, back to audio
service having no knowledge of zen.
- Maintain a new external ringer mode in audio service,
this is the ringer mode reported through AudioManager
to callers, also mapped to the change intent.
- Introduce a "ringer mode delegate" to the local
audio manager interface, responsible for observing
external / internal mode changes, and making changes
if necessary.
- Internal ringer mode changes are still interesting
to the volume dialog, wire up a callback through
the existing IVolumeController interface.
- On devices without vibration, the mapping is the same
but since no ringer mode change is possible, disable
the icon toggle and remove the mute icon when volume=0.
- On devices with vibration, volume down presses should
pulse the vibrate icon (and vibrate) as a hint that this
is as low as the device can go using the keys. Since
the mechanics are similar to the existing zen=none hint,
pull into shared helper.
- Log ringer mode changes to the zen log, include calling
package information for issue diagnosis.
- Include whether vibration is supported in the audio service
dump.
- Update the status bar icon policy to use the internal ringer
mode, not the external mode (for vibrate icon).
- Update the "Muted by <x>" logic, include current suppressor
in dumpsys, ensure suppression icon is enabled & !clickable,
regardless of zen mode.

Bug: 17884168
Bug: 15471679
Bug: 16824970
Change-Id: Ia7d3bb23ce6d1e37b24fb6521d1c1ab9bb8f60c0
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
7fbf573e0b7b002a914aec651208e33d443a1f1b 18-Nov-2014 John Spurlock <jspurlock@google.com> Volume: Dismiss panel on nav bar interaction.

Bug: 18409164
Change-Id: I7b7f26eb823b8477a4df86a8622b4f1171ad96e6
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
bb4a702e6fe44cb026097db13492f8345b38ee97 08-Nov-2014 John Spurlock <jspurlock@google.com> Volume dialog: Add zen mode icons and notification access.

- Add icon above text to all three zen mode states, update text style.
- Remove zentoast.
- Update shared borderless rect background, masks now support shapes.
- Update size of volume stream icons.
- Ensure all volume icons are expressions of white.
- Make volume icons testable via new demo mode command.
- Add a divider + secondary icon to access the notification slider.
- Animate the transition when accessing notification slider.

Bug: 18206097
Bug: 16303068
Bug: 18102850
Change-Id: I5eb6f820dc317e89be272cc78f6c80ed969ad5e9
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
f2565a8b487f6ded259debe33016fc2d896e8681 24-Oct-2014 John Spurlock <jspurlock@google.com> Volume: Make VolumeUI startup configurable.

Can now disable the default volume dialog in SystemUI with
a standard product overlay.

Bug: 17753150
Change-Id: I305015dbfc40cde2428fa593c89af0f4568e1b74
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
85dc23cc696d4c5de4619da317c16c5a2b49a62a 08-Sep-2014 Jorim Jaggi <jjaggi@google.com> Start all resolver activities after keyguard is gone

Bug: 17417099
Change-Id: I30b154067b1c4cbca09af49a4763f9cf5fdc19e6
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
746f7facf2c5f9a7362387806b5926b951bb024a 27-Aug-2014 Jorim Jaggi <jjaggi@google.com> Start intent chooser after Keyguard is gone

If we have an intent chooser on the camera intent, we need to launch
it after the Keyguard is fully gone because the ResolveActivity would
finish itself if it is launched behind the Keyguard.

Bug: 16570873
Change-Id: I2fdb4975fa0a6510e8853c6042383089570ec1f5
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
8de4311c51229efbe2f2d0afbf298982c5cadd96 11-Aug-2014 Jorim Jaggi <jjaggi@google.com> Lockscreen launch animations

- Get rid of ActivityManager.dismissKeyguardOnNextActivity, which was
used for two different things: Dismiss keyguard from somewhere else
(not really necessary anymore), wait to actually dismiss keyguard
after the window behind is drawn. Instead, introduce
keyguardWaitingForActivityDrawn(), and change the semantics where
necessary.
- Make wallpaper_close_enter consistent with task_open_enter and the
Keyguard launch animation.
- Close the panel even on lockscreen when launching a notification.
- Block notification shade updates during the collapsing motion so
notification don't play the disappear animation immediately after
having launched a notification.

Bug: 15991916

Change-Id: I133c177b84e926c87c1a404ba93d633593fec3ab
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
7e6809ad643fa4a70cfb647191731c68f07789cd 06-Aug-2014 John Spurlock <jspurlock@google.com> Common shade width across devices.

Use 400dp as the visual width of the shade across all devices
and orientations, except small device portrait.

Since the width is now dynamic across orientations, update the
necessary views in SystemUI on rotate.

Remove obsolete styles + resources.

Set max QS columns to 3 on all devices, due to the newer shade
width.

Bug:16825515
Change-Id: Iff171549a79bc318a4d585a2d9ea2af9bc686922
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
031149cd5f22bd858142633c7a763450f42793f7 26-Jul-2014 RoboErik <epastern@google.com> Add context to MediaController constructor

This also adds a convenience method to MediaSession to allow getting
a controller instead of having to create and cache your own.

bug:16561220
Change-Id: I87f551a7474e71f1cf2f07e0e541c3a4515cd977
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
ad494bc0e427e90e6ce4cfce382b4a5134fc8b91 19-Jul-2014 John Spurlock <jspurlock@google.com> Volume: Remove silent mode icon.

Instead of changing the slider icon and state in silent mode,
maintain the previous state, but disable.

Add VolumePanel to sysui dumpstate.

Bug:16209908
Change-Id: If9730b51ae9190e1ace5888d92a6ab5ce241f8f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
eb2727bb2f0f32016ca7c4bdd2c0a79eec8cb80a 20-Jul-2014 John Spurlock <jspurlock@google.com> Volume: new coat of paint.

- Two sections (lighter header, darker detail) like QS.
- Fewer text variants.
- Remove backgrounds for segmented buttons.
- Remove alarm warning background.
- Fix slider-only style.
- Ensure all touch-targets are 48dp.

Bug:16419191

Change-Id: I220f3a736eba3dd7a1b9ff58a8fe4bf3d21db61a
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
c86f573fb8ef20097f92357c7763358f3a56ea20 18-Jul-2014 John Spurlock <jspurlock@google.com> Volume: Dismiss shade when launching settings from rocker.

The volume dialog can appear over the expanded QS panel. Dismiss
the shade when launching zen settings so that it is not obscured.

Bug:16397104
Change-Id: Icc9e7107572305d366a9648f5082096ff92a8b71
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
8b4bffcac996b4083e720310a09d315ca1c4a000 10-Jul-2014 RoboErik <epastern@google.com> Make MediaSession and MediaController constructors public

This makes the MediaSession/Controller constructors public and registers
with the system behind the scenes.

This also adds a bit about needing to call setActive(true) to start receiving
commands in MediaSession's docs.

Change-Id: If882d229b54c36bf0831aca0255052dda667a2bc
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
33f4e04e32fac42f158733d6a731e50490fa9951 11-Jul-2014 John Spurlock <jspurlock@google.com> Volume: Delay adjustments made when showing ringer UI.

Since the volume rocker is now the primary system UI for
entering ringer modes, we need to provide a way to display
the ui without making a sound.

Change the policy for the ringer stream to only display the
UI on the initial adjustment request, don't actually make
an adjustment. However, don't break previous ability to
press and hold the vol keys down to vibrate, so allow this
after the standard framework long-press delay.

Audio service had no way of knowing whether or not the registered
volume controller was visible, so add a mechanism for the
controller (volume panel) to send that info back to the service.

Found and fixed a discrepancy between AudioManager.handleKeyDown
and MediaSessionLegacyHelper so that an adjustment over the
keyguard is allowed to vibrate as well as play sound during
adjustments.

Bug:16202639
Change-Id: Icd36c23e8d08c4ed57922c05724b281f32049be7
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
1dad272337db57d72d9158dc77f64798810f62e7 11-Jul-2014 John Spurlock <jspurlock@google.com> Volume: delay dismissing panel when starting settings.

Bug:16211952
Change-Id: I067721d932076dafb35c6afd99583301acff9bea
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
ae641c9ccd3f81214cee54a5f13804f1765187ad 01-Jul-2014 John Spurlock <jspurlock@google.com> Implement new volume UI design.

- Add segmented zen-mode picker to the rocker UI.
- Add a new "no interruptions" value to the zen setting.
- Implement expandable condition subpanel on the rocker UI.
- Remove the old circle&slash icons.
- Suppress alarm sounds if in "no interruptions" mode.
- Add warning re: alarms to the condition UI.
- Allow rocker UI to display over the keyguard.
- Remove Notifications QS tile.
- Realign volume rocker to the top of the screen.
- Add support for new "days" sleepMode.
- New icon policy rules for "volume" slot.
- New important icon (star).

Associated Settings change:
I6ed56791784968adfbd684f490dbbebed285a2dd

Bug:15831713
Change-Id: I35afe38646f04d2ba0dbac11c2c6356120a33694
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
19c9518f6a817d53d5234de0020313cab6950b2f 24-Jun-2014 RoboErik <epastern@google.com> b/15729204 Pipe sessions through to VolumePanel

When remote volume is changed via volume buttons we need to notify
the system UI so it can show the slider. This also passes it the
controller to use so adjustments to the slider are sent back to
the correct session.

Change-Id: If5847bcd5db16c56e0e9904b88c94e5b28954c41
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
8600534df66c2ff5846ed230b50c56229322d48a 23-May-2014 John Spurlock <jspurlock@google.com> VolumeZen: combine ringer/notification volume and zen.

- Implement a new volume panel widget, combining volume and
zen mode + conditions.
- Show zen mode + conditions when modifying ringer or notification
streams.
- Host the volume panel widget in a dialog when being controlled
by the audio service / volume keys.
- Remove support for multiple sliders in the volume panel.
- Remove support for separate ringer + notification volumes
in the volume panel.
- Move volume panel resources up to SystemUI.
- Create a new combined Notifications quick settings tile.
- Host the volume panel widget in the quick settings panel under
Notifications.
- When the quick settings detail panel is visible, route the volume
keys to the embedded widget instead of showing a redundant dialog.
- Create common styles for quick settings text to be closer to spec.
- Update the framework resources for the ringer stream.
- Show the ringer icons in global actions.
- Add "until you turn this off" back as a separate zen condition.
- Disable time condition buttons when they are N/A.
- Don't allow volume changes to set ringer mode silent.

Bug:15186070
Change-Id: Id5e321dd1d5e7c4cf3917027ffbdf7e80d38b00d
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java
3346a802087f621c6441bc512dfcc17b07143fc6 20-May-2014 John Spurlock <jspurlock@google.com> VolumeZen: SystemUI now hosts the volume dialog.

- Allow SystemUI to set the volume controller interface using
a new binder call to audio service.
- Remove VolumePanel's dependency on AudioService.
- Host the base VolumePanel in the SystemUI process.

Change-Id: I095d5a1a579d42b68d0f81abb4087bd0c754b876
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java