From 8a8941aa1be01fbfca8c4540298cc5de12b6538b Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Fri, 19 Dec 2014 19:49:38 +0100 Subject: Remove dead code #4: Remove unused Keyguard strings And also remove an unused class. Change-Id: I50a8a21d99a85cf0d3c301e7b54f434679e1be26 --- packages/Keyguard/res/values/strings.xml | 116 +-------------------- .../com/android/keyguard/KeyguardLinearLayout.java | 46 -------- .../src/com/android/keyguard/KeyguardPINView.java | 6 +- .../com/android/keyguard/KeyguardPatternView.java | 6 +- 4 files changed, 3 insertions(+), 171 deletions(-) delete mode 100644 packages/Keyguard/src/com/android/keyguard/KeyguardLinearLayout.java diff --git a/packages/Keyguard/res/values/strings.xml b/packages/Keyguard/res/values/strings.xml index feab127981fa..ba693f666667 100644 --- a/packages/Keyguard/res/values/strings.xml +++ b/packages/Keyguard/res/values/strings.xml @@ -48,12 +48,6 @@ to unlock the keyguard. Displayed in one line in a large font. --> Incorrect PIN code. - - To unlock, press Menu then 0. - - - Maximum Face Unlock attempts exceeded - Charged @@ -101,35 +95,6 @@ kk\uee01mm - - %1$s. Widget %2$d of %3$d. - - Add widget. - - Empty - - Unlock area expanded. - - Unlock area collapsed. - - %1$s widget. - - User selector - - Camera - - Media controls - - Widget reordering started. - - Widget reordering ended. - - Widget %1$s deleted. - - Expand unlock area. - - Slide unlock. - Pattern unlock. Face unlock. @@ -148,24 +113,6 @@ SIM PUK area - - Previous track button - - Next track button - - Pause button - - Play button - - Stop button - - Thumbs up - - Thumbs down - - Heart - - @@ -174,62 +121,15 @@ Launch canceled - - Drop %1$s to delete. - - - %1$s will not be deleted. - Next alarm set for %1$s - - - \?123 - - ABC - - ALT - - - - Alt - - Cancel + Delete - - Done - - Mode change - - Shift Enter - - Unlock - - Camera - - Silent - - Sound on - - Search - - - Slide up for %s. - - Slide down for %s. - - "Slide left for %s. - - Slide right for %s. - - - Current user %1$s. - Emergency call @@ -386,8 +286,6 @@ you will be asked to unlock your phone using an email account.\n\n Try again in %d seconds. - - Remove @@ -417,18 +315,6 @@ Code Accepted! - - - Previous track button - - Next track button - - Pause button - - Play button - - Stop button - No service. diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardLinearLayout.java b/packages/Keyguard/src/com/android/keyguard/KeyguardLinearLayout.java deleted file mode 100644 index 343fdcb4761c..000000000000 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardLinearLayout.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2012 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. - */ -package com.android.keyguard; - -import android.content.Context; -import android.util.AttributeSet; -import android.view.View; -import android.widget.LinearLayout; - -/** - * A layout that arranges its children into a special type of grid. - */ -public class KeyguardLinearLayout extends LinearLayout { - int mTopChild = 0; - - public KeyguardLinearLayout(Context context) { - this(context, null, 0); - } - - public KeyguardLinearLayout(Context context, AttributeSet attrs) { - this(context, attrs, 0); - } - - public KeyguardLinearLayout(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - } - - public void setTopChild(View child) { - int top = indexOfChild(child); - mTopChild = top; - invalidate(); - } -} diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java index 04ef57ea1c7f..d2291d7f33fd 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java @@ -55,11 +55,7 @@ public class KeyguardPINView extends KeyguardPinBasedInputView { protected void resetState() { super.resetState(); - if (KeyguardUpdateMonitor.getInstance(mContext).getMaxBiometricUnlockAttemptsReached()) { - mSecurityMessageDisplay.setMessage(R.string.faceunlock_multiple_failures, true); - } else { - mSecurityMessageDisplay.setMessage(R.string.kg_pin_instructions, false); - } + mSecurityMessageDisplay.setMessage(R.string.kg_pin_instructions, false); } @Override diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java index 0dfe1dcbbefb..a98c9d001e5e 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java @@ -182,11 +182,7 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit } private void displayDefaultSecurityMessage() { - if (mKeyguardUpdateMonitor.getMaxBiometricUnlockAttemptsReached()) { - mSecurityMessageDisplay.setMessage(R.string.faceunlock_multiple_failures, true); - } else { - mSecurityMessageDisplay.setMessage(R.string.kg_pattern_instructions, false); - } + mSecurityMessageDisplay.setMessage(R.string.kg_pattern_instructions, false); } @Override -- cgit v1.2.3-59-g8ed1b