Program: 196894
Project: 196894
Buggy source:
private void applyLayoutValues(LayoutValues values){
  mTime.setScaleX(values.timeScale);
  mTime.setScaleY(values.timeScale);
  mClock.setY(values.clockY - mClock.getHeight());
  mDateGroup.setY(values.dateY);
  mAlarmStatus.setY(values.dateY - mAlarmStatus.getPaddingTop());
  mMultiUserAvatar.setScaleX(values.avatarScale);
  mMultiUserAvatar.setScaleY(values.avatarScale);
  mMultiUserAvatar.setX(values.avatarX - mMultiUserSwitch.getLeft());
  mMultiUserAvatar.setY(values.avatarY - mMultiUserSwitch.getTop());
  if (getLayoutDirection() == LAYOUT_DIRECTION_LTR) {
    mSystemIconsSuperContainer.setX(values.batteryX - mSystemIconsContainer.getRight());
  }
 else {
    mSystemIconsSuperContainer.setX(values.batteryX - mSystemIconsContainer.getLeft());
  }
  mSystemIconsSuperContainer.setY(values.batteryY - mSystemIconsContainer.getTop());
  if (mSignalCluster != null && mExpanded) {
    if (getLayoutDirection() == LAYOUT_DIRECTION_LTR) {
      mSignalCluster.setX(mSystemIconsSuperContainer.getX() - mSignalCluster.getWidth());
    }
 else {
      mSignalCluster.setX(mSystemIconsSuperContainer.getX() + mSystemIconsSuperContainer.getWidth());
    }
    mSignalCluster.setY(mSystemIconsSuperContainer.getY() + mSystemIconsSuperContainer.getHeight() / 2 - mSignalCluster.getHeight() / 2);
  }
 else   if (mSignalCluster != null) {
    mSignalCluster.setTranslationX(0f);
    mSignalCluster.setTranslationY(0f);
  }
  mSettingsButton.setTranslationY(mSystemIconsSuperContainer.getTranslationY());
  mSettingsButton.setTranslationX(values.settingsTranslation);
  mSettingsButton.setRotation(values.settingsRotation);
  applyAlpha(mEmergencyCallsOnly,values.emergencyCallsOnlyAlpha);
  applyAlpha(mAlarmStatus,values.alarmStatusAlpha);
  applyAlpha(mDateCollapsed,values.dateCollapsedAlpha);
  applyAlpha(mDateExpanded,values.dateExpandedAlpha);
  applyAlpha(mBatteryLevel,values.batteryLevelAlpha);
  applyAlpha(mSettingsButton,values.settingsAlpha);
  applyAlpha(mSignalCluster,values.signalClusterAlpha);
  if (!mExpanded) {
    mTime.setScaleX(1f);
    mTime.setScaleY(1f);
  }
  updateAmPmTranslation();
}

Fixed version (ground truth):
private void applyLayoutValues(LayoutValues values){
  mTime.setScaleX(values.timeScale);
  mTime.setScaleY(values.timeScale);
  mClock.setY(values.clockY - mClock.getHeight());
  mDateGroup.setY(values.dateY);
  mAlarmStatus.setY(values.dateY - mAlarmStatus.getPaddingTop());
  mMultiUserAvatar.setScaleX(values.avatarScale);
  mMultiUserAvatar.setScaleY(values.avatarScale);
  mMultiUserAvatar.setX(values.avatarX - mMultiUserSwitch.getLeft());
  mMultiUserAvatar.setY(values.avatarY - mMultiUserSwitch.getTop());
  if (getLayoutDirection() == LAYOUT_DIRECTION_LTR) {
    mSystemIconsSuperContainer.setX(values.batteryX - mSystemIconsContainer.getRight());
  }
 else {
    mSystemIconsSuperContainer.setX(values.batteryX - mSystemIconsContainer.getLeft());
  }
  mSystemIconsSuperContainer.setY(values.batteryY - mSystemIconsContainer.getTop());
  if (mSignalCluster != null && mExpanded) {
    if (getLayoutDirection() == LAYOUT_DIRECTION_LTR) {
      mSignalCluster.setX(mSystemIconsSuperContainer.getX() - mSignalCluster.getWidth());
    }
 else {
      mSignalCluster.setX(mSystemIconsSuperContainer.getX() + mSystemIconsSuperContainer.getWidth());
    }
    mSignalCluster.setY(mSystemIconsSuperContainer.getY() + mSystemIconsSuperContainer.getHeight() / 2 - mSignalCluster.getHeight() / 2);
  }
 else   if (mSignalCluster != null) {
    mSignalCluster.setTranslationX(0f);
    mSignalCluster.setTranslationY(0f);
  }
  mSettingsButton.setTranslationY(mSystemIconsSuperContainer.getTranslationY());
  mSettingsButton.setTranslationX(values.settingsTranslation);
  mSettingsButton.setRotation(values.settingsRotation);
  applyAlpha(mEmergencyCallsOnly,values.emergencyCallsOnlyAlpha);
  if (!mShowingDetail) {
    applyAlpha(mAlarmStatus,values.alarmStatusAlpha);
  }
  applyAlpha(mDateCollapsed,values.dateCollapsedAlpha);
  applyAlpha(mDateExpanded,values.dateExpandedAlpha);
  applyAlpha(mBatteryLevel,values.batteryLevelAlpha);
  applyAlpha(mSettingsButton,values.settingsAlpha);
  applyAlpha(mSignalCluster,values.signalClusterAlpha);
  if (!mExpanded) {
    mTime.setScaleX(1f);
    mTime.setScaleY(1f);
  }
  updateAmPmTranslation();
}