OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:alarmInstance
(Results
1 - 10
of
10
) sorted by null
/packages/apps/DeskClock/src/com/android/deskclock/
DeskClockBackupAgent.java
34
import com.android.deskclock.provider.
AlarmInstance
;
129
AlarmInstance
alarmInstance
= alarm.createInstanceAfter(now);
132
alarmInstance
=
AlarmInstance
.addInstance(contentResolver,
alarmInstance
);
135
AlarmStateManager.registerInstance(context,
alarmInstance
, true);
136
LOGGER.i("DeskClockBackupAgent scheduled alarm instance: %s",
alarmInstance
);
FetchMatchingAlarmsAction.java
29
import com.android.deskclock.provider.
AlarmInstance
;
108
final
AlarmInstance
alarmInstance
=
109
AlarmInstance
.getNextUpcomingInstanceByAlarmId(cr, alarm.id);
110
if (
alarmInstance
!= null
111
&&
alarmInstance
.mAlarmState ==
AlarmInstance
.FIRED_STATE) {
120
final
AlarmInstance
nextAlarm = AlarmStateManager.getNextFiringAlarm(mContext);
HandleApiCalls.java
38
import com.android.deskclock.provider.
AlarmInstance
;
53
import static com.android.deskclock.provider.
AlarmInstance
.FIRED_STATE;
54
import static com.android.deskclock.provider.
AlarmInstance
.SNOOZE_STATE;
125
final
AlarmInstance
instance =
AlarmInstance
.getNextUpcomingInstanceByAlarmId(
137
public static void dismissAlarmInstance(
AlarmInstance
instance, Activity activity) {
190
final
AlarmInstance
instance =
AlarmInstance
.getNextUpcomingInstanceByAlarmId(
265
final List<
AlarmInstance
> alarmInstances =
AlarmInstance
.getInstancesByState
[
all
...]
AlarmClockFragment.java
46
import com.android.deskclock.provider.
AlarmInstance
;
279
final
AlarmInstance
alarmInstance
= alarm.canPreemptivelyDismiss()
280
? new
AlarmInstance
(data, true /* joinedTable */) : null;
282
new AlarmItemHolder(alarm,
alarmInstance
, mAlarmTimeClickHandler);
Utils.java
62
import com.android.deskclock.provider.
AlarmInstance
;
321
public static boolean isAlarmWithin24Hours(
AlarmInstance
alarmInstance
) {
322
final Calendar nextAlarmTime =
alarmInstance
.getAlarmTime();
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
AlarmItemViewHolder.java
30
import com.android.deskclock.provider.
AlarmInstance
;
68
final
AlarmInstance
alarmInstance
= getItemHolder().getAlarmInstance();
69
if (
alarmInstance
!= null) {
70
getItemHolder().getAlarmTimeClickHandler().dismissAlarmInstance(
alarmInstance
);
104
AlarmInstance
alarmInstance
) {
105
final boolean canBind = alarm.canPreemptivelyDismiss() &&
alarmInstance
!= null;
108
final String dismissText = alarm.instanceState ==
AlarmInstance
.SNOOZE_STATE
110
AlarmUtils.getAlarmText(context,
alarmInstance
, false)
[
all
...]
AlarmItemHolder.java
24
import com.android.deskclock.provider.
AlarmInstance
;
29
private final
AlarmInstance
mAlarmInstance;
33
public AlarmItemHolder(Alarm alarm,
AlarmInstance
alarmInstance
,
36
mAlarmInstance =
alarmInstance
;
50
public
AlarmInstance
getAlarmInstance() {
CollapsedAlarmViewHolder.java
38
import com.android.deskclock.provider.
AlarmInstance
;
102
final
AlarmInstance
alarmInstance
= itemHolder.getAlarmInstance();
107
bindPreemptiveDismissButton(context, alarm,
alarmInstance
);
ExpandedAlarmViewHolder.java
49
import com.android.deskclock.provider.
AlarmInstance
;
196
final
AlarmInstance
alarmInstance
= itemHolder.getAlarmInstance();
202
bindPreemptiveDismissButton(context, alarm,
alarmInstance
);
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmTimeClickHandler.java
34
import com.android.deskclock.provider.
AlarmInstance
;
164
public void dismissAlarmInstance(
AlarmInstance
alarmInstance
) {
166
mContext, AlarmStateManager.ALARM_DISMISS_TAG,
alarmInstance
,
167
AlarmInstance
.PREDISMISSED_STATE);
169
mAlarmUpdateHandler.showPredismissToast(
alarmInstance
);
Completed in 86 milliseconds