Program: 199900
Project: 199900
Buggy source:
private void maybeCreateKeyguardLocked(boolean enableScreenRotation,boolean force,Bundle options){
  if (mKeyguardHost != null) {
    mKeyguardHost.saveHierarchyState(mStateContainer);
  }
  if (mKeyguardHost == null) {
    if (DEBUG)     Log.d(TAG,"String_Node_Str");
    mKeyguardHost=new ViewManagerHost(mContext);
    int flags=WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR | WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN| WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER;
    if (!mNeedsInput) {
      flags|=WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM;
    }
    final int stretch=ViewGroup.LayoutParams.MATCH_PARENT;
    final int type=WindowManager.LayoutParams.TYPE_KEYGUARD;
    WindowManager.LayoutParams lp=new WindowManager.LayoutParams(stretch,stretch,type,flags,PixelFormat.TRANSLUCENT);
    lp.softInputMode=WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE;
    lp.windowAnimations=R.style.Animation_LockScreen;
    lp.screenOrientation=enableScreenRotation ? ActivityInfo.SCREEN_ORIENTATION_USER : ActivityInfo.SCREEN_ORIENTATION_NOSENSOR;
    if (ActivityManager.isHighEndGfx()) {
      lp.flags|=WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
      lp.privateFlags|=WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_HARDWARE_ACCELERATED;
    }
    lp.privateFlags|=WindowManager.LayoutParams.PRIVATE_FLAG_SET_NEEDS_MENU_KEY;
    lp.inputFeatures|=WindowManager.LayoutParams.INPUT_FEATURE_DISABLE_USER_ACTIVITY;
    lp.setTitle("String_Node_Str");
    mWindowLayoutParams=lp;
    mViewManager.addView(mKeyguardHost,lp);
    KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mBackgroundChanger);
  }
  if (force || mKeyguardView == null) {
    mKeyguardHost.setCustomBackground(null);
    mKeyguardHost.removeAllViews();
    inflateKeyguardView(options);
    mKeyguardView.requestFocus();
  }
  updateUserActivityTimeoutInWindowLayoutParams();
  mViewManager.updateViewLayout(mKeyguardHost,mWindowLayoutParams);
  mKeyguardHost.restoreHierarchyState(mStateContainer);
}

Fixed version (ground truth):
private void maybeCreateKeyguardLocked(boolean enableScreenRotation,boolean force,Bundle options){
  if (mKeyguardHost != null) {
    mKeyguardHost.saveHierarchyState(mStateContainer);
  }
  if (mKeyguardHost == null) {
    if (DEBUG)     Log.d(TAG,"String_Node_Str");
    mKeyguardHost=new ViewManagerHost(mContext);
    int flags=WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR | WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN| WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER;
    if (!mNeedsInput) {
      flags|=WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM;
    }
    final int stretch=ViewGroup.LayoutParams.MATCH_PARENT;
    final int type=WindowManager.LayoutParams.TYPE_KEYGUARD;
    WindowManager.LayoutParams lp=new WindowManager.LayoutParams(stretch,stretch,type,flags,PixelFormat.TRANSLUCENT);
    lp.softInputMode=WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE;
    lp.windowAnimations=R.style.Animation_LockScreen;
    lp.screenOrientation=enableScreenRotation ? ActivityInfo.SCREEN_ORIENTATION_USER : ActivityInfo.SCREEN_ORIENTATION_NOSENSOR;
    if (ActivityManager.isHighEndGfx()) {
      lp.flags|=WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
      lp.privateFlags|=WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_HARDWARE_ACCELERATED;
    }
    lp.privateFlags|=WindowManager.LayoutParams.PRIVATE_FLAG_SET_NEEDS_MENU_KEY;
    lp.inputFeatures|=WindowManager.LayoutParams.INPUT_FEATURE_DISABLE_USER_ACTIVITY;
    lp.setTitle("String_Node_Str");
    mWindowLayoutParams=lp;
    mViewManager.addView(mKeyguardHost,lp);
    KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mBackgroundChanger);
  }
  if (force || mKeyguardView == null) {
    mKeyguardHost.setCustomBackground(null);
    mKeyguardHost.removeAllViews();
    int layout=allowNotificationsOnSecureKeyguard() ? R.layout.keyguard_simple_host_view : R.layout.keyguard_host_view;
    if (mCurrentLayout != layout) {
      mStateContainer.clear();
      mCurrentLayout=layout;
    }
    mKeyguardView=inflateKeyguardView(options,layout);
    mKeyguardView.requestFocus();
  }
  updateUserActivityTimeoutInWindowLayoutParams();
  mViewManager.updateViewLayout(mKeyguardHost,mWindowLayoutParams);
  mKeyguardHost.restoreHierarchyState(mStateContainer);
}