Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt47 import com.android.deskclock.provider.AlarmInstance in <lambda>()
97 instance: AlarmInstance, in <lambda>()
101 fun cancelScheduledInstanceStateChange(context: Context, instance: AlarmInstance) in <lambda>()
111 instance: AlarmInstance, in <lambda>()
134 override fun cancelScheduledInstanceStateChange(context: Context, instance: AlarmInstance) { in <lambda>()
226 fun getNextFiringAlarm(context: Context): AlarmInstance? { in <lambda>()
230 val alarmInstances = AlarmInstance.getInstances(cr, activeAlarmQuery) in <lambda>()
232 var nextAlarm: AlarmInstance? = null in <lambda>()
245 private fun updateNextAlarmInSystemSettings(context: Context, nextAlarm: AlarmInstance?) { in <lambda>()
269 private fun updateNextAlarmInAlarmManager(context: Context, nextAlarm: AlarmInstance?) { in <lambda>()
[all …]
DAlarmUpdateHandler.kt29 import com.android.deskclock.provider.AlarmInstance in <lambda>()
57 val updateTask: AsyncTask<Void, Void, AlarmInstance> = in <lambda>()
58 object : AsyncTask<Void, Void, AlarmInstance>() { in <lambda>()
59 override fun doInBackground(vararg parameters: Void): AlarmInstance? { in <lambda>()
78 override fun onPostExecute(instance: AlarmInstance?) { in <lambda>()
100 val updateTask: AsyncTask<Void, Void, AlarmInstance> = in <lambda>()
101 object : AsyncTask<Void, Void, AlarmInstance>() { in <lambda>()
102 override fun doInBackground(vararg parameters: Void): AlarmInstance? { in <lambda>()
109 val instanceList = AlarmInstance.getInstancesByAlarmId(cr, alarm.id) in <lambda>()
112 val newInstance = AlarmInstance(instance) in <lambda>()
[all …]
DAlarmService.kt34 import com.android.deskclock.provider.AlarmInstance
68 private var mCurrentAlarm: AlarmInstance? = null
70 private fun startAlarm(instance: AlarmInstance) { in startAlarm()
154 val instanceId = AlarmInstance.getId(intent.getData()!!) in onStartCommand()
163 val instance: AlarmInstance? = AlarmInstance.getInstance(cr, instanceId) in onStartCommand()
255 fun stopAlarm(context: Context, instance: AlarmInstance) { in stopAlarm()
257 AlarmInstance.createIntent(context, AlarmService::class.java, instance.mId) in stopAlarm()
DAlarmNotifications.kt39 import com.android.deskclock.provider.AlarmInstance
115 instance: AlarmInstance in showLowPriorityNotification()
177 instance: AlarmInstance in showHighPriorityNotification()
383 instance: AlarmInstance in showSnoozeNotification()
437 instance: AlarmInstance in showMissedNotification()
473 val showAndDismiss: Intent = AlarmInstance.createIntent(context, in showMissedNotification()
494 fun showAlarmNotification(service: Service, instance: AlarmInstance) { in showAlarmNotification()
533 val contentIntent: Intent = AlarmInstance.createIntent(service, AlarmActivity::class.java, in showAlarmNotification()
540 AlarmInstance.createIntent(service, AlarmActivity::class.java, instance.mId) in showAlarmNotification()
556 fun clearNotification(context: Context, instance: AlarmInstance) { in clearNotification()
[all …]
DAlarmActivity.kt61 import com.android.deskclock.provider.AlarmInstance
102 private var mAlarmInstance: AlarmInstance? = null
133 val instanceId = AlarmInstance.getId(getIntent().getData()!!) in onCreate()
134 mAlarmInstance = AlarmInstance.getInstance(getContentResolver(), instanceId) in onCreate()
220 val instanceId = AlarmInstance.getId(getIntent().getData()!!) in onResume()
221 mAlarmInstance = AlarmInstance.getInstance(getContentResolver(), instanceId) in onResume()
DAlarmKlaxon.kt29 import com.android.deskclock.provider.AlarmInstance
53 fun start(context: Context, instance: AlarmInstance) { in start()
DAlarmTimeClickHandler.kt34 import com.android.deskclock.provider.AlarmInstance
156 fun dismissAlarmInstance(alarmInstance: AlarmInstance) { in dismissAlarmInstance()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.kt39 class AlarmInstance : InstancesColumns { class
78 constructor(instance: AlarmInstance) {
217 if (other !is AlarmInstance) return false in equals()
295 fun createContentValues(instance: AlarmInstance): ContentValues { in createContentValues()
349 fun getInstance(cr: ContentResolver, instanceId: Long): AlarmInstance? { in getInstance()
354 return AlarmInstance(cursor, false /* joinedTable */) in getInstance()
367 fun getInstance(cr: ContentResolver, contentUri: Uri): AlarmInstance? { in getInstance()
383 ): List<AlarmInstance> { in getInstancesByAlarmId()
397 ): AlarmInstance? { in getNextUpcomingInstanceByAlarmId()
418 ): List<AlarmInstance> { in getInstancesByInstanceIdAndState()
[all …]
DClockDatabaseHelper.kt119 val newInstance: AlarmInstance = alarm.createInstanceAfter(currentTime) in onUpgrade()
121 AlarmInstance.createContentValues(newInstance)) in onUpgrade()
DAlarm.kt161 fun createInstanceAfter(time: Calendar): AlarmInstance { in describeContents()
163 val result = AlarmInstance(nextInstanceTime, id) in describeContents()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleApiCalls.kt40 import com.android.deskclock.provider.AlarmInstance
114 val instance = AlarmInstance.getNextUpcomingInstanceByAlarmId(cr, i.next().id) in doInBackground()
186 val alarmInstances = AlarmInstance.getInstancesByState( in doInBackground()
423 private fun setupInstance(instance: AlarmInstance, skipUi: Boolean) { in setupInstance()
425 variableInstance = AlarmInstance.addInstance(this.contentResolver, variableInstance) in setupInstance()
498 val instance = AlarmInstance.getNextUpcomingInstanceByAlarmId( in dismissAlarm()
510 private fun dismissAlarmInstance(instance: AlarmInstance, activity: Activity) { in dismissAlarmInstance()
539 fun snoozeAlarm(alarmInstance: AlarmInstance, context: Context, activity: Activity) { in snoozeAlarm()
DDeskClockBackupAgent.kt32 import com.android.deskclock.provider.AlarmInstance
143 alarmInstance = AlarmInstance.addInstance(contentResolver, alarmInstance) in processRestoredData()
DAlarmUtils.kt25 import com.android.deskclock.provider.AlarmInstance
53 fun getAlarmText(context: Context, instance: AlarmInstance, includeLabel: Boolean): String { in getAlarmText()
DFetchMatchingAlarmsAction.kt28 import com.android.deskclock.provider.AlarmInstance
96 val alarmInstance = AlarmInstance.getNextUpcomingInstanceByAlarmId(cr, alarm.id) in run()
DAlarmClockFragment.kt46 import com.android.deskclock.provider.AlarmInstance
244 AlarmInstance(data, joinedTable = true) in onLoadFinished()
DUtils.kt63 import com.android.deskclock.provider.AlarmInstance
316 fun isAlarmWithin24Hours(alarmInstance: AlarmInstance): Boolean { in isAlarmWithin24Hours()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DAlarmItemHolder.kt24 import com.android.deskclock.provider.AlarmInstance
28 val alarmInstance: AlarmInstance?,
DAlarmItemViewHolder.kt30 import com.android.deskclock.provider.AlarmInstance in <lambda>()
80 alarmInstance: AlarmInstance? in <lambda>()