Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 1 | /* |
| 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 | */ |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 16 | package com.android.keyguard; |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 17 | |
| 18 | import android.content.Context; |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 19 | import android.graphics.drawable.Drawable; |
Uriel Rodriguez | 94c7b14 | 2012-10-12 15:00:48 -0400 | [diff] [blame] | 20 | import android.os.PowerManager; |
Brian Colonna | b1b9a8a | 2013-03-29 11:52:42 -0400 | [diff] [blame] | 21 | import android.os.RemoteException; |
| 22 | import android.os.ServiceManager; |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 23 | import android.telephony.TelephonyManager; |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 24 | import android.util.AttributeSet; |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 25 | import android.util.Log; |
Brian Colonna | b1b9a8a | 2013-03-29 11:52:42 -0400 | [diff] [blame] | 26 | import android.view.IRotationWatcher; |
| 27 | import android.view.IWindowManager; |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 28 | import android.view.View; |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 29 | import android.widget.ImageButton; |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 30 | import android.widget.LinearLayout; |
| 31 | |
| 32 | import com.android.internal.widget.LockPatternUtils; |
| 33 | |
Brian Colonna | b1b9a8a | 2013-03-29 11:52:42 -0400 | [diff] [blame] | 34 | import java.lang.Math; |
| 35 | |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 36 | public class KeyguardFaceUnlockView extends LinearLayout implements KeyguardSecurityView { |
| 37 | |
Uriel Rodriguez | 94c7b14 | 2012-10-12 15:00:48 -0400 | [diff] [blame] | 38 | private static final String TAG = "FULKeyguardFaceUnlockView"; |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 39 | private static final boolean DEBUG = false; |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 40 | private KeyguardSecurityCallback mKeyguardSecurityCallback; |
| 41 | private LockPatternUtils mLockPatternUtils; |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 42 | private BiometricSensorUnlock mBiometricUnlock; |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 43 | private View mFaceUnlockAreaView; |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 44 | private ImageButton mCancelButton; |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 45 | private SecurityMessageDisplay mSecurityMessageDisplay; |
| 46 | private View mEcaView; |
| 47 | private Drawable mBouncerFrame; |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 48 | |
Danielle Millett | f6d0fc1 | 2012-10-23 16:16:52 -0400 | [diff] [blame] | 49 | private boolean mIsShowing = false; |
| 50 | private final Object mIsShowingLock = new Object(); |
| 51 | |
Brian Colonna | b1b9a8a | 2013-03-29 11:52:42 -0400 | [diff] [blame] | 52 | private int mLastRotation; |
| 53 | private boolean mWatchingRotation; |
| 54 | private final IWindowManager mWindowManager = |
| 55 | IWindowManager.Stub.asInterface(ServiceManager.getService("window")); |
| 56 | |
| 57 | private final IRotationWatcher mRotationWatcher = new IRotationWatcher.Stub() { |
| 58 | public void onRotationChanged(int rotation) { |
| 59 | if (DEBUG) Log.d(TAG, "onRotationChanged(): " + mLastRotation + "->" + rotation); |
| 60 | |
| 61 | // If the difference between the new rotation value and the previous rotation value is |
| 62 | // equal to 2, the rotation change was 180 degrees. This stops the biometric unlock |
| 63 | // and starts it in the new position. This is not performed for 90 degree rotations |
| 64 | // since a 90 degree rotation is a configuration change, which takes care of this for |
| 65 | // us. |
| 66 | if (Math.abs(rotation - mLastRotation) == 2) { |
| 67 | if (mBiometricUnlock != null) { |
| 68 | mBiometricUnlock.stop(); |
| 69 | maybeStartBiometricUnlock(); |
| 70 | } |
| 71 | } |
| 72 | mLastRotation = rotation; |
| 73 | } |
| 74 | }; |
| 75 | |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 76 | public KeyguardFaceUnlockView(Context context) { |
| 77 | this(context, null); |
| 78 | } |
| 79 | |
| 80 | public KeyguardFaceUnlockView(Context context, AttributeSet attrs) { |
| 81 | super(context, attrs); |
| 82 | } |
| 83 | |
| 84 | @Override |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 85 | protected void onFinishInflate() { |
| 86 | super.onFinishInflate(); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 87 | |
| 88 | initializeBiometricUnlockView(); |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 89 | |
| 90 | mSecurityMessageDisplay = new KeyguardMessageArea.Helper(this); |
| 91 | mEcaView = findViewById(R.id.keyguard_selector_fade_container); |
| 92 | View bouncerFrameView = findViewById(R.id.keyguard_bouncer_frame); |
| 93 | if (bouncerFrameView != null) { |
| 94 | mBouncerFrame = bouncerFrameView.getBackground(); |
| 95 | } |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | @Override |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 99 | public void setKeyguardCallback(KeyguardSecurityCallback callback) { |
| 100 | mKeyguardSecurityCallback = callback; |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 101 | // TODO: formalize this in the interface or factor it out |
| 102 | ((FaceUnlock)mBiometricUnlock).setKeyguardCallback(callback); |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 103 | } |
| 104 | |
| 105 | @Override |
| 106 | public void setLockPatternUtils(LockPatternUtils utils) { |
| 107 | mLockPatternUtils = utils; |
| 108 | } |
| 109 | |
| 110 | @Override |
| 111 | public void reset() { |
| 112 | |
| 113 | } |
| 114 | |
| 115 | @Override |
Steven Ross | fbb9c61 | 2012-09-27 07:47:55 -0400 | [diff] [blame] | 116 | public void onDetachedFromWindow() { |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 117 | if (DEBUG) Log.d(TAG, "onDetachedFromWindow()"); |
Steven Ross | fbb9c61 | 2012-09-27 07:47:55 -0400 | [diff] [blame] | 118 | if (mBiometricUnlock != null) { |
Steven Ross | 9a9f4ce | 2012-10-16 13:56:37 -0400 | [diff] [blame] | 119 | mBiometricUnlock.stop(); |
Steven Ross | fbb9c61 | 2012-09-27 07:47:55 -0400 | [diff] [blame] | 120 | } |
Danielle Millett | cade004 | 2012-11-06 14:18:59 -0500 | [diff] [blame] | 121 | KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mUpdateCallback); |
Brian Colonna | b1b9a8a | 2013-03-29 11:52:42 -0400 | [diff] [blame] | 122 | if (mWatchingRotation) { |
| 123 | try { |
| 124 | mWindowManager.removeRotationWatcher(mRotationWatcher); |
| 125 | mWatchingRotation = false; |
| 126 | } catch (RemoteException e) { |
| 127 | Log.e(TAG, "Remote exception when removing rotation watcher"); |
| 128 | } |
| 129 | } |
Steven Ross | fbb9c61 | 2012-09-27 07:47:55 -0400 | [diff] [blame] | 130 | } |
| 131 | |
| 132 | @Override |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 133 | public void onPause() { |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 134 | if (DEBUG) Log.d(TAG, "onPause()"); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 135 | if (mBiometricUnlock != null) { |
Danielle Millett | 1108a2c | 2012-10-29 22:16:32 -0400 | [diff] [blame] | 136 | mBiometricUnlock.stop(); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 137 | } |
| 138 | KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mUpdateCallback); |
Brian Colonna | b1b9a8a | 2013-03-29 11:52:42 -0400 | [diff] [blame] | 139 | if (mWatchingRotation) { |
| 140 | try { |
| 141 | mWindowManager.removeRotationWatcher(mRotationWatcher); |
| 142 | mWatchingRotation = false; |
| 143 | } catch (RemoteException e) { |
| 144 | Log.e(TAG, "Remote exception when removing rotation watcher"); |
| 145 | } |
| 146 | } |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 147 | } |
| 148 | |
| 149 | @Override |
Chris Wren | a042ac9 | 2012-11-07 11:37:06 -0500 | [diff] [blame] | 150 | public void onResume(int reason) { |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 151 | if (DEBUG) Log.d(TAG, "onResume()"); |
Danielle Millett | 5d2404d | 2012-11-01 00:05:27 -0400 | [diff] [blame] | 152 | mIsShowing = KeyguardUpdateMonitor.getInstance(mContext).isKeyguardVisible(); |
Brian Colonna | a523989 | 2013-04-15 11:45:40 -0400 | [diff] [blame] | 153 | if (!KeyguardUpdateMonitor.getInstance(mContext).isSwitchingUser()) { |
| 154 | maybeStartBiometricUnlock(); |
| 155 | } |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 156 | KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mUpdateCallback); |
Brian Colonna | b1b9a8a | 2013-03-29 11:52:42 -0400 | [diff] [blame] | 157 | |
| 158 | // Registers a callback which handles stopping the biometric unlock and restarting it in |
| 159 | // the new position for a 180 degree rotation change. |
| 160 | if (!mWatchingRotation) { |
| 161 | try { |
| 162 | mLastRotation = mWindowManager.watchRotation(mRotationWatcher); |
| 163 | mWatchingRotation = true; |
| 164 | } catch (RemoteException e) { |
| 165 | Log.e(TAG, "Remote exception when adding rotation watcher"); |
| 166 | } |
| 167 | } |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 168 | } |
| 169 | |
| 170 | @Override |
| 171 | public boolean needsInput() { |
| 172 | return false; |
| 173 | } |
| 174 | |
| 175 | @Override |
| 176 | public KeyguardSecurityCallback getCallback() { |
| 177 | return mKeyguardSecurityCallback; |
| 178 | } |
| 179 | |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 180 | @Override |
| 181 | protected void onLayout(boolean changed, int l, int t, int r, int b) { |
| 182 | super.onLayout(changed, l, t, r, b); |
| 183 | mBiometricUnlock.initializeView(mFaceUnlockAreaView); |
| 184 | } |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 185 | |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 186 | private void initializeBiometricUnlockView() { |
Danielle Millett | f6d0fc1 | 2012-10-23 16:16:52 -0400 | [diff] [blame] | 187 | if (DEBUG) Log.d(TAG, "initializeBiometricUnlockView()"); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 188 | mFaceUnlockAreaView = findViewById(R.id.face_unlock_area_view); |
| 189 | if (mFaceUnlockAreaView != null) { |
| 190 | mBiometricUnlock = new FaceUnlock(mContext); |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 191 | |
| 192 | mCancelButton = (ImageButton) findViewById(R.id.face_unlock_cancel_button); |
| 193 | mCancelButton.setOnClickListener(new OnClickListener() { |
| 194 | @Override |
| 195 | public void onClick(View v) { |
| 196 | mBiometricUnlock.stopAndShowBackup(); |
| 197 | } |
| 198 | }); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 199 | } else { |
| 200 | Log.w(TAG, "Couldn't find biometric unlock view"); |
| 201 | } |
| 202 | } |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 203 | |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 204 | /** |
Danielle Millett | f6d0fc1 | 2012-10-23 16:16:52 -0400 | [diff] [blame] | 205 | * Starts the biometric unlock if it should be started based on a number of factors. If it |
| 206 | * should not be started, it either goes to the back up, or remains showing to prepare for |
| 207 | * it being started later. |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 208 | */ |
| 209 | private void maybeStartBiometricUnlock() { |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 210 | if (DEBUG) Log.d(TAG, "maybeStartBiometricUnlock()"); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 211 | if (mBiometricUnlock != null) { |
| 212 | KeyguardUpdateMonitor monitor = KeyguardUpdateMonitor.getInstance(mContext); |
| 213 | final boolean backupIsTimedOut = ( |
| 214 | monitor.getFailedUnlockAttempts() >= |
| 215 | LockPatternUtils.FAILED_ATTEMPTS_BEFORE_TIMEOUT); |
Uriel Rodriguez | 94c7b14 | 2012-10-12 15:00:48 -0400 | [diff] [blame] | 216 | PowerManager powerManager = (PowerManager) mContext.getSystemService( |
| 217 | Context.POWER_SERVICE); |
Danielle Millett | f6d0fc1 | 2012-10-23 16:16:52 -0400 | [diff] [blame] | 218 | |
| 219 | boolean isShowing; |
| 220 | synchronized(mIsShowingLock) { |
| 221 | isShowing = mIsShowing; |
| 222 | } |
| 223 | |
| 224 | // Don't start it if the screen is off or if it's not showing, but keep this view up |
| 225 | // because we want it here and ready for when the screen turns on or when it does start |
| 226 | // showing. |
| 227 | if (!powerManager.isScreenOn() || !isShowing) { |
| 228 | mBiometricUnlock.stop(); // It shouldn't be running but calling this can't hurt. |
| 229 | return; |
| 230 | } |
| 231 | |
Brian Colonna | b1b9a8a | 2013-03-29 11:52:42 -0400 | [diff] [blame] | 232 | // Although these same conditions are handled in KeyguardSecurityModel, they are still |
| 233 | // necessary here. When a tablet is rotated 90 degrees, a configuration change is |
| 234 | // triggered and everything is torn down and reconstructed. That means |
| 235 | // KeyguardSecurityModel gets a chance to take care of the logic and doesn't even |
| 236 | // reconstruct KeyguardFaceUnlockView if the biometric unlock should be suppressed. |
| 237 | // However, for a 180 degree rotation, no configuration change is triggered, so only |
| 238 | // the logic here is capable of suppressing Face Unlock. |
Danielle Millett | d95c659 | 2012-10-12 14:55:44 -0400 | [diff] [blame] | 239 | if (monitor.getPhoneState() == TelephonyManager.CALL_STATE_IDLE |
Brian Colonna | b1b9a8a | 2013-03-29 11:52:42 -0400 | [diff] [blame] | 240 | && monitor.isAlternateUnlockEnabled() |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 241 | && !monitor.getMaxBiometricUnlockAttemptsReached() |
Danielle Millett | f6d0fc1 | 2012-10-23 16:16:52 -0400 | [diff] [blame] | 242 | && !backupIsTimedOut) { |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 243 | mBiometricUnlock.start(); |
| 244 | } else { |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 245 | mBiometricUnlock.stopAndShowBackup(); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 246 | } |
| 247 | } |
| 248 | } |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 249 | |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 250 | KeyguardUpdateMonitorCallback mUpdateCallback = new KeyguardUpdateMonitorCallback() { |
| 251 | // We need to stop the biometric unlock when a phone call comes in |
| 252 | @Override |
| 253 | public void onPhoneStateChanged(int phoneState) { |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 254 | if (DEBUG) Log.d(TAG, "onPhoneStateChanged(" + phoneState + ")"); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 255 | if (phoneState == TelephonyManager.CALL_STATE_RINGING) { |
Danielle Millett | f6d0fc1 | 2012-10-23 16:16:52 -0400 | [diff] [blame] | 256 | if (mBiometricUnlock != null) { |
| 257 | mBiometricUnlock.stopAndShowBackup(); |
| 258 | } |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 259 | } |
| 260 | } |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 261 | |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 262 | @Override |
Chris Wren | f41c61b | 2012-11-29 15:19:54 -0500 | [diff] [blame] | 263 | public void onUserSwitching(int userId) { |
Danielle Millett | 61413b5 | 2012-10-09 18:07:02 -0400 | [diff] [blame] | 264 | if (DEBUG) Log.d(TAG, "onUserSwitched(" + userId + ")"); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 265 | if (mBiometricUnlock != null) { |
| 266 | mBiometricUnlock.stop(); |
| 267 | } |
Jim Miller | ee82f8f | 2012-10-01 16:26:18 -0700 | [diff] [blame] | 268 | // No longer required; static value set by KeyguardViewMediator |
| 269 | // mLockPatternUtils.setCurrentUser(userId); |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 270 | } |
Danielle Millett | f6d0fc1 | 2012-10-23 16:16:52 -0400 | [diff] [blame] | 271 | |
| 272 | @Override |
Brian Colonna | a523989 | 2013-04-15 11:45:40 -0400 | [diff] [blame] | 273 | public void onUserSwitchComplete(int userId) { |
| 274 | if (DEBUG) Log.d(TAG, "onUserSwitchComplete(" + userId + ")"); |
| 275 | if (mBiometricUnlock != null) { |
| 276 | maybeStartBiometricUnlock(); |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | @Override |
Danielle Millett | f6d0fc1 | 2012-10-23 16:16:52 -0400 | [diff] [blame] | 281 | public void onKeyguardVisibilityChanged(boolean showing) { |
| 282 | if (DEBUG) Log.d(TAG, "onKeyguardVisibilityChanged(" + showing + ")"); |
| 283 | boolean wasShowing = false; |
| 284 | synchronized(mIsShowingLock) { |
| 285 | wasShowing = mIsShowing; |
| 286 | mIsShowing = showing; |
| 287 | } |
| 288 | PowerManager powerManager = (PowerManager) mContext.getSystemService( |
| 289 | Context.POWER_SERVICE); |
| 290 | if (mBiometricUnlock != null) { |
| 291 | if (!showing && wasShowing) { |
| 292 | mBiometricUnlock.stop(); |
| 293 | } else if (showing && powerManager.isScreenOn() && !wasShowing) { |
| 294 | maybeStartBiometricUnlock(); |
| 295 | } |
| 296 | } |
| 297 | } |
Brian Colonna | 7fce380 | 2013-09-17 15:51:32 -0400 | [diff] [blame] | 298 | |
| 299 | @Override |
| 300 | public void onEmergencyCallAction() { |
| 301 | if (mBiometricUnlock != null) { |
| 302 | mBiometricUnlock.stop(); |
| 303 | } |
| 304 | } |
Jim Miller | 000464a | 2012-09-04 16:45:06 -0700 | [diff] [blame] | 305 | }; |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 306 | |
Jim Miller | 0ff7f01 | 2012-10-11 20:40:01 -0700 | [diff] [blame] | 307 | @Override |
Adam Cohen | 6fb841f | 2012-10-24 13:15:38 -0700 | [diff] [blame] | 308 | public void showUsabilityHint() { |
| 309 | } |
Chris Wren | c0ae9e6 | 2012-11-05 13:16:31 -0500 | [diff] [blame] | 310 | |
| 311 | @Override |
| 312 | public void showBouncer(int duration) { |
| 313 | KeyguardSecurityViewHelper. |
| 314 | showBouncer(mSecurityMessageDisplay, mEcaView, mBouncerFrame, duration); |
| 315 | } |
| 316 | |
| 317 | @Override |
| 318 | public void hideBouncer(int duration) { |
| 319 | KeyguardSecurityViewHelper. |
| 320 | hideBouncer(mSecurityMessageDisplay, mEcaView, mBouncerFrame, duration); |
| 321 | } |
| 322 | |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 323 | } |