Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/data/
DWeekdays.java46 public final class Weekdays { class
72 public static final Weekdays ALL = Weekdays.fromBits(ALL_DAYS);
75 public static final Weekdays NONE = Weekdays.fromBits(0);
94 private Weekdays(int bits) { in Weekdays() method in Weekdays
103 public static Weekdays fromBits(int bits) { in fromBits()
104 return new Weekdays(bits); in fromBits()
120 public static Weekdays fromCalendarDays(int... calendarDays) { in fromCalendarDays()
128 return new Weekdays(bits); in fromCalendarDays()
145 public Weekdays setBit(int calendarDay, boolean on) { in setBit()
150 return new Weekdays(on ? (mBits | bit) : (mBits & ~bit)); in setBit()
[all …]
DWeekdays.kt32 class Weekdays private constructor(bits: Int) { class
80 fun fromBits(bits: Int): Weekdays { in fromBits()
81 return Weekdays(bits) in fromBits()
98 fun fromCalendarDays(vararg calendarDays: Int): Weekdays { in fromCalendarDays()
106 return Weekdays(bits) in fromCalendarDays()
127 fun setBit(calendarDay: Int, on: Boolean): Weekdays { in setBit()
129 return Weekdays(if (on) bits or bit else bits and bit.inv()) in setBit()
208 val weekdays = other as Weekdays in equals()
DSettingsDAO.java44 import static com.android.deskclock.data.Weekdays.Order.MON_TO_SUN;
45 import static com.android.deskclock.data.Weekdays.Order.SAT_TO_FRI;
46 import static com.android.deskclock.data.Weekdays.Order.SUN_TO_SAT;
249 static Weekdays.Order getWeekdayOrder(SharedPreferences prefs) { in getWeekdayOrder()
DSettingsModel.kt128 val weekdayOrder: Weekdays.Order
DSettingsModel.java152 Weekdays.Order getWeekdayOrder() { in getWeekdayOrder()
DSettingsDAO.kt32 import com.android.deskclock.data.Weekdays.Order
DDataModel.java1026 public Weekdays.Order getWeekdayOrder() { in getWeekdayOrder()
DDataModel.kt1024 val weekdayOrder: Weekdays.Order
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmTimeClickHandler.kt31 import com.android.deskclock.data.Weekdays
108 alarm.daysOfWeek = Weekdays.fromBits(bitSet) in setAlarmRepeatEnabled()
110 alarm.daysOfWeek = Weekdays.ALL in setAlarmRepeatEnabled()
118 alarm.daysOfWeek = Weekdays.NONE in setAlarmRepeatEnabled()
DAlarmTimeClickHandler.java31 import com.android.deskclock.data.Weekdays;
114 alarm.daysOfWeek = Weekdays.fromBits(bitSet); in setAlarmRepeatEnabled()
116 alarm.daysOfWeek = Weekdays.ALL; in setAlarmRepeatEnabled()
124 alarm.daysOfWeek = Weekdays.NONE; in setAlarmRepeatEnabled()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.kt34 import com.android.deskclock.data.Weekdays
59 var daysOfWeek: Weekdays
85 daysOfWeek = Weekdays.NONE
96 daysOfWeek = Weekdays.fromBits(c.getInt(DAYS_OF_WEEK_INDEX))
120 daysOfWeek = Weekdays.fromBits(p.readInt())
DAlarm.java33 import com.android.deskclock.data.Weekdays;
282 public Weekdays daysOfWeek;
300 this.daysOfWeek = Weekdays.NONE;
311 daysOfWeek = Weekdays.fromBits(c.getInt(DAYS_OF_WEEK_INDEX));
335 daysOfWeek = Weekdays.fromBits(p.readInt());
DClockDatabaseHelper.kt30 import com.android.deskclock.data.Weekdays
100 alarm.daysOfWeek = Weekdays.fromBits(cursor.getInt(3)) in onUpgrade()
DClockDatabaseHelper.java29 import com.android.deskclock.data.Weekdays;
167 alarm.daysOfWeek = Weekdays.fromBits(cursor.getInt(3)); in onUpgrade()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleApiCalls.java36 import com.android.deskclock.data.Weekdays;
547 private static Weekdays getDaysFromIntent(Intent intent, Weekdays defaultWeekdays) { in getDaysFromIntent()
558 return Weekdays.fromCalendarDays(daysArray); in getDaysFromIntent()
563 return Weekdays.fromCalendarDays(daysArray); in getDaysFromIntent()
617 args.add(String.valueOf(getDaysFromIntent(intent, Weekdays.NONE).getBits())); in setSelectionFromIntent()
/packages/apps/DeskClock/src/com/android/deskclock/widget/selector/
DAlarmSelectionAdapter.kt27 import com.android.deskclock.data.Weekdays
64 val weekdayOrder: Weekdays.Order = DataModel.dataModel.weekdayOrder in getView()
DAlarmSelectionAdapter.java29 import com.android.deskclock.data.Weekdays;
68 final Weekdays.Order weekdayOrder = DataModel.getDataModel().getWeekdayOrder(); in getView()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.java43 import com.android.deskclock.data.Weekdays;
300 final Weekdays.Order weekdayOrder = DataModel.getDataModel().getWeekdayOrder(); in refresh()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DCollapsedAlarmViewHolder.java35 import com.android.deskclock.data.Weekdays;
123 final Weekdays.Order weekdayOrder = DataModel.getDataModel().getWeekdayOrder(); in bindRepeatText()