Program: 41065
Project: 41065
Buggy source:
/** 
 * @param context Used to setup the view.
 * @param configuration The current configuration. Used to use when selecting layout, etc.
 * @param lockPatternUtils Used to know the state of the lock pattern settings.
 * @param updateMonitor Used to register for updates on various keyguard relatedstate, and query the initial state at setup.
 * @param callback Used to communicate back to the host keyguard view.
 */
LockScreen(Context context,Configuration configuration,LockPatternUtils lockPatternUtils,KeyguardUpdateMonitor updateMonitor,KeyguardScreenCallback callback){
  super(context);
  mLockPatternUtils=lockPatternUtils;
  mUpdateMonitor=updateMonitor;
  mCallback=callback;
  mEnableMenuKeyInLockScreen=shouldEnableMenuKey();
  mCreationOrientation=configuration.orientation;
  mKeyboardHidden=configuration.hardKeyboardHidden;
  if (LockPatternKeyguardView.DEBUG_CONFIGURATION) {
    Log.v(TAG,"String_Node_Str",new RuntimeException());
    Log.v(TAG,"String_Node_Str" + mCreationOrientation + "String_Node_Str"+ context.getResources().getConfiguration().orientation);
  }
  Log.v(TAG,"String_Node_Str" + Boolean.toString(mLockScreenOrientationLand));
  final LayoutInflater inflater=LayoutInflater.from(context);
  if (DBG)   Log.v(TAG,"String_Node_Str" + mCreationOrientation);
  if (mCreationOrientation == Configuration.ORIENTATION_PORTRAIT) {
    if (mUseTab) {
      inflater.inflate(R.layout.keyguard_screen_tab_unlock,this,true);
    }
 else     if (mUseHoney) {
      inflater.inflate(R.layout.keyguard_screen_honey_unlock,this,true);
    }
 else     if (mUseRotary) {
      inflater.inflate(R.layout.keyguard_screen_rotary_unlock,this,true);
    }
 else     if (mUseCircular) {
      inflater.inflate(R.layout.keyguard_screen_circular_unlock,this,true);
    }
 else     if (mUseSenseLike) {
      inflater.inflate(R.layout.keyguard_screen_senselike_unlock,this,true);
    }
  }
 else {
    if (mUseTab) {
      inflater.inflate(R.layout.keyguard_screen_tab_unlock_land,this,true);
    }
 else     if (mUseHoney) {
      inflater.inflate(R.layout.keyguard_screen_honey_unlock_land,this,true);
    }
 else     if (mUseRotary) {
      inflater.inflate(R.layout.keyguard_screen_rotary_unlock_land,this,true);
    }
 else     if (mUseCircular) {
      inflater.inflate(R.layout.keyguard_screen_circular_unlock_land,this,true);
    }
 else     if (mUseSenseLike) {
      inflater.inflate(R.layout.keyguard_screen_senselike_unlock_land,this,true);
    }
  }
  mCarrier=(TextView)findViewById(R.id.carrier);
  mCarrier.setSelected(true);
  mCarrier.setTextColor(0xffffffff);
  mDate=(TextView)findViewById(R.id.date);
  mStatus1=(TextView)findViewById(R.id.status1);
  mStatus2=(TextView)findViewById(R.id.status2);
  mScreenLocked=(TextView)findViewById(R.id.screenLocked);
  if (mUseTab) {
    mSelector=(SlidingTab)findViewById(R.id.tab_selector);
    mSelector.setHoldAfterTrigger(true,false);
    mSelector.setLeftHintText(R.string.lockscreen_unlock_label);
    mSelector.setOnTriggerListener(this);
    mSelector.setLeftTabResources(R.drawable.ic_jog_dial_unlock,R.drawable.jog_tab_target_green,R.drawable.jog_tab_bar_left_unlock,R.drawable.jog_tab_left_unlock);
    setUpShortCuts();
  }
 else   if (mUseRotary) {
    mRotarySelector=(RotarySelector)this.findViewById(R.id.rotary_selector);
    mRotarySelector.setOnDialTriggerListener(this);
    mRotarySelector.setLeftHandleResource(R.drawable.ic_jog_dial_unlock);
  }
 else   if (mUseCircular) {
    mCircularSelector=(CircularSelector)findViewById(R.id.circular_selector);
    mCircularSelector.setOnCircularSelectorTriggerListener(this);
  }
 else   if (mUseHoney) {
    mUnlockRing=(UnlockRing)findViewById(R.id.unlock_ring);
    mUnlockRing.setOnHoneyTriggerListener(this);
  }
 else   if (mUseSenseLike) {
    mSenseRingSelector=(SenseLikeLock)findViewById(R.id.sense_selector);
    mSenseRingSelector.setOnSenseLikeSelectorTriggerListener(this);
  }
  setUpMusicControls();
  mEmergencyCallText=(TextView)findViewById(R.id.emergencyCallText);
  mEmergencyCallButton=(Button)findViewById(R.id.emergencyCallButton);
  mEmergencyCallButton.setText(R.string.lockscreen_emergency_call);
  mLockPatternUtils.updateEmergencyCallButtonState(mEmergencyCallButton);
  mEmergencyCallButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      mCallback.takeEmergencyCallAction();
    }
  }
);
  setFocusable(true);
  setFocusableInTouchMode(true);
  setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
  mUpdateMonitor.registerInfoCallback(this);
  mUpdateMonitor.registerSimStateCallback(this);
  mAudioManager=(AudioManager)getContext().getSystemService(Context.AUDIO_SERVICE);
  mSilentMode=isSilentMode();
  updateRightTabResources();
  IntentFilter filter=new IntentFilter();
  filter.addAction("String_Node_Str");
  getContext().registerReceiver(mIntentReceiver,filter);
}

