Loading policy/src/com/android/internal/policy/impl/KeyguardViewBase.java +2 −6 Original line number Diff line number Diff line Loading @@ -72,8 +72,9 @@ public abstract class KeyguardViewBase extends FrameLayout { } }; public KeyguardViewBase(Context context) { public KeyguardViewBase(Context context, KeyguardViewCallback callback) { super(context); mCallback = callback; resetBackground(); } Loading @@ -81,11 +82,6 @@ public abstract class KeyguardViewBase extends FrameLayout { setBackgroundDrawable(mBackgroundDrawable); } // used to inject callback void setCallback(KeyguardViewCallback callback) { mCallback = callback; } public KeyguardViewCallback getCallback() { return mCallback; } Loading policy/src/com/android/internal/policy/impl/KeyguardViewManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -158,9 +158,9 @@ public class KeyguardViewManager implements KeyguardWindowController { if (mKeyguardView == null) { if (DEBUG) Log.d(TAG, "keyguard view is null, creating it..."); mKeyguardView = mKeyguardViewProperties.createKeyguardView(mContext, mUpdateMonitor, this); mKeyguardView = mKeyguardViewProperties.createKeyguardView(mContext, mCallback, mUpdateMonitor, this); mKeyguardView.setId(R.id.lock_screen); mKeyguardView.setCallback(mCallback); final ViewGroup.LayoutParams lp = new FrameLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, Loading policy/src/com/android/internal/policy/impl/KeyguardViewProperties.java +3 −2 Original line number Diff line number Diff line Loading @@ -28,12 +28,13 @@ public interface KeyguardViewProperties { /** * Create a keyguard view. * @param context the context to use when creating the view. * @param callback keyguard callback object for pokewakelock(), etc. * @param updateMonitor configuration may be based on this. * @param controller for talking back with the containing window. * @return the view. */ KeyguardViewBase createKeyguardView(Context context, KeyguardUpdateMonitor updateMonitor, KeyguardViewCallback mCallback, KeyguardUpdateMonitor updateMonitor, KeyguardWindowController controller); /** Loading policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java +4 −5 Original line number Diff line number Diff line Loading @@ -291,17 +291,16 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler /** * @param context Used to inflate, and create views. * @param callback Keyguard callback object for pokewakelock(), etc. * @param updateMonitor Knows the state of the world, and passed along to each * screen so they can use the knowledge, and also register for callbacks * on dynamic information. * @param lockPatternUtils Used to look up state of lock pattern. */ public LockPatternKeyguardView( Context context, KeyguardUpdateMonitor updateMonitor, LockPatternUtils lockPatternUtils, KeyguardWindowController controller) { super(context); Context context, KeyguardViewCallback callback, KeyguardUpdateMonitor updateMonitor, LockPatternUtils lockPatternUtils, KeyguardWindowController controller) { super(context, callback); mHandler = new Handler(this); mConfiguration = context.getResources().getConfiguration(); Loading policy/src/com/android/internal/policy/impl/LockPatternKeyguardViewProperties.java +2 −1 Original line number Diff line number Diff line Loading @@ -43,9 +43,10 @@ public class LockPatternKeyguardViewProperties implements KeyguardViewProperties } public KeyguardViewBase createKeyguardView(Context context, KeyguardViewCallback callback, KeyguardUpdateMonitor updateMonitor, KeyguardWindowController controller) { return new LockPatternKeyguardView(context, updateMonitor, return new LockPatternKeyguardView(context, callback, updateMonitor, mLockPatternUtils, controller); } Loading Loading
policy/src/com/android/internal/policy/impl/KeyguardViewBase.java +2 −6 Original line number Diff line number Diff line Loading @@ -72,8 +72,9 @@ public abstract class KeyguardViewBase extends FrameLayout { } }; public KeyguardViewBase(Context context) { public KeyguardViewBase(Context context, KeyguardViewCallback callback) { super(context); mCallback = callback; resetBackground(); } Loading @@ -81,11 +82,6 @@ public abstract class KeyguardViewBase extends FrameLayout { setBackgroundDrawable(mBackgroundDrawable); } // used to inject callback void setCallback(KeyguardViewCallback callback) { mCallback = callback; } public KeyguardViewCallback getCallback() { return mCallback; } Loading
policy/src/com/android/internal/policy/impl/KeyguardViewManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -158,9 +158,9 @@ public class KeyguardViewManager implements KeyguardWindowController { if (mKeyguardView == null) { if (DEBUG) Log.d(TAG, "keyguard view is null, creating it..."); mKeyguardView = mKeyguardViewProperties.createKeyguardView(mContext, mUpdateMonitor, this); mKeyguardView = mKeyguardViewProperties.createKeyguardView(mContext, mCallback, mUpdateMonitor, this); mKeyguardView.setId(R.id.lock_screen); mKeyguardView.setCallback(mCallback); final ViewGroup.LayoutParams lp = new FrameLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, Loading
policy/src/com/android/internal/policy/impl/KeyguardViewProperties.java +3 −2 Original line number Diff line number Diff line Loading @@ -28,12 +28,13 @@ public interface KeyguardViewProperties { /** * Create a keyguard view. * @param context the context to use when creating the view. * @param callback keyguard callback object for pokewakelock(), etc. * @param updateMonitor configuration may be based on this. * @param controller for talking back with the containing window. * @return the view. */ KeyguardViewBase createKeyguardView(Context context, KeyguardUpdateMonitor updateMonitor, KeyguardViewCallback mCallback, KeyguardUpdateMonitor updateMonitor, KeyguardWindowController controller); /** Loading
policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java +4 −5 Original line number Diff line number Diff line Loading @@ -291,17 +291,16 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler /** * @param context Used to inflate, and create views. * @param callback Keyguard callback object for pokewakelock(), etc. * @param updateMonitor Knows the state of the world, and passed along to each * screen so they can use the knowledge, and also register for callbacks * on dynamic information. * @param lockPatternUtils Used to look up state of lock pattern. */ public LockPatternKeyguardView( Context context, KeyguardUpdateMonitor updateMonitor, LockPatternUtils lockPatternUtils, KeyguardWindowController controller) { super(context); Context context, KeyguardViewCallback callback, KeyguardUpdateMonitor updateMonitor, LockPatternUtils lockPatternUtils, KeyguardWindowController controller) { super(context, callback); mHandler = new Handler(this); mConfiguration = context.getResources().getConfiguration(); Loading
policy/src/com/android/internal/policy/impl/LockPatternKeyguardViewProperties.java +2 −1 Original line number Diff line number Diff line Loading @@ -43,9 +43,10 @@ public class LockPatternKeyguardViewProperties implements KeyguardViewProperties } public KeyguardViewBase createKeyguardView(Context context, KeyguardViewCallback callback, KeyguardUpdateMonitor updateMonitor, KeyguardWindowController controller) { return new LockPatternKeyguardView(context, updateMonitor, return new LockPatternKeyguardView(context, callback, updateMonitor, mLockPatternUtils, controller); } Loading