blob: 69da990a0a73a205f968689a98eab0b4093b41e6 [file] [log] [blame]
Jim Millerdcb3d842012-08-23 19:18:12 -07001/*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Jim Miller5ecd8112013-01-09 18:50:26 -080017package com.android.keyguard;
Jim Millerdcb3d842012-08-23 19:18:12 -070018
Wink Savilleb896b9f2013-10-23 15:44:26 -070019import android.app.AlertDialog;
20import android.app.AlertDialog.Builder;
Jim Millerdcb3d842012-08-23 19:18:12 -070021import android.app.Dialog;
22import android.app.ProgressDialog;
Gus Prevasab336792018-11-14 13:52:20 -050023import android.content.Context;
24import android.content.res.ColorStateList;
25import android.content.res.Configuration;
26import android.content.res.Resources;
Lucas Dupin2e838ac2019-04-17 16:50:58 -070027import android.content.res.TypedArray;
Jorim Jaggid05064b2014-11-20 21:35:33 +010028import android.graphics.Color;
Jim Millerdcb3d842012-08-23 19:18:12 -070029import android.os.RemoteException;
30import android.os.ServiceManager;
Jim Miller52a61332014-11-12 19:29:51 -080031import android.telephony.SubscriptionInfo;
32import android.telephony.SubscriptionManager;
33import android.telephony.TelephonyManager;
Jim Millerdcb3d842012-08-23 19:18:12 -070034import android.util.AttributeSet;
Wink Savilleb896b9f2013-10-23 15:44:26 -070035import android.util.Log;
qingxi12f2de42017-05-24 15:33:13 -070036import android.view.View;
Jim Millerdcb3d842012-08-23 19:18:12 -070037import android.view.WindowManager;
Jorim Jaggid05064b2014-11-20 21:35:33 +010038import android.widget.ImageView;
Jim Millerdcb3d842012-08-23 19:18:12 -070039
Gus Prevasab336792018-11-14 13:52:20 -050040import com.android.internal.telephony.ITelephony;
41import com.android.internal.telephony.IccCardConstants;
42import com.android.internal.telephony.IccCardConstants.State;
43import com.android.internal.telephony.PhoneConstants;
44
Jim Millerdcb3d842012-08-23 19:18:12 -070045/**
Daniel Sandler53149e62012-11-01 22:00:07 -040046 * Displays a PIN pad for unlocking.
Jim Millerdcb3d842012-08-23 19:18:12 -070047 */
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070048public class KeyguardSimPinView extends KeyguardPinBasedInputView {
Wink Savilleb896b9f2013-10-23 15:44:26 -070049 private static final String LOG_TAG = "KeyguardSimPinView";
Jim Miller52a61332014-11-12 19:29:51 -080050 private static final boolean DEBUG = KeyguardConstants.DEBUG_SIM_STATES;
Jim Miller4fc2b012013-11-04 16:47:48 -080051 public static final String TAG = "KeyguardSimPinView";
Jim Millerdcb3d842012-08-23 19:18:12 -070052
Jim Millerd6c48842012-11-01 21:40:47 -070053 private ProgressDialog mSimUnlockProgressDialog = null;
Jim Miller4fc2b012013-11-04 16:47:48 -080054 private CheckSimPin mCheckSimPinThread;
Jim Millerd6c48842012-11-01 21:40:47 -070055
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +053056 // Below flag is set to true during power-up or when a new SIM card inserted on device.
57 // When this is true and when SIM card is PIN locked state, on PIN lock screen, message would
58 // be displayed to inform user about the number of remaining PIN attempts left.
59 private boolean mShowDefaultMessage = true;
60 private int mRemainingAttempts = -1;
Wink Savilleb896b9f2013-10-23 15:44:26 -070061 private AlertDialog mRemainingAttemptsDialog;
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +053062 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
Jorim Jaggid05064b2014-11-20 21:35:33 +010063 private ImageView mSimImageView;
Jim Miller52a61332014-11-12 19:29:51 -080064
65 KeyguardUpdateMonitorCallback mUpdateMonitorCallback = new KeyguardUpdateMonitorCallback() {
66 @Override
67 public void onSimStateChanged(int subId, int slotId, State simState) {
Brad Ebinger4cd3bdc2017-08-21 14:58:52 -070068 if (DEBUG) Log.v(TAG, "onSimStateChanged(subId=" + subId + ",state=" + simState + ")");
69 switch(simState) {
felkachangb48c1b42018-04-10 12:47:29 +080070 case READY: {
71 mRemainingAttempts = -1;
72 resetState();
73 break;
74 }
Brad Ebinger4cd3bdc2017-08-21 14:58:52 -070075 default:
76 resetState();
77 }
78 }
Jim Miller52a61332014-11-12 19:29:51 -080079 };
Wink Savilleb896b9f2013-10-23 15:44:26 -070080
Jim Millerd6c48842012-11-01 21:40:47 -070081 public KeyguardSimPinView(Context context) {
Jim Millerdcb3d842012-08-23 19:18:12 -070082 this(context, null);
83 }
84
85 public KeyguardSimPinView(Context context, AttributeSet attrs) {
86 super(context, attrs);
Jim Millerdcb3d842012-08-23 19:18:12 -070087 }
88
Jim Miller4db942c2016-05-16 18:06:50 -070089 @Override
Daniel Sandler53149e62012-11-01 22:00:07 -040090 public void resetState() {
Selim Cinek4e8b9ed2014-06-20 16:37:04 -070091 super.resetState();
Jim Miller52a61332014-11-12 19:29:51 -080092 if (DEBUG) Log.v(TAG, "Resetting state");
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +053093 handleSubInfoChangeIfNeeded();
94 if (mShowDefaultMessage) {
95 showDefaultMessage();
Jim Miller52a61332014-11-12 19:29:51 -080096 }
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +053097 boolean isEsimLocked = KeyguardEsimArea.isEsimLocked(mContext, mSubId);
98
qingxi12f2de42017-05-24 15:33:13 -070099 KeyguardEsimArea esimButton = findViewById(R.id.keyguard_esim_area);
100 esimButton.setVisibility(isEsimLocked ? View.VISIBLE : View.GONE);
Daniel Sandler53149e62012-11-01 22:00:07 -0400101 }
102
Fabian Kozynski50df58d2019-03-05 10:45:59 -0500103 private void setLockedSimMessage() {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530104 boolean isEsimLocked = KeyguardEsimArea.isEsimLocked(mContext, mSubId);
105 int count = TelephonyManager.getDefault().getSimCount();
106 Resources rez = getResources();
107 String msg;
Lucas Dupin2e838ac2019-04-17 16:50:58 -0700108 TypedArray array = mContext.obtainStyledAttributes(new int[] { R.attr.wallpaperTextColor });
109 int color = array.getColor(0, Color.WHITE);
110 array.recycle();
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530111 if (count < 2) {
112 msg = rez.getString(R.string.kg_sim_pin_instructions);
113 } else {
114 SubscriptionInfo info = KeyguardUpdateMonitor.getInstance(mContext).
115 getSubscriptionInfoForSubId(mSubId);
116 CharSequence displayName = info != null ? info.getDisplayName() : ""; // don't crash
117 msg = rez.getString(R.string.kg_sim_pin_instructions_multi, displayName);
118 if (info != null) {
119 color = info.getIconTint();
120 }
121 }
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530122 if (isEsimLocked) {
Qingxi Li2febffb2018-01-23 16:16:35 -0800123 msg = rez.getString(R.string.kg_sim_lock_esim_instructions, msg);
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530124 }
125
Lucas Dupin00ce73a2019-07-31 16:36:43 -0700126 if (mSecurityMessageDisplay != null && getVisibility() == VISIBLE) {
Lucas Dupin2e838ac2019-04-17 16:50:58 -0700127 mSecurityMessageDisplay.setMessage(msg);
128 }
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530129 mSimImageView.setImageTintList(ColorStateList.valueOf(color));
Fabian Kozynski50df58d2019-03-05 10:45:59 -0500130 }
131
132 private void showDefaultMessage() {
133 setLockedSimMessage();
134 if (mRemainingAttempts >= 0) {
135 return;
136 }
137
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530138 // Sending empty PIN here to query the number of remaining PIN attempts
139 new CheckSimPin("", mSubId) {
140 void onSimCheckResponse(final int result, final int attemptsRemaining) {
141 Log.d(LOG_TAG, "onSimCheckResponse " + " dummy One result" + result +
142 " attemptsRemaining=" + attemptsRemaining);
143 if (attemptsRemaining >= 0) {
144 mRemainingAttempts = attemptsRemaining;
Fabian Kozynski50df58d2019-03-05 10:45:59 -0500145 setLockedSimMessage();
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530146 }
147 }
148 }.start();
149 }
150
151 private void handleSubInfoChangeIfNeeded() {
152 KeyguardUpdateMonitor monitor = KeyguardUpdateMonitor.getInstance(mContext);
153 int subId = monitor.getNextSubIdForState(IccCardConstants.State.PIN_REQUIRED);
154 if (subId != mSubId && SubscriptionManager.isValidSubscriptionId(subId)) {
155 mSubId = subId;
156 mShowDefaultMessage = true;
157 mRemainingAttempts = -1;
158 }
159 }
160
Selim Cinek3122fa82015-06-18 01:38:59 -0700161 @Override
Jorim Jaggiad371b22015-09-23 11:52:12 -0700162 protected void onConfigurationChanged(Configuration newConfig) {
163 super.onConfigurationChanged(newConfig);
164 resetState();
165 }
166
167 @Override
Lucas Dupinc80c67e2017-12-04 14:29:10 -0800168 protected int getPromptReasonStringRes(int reason) {
Selim Cinek3122fa82015-06-18 01:38:59 -0700169 // No message on SIM Pin
170 return 0;
171 }
172
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530173 private String getPinPasswordErrorMessage(int attemptsRemaining, boolean isDefault) {
Wink Savilleb896b9f2013-10-23 15:44:26 -0700174 String displayMessage;
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530175 int msgId;
Wink Savilleb896b9f2013-10-23 15:44:26 -0700176 if (attemptsRemaining == 0) {
177 displayMessage = getContext().getString(R.string.kg_password_wrong_pin_code_pukked);
178 } else if (attemptsRemaining > 0) {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530179 msgId = isDefault ? R.plurals.kg_password_default_pin_message :
180 R.plurals.kg_password_wrong_pin_code;
Wink Savilleb896b9f2013-10-23 15:44:26 -0700181 displayMessage = getContext().getResources()
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530182 .getQuantityString(msgId, attemptsRemaining, attemptsRemaining);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700183 } else {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530184 msgId = isDefault ? R.string.kg_sim_pin_instructions : R.string.kg_password_pin_failed;
185 displayMessage = getContext().getString(msgId);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700186 }
Qingxi Li2febffb2018-01-23 16:16:35 -0800187 if (KeyguardEsimArea.isEsimLocked(mContext, mSubId)) {
188 displayMessage = getResources()
189 .getString(R.string.kg_sim_lock_esim_instructions, displayMessage);
190 }
Wink Savilleb896b9f2013-10-23 15:44:26 -0700191 if (DEBUG) Log.d(LOG_TAG, "getPinPasswordErrorMessage:"
192 + " attemptsRemaining=" + attemptsRemaining + " displayMessage=" + displayMessage);
193 return displayMessage;
194 }
195
Daniel Sandler53149e62012-11-01 22:00:07 -0400196 @Override
Jim Miller7d5e00a2013-10-11 22:45:57 -0700197 protected boolean shouldLockout(long deadline) {
198 // SIM PIN doesn't have a timed lockout
199 return false;
200 }
201
202 @Override
Daniel Sandler53149e62012-11-01 22:00:07 -0400203 protected int getPasswordTextViewId() {
Jorim Jaggifa9189f2014-04-17 20:17:30 +0200204 return R.id.simPinEntry;
Jim Millerdcb3d842012-08-23 19:18:12 -0700205 }
206
207 @Override
208 protected void onFinishInflate() {
209 super.onFinishInflate();
210
Jorim Jaggi40a0b382014-05-27 21:12:27 +0200211 if (mEcaView instanceof EmergencyCarrierArea) {
212 ((EmergencyCarrierArea) mEcaView).setCarrierTextVisible(true);
213 }
Alan Viverette51efddb2017-04-05 10:00:01 -0400214 mSimImageView = findViewById(R.id.keyguard_sim);
Jim Millerdcb3d842012-08-23 19:18:12 -0700215 }
216
Adam Cohen6fb841f2012-10-24 13:15:38 -0700217 @Override
Lucas Dupind1d60c32019-04-19 15:03:51 -0700218 public void showUsabilityHint() {
219
220 }
221
222 @Override
223 public void onResume(int reason) {
224 super.onResume(reason);
Jim Miller52a61332014-11-12 19:29:51 -0800225 KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mUpdateMonitorCallback);
Lucas Dupin2e838ac2019-04-17 16:50:58 -0700226 resetState();
Jim Miller52a61332014-11-12 19:29:51 -0800227 }
228
229 @Override
Daniel Sandler53149e62012-11-01 22:00:07 -0400230 public void onPause() {
Jim Millerdcb3d842012-08-23 19:18:12 -0700231 // dismiss the dialog.
232 if (mSimUnlockProgressDialog != null) {
233 mSimUnlockProgressDialog.dismiss();
234 mSimUnlockProgressDialog = null;
235 }
Lucas Dupind1d60c32019-04-19 15:03:51 -0700236 KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mUpdateMonitorCallback);
Jim Millerdcb3d842012-08-23 19:18:12 -0700237 }
238
239 /**
240 * Since the IPC can block, we want to run the request in a separate thread
241 * with a callback.
242 */
243 private abstract class CheckSimPin extends Thread {
244 private final String mPin;
Jim Miller52a61332014-11-12 19:29:51 -0800245 private int mSubId;
Jim Millerdcb3d842012-08-23 19:18:12 -0700246
Jim Miller52a61332014-11-12 19:29:51 -0800247 protected CheckSimPin(String pin, int subId) {
Jim Millerdcb3d842012-08-23 19:18:12 -0700248 mPin = pin;
Jim Miller52a61332014-11-12 19:29:51 -0800249 mSubId = subId;
Jim Millerdcb3d842012-08-23 19:18:12 -0700250 }
251
Wink Savilleb896b9f2013-10-23 15:44:26 -0700252 abstract void onSimCheckResponse(final int result, final int attemptsRemaining);
Jim Millerdcb3d842012-08-23 19:18:12 -0700253
254 @Override
255 public void run() {
256 try {
Jim Miller52a61332014-11-12 19:29:51 -0800257 if (DEBUG) {
258 Log.v(TAG, "call supplyPinReportResultForSubscriber(subid=" + mSubId + ")");
259 }
Wink Savilleb896b9f2013-10-23 15:44:26 -0700260 final int[] result = ITelephony.Stub.asInterface(ServiceManager
Jim Miller52a61332014-11-12 19:29:51 -0800261 .checkService("phone")).supplyPinReportResultForSubscriber(mSubId, mPin);
262 if (DEBUG) {
263 Log.v(TAG, "supplyPinReportResult returned: " + result[0] + " " + result[1]);
264 }
Jim Millerdcb3d842012-08-23 19:18:12 -0700265 post(new Runnable() {
Jim Miller4db942c2016-05-16 18:06:50 -0700266 @Override
Jim Millerdcb3d842012-08-23 19:18:12 -0700267 public void run() {
Wink Savilleb896b9f2013-10-23 15:44:26 -0700268 onSimCheckResponse(result[0], result[1]);
Jim Millerdcb3d842012-08-23 19:18:12 -0700269 }
270 });
271 } catch (RemoteException e) {
Jim Miller4fc2b012013-11-04 16:47:48 -0800272 Log.e(TAG, "RemoteException for supplyPinReportResult:", e);
Jim Millerdcb3d842012-08-23 19:18:12 -0700273 post(new Runnable() {
Jim Miller4db942c2016-05-16 18:06:50 -0700274 @Override
Jim Millerdcb3d842012-08-23 19:18:12 -0700275 public void run() {
Wink Savilleb896b9f2013-10-23 15:44:26 -0700276 onSimCheckResponse(PhoneConstants.PIN_GENERAL_FAILURE, -1);
Jim Millerdcb3d842012-08-23 19:18:12 -0700277 }
278 });
279 }
280 }
281 }
282
Jim Millerdcb3d842012-08-23 19:18:12 -0700283 private Dialog getSimUnlockProgressDialog() {
284 if (mSimUnlockProgressDialog == null) {
285 mSimUnlockProgressDialog = new ProgressDialog(mContext);
286 mSimUnlockProgressDialog.setMessage(
287 mContext.getString(R.string.kg_sim_unlock_progress_dialog_message));
288 mSimUnlockProgressDialog.setIndeterminate(true);
289 mSimUnlockProgressDialog.setCancelable(false);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700290 mSimUnlockProgressDialog.getWindow().setType(
291 WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
Jim Millerdcb3d842012-08-23 19:18:12 -0700292 }
293 return mSimUnlockProgressDialog;
294 }
295
Wink Savilleb896b9f2013-10-23 15:44:26 -0700296 private Dialog getSimRemainingAttemptsDialog(int remaining) {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530297 String msg = getPinPasswordErrorMessage(remaining, false);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700298 if (mRemainingAttemptsDialog == null) {
299 Builder builder = new AlertDialog.Builder(mContext);
300 builder.setMessage(msg);
301 builder.setCancelable(false);
302 builder.setNeutralButton(R.string.ok, null);
303 mRemainingAttemptsDialog = builder.create();
304 mRemainingAttemptsDialog.getWindow().setType(
305 WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
306 } else {
307 mRemainingAttemptsDialog.setMessage(msg);
308 }
309 return mRemainingAttemptsDialog;
310 }
311
Daniel Sandler53149e62012-11-01 22:00:07 -0400312 @Override
313 protected void verifyPasswordAndUnlock() {
Selim Cinek4e8b9ed2014-06-20 16:37:04 -0700314 String entry = mPasswordEntry.getText();
Jim Miller7d5e00a2013-10-11 22:45:57 -0700315
Daniel Sandler53149e62012-11-01 22:00:07 -0400316 if (entry.length() < 4) {
Jim Millerdcb3d842012-08-23 19:18:12 -0700317 // otherwise, display a message to the user, and don't submit.
Adrian Roosdb327e92016-10-12 16:41:28 -0700318 mSecurityMessageDisplay.setMessage(R.string.kg_invalid_sim_pin_hint);
Jim Miller4db942c2016-05-16 18:06:50 -0700319 resetPasswordText(true /* animate */, true /* announce */);
Jorim Jaggib690f0d2014-07-03 23:25:44 +0200320 mCallback.userActivity();
Jim Millerdcb3d842012-08-23 19:18:12 -0700321 return;
322 }
323
324 getSimUnlockProgressDialog().show();
325
Jim Miller4fc2b012013-11-04 16:47:48 -0800326 if (mCheckSimPinThread == null) {
Jim Miller52a61332014-11-12 19:29:51 -0800327 mCheckSimPinThread = new CheckSimPin(mPasswordEntry.getText(), mSubId) {
Jim Miller4db942c2016-05-16 18:06:50 -0700328 @Override
Wink Savilleb896b9f2013-10-23 15:44:26 -0700329 void onSimCheckResponse(final int result, final int attemptsRemaining) {
Jim Miller4b09dd32012-09-04 14:27:25 -0700330 post(new Runnable() {
Jim Miller4db942c2016-05-16 18:06:50 -0700331 @Override
Jim Miller4b09dd32012-09-04 14:27:25 -0700332 public void run() {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530333 mRemainingAttempts = attemptsRemaining;
Jim Miller4b09dd32012-09-04 14:27:25 -0700334 if (mSimUnlockProgressDialog != null) {
335 mSimUnlockProgressDialog.hide();
336 }
Jim Miller4db942c2016-05-16 18:06:50 -0700337 resetPasswordText(true /* animate */,
338 result != PhoneConstants.PIN_RESULT_SUCCESS /* announce */);
Wink Savilleb896b9f2013-10-23 15:44:26 -0700339 if (result == PhoneConstants.PIN_RESULT_SUCCESS) {
Jim Miller52a61332014-11-12 19:29:51 -0800340 KeyguardUpdateMonitor.getInstance(getContext())
341 .reportSimUnlocked(mSubId);
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530342 mRemainingAttempts = -1;
343 mShowDefaultMessage = true;
344 if (mCallback != null) {
345 mCallback.dismiss(true, KeyguardUpdateMonitor.getCurrentUser());
346 }
Jim Miller4b09dd32012-09-04 14:27:25 -0700347 } else {
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530348 mShowDefaultMessage = false;
Wink Savilleb896b9f2013-10-23 15:44:26 -0700349 if (result == PhoneConstants.PIN_PASSWORD_INCORRECT) {
350 if (attemptsRemaining <= 2) {
351 // this is getting critical - show dialog
352 getSimRemainingAttemptsDialog(attemptsRemaining).show();
353 } else {
354 // show message
355 mSecurityMessageDisplay.setMessage(
Ruthwar Kumar Ambeer118e5742017-03-09 18:46:17 +0530356 getPinPasswordErrorMessage(attemptsRemaining, false));
Wink Savilleb896b9f2013-10-23 15:44:26 -0700357 }
358 } else {
359 // "PIN operation failed!" - no idea what this was and no way to
360 // find out. :/
361 mSecurityMessageDisplay.setMessage(getContext().getString(
Adrian Roosdb327e92016-10-12 16:41:28 -0700362 R.string.kg_password_pin_failed));
Wink Savilleb896b9f2013-10-23 15:44:26 -0700363 }
364 if (DEBUG) Log.d(LOG_TAG, "verifyPasswordAndUnlock "
365 + " CheckSimPin.onSimCheckResponse: " + result
366 + " attemptsRemaining=" + attemptsRemaining);
Jim Miller4b09dd32012-09-04 14:27:25 -0700367 }
Jorim Jaggib690f0d2014-07-03 23:25:44 +0200368 mCallback.userActivity();
Jim Miller4fc2b012013-11-04 16:47:48 -0800369 mCheckSimPinThread = null;
Jim Millerdcb3d842012-08-23 19:18:12 -0700370 }
Jim Miller4b09dd32012-09-04 14:27:25 -0700371 });
372 }
Jim Miller4fc2b012013-11-04 16:47:48 -0800373 };
374 mCheckSimPinThread.start();
Jim Miller4b09dd32012-09-04 14:27:25 -0700375 }
Jim Millerdcb3d842012-08-23 19:18:12 -0700376 }
Jorim Jaggic14f8292014-05-27 02:25:45 +0200377
378 @Override
379 public void startAppearAnimation() {
380 // noop.
381 }
Jorim Jaggi76a16232014-08-08 17:00:47 +0200382
383 @Override
384 public boolean startDisappearAnimation(Runnable finishRunnable) {
385 return false;
386 }
Phil Weaver7d847b02018-02-13 16:02:35 -0800387
388 @Override
389 public CharSequence getTitle() {
390 return getContext().getString(
391 com.android.internal.R.string.keyguard_accessibility_sim_pin_unlock);
392 }
Jim Millerdcb3d842012-08-23 19:18:12 -0700393}
Daniel Sandler53149e62012-11-01 22:00:07 -0400394