code: private void setValueForItem(int index, int value) {
          if (index == HOUR_INDEX) {
              mCurrentHoursOfDay = value;
          } else if (index == MINUTE_INDEX) {
              mCurrentMinutes = value;
          } else if (index == AMPM_INDEX) {
              if (value == AM) {
                  mCurrentHoursOfDay = mCurrentHoursOfDay % 12;
              } else if (value == PM) {
                  mCurrentHoursOfDay = (mCurrentHoursOfDay % 12) + 12;
              }
          }
      }
docs: Set the internal value for the hour, minute, or AM/PM.