Commit d9e95344 authored by Peter Wen's avatar Peter Wen Committed by Commit Bot

Android: Remove more unused resources

ui_java resources are intended to be used later. Other resources were no
longer being used.

Bug: 806060
Change-Id: Ifde5a469adc0453e65483d6988dcbb3dc4a1a876
Reviewed-on: https://chromium-review.googlesource.com/896405
Commit-Queue: Peter Wen <wnwen@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533830}
parent a0dae650
...@@ -358,13 +358,6 @@ Still reading? ...@@ -358,13 +358,6 @@ Still reading?
<!-- 2 resource sets used by clank widgets for each channel --> <!-- 2 resource sets used by clank widgets for each channel -->
<ignore regexp="The resource `R.string.bookmark_widget_title.*` appears to be unused"/> <ignore regexp="The resource `R.string.bookmark_widget_title.*` appears to be unused"/>
<ignore regexp="The resource `R.string.search_widget_title.*` appears to be unused"/> <ignore regexp="The resource `R.string.search_widget_title.*` appears to be unused"/>
<!-- TODO(crbug.com/806060): Remove or add rationale. -->
<ignore regexp="ui/android/java/res/values/colors.xml"/>
<ignore regexp="ui/android/java/res/values/dimens.xml"/>
<ignore regexp="ui/android/java/res/values-v17/styles.xml"/>
<ignore regexp="chrome/android/java/res/anim/fullscreen_notification_in.xml"/>
<ignore regexp="chrome/android/java/res/values-v17/styles.xml"/>
<ignore regexp="chrome/android/java/res/values-v21/styles.xml"/>
<!-- Endnote: Please specify number of suppressions when adding more --> <!-- Endnote: Please specify number of suppressions when adding more -->
</issue> </issue>
<issue id="UseCompoundDrawables"> <issue id="UseCompoundDrawables">
......
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:fromAlpha="0"
android:toAlpha="1.0"
android:duration="@android:integer/config_mediumAnimTime"
android:interpolator="@android:anim/accelerate_interpolator"
/>
<translate
android:fromYDelta="15"
android:toYDelta="0"
android:duration="@android:integer/config_mediumAnimTime" />
</set>
...@@ -380,9 +380,6 @@ ...@@ -380,9 +380,6 @@
<item name="android:windowEnterAnimation">@anim/textbubble_in</item> <item name="android:windowEnterAnimation">@anim/textbubble_in</item>
<item name="android:windowExitAnimation">@anim/textbubble_out</item> <item name="android:windowExitAnimation">@anim/textbubble_out</item>
</style> </style>
<style name="FullscreenNotificationBubble" parent="@android:style/Animation.Toast">
<item name="android:windowEnterAnimation">@anim/fullscreen_notification_in</item>
</style>
<!-- Promo dialogs --> <!-- Promo dialogs -->
<style name="PromoDialog" > <style name="PromoDialog" >
...@@ -405,21 +402,6 @@ ...@@ -405,21 +402,6 @@
</style> </style>
<!-- Cast and media playback notifications --> <!-- Cast and media playback notifications -->
<style
name="MediaNotificationTitle"
parent="@android:style/TextAppearance.StatusBar.EventContent.Title"/>
<style
name="MediaNotificationText"
parent="@android:style/TextAppearance.StatusBar.EventContent"/>
<style
name="RemoteNotificationTitle"
parent="@android:style/TextAppearance.StatusBar.EventContent.Title"/>
<style
name="RemoteNotificationText"
parent="@android:style/TextAppearance.StatusBar.EventContent"/>
<style
name="RemoteNotificationProgressBar"
parent="@android:style/Widget.Holo.ProgressBar.Horizontal"/>
<style name="CastMediaRouteButton" parent="@style/Widget.MediaRouter.MediaRouteButton"> <style name="CastMediaRouteButton" parent="@style/Widget.MediaRouter.MediaRouteButton">
<item name="android:background">@null</item> <item name="android:background">@null</item>
<item name="android:paddingTop">0dp</item> <item name="android:paddingTop">0dp</item>
...@@ -603,10 +585,6 @@ ...@@ -603,10 +585,6 @@
<item name="android:scaleType">center</item> <item name="android:scaleType">center</item>
<item name="android:layout_gravity">end</item> <item name="android:layout_gravity">end</item>
</style> </style>
<style name="LocationBarMenuButton" parent="LocationBarButton">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">match_parent</item>
</style>
<style name="ModernToolbar" parent="Widget.AppCompat.Toolbar"> <style name="ModernToolbar" parent="Widget.AppCompat.Toolbar">
<item name="titleTextAppearance">@style/BlackHeadline1</item> <item name="titleTextAppearance">@style/BlackHeadline1</item>
<item name="windowActionBarOverlay">true</item> <item name="windowActionBarOverlay">true</item>
...@@ -685,9 +663,6 @@ ...@@ -685,9 +663,6 @@
<item name="android:paddingEnd">18dp</item> <item name="android:paddingEnd">18dp</item>
<item name="android:scaleType">centerInside</item> <item name="android:scaleType">centerInside</item>
</style> </style>
<style name="ListMenuStyle" parent="Widget.AppCompat.ListPopupWindow">
<item name="android:popupBackground">@drawable/menu_bg</item>
</style>
<!-- Download Home --> <!-- Download Home -->
<style name="DownloadHomeStatusText"> <style name="DownloadHomeStatusText">
......
...@@ -45,22 +45,6 @@ ...@@ -45,22 +45,6 @@
</style> </style>
<style name="PreferenceLayout" parent="PreferenceLayoutBase" /> <style name="PreferenceLayout" parent="PreferenceLayoutBase" />
<!-- Cast and media playback notifications -->
<style name="MediaNotificationTitle"
parent="@android:style/TextAppearance.Material.Notification.Title">
</style>
<style name="MediaNotificationText"
parent="@android:style/TextAppearance.Material.Notification"/>
<style name="RemoteNotificationTitle"
parent="@android:style/TextAppearance.Material.Notification.Title">
<item name="android:layout_marginBottom">4dp</item>
</style>
<style name="RemoteNotificationText"
parent="@android:style/TextAppearance.Material.Notification.Line2"/>
<style name="RemoteNotificationProgressBar" parent="@android:style/Widget.ProgressBar.Horizontal">
<item name="android:minHeight">5dp</item>
</style>
<!-- Web Notifications --> <!-- Web Notifications -->
<style name="WebNotificationTitle" <style name="WebNotificationTitle"
parent="@android:style/TextAppearance.Material.Notification.Title"/> parent="@android:style/TextAppearance.Material.Notification.Title"/>
...@@ -113,9 +97,6 @@ ...@@ -113,9 +97,6 @@
drawable from Android support library, where it's used to simulate drawable from Android support library, where it's used to simulate
material design on earlier Android versions. material design on earlier Android versions.
--> -->
<style name="PopupWindow.LowEnd" parent="android:Widget.Material.Light.PopupWindow">
<item name="android:popupBackground">@drawable/popup_background_shadow</item>
</style>
<style name="ListPopupWindow.LowEnd" parent="android:Widget.Material.Light.ListPopupWindow"> <style name="ListPopupWindow.LowEnd" parent="android:Widget.Material.Light.ListPopupWindow">
<item name="android:popupBackground">@drawable/popup_background_shadow</item> <item name="android:popupBackground">@drawable/popup_background_shadow</item>
</style> </style>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<item name="android:textColor">@color/black_alpha_87</item> <item name="android:textColor">@color/black_alpha_87</item>
<item name="android:textSize">@dimen/headline_size_large</item> <item name="android:textSize">@dimen/headline_size_large</item>
</style> </style>
<style name="BlackHeadline2" parent="RobotoMediumStyle"> <style name="BlackHeadline2" parent="RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/black_alpha_87</item> <item name="android:textColor">@color/black_alpha_87</item>
<item name="android:textSize">@dimen/headline_size_medium</item> <item name="android:textSize">@dimen/headline_size_medium</item>
</style> </style>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<item name="android:textColor">@color/black_alpha_87</item> <item name="android:textColor">@color/black_alpha_87</item>
<item name="android:textSize">@dimen/text_size_large</item> <item name="android:textSize">@dimen/text_size_large</item>
</style> </style>
<style name="BlackTitle2" parent="RobotoMediumStyle"> <style name="BlackTitle2" parent="RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/black_alpha_87</item> <item name="android:textColor">@color/black_alpha_87</item>
<item name="android:textSize">@dimen/text_size_medium</item> <item name="android:textSize">@dimen/text_size_medium</item>
</style> </style>
...@@ -91,11 +91,11 @@ ...@@ -91,11 +91,11 @@
<item name="android:textColor">@color/black_alpha_87</item> <item name="android:textColor">@color/black_alpha_87</item>
<item name="android:textSize">@dimen/text_size_small</item> <item name="android:textSize">@dimen/text_size_small</item>
</style> </style>
<style name="BlackCaption"> <style name="BlackCaption" tools:ignore="UnusedResources">
<item name="android:textColor">@color/black_alpha_54</item> <item name="android:textColor">@color/black_alpha_54</item>
<item name="android:textSize">@dimen/text_size_small</item> <item name="android:textSize">@dimen/text_size_small</item>
</style> </style>
<style name="BlackButtonText" parent="RobotoMediumStyle"> <style name="BlackButtonText" parent="RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/black_alpha_54</item> <item name="android:textColor">@color/black_alpha_54</item>
<item name="android:textSize">@dimen/text_size_medium</item> <item name="android:textSize">@dimen/text_size_medium</item>
</style> </style>
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<item name="android:textColor">@android:color/white</item> <item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/headline_size_large</item> <item name="android:textSize">@dimen/headline_size_large</item>
</style> </style>
<style name="WhiteHeadline2" parent="RobotoMediumStyle"> <style name="WhiteHeadline2" parent="RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@android:color/white</item> <item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/headline_size_medium</item> <item name="android:textSize">@dimen/headline_size_medium</item>
</style> </style>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<item name="android:textColor">@android:color/white</item> <item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/text_size_large</item> <item name="android:textSize">@dimen/text_size_large</item>
</style> </style>
<style name="WhiteTitle2" parent="RobotoMediumStyle"> <style name="WhiteTitle2" parent="RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@android:color/white</item> <item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/text_size_medium</item> <item name="android:textSize">@dimen/text_size_medium</item>
</style> </style>
...@@ -137,11 +137,11 @@ ...@@ -137,11 +137,11 @@
</style> </style>
<!-- Blue Text Styles --> <!-- Blue Text Styles -->
<style name="BlueButtonText1" parent="RobotoMediumStyle"> <style name="BlueButtonText1" parent="RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/google_blue_300</item> <item name="android:textColor">@color/google_blue_300</item>
<item name="android:textSize">@dimen/text_size_medium</item> <item name="android:textSize">@dimen/text_size_medium</item>
</style> </style>
<style name="BlueButtonText2" parent="RobotoMediumStyle"> <style name="BlueButtonText2" parent="RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/google_blue_500</item> <item name="android:textColor">@color/google_blue_500</item>
<item name="android:textSize">@dimen/text_size_medium</item> <item name="android:textSize">@dimen/text_size_medium</item>
</style> </style>
......
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
Use of this source code is governed by a BSD-style license that can be Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. found in the LICENSE file.
--> -->
<resources> <resources xmlns:tools="http://schemas.android.com/tools">
<!-- Common colors--> <!-- Common colors-->
<color name="black_alpha_38">#61000000</color> <color name="black_alpha_38">#61000000</color>
<color name="black_alpha_54">#8A000000</color> <color name="black_alpha_54">#8A000000</color>
<color name="black_alpha_87">#DE000000</color> <color name="black_alpha_87">#DE000000</color>
<color name="white_alpha_70">#B3FFFFFF</color> <color name="white_alpha_70">#B3FFFFFF</color>
<color name="google_blue_300">#7BAAF7</color> <color name="google_blue_300" tools:ignore="UnusedResources">#7BAAF7</color>
<color name="google_blue_500">#4285F4</color> <color name="google_blue_500" tools:ignore="UnusedResources">#4285F4</color>
<color name="google_blue_700">#3367D6</color> <color name="google_blue_700">#3367D6</color>
<color name="dropdown_divider_color">#E5E5E5</color> <color name="dropdown_divider_color">#E5E5E5</color>
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
Use of this source code is governed by a BSD-style license that can be Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. found in the LICENSE file.
--> -->
<resources> <resources xmlns:tools="http://schemas.android.com/tools">
<!-- Common text sizes --> <!-- Common text sizes -->
<dimen name="headline_size_large">23sp</dimen> <dimen name="headline_size_large" tools:ignore="UnusedResources">23sp</dimen>
<dimen name="headline_size_medium">20sp</dimen> <dimen name="headline_size_medium" tools:ignore="UnusedResources">20sp</dimen>
<dimen name="text_size_large">16sp</dimen> <dimen name="text_size_large" tools:ignore="UnusedResources">16sp</dimen>
<dimen name="text_size_medium">14sp</dimen> <dimen name="text_size_medium" tools:ignore="UnusedResources">14sp</dimen>
<dimen name="text_size_small">12sp</dimen> <dimen name="text_size_small" tools:ignore="UnusedResources">12sp</dimen>
<dimen name="dropdown_item_height">50dp</dimen> <dimen name="dropdown_item_height">50dp</dimen>
<dimen name="dropdown_item_divider_height">1px</dimen> <dimen name="dropdown_item_divider_height">1px</dimen>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment