Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DCollapsedAlarmViewHolder.java51 public final TextView daysOfWeek; field in CollapsedAlarmViewHolder
59 daysOfWeek = (TextView) itemView.findViewById(R.id.days_of_week); in CollapsedAlarmViewHolder()
122 if (alarm.daysOfWeek.isRepeating()) { in bindRepeatText()
124 final String daysOfWeekText = alarm.daysOfWeek.toString(context, weekdayOrder); in bindRepeatText()
125 daysOfWeek.setText(daysOfWeekText); in bindRepeatText()
127 final String string = alarm.daysOfWeek.toAccessibilityString(context, weekdayOrder); in bindRepeatText()
128 daysOfWeek.setContentDescription(string); in bindRepeatText()
130 daysOfWeek.setVisibility(View.VISIBLE); in bindRepeatText()
132 daysOfWeek.setVisibility(View.GONE); in bindRepeatText()
137 if (alarm.daysOfWeek.isRepeating()) { in bindUpcomingInstance()
[all …]
DCollapsedAlarmViewHolder.kt45 val daysOfWeek: TextView = itemView.findViewById(R.id.days_of_week) as TextView in <lambda>() constant
97 if (alarm.daysOfWeek.isRepeating) { in <lambda>()
99 val daysOfWeekText = alarm.daysOfWeek.toString(context, weekdayOrder) in <lambda>()
100 daysOfWeek.text = daysOfWeekText in <lambda>()
102 val string = alarm.daysOfWeek.toAccessibilityString(context, weekdayOrder) in <lambda>()
103 daysOfWeek.setContentDescription(string) in <lambda>()
105 daysOfWeek.visibility = View.VISIBLE in <lambda>()
107 daysOfWeek.visibility = View.GONE in <lambda>()
112 if (alarm.daysOfWeek.isRepeating) { in <lambda>()
176 ObjectAnimator.ofFloat(daysOfWeek, View.ALPHA, 0f), in <lambda>()
[all …]
DExpandedAlarmViewHolder.kt173 if (alarm.daysOfWeek.isBitOn(weekdays[i])) { in <lambda>()
183 if (alarm.daysOfWeek.isRepeating) { in <lambda>()
DExpandedAlarmViewHolder.java222 if (alarm.daysOfWeek.isBitOn(weekdays.get(i))) { in bindDaysOfWeekButtons()
231 if (alarm.daysOfWeek.isRepeating()) { in bindDaysOfWeekButtons()
/packages/apps/DeskClock/src/com/android/deskclock/widget/selector/
DAlarmSelectionAdapter.java62 final String daysOfWeek; in getView() local
63 if (!alarm.daysOfWeek.isRepeating()) { in getView()
64 daysOfWeek = Alarm.isTomorrow(alarm, Calendar.getInstance()) ? in getView()
69 daysOfWeek = alarm.daysOfWeek.toString(context, weekdayOrder); in getView()
72 final TextView daysOfWeekView = (TextView) row.findViewById(R.id.daysOfWeek); in getView()
73 daysOfWeekView.setText(daysOfWeek); in getView()
DAlarmSelectionAdapter.kt56 val daysOfWeek: String in getView() constant
57 daysOfWeek = if (!alarm.daysOfWeek.isRepeating) { in getView()
65 alarm.daysOfWeek.toString(context, weekdayOrder) in getView()
68 val daysOfWeekView = row.findViewById<View>(R.id.daysOfWeek) as TextView in getView()
69 daysOfWeekView.text = daysOfWeek in getView()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeScheduleDaysSelection.java54 int[] daysOfWeek = getDaysOfWeekForLocale(c); in ZenModeScheduleDaysSelection() local
56 for (int i = 0; i < daysOfWeek.length; i++) { in ZenModeScheduleDaysSelection()
57 final int day = daysOfWeek[i]; in ZenModeScheduleDaysSelection()
90 int[] daysOfWeek = new int[7]; in getDaysOfWeekForLocale() local
92 for (int i = 0; i < daysOfWeek.length; i++) { in getDaysOfWeekForLocale()
94 daysOfWeek[i] = currentDay; in getDaysOfWeekForLocale()
97 return daysOfWeek; in getDaysOfWeekForLocale()
DZenModeScheduleRuleSettings.java157 int[] daysOfWeek = ZenModeScheduleDaysSelection.getDaysOfWeekForLocale(c); in updateDays() local
158 for (int i = 0; i < daysOfWeek.length; i++) { in updateDays()
159 final int day = daysOfWeek[i]; in updateDays()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeScheduleDaysSelection.java54 int[] daysOfWeek = getDaysOfWeekForLocale(c); in ZenModeScheduleDaysSelection() local
56 for (int i = 0; i < daysOfWeek.length; i++) { in ZenModeScheduleDaysSelection()
57 final int day = daysOfWeek[i]; in ZenModeScheduleDaysSelection()
90 int[] daysOfWeek = new int[7]; in getDaysOfWeekForLocale() local
92 for (int i = 0; i < daysOfWeek.length; i++) { in getDaysOfWeekForLocale()
94 daysOfWeek[i] = currentDay; in getDaysOfWeekForLocale()
97 return daysOfWeek; in getDaysOfWeekForLocale()
DZenModeScheduleRuleSettings.java157 int[] daysOfWeek = ZenModeScheduleDaysSelection.getDaysOfWeekForLocale(c); in updateDays() local
158 for (int i = 0; i < daysOfWeek.length; i++) { in updateDays()
159 final int day = daysOfWeek[i]; in updateDays()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmTimeClickHandler.kt108 alarm.daysOfWeek = Weekdays.fromBits(bitSet) in setAlarmRepeatEnabled()
109 if (!alarm.daysOfWeek.isRepeating) { in setAlarmRepeatEnabled()
110 alarm.daysOfWeek = Weekdays.ALL in setAlarmRepeatEnabled()
114 val bitSet = alarm.daysOfWeek.bits in setAlarmRepeatEnabled()
118 alarm.daysOfWeek = Weekdays.NONE in setAlarmRepeatEnabled()
133 alarm.daysOfWeek = alarm.daysOfWeek.setBit(weekday, checked) in setDayOfWeekEnabled()
DAlarmTimeClickHandler.java114 alarm.daysOfWeek = Weekdays.fromBits(bitSet); in setAlarmRepeatEnabled()
115 if (!alarm.daysOfWeek.isRepeating()) { in setAlarmRepeatEnabled()
116 alarm.daysOfWeek = Weekdays.ALL; in setAlarmRepeatEnabled()
120 final int bitSet = alarm.daysOfWeek.getBits(); in setAlarmRepeatEnabled()
124 alarm.daysOfWeek = Weekdays.NONE; in setAlarmRepeatEnabled()
140 alarm.daysOfWeek = alarm.daysOfWeek.setBit(weekday, checked); in setDayOfWeekEnabled()
DAlarmStateManager.kt314 if (!alarm.daysOfWeek.isRepeating) { in <lambda>()
DAlarmStateManager.java270 if (!alarm.daysOfWeek.isRepeating()) { in updateParentAlarm()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.kt59 var daysOfWeek: Weekdays variable in com.android.deskclock.provider.Alarm
85 daysOfWeek = Weekdays.NONE
96 daysOfWeek = Weekdays.fromBits(c.getInt(DAYS_OF_WEEK_INDEX))
120 daysOfWeek = Weekdays.fromBits(p.readInt())
153 p.writeInt(daysOfWeek.bits) in writeToParcel()
186 val subtractDays = daysOfWeek.getDistanceToPreviousDay(previousInstanceTime) in getPreviousAlarmTime()
211 val addDays = daysOfWeek.getDistanceToNextDay(nextInstanceTime) in getNextAlarmTime()
240 ", daysOfWeek=" + daysOfWeek + in toString()
330 values.put(AlarmsColumns.DAYS_OF_WEEK, alarm.daysOfWeek.bits) in createContentValues()
DAlarm.java122 values.put(DAYS_OF_WEEK, alarm.daysOfWeek.getBits()); in createContentValues()
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());
369 p.writeInt(daysOfWeek.getBits());
404 final int subtractDays = daysOfWeek.getDistanceToPreviousDay(previousInstanceTime);
429 final int addDays = daysOfWeek.getDistanceToNextDay(nextInstanceTime);
462 ", daysOfWeek=" + daysOfWeek +
DClockDatabaseHelper.kt100 alarm.daysOfWeek = Weekdays.fromBits(cursor.getInt(3)) in onUpgrade()
DClockDatabaseHelper.java167 alarm.daysOfWeek = Weekdays.fromBits(cursor.getInt(3)); in onUpgrade()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleApiCalls.java370 alarm.deleteAfterUse = !alarm.daysOfWeek.isRepeating() && skipUi; in handleSetAlarm()
539 alarm.daysOfWeek = getDaysFromIntent(intent, alarm.daysOfWeek); in updateAlarmFromIntent()