Home
last modified time | relevance | path

Searched refs:bitIndex (Results 1 – 1 of 1) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/provider/
DDaysOfWeek.java60 static int convertBitIndexToDay(int bitIndex) { in convertBitIndexToDay() argument
61 return (bitIndex + 1) % DAYS_IN_A_WEEK + 1; in convertBitIndexToDay()
112 for (int bitIndex = startDay; bitIndex < DAYS_IN_A_WEEK + startDay; ++bitIndex) { in toString()
113 if ((mBitSet & (1 << (bitIndex % DAYS_IN_A_WEEK))) != 0) { in toString()
114 ret.append(dayList[convertBitIndexToDay(bitIndex)]); in toString()
133 private boolean isBitEnabled(int bitIndex) { in isBitEnabled() argument
134 return ((mBitSet & (1 << bitIndex)) > 0); in isBitEnabled()
137 private void setBit(int bitIndex, boolean set) { in setBit() argument
139 mBitSet |= (1 << bitIndex); in setBit()
141 mBitSet &= ~(1 << bitIndex); in setBit()
[all …]