diff options
author | Cole Faust <colefaust@google.com> | 2019-07-01 13:37:14 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-07-01 13:37:14 -0700 |
commit | f285e3dd02e290d052bd63ac5fec71ee4ee71aaf (patch) | |
tree | faacd9f14343e31a4f3f7365fb4bd5fb32f887f3 | |
parent | 848849438e080e6436a2b13cba9b1c9d87118f76 (diff) | |
parent | 788a3bfbb82d86dd7f62270b668a3b32348b3af9 (diff) | |
download | Dialer-f285e3dd02e290d052bd63ac5fec71ee4ee71aaf.tar.gz |
Merge "Ignore non-english languages in unused resources check." into pi-car-dev
am: 788a3bfbb8
Change-Id: I800cedacd169c0c04ef68a5989d7ec5c9fbf1915
-rw-r--r-- | res/drawable/ic_message.xml | 24 | ||||
-rw-r--r-- | res/values/dimens.xml | 2 | ||||
-rw-r--r-- | res/values/strings.xml | 12 | ||||
-rwxr-xr-x | tests/checkresources.py | 8 |
4 files changed, 4 insertions, 42 deletions
diff --git a/res/drawable/ic_message.xml b/res/drawable/ic_message.xml deleted file mode 100644 index 741ca1b5..00000000 --- a/res/drawable/ic_message.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2019 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. ---> -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:viewportWidth="48" - android:viewportHeight="48" - android:width="@dimen/primary_icon_size" - android:height="@dimen/primary_icon_size"> - <path - android:pathData="M40 4H8C5.79 4 4.02 5.79 4.02 8L4 44l8-8h28c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zm-4 24H12v-4h24v4zm0-6H12v-4h24v4zm0-6H12v-4h24v4z" - android:fillColor="#000000" /> -</vector> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c05ebeb7..2a9f5c42 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -36,7 +36,6 @@ <dimen name="contact_details_avatar_margin_top">@*android:dimen/car_padding_4</dimen> <dimen name="contact_details_title_margin_top">@*android:dimen/car_padding_4</dimen> <dimen name="contact_details_title_margin_bottom">48dp</dimen> - <dimen name="contact_details_quick_actions_margin_bottom">@*android:dimen/car_padding_5</dimen> <dimen name="contact_details_avatar_size">@dimen/primary_icon_size</dimen> <dimen name="contact_details_item_height">@dimen/list_item_height</dimen> <dimen name="contact_details_number_padding_start">@*android:dimen/car_keyline_1</dimen> @@ -137,7 +136,6 @@ <dimen name="inline_icon_size">24dp</dimen> <dimen name="preference_list_margin">@*android:dimen/car_margin</dimen> <dimen name="hero_button_corner_radius">38dp</dimen> - <dimen name="hero_button_separator">@*android:dimen/car_padding_4</dimen> <dimen name="contact_avatar_corner_radius_percent" format="float">0.5</dimen> <dimen name="touch_target_width">156dp</dimen> <dimen name="phone_number_radio_list_padding">@*android:dimen/car_padding_2</dimen> diff --git a/res/values/strings.xml b/res/values/strings.xml index 685f9072..bc7996ab 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -24,8 +24,6 @@ <string name="bluetooth_disabled">To make or receive calls, turn Bluetooth on.</string> <!-- Error text shown on the dialer facet for when bluetooth is not paired --> <string name="bluetooth_unpaired">To make or receive calls, pair your phone with the car.</string> - <!-- Toast text when sending a text failed because there is no app to compose texts [CHAR LIMIT=80] --> - <string name="error_no_text_intent_handler">To send texts, you will need to install a messaging app.</string> <!-- Button text for connecting to Bluetooth [CHAR LIMIT=40] --> <string name="connect_bluetooth_button_text">Connect to Bluetooth</string> <!-- Button text for making emergency call [CHAR LIMIT=40] --> @@ -67,16 +65,6 @@ <!-- Toolbar title for tabbed pages --> <string name="default_toolbar_title" translatable="false"></string> - <!-- Button to quickly call a number. The string is the label of the phone. [CHAR LIMIT=30] --> - <string name="contact_details_call_number_button_with_label">Call <xliff:g id="label" example="Mobile">%1$s</xliff:g></string> - <!-- Button to quickly text a number. This string is the label of the phone. [CHAR LIMIT=30] --> - <string name="contact_details_text_number_button_with_label">Text <xliff:g id="label" example="Mobile">%1$s</xliff:g></string> - - <!-- Button to quickly call a number, when the user must first select a number. [CHAR LIMIT=30] --> - <string name="contact_details_call_number_button">Call</string> - <!-- Button to quickly text a number, when the user must first select a number. [CHAR LIMIT=30] --> - <string name="contact_details_text_number_button">Text</string> - <!-- Button to add start choosing a contact to add as a new favorite [CHAR_LIMIT=50] --> <string name="add_favorite_button">Add a favorite</string> <!-- Error message shown when on the favorites page without any favorites added [CHAR_LIMIT=80] --> diff --git a/tests/checkresources.py b/tests/checkresources.py index 27ad701e..8469bcac 100755 --- a/tests/checkresources.py +++ b/tests/checkresources.py @@ -7,12 +7,12 @@ process = subprocess.Popen(['lint', '--check', 'UnusedResources', sys.argv[1]], stderr=subprocess.PIPE) stdout, stderr = process.communicate() -stdout = stdout.decode('utf-8') +lines = stdout.decode('utf-8').split('\n') results = [] -for line in stdout.split('\n'): - if '[UnusedResources]' in line: - results.append(line) +for i in range(len(lines)-1): + if '[UnusedResources]' in lines[i] and 'msgid=' not in lines[i+1]: + results.append(lines[i]) if len(results) > 0: print('\n'.join(results)) |