diff --git a/core/res/res/drawable-hdpi/ic_audio_alarm_alpha.png b/core/res/res/drawable-hdpi/ic_audio_alarm_alpha.png deleted file mode 100644 index 1b41de4f70cbb..0000000000000 Binary files a/core/res/res/drawable-hdpi/ic_audio_alarm_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/ic_audio_alarm_mute_alpha.png b/core/res/res/drawable-hdpi/ic_audio_alarm_mute_alpha.png deleted file mode 100644 index 45ed7b603a419..0000000000000 Binary files a/core/res/res/drawable-hdpi/ic_audio_alarm_mute_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/ic_audio_ring_notif_am_alpha.png b/core/res/res/drawable-hdpi/ic_audio_ring_notif_am_alpha.png deleted file mode 100644 index a89f45f5b9705..0000000000000 Binary files a/core/res/res/drawable-hdpi/ic_audio_ring_notif_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/ic_audio_ring_notif_mute_am_alpha.png b/core/res/res/drawable-hdpi/ic_audio_ring_notif_mute_am_alpha.png deleted file mode 100644 index d03badea78497..0000000000000 Binary files a/core/res/res/drawable-hdpi/ic_audio_ring_notif_mute_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/ic_audio_ring_notif_vibrate_am_alpha.png b/core/res/res/drawable-hdpi/ic_audio_ring_notif_vibrate_am_alpha.png deleted file mode 100644 index 41991067dbcc3..0000000000000 Binary files a/core/res/res/drawable-hdpi/ic_audio_ring_notif_vibrate_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/ic_audio_vol_am_alpha.png b/core/res/res/drawable-hdpi/ic_audio_vol_am_alpha.png deleted file mode 100644 index 6ea269330dd5a..0000000000000 Binary files a/core/res/res/drawable-hdpi/ic_audio_vol_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/ic_audio_vol_mute_am_alpha.png b/core/res/res/drawable-hdpi/ic_audio_vol_mute_am_alpha.png deleted file mode 100644 index 4256385a87183..0000000000000 Binary files a/core/res/res/drawable-hdpi/ic_audio_vol_mute_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/ic_audio_alarm_alpha.png b/core/res/res/drawable-mdpi/ic_audio_alarm_alpha.png deleted file mode 100644 index fab95aadf09be..0000000000000 Binary files a/core/res/res/drawable-mdpi/ic_audio_alarm_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/ic_audio_alarm_mute_alpha.png b/core/res/res/drawable-mdpi/ic_audio_alarm_mute_alpha.png deleted file mode 100644 index 451e9321b0857..0000000000000 Binary files a/core/res/res/drawable-mdpi/ic_audio_alarm_mute_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/ic_audio_ring_notif_am_alpha.png b/core/res/res/drawable-mdpi/ic_audio_ring_notif_am_alpha.png deleted file mode 100644 index 1ce4f52d36dc0..0000000000000 Binary files a/core/res/res/drawable-mdpi/ic_audio_ring_notif_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/ic_audio_ring_notif_mute_am_alpha.png b/core/res/res/drawable-mdpi/ic_audio_ring_notif_mute_am_alpha.png deleted file mode 100644 index cb17415d4aa3d..0000000000000 Binary files a/core/res/res/drawable-mdpi/ic_audio_ring_notif_mute_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/ic_audio_ring_notif_vibrate_am_alpha.png b/core/res/res/drawable-mdpi/ic_audio_ring_notif_vibrate_am_alpha.png deleted file mode 100644 index 2d99b7695a248..0000000000000 Binary files a/core/res/res/drawable-mdpi/ic_audio_ring_notif_vibrate_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/ic_audio_vol_am_alpha.png b/core/res/res/drawable-mdpi/ic_audio_vol_am_alpha.png deleted file mode 100644 index c32fdbc0d70c7..0000000000000 Binary files a/core/res/res/drawable-mdpi/ic_audio_vol_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/ic_audio_vol_mute_am_alpha.png b/core/res/res/drawable-mdpi/ic_audio_vol_mute_am_alpha.png deleted file mode 100644 index 0dfc21ff7ce01..0000000000000 Binary files a/core/res/res/drawable-mdpi/ic_audio_vol_mute_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xhdpi/ic_audio_alarm_alpha.png b/core/res/res/drawable-xhdpi/ic_audio_alarm_alpha.png deleted file mode 100644 index c1f56a1d65093..0000000000000 Binary files a/core/res/res/drawable-xhdpi/ic_audio_alarm_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xhdpi/ic_audio_alarm_mute_alpha.png b/core/res/res/drawable-xhdpi/ic_audio_alarm_mute_alpha.png deleted file mode 100644 index 0d7034f2f0ef7..0000000000000 Binary files a/core/res/res/drawable-xhdpi/ic_audio_alarm_mute_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xhdpi/ic_audio_ring_notif_am_alpha.png b/core/res/res/drawable-xhdpi/ic_audio_ring_notif_am_alpha.png deleted file mode 100644 index 0df19342106cb..0000000000000 Binary files a/core/res/res/drawable-xhdpi/ic_audio_ring_notif_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xhdpi/ic_audio_ring_notif_mute_am_alpha.png b/core/res/res/drawable-xhdpi/ic_audio_ring_notif_mute_am_alpha.png deleted file mode 100644 index 85acb93db2b53..0000000000000 Binary files a/core/res/res/drawable-xhdpi/ic_audio_ring_notif_mute_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xhdpi/ic_audio_ring_notif_vibrate_am_alpha.png b/core/res/res/drawable-xhdpi/ic_audio_ring_notif_vibrate_am_alpha.png deleted file mode 100644 index 122c7081c0ee9..0000000000000 Binary files a/core/res/res/drawable-xhdpi/ic_audio_ring_notif_vibrate_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xhdpi/ic_audio_vol_am_alpha.png b/core/res/res/drawable-xhdpi/ic_audio_vol_am_alpha.png deleted file mode 100644 index 4e2e20e2252c4..0000000000000 Binary files a/core/res/res/drawable-xhdpi/ic_audio_vol_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xhdpi/ic_audio_vol_mute_am_alpha.png b/core/res/res/drawable-xhdpi/ic_audio_vol_mute_am_alpha.png deleted file mode 100644 index 64a52150192ec..0000000000000 Binary files a/core/res/res/drawable-xhdpi/ic_audio_vol_mute_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xxhdpi/ic_audio_alarm_alpha.png b/core/res/res/drawable-xxhdpi/ic_audio_alarm_alpha.png deleted file mode 100755 index c1c3d35514d48..0000000000000 Binary files a/core/res/res/drawable-xxhdpi/ic_audio_alarm_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xxhdpi/ic_audio_alarm_mute_alpha.png b/core/res/res/drawable-xxhdpi/ic_audio_alarm_mute_alpha.png deleted file mode 100644 index 4bcee685021ad..0000000000000 Binary files a/core/res/res/drawable-xxhdpi/ic_audio_alarm_mute_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xxhdpi/ic_audio_ring_notif_am_alpha.png b/core/res/res/drawable-xxhdpi/ic_audio_ring_notif_am_alpha.png deleted file mode 100644 index 699711c62c990..0000000000000 Binary files a/core/res/res/drawable-xxhdpi/ic_audio_ring_notif_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xxhdpi/ic_audio_ring_notif_mute_am_alpha.png b/core/res/res/drawable-xxhdpi/ic_audio_ring_notif_mute_am_alpha.png deleted file mode 100644 index 19d92ba609173..0000000000000 Binary files a/core/res/res/drawable-xxhdpi/ic_audio_ring_notif_mute_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xxhdpi/ic_audio_ring_notif_vibrate_am_alpha.png b/core/res/res/drawable-xxhdpi/ic_audio_ring_notif_vibrate_am_alpha.png deleted file mode 100644 index fdcfd56d20d2d..0000000000000 Binary files a/core/res/res/drawable-xxhdpi/ic_audio_ring_notif_vibrate_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xxhdpi/ic_audio_vol_am_alpha.png b/core/res/res/drawable-xxhdpi/ic_audio_vol_am_alpha.png deleted file mode 100755 index 15b63116b30be..0000000000000 Binary files a/core/res/res/drawable-xxhdpi/ic_audio_vol_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xxhdpi/ic_audio_vol_mute_am_alpha.png b/core/res/res/drawable-xxhdpi/ic_audio_vol_mute_am_alpha.png deleted file mode 100644 index b8f41119a13db..0000000000000 Binary files a/core/res/res/drawable-xxhdpi/ic_audio_vol_mute_am_alpha.png and /dev/null differ diff --git a/core/res/res/drawable/ic_audio_alarm.xml b/core/res/res/drawable/ic_audio_alarm.xml index d3e547088f889..fc4bf10872515 100644 --- a/core/res/res/drawable/ic_audio_alarm.xml +++ b/core/res/res/drawable/ic_audio_alarm.xml @@ -1,19 +1,24 @@ - - - - + + + diff --git a/core/res/res/drawable/ic_audio_alarm_mute.xml b/core/res/res/drawable/ic_audio_alarm_mute.xml index 7d85872a925ce..1d240816467b3 100644 --- a/core/res/res/drawable/ic_audio_alarm_mute.xml +++ b/core/res/res/drawable/ic_audio_alarm_mute.xml @@ -1,19 +1,24 @@ - - - - + + + diff --git a/core/res/res/drawable/ic_audio_vol.xml b/core/res/res/drawable/ic_audio_vol.xml index 8d07ded12f2a0..a55be939d750b 100644 --- a/core/res/res/drawable/ic_audio_vol.xml +++ b/core/res/res/drawable/ic_audio_vol.xml @@ -1,23 +1,24 @@ - +Copyright (C) 2014 The Android Open Source Project - + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + + + diff --git a/core/res/res/drawable/ic_audio_vol_mute.xml b/core/res/res/drawable/ic_audio_vol_mute.xml index edbdb23878fbc..ab50a7dbe4c09 100644 --- a/core/res/res/drawable/ic_audio_vol_mute.xml +++ b/core/res/res/drawable/ic_audio_vol_mute.xml @@ -1,23 +1,24 @@ - +Copyright (C) 2014 The Android Open Source Project - + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + + + diff --git a/packages/SystemUI/res/drawable/ic_audio_alarm.xml b/packages/SystemUI/res/drawable/ic_audio_alarm.xml new file mode 100644 index 0000000000000..5dd158e400808 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_audio_alarm.xml @@ -0,0 +1,24 @@ + + + + diff --git a/packages/SystemUI/res/drawable/ic_audio_alarm_mute.xml b/packages/SystemUI/res/drawable/ic_audio_alarm_mute.xml new file mode 100644 index 0000000000000..af445e3be53f1 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_audio_alarm_mute.xml @@ -0,0 +1,24 @@ + + + + diff --git a/packages/SystemUI/res/drawable/ic_audio_vol.xml b/packages/SystemUI/res/drawable/ic_audio_vol.xml new file mode 100644 index 0000000000000..76c14b15c3dde --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_audio_vol.xml @@ -0,0 +1,24 @@ + + + + diff --git a/packages/SystemUI/res/drawable/ic_audio_vol_mute.xml b/packages/SystemUI/res/drawable/ic_audio_vol_mute.xml new file mode 100644 index 0000000000000..e158f7b880507 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_audio_vol_mute.xml @@ -0,0 +1,24 @@ + + + + diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java b/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java index 40bdea2b60d19..360dee59d2d7b 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java @@ -127,6 +127,9 @@ public class VolumePanel extends Handler { .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION) .build(); + private static final int IC_AUDIO_VOL = com.android.systemui.R.drawable.ic_audio_vol; + private static final int IC_AUDIO_VOL_MUTE = com.android.systemui.R.drawable.ic_audio_vol_mute; + private final String mTag; protected final Context mContext; private final AudioManager mAudioManager; @@ -182,13 +185,13 @@ public class VolumePanel extends Handler { false), AlarmStream(AudioManager.STREAM_ALARM, R.string.volume_alarm, - R.drawable.ic_audio_alarm, - R.drawable.ic_audio_alarm_mute, + com.android.systemui.R.drawable.ic_audio_alarm, + com.android.systemui.R.drawable.ic_audio_alarm_mute, false), MediaStream(AudioManager.STREAM_MUSIC, R.string.volume_icon_description_media, - R.drawable.ic_audio_vol, - R.drawable.ic_audio_vol_mute, + IC_AUDIO_VOL, + IC_AUDIO_VOL_MUTE, true), NotificationStream(AudioManager.STREAM_NOTIFICATION, R.string.volume_icon_description_notification, @@ -198,8 +201,8 @@ public class VolumePanel extends Handler { // for now, use media resources for master volume MasterStream(STREAM_MASTER, R.string.volume_icon_description_media, //FIXME should have its own description - R.drawable.ic_audio_vol, - R.drawable.ic_audio_vol_mute, + IC_AUDIO_VOL, + IC_AUDIO_VOL_MUTE, false), RemoteStream(STREAM_REMOTE_MUSIC, R.string.volume_icon_description_media, //FIXME should have its own description @@ -994,7 +997,7 @@ public class VolumePanel extends Handler { AudioManager.DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER)) != 0) { setMusicIcon(R.drawable.ic_audio_bt, R.drawable.ic_audio_bt_mute); } else { - setMusicIcon(R.drawable.ic_audio_vol, R.drawable.ic_audio_vol_mute); + setMusicIcon(IC_AUDIO_VOL, IC_AUDIO_VOL_MUTE); } break; }