Loading core/java/com/android/internal/policy/IFaceLockInterface.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -23,4 +23,5 @@ interface IFaceLockInterface { void startUi(IBinder containingWindowToken, int x, int y, int width, int height); void stopUi(); void registerCallback(IFaceLockCallback cb); void unregisterCallback(IFaceLockCallback cb); } policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java +16 −0 Original line number Diff line number Diff line Loading @@ -782,6 +782,15 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler mUnlockScreen = null; } mUpdateMonitor.removeCallback(this); if (mFaceLockService != null) { try { mFaceLockService.unregisterCallback(mFaceLockCallback); } catch (RemoteException e) { // Not much we can do } stopFaceLock(); mFaceLockService = null; } } private boolean isSecure() { Loading Loading @@ -1206,6 +1215,13 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler if (mBoundToFaceLockService) { if (DEBUG) Log.d(TAG, "before unbind from FaceLock service"); if (mFaceLockService != null) { try { mFaceLockService.unregisterCallback(mFaceLockCallback); } catch (RemoteException e) { // Not much we can do } } mContext.unbindService(mFaceLockConnection); if (DEBUG) Log.d(TAG, "after unbind from FaceLock service"); mBoundToFaceLockService = false; Loading Loading
core/java/com/android/internal/policy/IFaceLockInterface.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -23,4 +23,5 @@ interface IFaceLockInterface { void startUi(IBinder containingWindowToken, int x, int y, int width, int height); void stopUi(); void registerCallback(IFaceLockCallback cb); void unregisterCallback(IFaceLockCallback cb); }
policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java +16 −0 Original line number Diff line number Diff line Loading @@ -782,6 +782,15 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler mUnlockScreen = null; } mUpdateMonitor.removeCallback(this); if (mFaceLockService != null) { try { mFaceLockService.unregisterCallback(mFaceLockCallback); } catch (RemoteException e) { // Not much we can do } stopFaceLock(); mFaceLockService = null; } } private boolean isSecure() { Loading Loading @@ -1206,6 +1215,13 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler if (mBoundToFaceLockService) { if (DEBUG) Log.d(TAG, "before unbind from FaceLock service"); if (mFaceLockService != null) { try { mFaceLockService.unregisterCallback(mFaceLockCallback); } catch (RemoteException e) { // Not much we can do } } mContext.unbindService(mFaceLockConnection); if (DEBUG) Log.d(TAG, "after unbind from FaceLock service"); mBoundToFaceLockService = false; Loading