Fixed version (ground truth):
/** 
 * @param context Used to setup the view.
 * @param configuration The current configuration. Used to use when selecting layout, etc.
 * @param lockPatternUtils Used to know the state of the lock pattern settings.
 * @param updateMonitor Used to register for updates on various keyguard relatedstate, and query the initial state at setup.
 * @param callback Used to communicate back to the host keyguard view.
 */
LockScreen(Context context,Configuration configuration,LockPatternUtils lockPatternUtils,KeyguardUpdateMonitor updateMonitor,KeyguardScreenCallback callback){
  super(context);
  mLockPatternUtils=lockPatternUtils;
  mUpdateMonitor=updateMonitor;
  mCallback=callback;
  mEnableMenuKeyInLockScreen=shouldEnableMenuKey();
  mCreationOrientation=configuration.orientation;
  mKeyboardHidden=configuration.hardKeyboardHidden;
  if (LockPatternKeyguardView.DEBUG_CONFIGURATION) {
    Log.v(TAG,"String_Node_Str",new RuntimeException());
    Log.v(TAG,"String_Node_Str" + mCreationOrientation + "String_Node_Str"+ context.getResources().getConfiguration().orientation);
  }
  Log.v(TAG,"String_Node_Str" + Boolean.toString(mLockScreenOrientationLand));
  final LayoutInflater inflater=LayoutInflater.from(context);
  if (DBG)   Log.v(TAG,"String_Node_Str" + mCreationOrientation);
  Log.d(TAG,"String_Node_Str");
  removeAllViews();
  if (mCreationOrientation == Configuration.ORIENTATION_PORTRAIT) {
    if (mUseTab) {
      inflater.inflate(R.layout.keyguard_screen_tab_unlock,this,true);
    }
 else     if (mUseHoney) {
      inflater.inflate(R.layout.keyguard_screen_honey_unlock,this,true);
    }
 else     if (mUseRotary) {
      inflater.inflate(R.layout.keyguard_screen_rotary_unlock,this,true);
    }
 else     if (mUseCircular) {
      inflater.inflate(R.layout.keyguard_screen_circular_unlock,this,true);
    }
 else     if (mUseSenseLike) {
      inflater.inflate(R.layout.keyguard_screen_senselike_unlock,this,true);
    }
  }
 else {
    if (mUseTab) {
      inflater.inflate(R.layout.keyguard_screen_tab_unlock_land,this,true);
    }
 else     if (mUseHoney) {
      inflater.inflate(R.layout.keyguard_screen_honey_unlock_land,this,true);
    }
 else     if (mUseRotary) {
      inflater.inflate(R.layout.keyguard_screen_rotary_unlock_land,this,true);
    }
 else     if (mUseCircular) {
      inflater.inflate(R.layout.keyguard_screen_circular_unlock_land,this,true);
    }
 else     if (mUseSenseLike) {
      inflater.inflate(R.layout.keyguard_screen_senselike_unlock_land,this,true);
    }
  }
  mCarrier=(TextView)findViewById(R.id.carrier);
  mCarrier.setSelected(true);
  mCarrier.setTextColor(0xffffffff);
  mDate=(TextView)findViewById(R.id.date);
  mStatus1=(TextView)findViewById(R.id.status1);
  mStatus2=(TextView)findViewById(R.id.status2);
  mScreenLocked=(TextView)findViewById(R.id.screenLocked);
  if (mUseTab) {
    mSelector=(SlidingTab)findViewById(R.id.tab_selector);
    mSelector.setHoldAfterTrigger(true,false);
    mSelector.setLeftHintText(R.string.lockscreen_unlock_label);
    mSelector.setOnTriggerListener(this);
    mSelector.setLeftTabResources(R.drawable.ic_jog_dial_unlock,R.drawable.jog_tab_target_green,R.drawable.jog_tab_bar_left_unlock,R.drawable.jog_tab_left_unlock);
    setUpShortCuts();
  }
 else   if (mUseRotary) {
    mRotarySelector=(RotarySelector)this.findViewById(R.id.rotary_selector);
    mRotarySelector.setOnDialTriggerListener(this);
    mRotarySelector.setLeftHandleResource(R.drawable.ic_jog_dial_unlock);
  }
 else   if (mUseCircular) {
    mCircularSelector=(CircularSelector)findViewById(R.id.circular_selector);
    mCircularSelector.setOnCircularSelectorTriggerListener(this);
  }
 else   if (mUseHoney) {
    mUnlockRing=(UnlockRing)findViewById(R.id.unlock_ring);
    mUnlockRing.setOnHoneyTriggerListener(this);
  }
 else   if (mUseSenseLike) {
    mSenseRingSelector=(SenseLikeLock)findViewById(R.id.sense_selector);
    mSenseRingSelector.setOnSenseLikeSelectorTriggerListener(this);
  }
  setUpMusicControls();
  mEmergencyCallText=(TextView)findViewById(R.id.emergencyCallText);
  mEmergencyCallButton=(Button)findViewById(R.id.emergencyCallButton);
  mEmergencyCallButton.setText(R.string.lockscreen_emergency_call);
  mLockPatternUtils.updateEmergencyCallButtonState(mEmergencyCallButton);
  mEmergencyCallButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      mCallback.takeEmergencyCallAction();
    }
  }
);
  setFocusable(true);
  setFocusableInTouchMode(true);
  setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
  mUpdateMonitor.registerInfoCallback(this);
  mUpdateMonitor.registerSimStateCallback(this);
  mAudioManager=(AudioManager)getContext().getSystemService(Context.AUDIO_SERVICE);
  mSilentMode=isSilentMode();
  updateRightTabResources();
  IntentFilter filter=new IntentFilter();
  filter.addAction("String_Node_Str");
  getContext().registerReceiver(mIntentReceiver,filter);
}