Program: 196171
Project: 196171
Buggy source:
@Override protected void onFinishInflate(){
  super.onFinishInflate();
  mHeader=(StatusBarHeaderView)findViewById(R.id.header);
  mHeader.setOnClickListener(this);
  mKeyguardStatusBar=(KeyguardStatusBarView)findViewById(R.id.keyguard_header);
  mKeyguardStatusView=(KeyguardStatusView)findViewById(R.id.keyguard_status_view);
  mQsContainer=findViewById(R.id.quick_settings_container);
  mQsPanel=(QSPanel)findViewById(R.id.quick_settings_panel);
  mClockView=(TextView)findViewById(R.id.clock_view);
  mScrollView=(ObservableScrollView)findViewById(R.id.scroll_view);
  mScrollView.setListener(this);
  mScrollView.setFocusable(false);
  mReserveNotificationSpace=findViewById(R.id.reserve_notification_space);
  mNotificationContainerParent=findViewById(R.id.notification_container_parent);
  mNotificationStackScroller=(NotificationStackScrollLayout)findViewById(R.id.notification_stack_scroller);
  mNotificationStackScroller.setOnHeightChangedListener(this);
  mNotificationStackScroller.setOverscrollTopChangedListener(this);
  mNotificationStackScroller.setScrollView(mScrollView);
  mFastOutSlowInInterpolator=AnimationUtils.loadInterpolator(getContext(),android.R.interpolator.fast_out_slow_in);
  mFastOutLinearInterpolator=AnimationUtils.loadInterpolator(getContext(),android.R.interpolator.fast_out_linear_in);
  mDozeAnimationInterpolator=AnimationUtils.loadInterpolator(getContext(),android.R.interpolator.linear_out_slow_in);
  mKeyguardBottomArea=(KeyguardBottomAreaView)findViewById(R.id.keyguard_bottom_area);
  mQsNavbarScrim=findViewById(R.id.qs_navbar_scrim);
  mAfforanceHelper=new KeyguardAffordanceHelper(this,getContext());
  mSecureCameraLaunchManager=new SecureCameraLaunchManager(getContext(),mKeyguardBottomArea);
  mQsContainer.addOnLayoutChangeListener(new OnLayoutChangeListener(){
    @Override public void onLayoutChange(    View v,    int left,    int top,    int right,    int bottom,    int oldLeft,    int oldTop,    int oldRight,    int oldBottom){
      final int height=bottom - top;
      final int oldHeight=oldBottom - oldTop;
      if (height != oldHeight) {
        onScrollChanged();
      }
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onFinishInflate(){
  super.onFinishInflate();
  mHeader=(StatusBarHeaderView)findViewById(R.id.header);
  mHeader.setOnClickListener(this);
  mKeyguardStatusBar=(KeyguardStatusBarView)findViewById(R.id.keyguard_header);
  mKeyguardStatusView=(KeyguardStatusView)findViewById(R.id.keyguard_status_view);
  mQsContainer=findViewById(R.id.quick_settings_container);
  mQsPanel=(QSPanel)findViewById(R.id.quick_settings_panel);
  mClockView=(TextView)findViewById(R.id.clock_view);
  mScrollView=(ObservableScrollView)findViewById(R.id.scroll_view);
  mScrollView.setListener(this);
  mScrollView.setFocusable(false);
  mReserveNotificationSpace=findViewById(R.id.reserve_notification_space);
  mNotificationContainerParent=findViewById(R.id.notification_container_parent);
  mNotificationStackScroller=(NotificationStackScrollLayout)findViewById(R.id.notification_stack_scroller);
  mNotificationStackScroller.setOnHeightChangedListener(this);
  mNotificationStackScroller.setOverscrollTopChangedListener(this);
  mNotificationStackScroller.setOnEmptySpaceClickListener(this);
  mNotificationStackScroller.setScrollView(mScrollView);
  mFastOutSlowInInterpolator=AnimationUtils.loadInterpolator(getContext(),android.R.interpolator.fast_out_slow_in);
  mFastOutLinearInterpolator=AnimationUtils.loadInterpolator(getContext(),android.R.interpolator.fast_out_linear_in);
  mDozeAnimationInterpolator=AnimationUtils.loadInterpolator(getContext(),android.R.interpolator.linear_out_slow_in);
  mKeyguardBottomArea=(KeyguardBottomAreaView)findViewById(R.id.keyguard_bottom_area);
  mQsNavbarScrim=findViewById(R.id.qs_navbar_scrim);
  mAfforanceHelper=new KeyguardAffordanceHelper(this,getContext());
  mSecureCameraLaunchManager=new SecureCameraLaunchManager(getContext(),mKeyguardBottomArea);
  mQsContainer.addOnLayoutChangeListener(new OnLayoutChangeListener(){
    @Override public void onLayoutChange(    View v,    int left,    int top,    int right,    int bottom,    int oldLeft,    int oldTop,    int oldRight,    int oldBottom){
      final int height=bottom - top;
      final int oldHeight=oldBottom - oldTop;
      if (height != oldHeight) {
        onScrollChanged();
      }
    }
  }
);
}