From 1bd21c5ffed9c85c78d6d63ce25afa779fab8e5a Mon Sep 17 00:00:00 2001 From: Christine Chen Date: Wed, 16 Oct 2013 10:42:15 -0700 Subject: Removes private resources from InCallUi Bug: 11244110 Change-Id: I88471a7d1e164ac7e464f199f1c0c36fa3c0876f --- InCallUI/res/anim/activity_open_enter.xml | 35 +++++++++++++++++++++ InCallUI/res/anim/activity_open_exit.xml | 26 +++++++++++++++ InCallUI/res/anim/decelerate_cubic.xml | 21 +++++++++++++ InCallUI/res/anim/decelerate_quint.xml | 21 +++++++++++++ .../drawable-hdpi/ab_transparent_dark_holo.9.png | Bin 0 -> 155 bytes .../res/drawable-hdpi/ic_lockscreen_glowdot.png | Bin 0 -> 738 bytes .../drawable-hdpi/ic_lockscreen_handle_pressed.png | Bin 0 -> 8378 bytes InCallUI/res/drawable-hdpi/picture_emergency.png | Bin 0 -> 2519 bytes .../drawable-mdpi/ab_transparent_dark_holo.9.png | Bin 0 -> 139 bytes .../res/drawable-mdpi/ic_lockscreen_glowdot.png | Bin 0 -> 538 bytes .../drawable-mdpi/ic_lockscreen_handle_pressed.png | Bin 0 -> 4299 bytes InCallUI/res/drawable-mdpi/picture_emergency.png | Bin 0 -> 5136 bytes .../drawable-xhdpi/ab_transparent_dark_holo.9.png | Bin 0 -> 171 bytes .../res/drawable-xhdpi/ic_lockscreen_glowdot.png | Bin 0 -> 964 bytes .../ic_lockscreen_handle_pressed.png | Bin 0 -> 12182 bytes InCallUI/res/drawable-xhdpi/picture_emergency.png | Bin 0 -> 9521 bytes .../drawable-xxhdpi/ab_transparent_dark_holo.9.png | Bin 0 -> 1168 bytes .../res/drawable-xxhdpi/ic_lockscreen_glowdot.png | Bin 0 -> 1907 bytes .../ic_lockscreen_handle_pressed.png | Bin 0 -> 16233 bytes InCallUI/res/drawable/ic_in_call_touch_handle.xml | 2 +- InCallUI/res/drawable/ic_lockscreen_outerring.xml | 24 ++++++++++++++ InCallUI/res/layout/answer_fragment.xml | 4 +-- .../res/layout/conference_manager_fragment.xml | 4 +-- InCallUI/res/values/array.xml | 10 +++--- InCallUI/res/values/dimens.xml | 2 -- InCallUI/res/values/strings.xml | 10 ++++++ InCallUI/res/values/styles.xml | 13 ++++---- InCallUI/src/com/android/incallui/CallerInfo.java | 5 ++- 28 files changed, 155 insertions(+), 22 deletions(-) create mode 100644 InCallUI/res/anim/activity_open_enter.xml create mode 100644 InCallUI/res/anim/activity_open_exit.xml create mode 100644 InCallUI/res/anim/decelerate_cubic.xml create mode 100644 InCallUI/res/anim/decelerate_quint.xml create mode 100644 InCallUI/res/drawable-hdpi/ab_transparent_dark_holo.9.png create mode 100644 InCallUI/res/drawable-hdpi/ic_lockscreen_glowdot.png create mode 100644 InCallUI/res/drawable-hdpi/ic_lockscreen_handle_pressed.png create mode 100644 InCallUI/res/drawable-hdpi/picture_emergency.png create mode 100644 InCallUI/res/drawable-mdpi/ab_transparent_dark_holo.9.png create mode 100644 InCallUI/res/drawable-mdpi/ic_lockscreen_glowdot.png create mode 100644 InCallUI/res/drawable-mdpi/ic_lockscreen_handle_pressed.png create mode 100644 InCallUI/res/drawable-mdpi/picture_emergency.png create mode 100644 InCallUI/res/drawable-xhdpi/ab_transparent_dark_holo.9.png create mode 100644 InCallUI/res/drawable-xhdpi/ic_lockscreen_glowdot.png create mode 100644 InCallUI/res/drawable-xhdpi/ic_lockscreen_handle_pressed.png create mode 100644 InCallUI/res/drawable-xhdpi/picture_emergency.png create mode 100644 InCallUI/res/drawable-xxhdpi/ab_transparent_dark_holo.9.png create mode 100644 InCallUI/res/drawable-xxhdpi/ic_lockscreen_glowdot.png create mode 100644 InCallUI/res/drawable-xxhdpi/ic_lockscreen_handle_pressed.png create mode 100644 InCallUI/res/drawable/ic_lockscreen_outerring.xml diff --git a/InCallUI/res/anim/activity_open_enter.xml b/InCallUI/res/anim/activity_open_enter.xml new file mode 100644 index 000000000..303b9ddc0 --- /dev/null +++ b/InCallUI/res/anim/activity_open_enter.xml @@ -0,0 +1,35 @@ + + + + + + + \ No newline at end of file diff --git a/InCallUI/res/anim/activity_open_exit.xml b/InCallUI/res/anim/activity_open_exit.xml new file mode 100644 index 000000000..afa7c5e72 --- /dev/null +++ b/InCallUI/res/anim/activity_open_exit.xml @@ -0,0 +1,26 @@ + + + + + + \ No newline at end of file diff --git a/InCallUI/res/anim/decelerate_cubic.xml b/InCallUI/res/anim/decelerate_cubic.xml new file mode 100644 index 000000000..f98809165 --- /dev/null +++ b/InCallUI/res/anim/decelerate_cubic.xml @@ -0,0 +1,21 @@ + + + + diff --git a/InCallUI/res/anim/decelerate_quint.xml b/InCallUI/res/anim/decelerate_quint.xml new file mode 100644 index 000000000..ff2d5a9d0 --- /dev/null +++ b/InCallUI/res/anim/decelerate_quint.xml @@ -0,0 +1,21 @@ + + + + diff --git a/InCallUI/res/drawable-hdpi/ab_transparent_dark_holo.9.png b/InCallUI/res/drawable-hdpi/ab_transparent_dark_holo.9.png new file mode 100644 index 000000000..0eff695d8 Binary files /dev/null and b/InCallUI/res/drawable-hdpi/ab_transparent_dark_holo.9.png differ diff --git a/InCallUI/res/drawable-hdpi/ic_lockscreen_glowdot.png b/InCallUI/res/drawable-hdpi/ic_lockscreen_glowdot.png new file mode 100644 index 000000000..983c45e2c Binary files /dev/null and b/InCallUI/res/drawable-hdpi/ic_lockscreen_glowdot.png differ diff --git a/InCallUI/res/drawable-hdpi/ic_lockscreen_handle_pressed.png b/InCallUI/res/drawable-hdpi/ic_lockscreen_handle_pressed.png new file mode 100644 index 000000000..58a5f16df Binary files /dev/null and b/InCallUI/res/drawable-hdpi/ic_lockscreen_handle_pressed.png differ diff --git a/InCallUI/res/drawable-hdpi/picture_emergency.png b/InCallUI/res/drawable-hdpi/picture_emergency.png new file mode 100644 index 000000000..0e13a4385 Binary files /dev/null and b/InCallUI/res/drawable-hdpi/picture_emergency.png differ diff --git a/InCallUI/res/drawable-mdpi/ab_transparent_dark_holo.9.png b/InCallUI/res/drawable-mdpi/ab_transparent_dark_holo.9.png new file mode 100644 index 000000000..ad980b13f Binary files /dev/null and b/InCallUI/res/drawable-mdpi/ab_transparent_dark_holo.9.png differ diff --git a/InCallUI/res/drawable-mdpi/ic_lockscreen_glowdot.png b/InCallUI/res/drawable-mdpi/ic_lockscreen_glowdot.png new file mode 100644 index 000000000..056c3f175 Binary files /dev/null and b/InCallUI/res/drawable-mdpi/ic_lockscreen_glowdot.png differ diff --git a/InCallUI/res/drawable-mdpi/ic_lockscreen_handle_pressed.png b/InCallUI/res/drawable-mdpi/ic_lockscreen_handle_pressed.png new file mode 100644 index 000000000..0187a02af Binary files /dev/null and b/InCallUI/res/drawable-mdpi/ic_lockscreen_handle_pressed.png differ diff --git a/InCallUI/res/drawable-mdpi/picture_emergency.png b/InCallUI/res/drawable-mdpi/picture_emergency.png new file mode 100644 index 000000000..a224b8000 Binary files /dev/null and b/InCallUI/res/drawable-mdpi/picture_emergency.png differ diff --git a/InCallUI/res/drawable-xhdpi/ab_transparent_dark_holo.9.png b/InCallUI/res/drawable-xhdpi/ab_transparent_dark_holo.9.png new file mode 100644 index 000000000..719b9234d Binary files /dev/null and b/InCallUI/res/drawable-xhdpi/ab_transparent_dark_holo.9.png differ diff --git a/InCallUI/res/drawable-xhdpi/ic_lockscreen_glowdot.png b/InCallUI/res/drawable-xhdpi/ic_lockscreen_glowdot.png new file mode 100644 index 000000000..cbd039afd Binary files /dev/null and b/InCallUI/res/drawable-xhdpi/ic_lockscreen_glowdot.png differ diff --git a/InCallUI/res/drawable-xhdpi/ic_lockscreen_handle_pressed.png b/InCallUI/res/drawable-xhdpi/ic_lockscreen_handle_pressed.png new file mode 100644 index 000000000..2d28009f2 Binary files /dev/null and b/InCallUI/res/drawable-xhdpi/ic_lockscreen_handle_pressed.png differ diff --git a/InCallUI/res/drawable-xhdpi/picture_emergency.png b/InCallUI/res/drawable-xhdpi/picture_emergency.png new file mode 100644 index 000000000..08b421eef Binary files /dev/null and b/InCallUI/res/drawable-xhdpi/picture_emergency.png differ diff --git a/InCallUI/res/drawable-xxhdpi/ab_transparent_dark_holo.9.png b/InCallUI/res/drawable-xxhdpi/ab_transparent_dark_holo.9.png new file mode 100644 index 000000000..84155ccf5 Binary files /dev/null and b/InCallUI/res/drawable-xxhdpi/ab_transparent_dark_holo.9.png differ diff --git a/InCallUI/res/drawable-xxhdpi/ic_lockscreen_glowdot.png b/InCallUI/res/drawable-xxhdpi/ic_lockscreen_glowdot.png new file mode 100644 index 000000000..c0edd91c8 Binary files /dev/null and b/InCallUI/res/drawable-xxhdpi/ic_lockscreen_glowdot.png differ diff --git a/InCallUI/res/drawable-xxhdpi/ic_lockscreen_handle_pressed.png b/InCallUI/res/drawable-xxhdpi/ic_lockscreen_handle_pressed.png new file mode 100644 index 000000000..7528064ea Binary files /dev/null and b/InCallUI/res/drawable-xxhdpi/ic_lockscreen_handle_pressed.png differ diff --git a/InCallUI/res/drawable/ic_in_call_touch_handle.xml b/InCallUI/res/drawable/ic_in_call_touch_handle.xml index e657e92ed..7e234b62b 100644 --- a/InCallUI/res/drawable/ic_in_call_touch_handle.xml +++ b/InCallUI/res/drawable/ic_in_call_touch_handle.xml @@ -28,6 +28,6 @@ android:state_enabled="true" android:state_active="true" android:state_focused="false" - android:drawable="@*android:drawable/ic_lockscreen_handle_pressed" /> + android:drawable="@drawable/ic_lockscreen_handle_pressed" /> diff --git a/InCallUI/res/drawable/ic_lockscreen_outerring.xml b/InCallUI/res/drawable/ic_lockscreen_outerring.xml new file mode 100644 index 000000000..d64825db0 --- /dev/null +++ b/InCallUI/res/drawable/ic_lockscreen_outerring.xml @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/InCallUI/res/layout/answer_fragment.xml b/InCallUI/res/layout/answer_fragment.xml index ee2b0767c..15c2093eb 100644 --- a/InCallUI/res/layout/answer_fragment.xml +++ b/InCallUI/res/layout/answer_fragment.xml @@ -32,13 +32,13 @@ dc:targetDescriptions="@array/incoming_call_widget_3way_target_descriptions" dc:directionDescriptions="@array/incoming_call_widget_3way_direction_descriptions" dc:handleDrawable="@drawable/ic_in_call_touch_handle" - dc:outerRingDrawable="@*android:drawable/ic_lockscreen_outerring" + dc:outerRingDrawable="@drawable/ic_lockscreen_outerring" dc:outerRadius="@dimen/glowpadview_target_placement_radius" dc:innerRadius="@dimen/glowpadview_inner_radius" dc:snapMargin="@dimen/glowpadview_snap_margin" dc:feedbackCount="1" dc:vibrationDuration="20" dc:glowRadius="@dimen/glowpadview_glow_radius" - dc:pointDrawable="@*android:drawable/ic_lockscreen_glowdot" + dc:pointDrawable="@drawable/ic_lockscreen_glowdot" dc:allowScaling="true" /> diff --git a/InCallUI/res/layout/conference_manager_fragment.xml b/InCallUI/res/layout/conference_manager_fragment.xml index f1fbfdfac..a8fda2c25 100644 --- a/InCallUI/res/layout/conference_manager_fragment.xml +++ b/InCallUI/res/layout/conference_manager_fragment.xml @@ -54,7 +54,7 @@ android:id="@+id/manageConferenceHeader" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@*android:drawable/ab_transparent_dark_holo"> + android:background="@drawable/ab_transparent_dark_holo"> diff --git a/InCallUI/res/values/array.xml b/InCallUI/res/values/array.xml index 44d8d7086..c47164532 100644 --- a/InCallUI/res/values/array.xml +++ b/InCallUI/res/values/array.xml @@ -70,9 +70,9 @@ @null" - @*android:string/description_direction_right - @*android:string/description_direction_up - @*android:string/description_direction_left + @string/description_direction_right + @string/description_direction_up + @string/description_direction_left @null @@ -93,9 +93,9 @@ @null" - @*android:string/description_direction_right + @string/description_direction_right @null - @*android:string/description_direction_left + @string/description_direction_left @null diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml index 204657bc1..ebfb93494 100644 --- a/InCallUI/res/values/dimens.xml +++ b/InCallUI/res/values/dimens.xml @@ -98,8 +98,6 @@ So, (94 - 38)/2 ==> 28dp --> 28dp - - 270dip diff --git a/InCallUI/res/values/strings.xml b/InCallUI/res/values/strings.xml index 7c588b34a..62a1d5bfa 100755 --- a/InCallUI/res/values/strings.xml +++ b/InCallUI/res/values/strings.xml @@ -1425,6 +1425,13 @@ Decline + + Slide up for %s. + + "Slide left for %s. + + Slide right for %s. + Vibrate @@ -1474,4 +1481,7 @@ Manage conference call + + + Emergency number diff --git a/InCallUI/res/values/styles.xml b/InCallUI/res/values/styles.xml index 457065320..91090b844 100644 --- a/InCallUI/res/values/styles.xml +++ b/InCallUI/res/values/styles.xml @@ -102,7 +102,7 @@ 5dip -