summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorKamaljeet Maini <kmaini@cyngn.com>2016-04-22 14:43:25 -0700
committerKamaljeet Maini <kmaini@cyngn.com>2016-05-05 16:55:10 -0700
commitf023f97370cfbe775a1fab04da3699e0f82c066b (patch)
tree06bf876c8db986469aac7e1deb28126734331cc1 /res
parent24250966360cb48fc8ed64224ea67a03f34454b6 (diff)
downloadandroid_packages_apps_InCallUI-f023f97370cfbe775a1fab04da3699e0f82c066b.tar.gz
android_packages_apps_InCallUI-f023f97370cfbe775a1fab04da3699e0f82c066b.tar.bz2
android_packages_apps_InCallUI-f023f97370cfbe775a1fab04da3699e0f82c066b.zip
Add new options for call waiting response in InCallUI
When an incoming call is received while there is already an active call, the user will be given four choices for the response: 1) Left button: hold the current call and answer incoming call 2) Bottom button: end the current call and answer the incoming call 3) Right button: decline the incoming call 4) Top button: Send a text message to the incoming caller if texting is enabled The changes in this component include updated icon graphics, display of text hints, and new APIs for additonal flag. Change-Id: Ic97e0fde12ae98afa0124f4bb5326e874a146e91
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/ic_call_end_16dp.pngbin0 -> 316 bytes
-rw-r--r--res/drawable-hdpi/ic_pause_16dp.pngbin0 -> 159 bytes
-rw-r--r--res/drawable-mdpi/ic_call_end_16dp.pngbin0 -> 243 bytes
-rw-r--r--res/drawable-mdpi/ic_pause_16dp.pngbin0 -> 178 bytes
-rw-r--r--res/drawable-xhdpi/ic_call_end_16dp.pngbin0 -> 351 bytes
-rw-r--r--res/drawable-xhdpi/ic_pause_16dp.pngbin0 -> 159 bytes
-rw-r--r--res/drawable-xxhdpi/ic_call_end_16dp.pngbin0 -> 455 bytes
-rw-r--r--res/drawable-xxhdpi/ic_pause_16dp.pngbin0 -> 161 bytes
-rw-r--r--res/drawable-xxxhdpi/ic_call_end_16dp.pngbin0 -> 584 bytes
-rw-r--r--res/drawable-xxxhdpi/ic_pause_16dp.pngbin0 -> 163 bytes
-rw-r--r--res/drawable/ic_lockscreen_answer_activated_layer.xml15
-rw-r--r--res/drawable/ic_lockscreen_answer_end_current.xml27
-rw-r--r--res/drawable/ic_lockscreen_answer_end_current_activated_layer.xml28
-rw-r--r--res/drawable/ic_lockscreen_answer_end_current_normal_layer.xml37
-rw-r--r--res/drawable/ic_lockscreen_answer_hold_current.xml27
-rw-r--r--res/drawable/ic_lockscreen_answer_hold_current_activated_layer.xml28
-rw-r--r--res/drawable/ic_lockscreen_answer_hold_current_normal_layer.xml37
-rw-r--r--res/drawable/ic_lockscreen_answer_normal_layer.xml16
-rw-r--r--res/drawable/ic_lockscreen_block_activated_layer.xml13
-rw-r--r--res/drawable/ic_lockscreen_block_normal_layer.xml20
-rw-r--r--res/drawable/ic_lockscreen_decline_activated_layer.xml13
-rw-r--r--res/drawable/ic_lockscreen_decline_normal_layer.xml17
-rw-r--r--res/drawable/ic_lockscreen_decline_small_layer.xml36
-rw-r--r--res/drawable/ic_lockscreen_hold_small_layer.xml36
-rw-r--r--res/drawable/ic_lockscreen_text_activated_layer.xml19
-rw-r--r--res/drawable/ic_lockscreen_text_normal_layer.xml14
-rw-r--r--res/layout/answer_fragment.xml1
-rw-r--r--res/values/array.xml90
-rw-r--r--res/values/attrs.xml3
-rw-r--r--res/values/cm_colors.xml10
-rw-r--r--res/values/cm_dimens.xml13
-rw-r--r--res/values/cm_strings.xml15
32 files changed, 456 insertions, 59 deletions
diff --git a/res/drawable-hdpi/ic_call_end_16dp.png b/res/drawable-hdpi/ic_call_end_16dp.png
new file mode 100644
index 00000000..f049c3ab
--- /dev/null
+++ b/res/drawable-hdpi/ic_call_end_16dp.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_pause_16dp.png b/res/drawable-hdpi/ic_pause_16dp.png
new file mode 100644
index 00000000..bda48634
--- /dev/null
+++ b/res/drawable-hdpi/ic_pause_16dp.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_call_end_16dp.png b/res/drawable-mdpi/ic_call_end_16dp.png
new file mode 100644
index 00000000..0ccf67a9
--- /dev/null
+++ b/res/drawable-mdpi/ic_call_end_16dp.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_pause_16dp.png b/res/drawable-mdpi/ic_pause_16dp.png
new file mode 100644
index 00000000..3d58e3b7
--- /dev/null
+++ b/res/drawable-mdpi/ic_pause_16dp.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_call_end_16dp.png b/res/drawable-xhdpi/ic_call_end_16dp.png
new file mode 100644
index 00000000..aad29a86
--- /dev/null
+++ b/res/drawable-xhdpi/ic_call_end_16dp.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_pause_16dp.png b/res/drawable-xhdpi/ic_pause_16dp.png
new file mode 100644
index 00000000..ae2617f3
--- /dev/null
+++ b/res/drawable-xhdpi/ic_pause_16dp.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_call_end_16dp.png b/res/drawable-xxhdpi/ic_call_end_16dp.png
new file mode 100644
index 00000000..0d0f3130
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_call_end_16dp.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_pause_16dp.png b/res/drawable-xxhdpi/ic_pause_16dp.png
new file mode 100644
index 00000000..1d6eaf50
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_pause_16dp.png
Binary files differ
diff --git a/res/drawable-xxxhdpi/ic_call_end_16dp.png b/res/drawable-xxxhdpi/ic_call_end_16dp.png
new file mode 100644
index 00000000..3ed18ece
--- /dev/null
+++ b/res/drawable-xxxhdpi/ic_call_end_16dp.png
Binary files differ
diff --git a/res/drawable-xxxhdpi/ic_pause_16dp.png b/res/drawable-xxxhdpi/ic_pause_16dp.png
new file mode 100644
index 00000000..f27c7be6
--- /dev/null
+++ b/res/drawable-xxxhdpi/ic_pause_16dp.png
Binary files differ
diff --git a/res/drawable/ic_lockscreen_answer_activated_layer.xml b/res/drawable/ic_lockscreen_answer_activated_layer.xml
index c615295e..e06fdb69 100644
--- a/res/drawable/ic_lockscreen_answer_activated_layer.xml
+++ b/res/drawable/ic_lockscreen_answer_activated_layer.xml
@@ -14,12 +14,15 @@
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@drawable/fab_blue" />
+
<item>
- <bitmap
- android:gravity="center"
- android:src="@drawable/fab_ic_call"
- android:tint="@color/glowpad_widget_active_color"
- android:autoMirrored="true" />
+ <shape
+ android:shape="ring"
+ android:innerRadius="@dimen/incoming_call_widget_ring_inner_radius"
+ android:thickness="@dimen/incoming_call_widget_ring_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_activated_ring"/>
+ </shape>
</item>
+ <item android:drawable="@drawable/ic_lockscreen_answer_normal_layer" />
</layer-list>
diff --git a/res/drawable/ic_lockscreen_answer_end_current.xml b/res/drawable/ic_lockscreen_answer_end_current.xml
new file mode 100644
index 00000000..e00afb52
--- /dev/null
+++ b/res/drawable/ic_lockscreen_answer_end_current.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_enabled="true" android:state_active="false" android:state_focused="false"
+ android:drawable="@drawable/ic_lockscreen_answer_end_current_normal_layer"/>
+ <item
+ android:state_enabled="true" android:state_active="true" android:state_focused="false"
+ android:drawable="@drawable/ic_lockscreen_answer_end_current_activated_layer" />
+ <item
+ android:state_enabled="true" android:state_active="false" android:state_focused="true"
+ android:drawable="@drawable/ic_lockscreen_answer_end_current_activated_layer" />
+</selector>
diff --git a/res/drawable/ic_lockscreen_answer_end_current_activated_layer.xml b/res/drawable/ic_lockscreen_answer_end_current_activated_layer.xml
new file mode 100644
index 00000000..9469a37c
--- /dev/null
+++ b/res/drawable/ic_lockscreen_answer_end_current_activated_layer.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item>
+ <shape
+ android:shape="ring"
+ android:innerRadius="@dimen/incoming_call_widget_ring_inner_radius"
+ android:thickness="@dimen/incoming_call_widget_ring_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_activated_ring"/>
+ </shape>
+ </item>
+ <item android:drawable="@drawable/ic_lockscreen_answer_end_current_normal_layer" />
+</layer-list>
diff --git a/res/drawable/ic_lockscreen_answer_end_current_normal_layer.xml b/res/drawable/ic_lockscreen_answer_end_current_normal_layer.xml
new file mode 100644
index 00000000..4c53b3aa
--- /dev/null
+++ b/res/drawable/ic_lockscreen_answer_end_current_normal_layer.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item>
+ <shape
+ android:shape="ring"
+ android:innerRadius="0dp"
+ android:thickness="@dimen/incoming_call_widget_circle_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_answer_circle"/>
+ </shape>
+ </item>
+ <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@drawable/ic_call_white_24dp"
+ android:tint="@color/incoming_call_widget_bitmap"
+ android:autoMirrored="true" />
+ </item>
+ <item android:top="@dimen/incoming_call_widget_small_circle_top_offset"
+ android:left="@dimen/incoming_call_widget_small_circle_left_offset"
+ android:drawable="@drawable/ic_lockscreen_decline_small_layer" />
+</layer-list>
diff --git a/res/drawable/ic_lockscreen_answer_hold_current.xml b/res/drawable/ic_lockscreen_answer_hold_current.xml
new file mode 100644
index 00000000..b96936c2
--- /dev/null
+++ b/res/drawable/ic_lockscreen_answer_hold_current.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_enabled="true" android:state_active="false" android:state_focused="false"
+ android:drawable="@drawable/ic_lockscreen_answer_hold_current_normal_layer"/>
+ <item
+ android:state_enabled="true" android:state_active="true" android:state_focused="false"
+ android:drawable="@drawable/ic_lockscreen_answer_hold_current_activated_layer" />
+ <item
+ android:state_enabled="true" android:state_active="false" android:state_focused="true"
+ android:drawable="@drawable/ic_lockscreen_answer_hold_current_activated_layer" />
+</selector>
diff --git a/res/drawable/ic_lockscreen_answer_hold_current_activated_layer.xml b/res/drawable/ic_lockscreen_answer_hold_current_activated_layer.xml
new file mode 100644
index 00000000..7ea65294
--- /dev/null
+++ b/res/drawable/ic_lockscreen_answer_hold_current_activated_layer.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item>
+ <shape
+ android:shape="ring"
+ android:innerRadius="@dimen/incoming_call_widget_ring_inner_radius"
+ android:thickness="@dimen/incoming_call_widget_ring_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_activated_ring"/>
+ </shape>
+ </item>
+ <item android:drawable="@drawable/ic_lockscreen_answer_hold_current_normal_layer" />
+</layer-list>
diff --git a/res/drawable/ic_lockscreen_answer_hold_current_normal_layer.xml b/res/drawable/ic_lockscreen_answer_hold_current_normal_layer.xml
new file mode 100644
index 00000000..662f0d97
--- /dev/null
+++ b/res/drawable/ic_lockscreen_answer_hold_current_normal_layer.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item>
+ <shape
+ android:shape="ring"
+ android:innerRadius="0dp"
+ android:thickness="@dimen/incoming_call_widget_circle_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_answer_circle"/>
+ </shape>
+ </item>
+ <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@drawable/ic_call_white_24dp"
+ android:tint="@color/incoming_call_widget_bitmap"
+ android:autoMirrored="true" />
+ </item>
+ <item android:top="@dimen/incoming_call_widget_small_circle_top_offset"
+ android:left="@dimen/incoming_call_widget_small_circle_left_offset"
+ android:drawable="@drawable/ic_lockscreen_hold_small_layer" />
+</layer-list>
diff --git a/res/drawable/ic_lockscreen_answer_normal_layer.xml b/res/drawable/ic_lockscreen_answer_normal_layer.xml
index 31b884f9..1bd7cfdd 100644
--- a/res/drawable/ic_lockscreen_answer_normal_layer.xml
+++ b/res/drawable/ic_lockscreen_answer_normal_layer.xml
@@ -14,20 +14,20 @@
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- A fake circle to fix the size of this layer asset. -->
<item>
- <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
- <solid android:color="#00000000"/>
- <size
- android:width="@dimen/incoming_call_widget_circle_size"
- android:height="@dimen/incoming_call_widget_circle_size" />
+ <shape
+ android:shape="ring"
+ android:innerRadius="0dp"
+ android:thickness="@dimen/incoming_call_widget_circle_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_answer_circle"/>
</shape>
</item>
<item>
<bitmap
android:gravity="center"
- android:src="@drawable/fab_ic_call"
- android:tint="@color/glowpad_call_widget_normal_tint"
+ android:src="@drawable/ic_call_white_24dp"
+ android:tint="@color/incoming_call_widget_bitmap"
android:autoMirrored="true" />
</item>
</layer-list>
diff --git a/res/drawable/ic_lockscreen_block_activated_layer.xml b/res/drawable/ic_lockscreen_block_activated_layer.xml
index 12d12c48..64029aa5 100644
--- a/res/drawable/ic_lockscreen_block_activated_layer.xml
+++ b/res/drawable/ic_lockscreen_block_activated_layer.xml
@@ -14,11 +14,14 @@
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@drawable/fab_red" />
<item>
- <bitmap
- android:gravity="center"
- android:src="@drawable/ic_do_not_disturb_alt_white_24dp"
- android:tint="@color/glowpad_widget_active_color" />
+ <shape
+ android:shape="ring"
+ android:innerRadius="@dimen/incoming_call_widget_ring_inner_radius"
+ android:thickness="@dimen/incoming_call_widget_ring_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_activated_ring"/>
+ </shape>
</item>
+ <item android:drawable="@drawable/ic_lockscreen_block_normal_layer" />
</layer-list>
diff --git a/res/drawable/ic_lockscreen_block_normal_layer.xml b/res/drawable/ic_lockscreen_block_normal_layer.xml
index c42ea64c..0606286a 100644
--- a/res/drawable/ic_lockscreen_block_normal_layer.xml
+++ b/res/drawable/ic_lockscreen_block_normal_layer.xml
@@ -13,21 +13,25 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- A fake circle to fix the size of this layer asset. -->
<item>
- <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
- <solid android:color="#00000000"/>
- <size
- android:width="@dimen/incoming_call_widget_circle_size"
- android:height="@dimen/incoming_call_widget_circle_size" />
+ <shape
+ android:shape="ring"
+ android:innerRadius="0dp"
+ android:thickness="@dimen/incoming_call_widget_circle_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_sms_circle"/>
</shape>
</item>
<item>
<bitmap
android:gravity="center"
android:src="@drawable/ic_do_not_disturb_alt_white_24dp"
- android:tint="@color/glowpad_text_widget_normal_tint"
- android:autoMirrored="true"/>
+ android:tint="@color/incoming_call_widget_bitmap"
+ android:autoMirrored="true" />
</item>
+ <item android:top="@dimen/incoming_call_widget_small_circle_top_offset"
+ android:left="@dimen/incoming_call_widget_small_circle_left_offset"
+ android:drawable="@drawable/ic_lockscreen_decline_small_layer" />
</layer-list>
diff --git a/res/drawable/ic_lockscreen_decline_activated_layer.xml b/res/drawable/ic_lockscreen_decline_activated_layer.xml
index 096c32b4..19fa49f9 100644
--- a/res/drawable/ic_lockscreen_decline_activated_layer.xml
+++ b/res/drawable/ic_lockscreen_decline_activated_layer.xml
@@ -14,11 +14,14 @@
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@drawable/fab_red" />
<item>
- <bitmap
- android:gravity="center"
- android:src="@drawable/fab_ic_end_call"
- android:tint="@color/glowpad_widget_active_color" />
+ <shape
+ android:shape="ring"
+ android:innerRadius="@dimen/incoming_call_widget_ring_inner_radius"
+ android:thickness="@dimen/incoming_call_widget_ring_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_activated_ring"/>
+ </shape>
</item>
+ <item android:drawable="@drawable/ic_lockscreen_decline_normal_layer" />
</layer-list>
diff --git a/res/drawable/ic_lockscreen_decline_normal_layer.xml b/res/drawable/ic_lockscreen_decline_normal_layer.xml
index 4da5f8d6..8bbfb93b 100644
--- a/res/drawable/ic_lockscreen_decline_normal_layer.xml
+++ b/res/drawable/ic_lockscreen_decline_normal_layer.xml
@@ -14,19 +14,20 @@
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- A fake circle to fix the size of this layer asset. -->
<item>
- <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
- <solid android:color="#00000000"/>
- <size
- android:width="@dimen/incoming_call_widget_circle_size"
- android:height="@dimen/incoming_call_widget_circle_size" />
+ <shape
+ android:shape="ring"
+ android:innerRadius="0dp"
+ android:thickness="@dimen/incoming_call_widget_circle_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_decline_circle"/>
</shape>
</item>
<item>
<bitmap
android:gravity="center"
- android:src="@drawable/fab_ic_end_call"
- android:tint="@color/glowpad_end_call_widget_normal_tint" />
+ android:src="@drawable/ic_call_end_white_24dp"
+ android:tint="@color/incoming_call_widget_bitmap"
+ android:autoMirrored="true" />
</item>
</layer-list>
diff --git a/res/drawable/ic_lockscreen_decline_small_layer.xml b/res/drawable/ic_lockscreen_decline_small_layer.xml
new file mode 100644
index 00000000..9b51e432
--- /dev/null
+++ b/res/drawable/ic_lockscreen_decline_small_layer.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item>
+ <shape
+ android:shape="ring"
+ android:innerRadius="0dp"
+ android:thickness="@dimen/incoming_call_widget_small_circle_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_decline_small_circle"/>
+ <size android:width="@dimen/incoming_call_widget_small_circle_width"
+ android:height="@dimen/incoming_call_widget_small_circle_height"/>
+ </shape>
+ </item>
+ <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@drawable/ic_call_end_16dp"
+ android:tint="@color/incoming_call_widget_bitmap"
+ android:autoMirrored="true" />
+ </item>
+</layer-list>
diff --git a/res/drawable/ic_lockscreen_hold_small_layer.xml b/res/drawable/ic_lockscreen_hold_small_layer.xml
new file mode 100644
index 00000000..d8da4d0b
--- /dev/null
+++ b/res/drawable/ic_lockscreen_hold_small_layer.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item>
+ <shape
+ android:shape="ring"
+ android:innerRadius="0dp"
+ android:thickness="@dimen/incoming_call_widget_small_circle_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_hold_small_circle"/>
+ <size android:width="@dimen/incoming_call_widget_small_circle_width"
+ android:height="@dimen/incoming_call_widget_small_circle_height"/>
+ </shape>
+ </item>
+ <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@drawable/ic_pause_16dp"
+ android:tint="@color/incoming_call_hold_bitmap"
+ android:autoMirrored="true" />
+ </item>
+</layer-list>
diff --git a/res/drawable/ic_lockscreen_text_activated_layer.xml b/res/drawable/ic_lockscreen_text_activated_layer.xml
index a74e36b3..73b6c7de 100644
--- a/res/drawable/ic_lockscreen_text_activated_layer.xml
+++ b/res/drawable/ic_lockscreen_text_activated_layer.xml
@@ -15,18 +15,13 @@
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
- <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
- <stroke android:color="@color/glowpad_text_widget_ring_color" android:width="1dp"/>
- <size
- android:width="@dimen/incoming_call_widget_circle_size"
- android:height="@dimen/incoming_call_widget_circle_size" />
+ <shape
+ android:shape="ring"
+ android:innerRadius="@dimen/incoming_call_widget_ring_inner_radius"
+ android:thickness="@dimen/incoming_call_widget_ring_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/glowpad_widget_active_color"/>
</shape>
</item>
- <item>
- <bitmap
- android:gravity="center"
- android:src="@drawable/fab_ic_message"
- android:tint="@color/glowpad_widget_active_color"
- android:autoMirrored="true" />
- </item>
+ <item android:drawable="@drawable/ic_lockscreen_text_normal_layer" />
</layer-list>
diff --git a/res/drawable/ic_lockscreen_text_normal_layer.xml b/res/drawable/ic_lockscreen_text_normal_layer.xml
index be32d0ba..888aeb40 100644
--- a/res/drawable/ic_lockscreen_text_normal_layer.xml
+++ b/res/drawable/ic_lockscreen_text_normal_layer.xml
@@ -14,20 +14,20 @@
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- A fake circle to fix the size of this layer asset. -->
<item>
- <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
- <solid android:color="#00000000"/>
- <size
- android:width="@dimen/incoming_call_widget_circle_size"
- android:height="@dimen/incoming_call_widget_circle_size" />
+ <shape
+ android:shape="ring"
+ android:innerRadius="0dp"
+ android:thickness="@dimen/incoming_call_widget_circle_thickness"
+ android:useLevel="false">
+ <solid android:color="@color/incoming_call_sms_circle"/>
</shape>
</item>
<item>
<bitmap
android:gravity="center"
android:src="@drawable/fab_ic_message"
- android:tint="@color/glowpad_text_widget_normal_tint"
+ android:tint="@color/incoming_call_widget_bitmap"
android:autoMirrored="true" />
</item>
</layer-list>
diff --git a/res/layout/answer_fragment.xml b/res/layout/answer_fragment.xml
index 03357482..bd9083c7 100644
--- a/res/layout/answer_fragment.xml
+++ b/res/layout/answer_fragment.xml
@@ -30,6 +30,7 @@
dc:targetDrawables="@array/incoming_call_widget_audio_with_sms_without_block_targets"
dc:targetDescriptions="@array/incoming_call_widget_audio_with_sms_without_block_target_descriptions"
dc:directionDescriptions="@array/incoming_call_widget_audio_with_sms_without_block_direction_descriptions"
+ dc:targetDisplayText="@array/incoming_call_widget_audio_with_sms_without_block_display_text"
dc:handleDrawable="@drawable/ic_incall_audio_handle"
dc:outerRingDrawable="@drawable/ic_lockscreen_outerring"
dc:outerRadius="@dimen/glowpadview_target_placement_radius"
diff --git a/res/values/array.xml b/res/values/array.xml
index 9e6c007e..42f7d16c 100644
--- a/res/values/array.xml
+++ b/res/values/array.xml
@@ -210,4 +210,94 @@
<item>@null</item>
</array>
+ <!-- For audio calls, if respond via SMS is disabled and no popup is enabled for call waiting:
+ - Hold and answer (drag right)
+ - Ena and answer (drag down)
+ - Decline (drag left) -->
+ <array name="incoming_call_widget_audio_without_sms_with_call_waiting_targets">
+ <item>@drawable/ic_lockscreen_answer_hold_current</item>
+ <item>@null</item>
+ <item>@drawable/ic_lockscreen_decline</item>
+ <item>@drawable/ic_lockscreen_answer_end_current</item>"
+ </array>
+ <array name="incoming_call_widget_audio_without_sms_with_call_waiting_target_descriptions">
+ <item>@string/description_target_answer_hold_active</item>
+ <item>@null</item>
+ <item>@string/description_target_decline</item>
+ <item>@string/description_target_answer_end_active</item>"
+ </array>
+ <array name="incoming_call_widget_audio_without_sms_with_call_waiting_direction_descriptions">
+ <item>@string/description_direction_right</item>
+ <item>@null</item>
+ <item>@string/description_direction_left</item>
+ <item>@string/description_direction_down</item>
+ </array>
+ <array name="incoming_call_widget_audio_without_sms_with_call_waiting_display_text">
+ <item>@string/display_text_target_answer_and_hold_active</item>
+ <item>@null</item>
+ <item>@string/display_text_target_dismiss</item>
+ <item>@string/display_text_target_answer_and_end_active</item>"
+ </array>
+
+ <!-- For audio calls, if respond via SMS is enabled and no popup is enabled for call waiting:
+ - Hold and answer (drag right)
+ - Respond via SMS (drag up)
+ - Ena and answer (drag down)
+ - Decline (drag left) -->
+ <array name="incoming_call_widget_audio_with_sms_and_call_waiting_targets">
+ <item>@drawable/ic_lockscreen_answer_hold_current</item>
+ <item>@drawable/ic_lockscreen_text</item>
+ <item>@drawable/ic_lockscreen_decline</item>
+ <item>@drawable/ic_lockscreen_answer_end_current</item>
+ </array>
+ <array name="incoming_call_widget_audio_with_sms_and_call_waiting_target_descriptions">
+ <item>@string/description_target_answer_hold_active</item>
+ <item>@string/description_target_send_sms</item>
+ <item>@string/description_target_decline</item>
+ <item>@string/description_target_answer_end_active</item>"
+ </array>
+ <array name="incoming_call_widget_audio_with_sms_and_call_waiting_direction_descriptions">
+ <item>@string/description_direction_right</item>
+ <item>@string/description_direction_up</item>
+ <item>@string/description_direction_left</item>
+ <item>@string/description_direction_down</item>
+ </array>
+ <array name="incoming_call_widget_audio_with_sms_and_call_waiting_display_text">
+ <item>@string/display_text_target_answer_and_hold_active</item>
+ <item>@string/display_text_target_sms</item>
+ <item>@string/display_text_target_dismiss</item>
+ <item>@string/display_text_target_answer_and_end_active</item>
+ </array>
+
+ <!-- Display text for the remaining scenarios -->
+ <array name="incoming_call_widget_default_target_display_text">
+ <item>@string/empty_string</item>
+ <item>@string/empty_string</item>
+ <item>@string/empty_string</item>
+ <item>@string/empty_string</item>
+ </array>
+ <array name="incoming_call_widget_audio_with_sms_without_block_display_text">
+ <item>@string/display_text_target_answer</item>
+ <item>@string/display_text_target_sms</item>
+ <item>@string/display_text_target_dismiss</item>
+ <item>@null</item>
+ </array>
+ <array name="incoming_call_widget_audio_without_sms_and_block_display_text">
+ <item>@string/display_text_target_answer</item>
+ <item>@null</item>
+ <item>@string/display_text_target_dismiss</item>
+ <item>@null</item>
+ </array>
+ <array name="incoming_call_widget_audio_with_sms_and_block_display_text">
+ <item>@string/display_text_target_answer</item>
+ <item>@string/display_text_target_sms</item>
+ <item>@string/display_text_target_dismiss</item>
+ <item>@string/display_text_target_block</item>
+ </array>
+ <array name="incoming_call_widget_audio_without_sms_with_block_display_text">
+ <item>@string/display_text_target_answer</item>
+ <item>@null</item>
+ <item>@string/display_text_target_dismiss</item>
+ <item>@string/display_text_target_block</item>
+ </array>
</resources>
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index e135fb72..f9471bb4 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -28,6 +28,9 @@
<!-- Reference to an array resource that be used to announce the directions with targets around the circle. -->
<attr name="directionDescriptions" format="reference"/>
+ <!-- Reference to an array resource that be used to display text for the target action. -->
+ <attr name="targetDisplayText" format="reference"/>
+
<!-- Sets a drawable as the center. -->
<attr name="handleDrawable" format="reference"/>
diff --git a/res/values/cm_colors.xml b/res/values/cm_colors.xml
index adee95e2..4b3f214d 100644
--- a/res/values/cm_colors.xml
+++ b/res/values/cm_colors.xml
@@ -23,4 +23,14 @@
<color name="contact_info_spam_info_text_color">#ff402c</color>
<color name="contact_info_attribution_text_color">#ffffff</color>
+
+ <color name="incoming_call_display_text">#b2ffffff</color>
+ <color name="incoming_call_answer_circle">#00c853</color>
+ <color name="incoming_call_decline_circle">#ff2844</color>
+ <color name="incoming_call_decline_small_circle">#ff2844</color>
+ <color name="incoming_call_activated_ring">#ffffff</color>
+ <color name="incoming_call_widget_bitmap">#ffffff</color>
+ <color name="incoming_call_hold_small_circle">#607d8b</color>
+ <color name="incoming_call_hold_bitmap">#b2ffffff</color>
+ <color name="incoming_call_sms_circle">#0288d1</color>
</resources> \ No newline at end of file
diff --git a/res/values/cm_dimens.xml b/res/values/cm_dimens.xml
index e69ebfc2..b73349cf 100644
--- a/res/values/cm_dimens.xml
+++ b/res/values/cm_dimens.xml
@@ -36,4 +36,17 @@
<dimen name="lookup_extra_info_container_margin_top">25dp</dimen>
<dimen name="notification_three_action_padding">12dp</dimen>
+
+ <!-- Call waiting reponse changes -->
+ <dimen name="incoming_call_display_text_size">14sp</dimen>
+ <dimen name="incoming_call_widget_circle_thickness">22dp</dimen>
+ <dimen name="incoming_call_widget_ring_thickness">2dp</dimen>
+ <dimen name="incoming_call_widget_ring_inner_radius">27dp</dimen>
+ <dimen name="incoming_call_widget_small_circle_top_offset">30dp</dimen>
+ <dimen name="incoming_call_widget_small_circle_thickness">11dp</dimen>
+ <dimen name="incoming_call_widget_small_circle_width">20dp</dimen>
+ <dimen name="incoming_call_widget_small_circle_height">20dp</dimen>
+ <dimen name="incoming_call_widget_small_circle_left_offset">30dp</dimen>
+ <dimen name="incoming_call_widget_display_text_side_offset">30dp</dimen>
+
</resources>
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index 77b40f21..18d3a773 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -70,5 +70,20 @@
<string name="onscreenNoteText">Take note</string>
<!-- Text to place in the name field of a Call DeepLink when the contact name is not known -->
<string name="deeplink_unknown_caller">Unknown</string>
+ <!-- Description of the hold and answer target in the Slide unlock screen of Phone. [CHAR
+ LIMIT=NONE] -->
+ <string name="description_target_answer_hold_active">Hold current call and answer</string>
+ <!-- Description of the end and answer target in the Slide unlock screen of Phone. [CHAR
+ LIMIT=NONE] -->
+ <string name="description_target_answer_end_active">End current call and answer</string>
+
+ <!-- In-call screen: display text for the target action -->
+ <string name="empty_string"></string>
+ <string name="display_text_target_dismiss">DISMISS</string>
+ <string name="display_text_target_block">BLOCK</string>
+ <string name="display_text_target_answer">ANSWER</string>
+ <string name="display_text_target_sms">QUICK MESSAGE</string>
+ <string name="display_text_target_answer_and_hold_active">HOLD CURRENT CALL AND ANSWER</string>
+ <string name="display_text_target_answer_and_end_active">END CURRENT CALL AND ANSWER</string>
</resources>