/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | Alarm.kt | 42 class Alarm : Parcelable, AlarmsColumns { class 224 if (other !is Alarm) return false in equals() 320 fun createContentValues(alarm: Alarm): ContentValues { in createContentValues() 397 fun getAlarm(cr: ContentResolver, alarmId: Long): Alarm? { in getAlarm() 401 return Alarm(cursor) in getAlarm() 425 ): List<Alarm> { in getAlarms() 426 val result: MutableList<Alarm> = LinkedList() in getAlarms() 433 result.add(Alarm(cursor)) in getAlarms() 442 fun isTomorrow(alarm: Alarm, now: Calendar): Boolean { in isTomorrow() 453 fun addAlarm(contentResolver: ContentResolver, alarm: Alarm): Alarm { in addAlarm() [all …]
|
D | AlarmInstance.kt | 94 mId = c.getLong(Alarm.INSTANCE_ID_INDEX) 95 mYear = c.getInt(Alarm.INSTANCE_YEAR_INDEX) 96 mMonth = c.getInt(Alarm.INSTANCE_MONTH_INDEX) 97 mDay = c.getInt(Alarm.INSTANCE_DAY_INDEX) 98 mHour = c.getInt(Alarm.INSTANCE_HOUR_INDEX) 99 mMinute = c.getInt(Alarm.INSTANCE_MINUTE_INDEX) 100 mLabel = c.getString(Alarm.INSTANCE_LABEL_INDEX) 101 mVibrate = c.getInt(Alarm.INSTANCE_VIBRATE_INDEX) == 1
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmTimeClickHandler.kt | 33 import com.android.deskclock.provider.Alarm 51 private var mSelectedAlarm: Alarm? = null 63 fun setSelectedAlarm(selectedAlarm: Alarm?) { in setSelectedAlarm() 71 fun setAlarmEnabled(alarm: Alarm, newState: Boolean) { in setAlarmEnabled() 81 fun setAlarmVibrationEnabled(alarm: Alarm, newState: Boolean) { in setAlarmVibrationEnabled() 98 fun setAlarmRepeatEnabled(alarm: Alarm, isEnabled: Boolean) { in setAlarmRepeatEnabled() 127 fun setDayOfWeekEnabled(alarm: Alarm, checked: Boolean, index: Int) { in setDayOfWeekEnabled() 150 fun onClockClicked(alarm: Alarm) { in onClockClicked() 164 fun onRingtoneClicked(context: Context, alarm: Alarm) { in onRingtoneClicked() 172 fun onEditLabelClicked(alarm: Alarm) { in onEditLabelClicked() [all …]
|
D | AlarmUpdateHandler.kt | 28 import com.android.deskclock.provider.Alarm in <lambda>() 49 private var mDeletedAlarm: Alarm? = null in <lambda>() 56 fun asyncAddAlarm(alarm: Alarm?) { in <lambda>() 65 val newAlarm = Alarm.addAlarm(cr, alarm) in <lambda>() 96 alarm: Alarm, in <lambda>() 106 Alarm.updateAlarm(cr, alarm) in <lambda>() 148 fun asyncDeleteAlarm(alarm: Alarm?) { in <lambda>() 157 return Alarm.deleteAlarm(mAppContext.getContentResolver(), alarm.id) in <lambda>() 200 private fun setupAlarmInstance(alarm: Alarm): AlarmInstance { in <lambda>()
|
D | AlarmStateManager.kt | 46 import com.android.deskclock.provider.Alarm in <lambda>() 307 val alarm = Alarm.getAlarm(cr, instance.mAlarmId!!) in <lambda>() 316 Alarm.deleteAlarm(cr, alarm.id) in <lambda>() 320 Alarm.updateAlarm(cr, alarm) in <lambda>() 720 val alarm = Alarm.getAlarm(cr, instance.mAlarmId!!) in <lambda>() 758 Alarm.updateAlarm(cr, alarm) in <lambda>() 868 val alarm = Alarm.getAlarm(contentResolver, instance.mAlarmId!!) in <lambda>() 990 val alarmId = instance.mAlarmId ?: Alarm.INVALID_ID in <lambda>() 992 Alarm.createIntent(context, DeskClock::class.java, alarmId) in <lambda>()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmClockFragment.kt | 45 import com.android.deskclock.provider.Alarm 70 private var mScrollToAlarmId = Alarm.INVALID_ID 71 private var mExpandedAlarmId = Alarm.INVALID_ID 85 mExpandedAlarmId = it.getLong(KEY_EXPANDED_ID, Alarm.INVALID_ID) in onCreate() 139 mExpandedAlarmId = Alarm.INVALID_ID in onCreateView() 188 val alarmId = intent.getLongExtra(SCROLL_TO_ALARM_INTENT_EXTRA, Alarm.INVALID_ID) in onResume() 189 if (alarmId != Alarm.INVALID_ID) { in onResume() 229 fun setLabel(alarm: Alarm, label: String?) { in setLabel() 235 return Alarm.getAlarmsCursorLoader(requireActivity()) in onCreateLoader() 242 val alarm = Alarm(data) in onLoadFinished() [all …]
|
D | HandleApiCalls.kt | 39 import com.android.deskclock.provider.Alarm 112 val i: MutableIterator<Alarm> = alarms.toMutableList().listIterator() in doInBackground() 140 val matchingAlarms: List<Alarm> = fmaa.matchingAlarms in doInBackground() 166 private fun getEnabledAlarms(context: Context): List<Alarm> { in getEnabledAlarms() 169 return Alarm.getAlarms(context.contentResolver, selection, *args) in getEnabledAlarms() 239 val createAlarm = Alarm.createIntent(this, DeskClock::class.java, Alarm.INVALID_ID) in handleSetAlarm() 257 val alarms = Alarm.getAlarms(cr, selection.toString(), *args) in handleSetAlarm() 259 val alarm: Alarm in handleSetAlarm() 264 Alarm.updateAlarm(cr, alarm) in handleSetAlarm() 273 alarm = Alarm() in handleSetAlarm() [all …]
|
D | FetchMatchingAlarmsAction.kt | 27 import com.android.deskclock.provider.Alarm 43 private val mAlarms: List<Alarm>, 47 private val mMatchingAlarms: MutableList<Alarm> = ArrayList() 150 ): List<Alarm> { in getAlarmsByHourMinutes() 155 return Alarm.getAlarms(cr, selection, *args) in getAlarmsByHourMinutes() 158 val matchingAlarms: List<Alarm>
|
D | AlarmSelectionActivity.kt | 26 import com.android.deskclock.provider.Alarm 58 val alarm = parcelable as Alarm in onCreate() 72 val alarm: Alarm? = selection.alarm in onListItemClick() 81 private val mAlarm: Alarm,
|
D | LabelDialogFragment.kt | 41 import com.android.deskclock.provider.Alarm 48 private var mAlarm: Alarm? = null 131 fun onDialogLabelSet(alarm: Alarm, label: String, tag: String) in onDialogLabelSet() 184 fun newInstance(alarm: Alarm, label: String?, tag: String?): LabelDialogFragment { in newInstance()
|
D | DeskClockBackupAgent.kt | 31 import com.android.deskclock.provider.Alarm 130 val alarms = Alarm.getAlarms(contentResolver, null) in processRestoredData()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | SpringLoadedDragController.java | 19 import com.android.launcher3.Alarm; 30 Alarm mAlarm; 38 mAlarm = new Alarm(); in SpringLoadedDragController() 55 public void onAlarm(Alarm alarm) { in onAlarm()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | AlarmItemViewHolder.kt | 29 import com.android.deskclock.provider.Alarm in <lambda>() 66 protected fun bindOnOffSwitch(alarm: Alarm) { in <lambda>() 72 protected fun bindClock(alarm: Alarm) { in <lambda>() 79 alarm: Alarm, in <lambda>()
|
D | AlarmItemHolder.kt | 23 import com.android.deskclock.provider.Alarm 27 alarm: Alarm, 30 ) : ItemHolder<Alarm>(alarm, alarm.id) {
|
D | CollapsedAlarmViewHolder.kt | 36 import com.android.deskclock.provider.Alarm in <lambda>() 85 private fun bindReadOnlyLabel(context: Context, alarm: Alarm) { in <lambda>() 96 private fun bindRepeatText(context: Context, alarm: Alarm) { in <lambda>() 111 private fun bindUpcomingInstance(context: Context, alarm: Alarm) { in <lambda>() 116 val labelText: String = if (Alarm.isTomorrow(alarm, Calendar.getInstance())) { in <lambda>()
|
D | ExpandedAlarmViewHolder.kt | 50 import com.android.deskclock.provider.Alarm in <lambda>() 155 private fun bindRingtone(context: Context, alarm: Alarm) { in <lambda>() 168 private fun bindDaysOfWeekButtons(alarm: Alarm, context: Context) { in <lambda>() 192 private fun bindEditLabel(context: Context, alarm: Alarm) { in <lambda>() 201 private fun bindVibrator(alarm: Alarm) { in <lambda>()
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivity.kt | 60 import com.android.deskclock.provider.Alarm in <lambda>() 181 object : AsyncTask<Void?, Void?, Alarm>() { in <lambda>() 182 override fun doInBackground(vararg parameters: Void?): Alarm? { in <lambda>() 183 val alarm = Alarm.getAlarm(cr, mAlarmId) in <lambda>() 190 override fun onPostExecute(alarm: Alarm) { in <lambda>() 529 val alarms = Alarm.getAlarms(cr, null) in <lambda>() 612 fun createAlarmRingtonePickerIntent(context: Context, alarm: Alarm): Intent { in <lambda>()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | Folder.java | 64 import com.android.launcher3.Alarm; 160 private final Alarm mReorderAlarm = new Alarm(); 161 private final Alarm mOnExitAlarm = new Alarm(); 162 private final Alarm mOnScrollHintAlarm = new Alarm(); 163 final Alarm mScrollPauseAlarm = new Alarm(); 881 public void onAlarm(Alarm alarm) { 959 public void onAlarm(Alarm alarm) { 1504 public void onAlarm(Alarm alarm) { in onAlarm() 1535 public void onAlarm(Alarm alarm) { in onAlarm()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | MotionPauseDetector.java | 23 import com.android.launcher3.Alarm; 49 private final Alarm mForcePauseTimeout; 86 mForcePauseTimeout = new Alarm(); in MotionPauseDetector()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/selector/ |
D | AlarmSelection.kt | 19 import com.android.deskclock.provider.Alarm 25 class AlarmSelection(val label: String, val alarm: Alarm)
|
D | AlarmSelectionAdapter.kt | 28 import com.android.deskclock.provider.Alarm 58 if (Alarm.isTomorrow(alarm, Calendar.getInstance())) { in getView()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Alarm.java | 22 public class Alarm implements Runnable{ class 34 public Alarm() { in Alarm() method in Alarm
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | AlarmTracker.h | 36 const Alarm& alarm, const ConfigKey& configKey, 57 const Alarm mAlarmConfig;
|
/packages/modules/StatsD/tests/src/android/cts/statsd/alarm/ |
D | AlarmTests.java | 23 import com.android.internal.os.StatsdConfigProto.Alarm; 67 .addAlarm(Alarm.newBuilder().setId(ALARM_ID).setOffsetMillis(2).setPeriodMillis( in getBaseConfig()
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivityTest.java | 35 import com.android.deskclock.provider.Alarm; 266 final Alarm alarm = new Alarm(1, 1); in createAlarmRingtonePickerActivity()
|