OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:alarminstance
(Results
1 - 19
of
19
) sorted by null
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmUpdateHandler.java
31
import com.android.deskclock.provider.
AlarmInstance
;
62
final AsyncTask<Void, Void,
AlarmInstance
> updateTask =
63
new AsyncTask<Void, Void,
AlarmInstance
>() {
65
protected
AlarmInstance
doInBackground(Void... parameters) {
85
protected void onPostExecute(
AlarmInstance
instance) {
104
final AsyncTask<Void, Void,
AlarmInstance
> updateTask =
105
new AsyncTask<Void, Void,
AlarmInstance
>() {
107
protected
AlarmInstance
doInBackground(Void... parameters) {
116
final List<
AlarmInstance
> instanceList =
117
AlarmInstance
.getInstancesByAlarmId(cr, alarm.id)
[
all
...]
AlarmStateManager.java
46
import com.android.deskclock.provider.
AlarmInstance
;
69
* {@link
AlarmInstance
#LOW_NOTIFICATION_HOUR_OFFSET}. This
95
* {@link
AlarmInstance
#MISSED_TIME_TO_LIVE_HOUR_OFFSET} or until the user acknownledges it.
178
final
AlarmInstance
nextAlarm = getNextFiringAlarm(context);
192
public static
AlarmInstance
getNextFiringAlarm(Context context) {
194
final String activeAlarmQuery =
AlarmInstance
.ALARM_STATE + "<" +
AlarmInstance
.FIRED_STATE;
195
final List<
AlarmInstance
> alarmInstances =
AlarmInstance
.getInstances(cr, activeAlarmQuery);
197
AlarmInstance
nextAlarm = null
[
all
...]
AlarmNotifications.java
32
import com.android.deskclock.provider.
AlarmInstance
;
37
public static void showLowPriorityNotification(Context context,
AlarmInstance
instance) {
55
AlarmInstance
.HIDE_NOTIFICATION_STATE);
61
AlarmStateManager.ALARM_DISMISS_TAG, instance,
AlarmInstance
.PREDISMISSED_STATE);
76
public static void showHighPriorityNotification(Context context,
AlarmInstance
instance) {
95
AlarmStateManager.ALARM_DISMISS_TAG, instance,
AlarmInstance
.PREDISMISSED_STATE);
110
public static void showSnoozeNotification(Context context,
AlarmInstance
instance) {
127
AlarmStateManager.ALARM_DISMISS_TAG, instance,
AlarmInstance
.DISMISSED_STATE);
142
public static void showMissedNotification(Context context,
AlarmInstance
instance) {
161
AlarmStateManager.ALARM_DISMISS_TAG, instance,
AlarmInstance
.DISMISSED_STATE)
[
all
...]
AlarmService.java
33
import com.android.deskclock.provider.
AlarmInstance
;
93
public static void stopAlarm(Context context,
AlarmInstance
instance) {
94
final Intent intent =
AlarmInstance
.createIntent(context, AlarmService.class, instance.mId)
103
private
AlarmInstance
mCurrentAlarm = null;
114
"AlarmService", mCurrentAlarm,
AlarmInstance
.MISSED_STATE));
119
private void startAlarm(
AlarmInstance
instance) {
151
// same
AlarmInstance
(e.g. after snoozing). We workaround the issue by forcing removal of
154
mCurrentAlarm =
AlarmInstance
.getInstance(getContentResolver(), instanceId);
168
if (mCurrentAlarm == null || mCurrentAlarm.mAlarmState !=
AlarmInstance
.FIRED_STATE) {
211
final long instanceId =
AlarmInstance
.getId(intent.getData())
[
all
...]
AlarmKlaxon.java
28
import com.android.deskclock.provider.
AlarmInstance
;
51
public static void start(Context context,
AlarmInstance
instance) {
56
if (!
AlarmInstance
.NO_RINGTONE_URI.equals(instance.mRingtone)) {
AlarmTimeClickHandler.java
34
import com.android.deskclock.provider.
AlarmInstance
;
155
public void dismissAlarmInstance(
AlarmInstance
alarmInstance
) {
158
context, AlarmStateManager.ALARM_DISMISS_TAG,
alarmInstance
,
159
AlarmInstance
.PREDISMISSED_STATE);
161
mAlarmUpdateHandler.showPredismissToast(
alarmInstance
);
AlarmActivity.java
58
import com.android.deskclock.provider.
AlarmInstance
;
121
private
AlarmInstance
mAlarmInstance;
150
final long instanceId =
AlarmInstance
.getId(getIntent().getData());
151
mAlarmInstance =
AlarmInstance
.getInstance(getContentResolver(), instanceId);
157
} else if (mAlarmInstance.mAlarmState !=
AlarmInstance
.FIRED_STATE) {
237
// Re-query for
AlarmInstance
in case the state has changed externally
238
final long instanceId =
AlarmInstance
.getId(getIntent().getData());
239
mAlarmInstance =
AlarmInstance
.getInstance(getContentResolver(), instanceId);
248
if (mAlarmInstance.mAlarmState !=
AlarmInstance
.FIRED_STATE) {
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
AlarmTimeViewHolder.java
30
import com.android.deskclock.provider.
AlarmInstance
;
48
protected
AlarmInstance
mAlarmInstance;
75
public void setData(Alarm alarm,
AlarmInstance
alarmInstance
) {
76
mAlarmInstance =
alarmInstance
;
88
public abstract void bindAlarm(Context context, Alarm alarm,
AlarmInstance
alarmInstance
);
103
AlarmInstance
alarmInstance
) {
104
boolean canBind = alarm.canPreemptivelyDismiss() &&
alarmInstance
!= null
[
all
...]
CollapsedAlarmViewHolder.java
28
import com.android.deskclock.provider.
AlarmInstance
;
81
public void bindAlarm(Context context, Alarm alarm,
AlarmInstance
alarmInstance
) {
82
setData(alarm,
alarmInstance
);
89
bindPreemptiveDismissButton(context, alarm,
alarmInstance
);
AlarmTimeAdapter.java
33
import com.android.deskclock.provider.
AlarmInstance
;
93
final
AlarmInstance
alarmInstance
= alarm.canPreemptivelyDismiss()
94
? new
AlarmInstance
(mCursor, true /* joinedTable */) : null;
95
viewHolder.bindAlarm(mContext, alarm,
alarmInstance
);
ExpandedAlarmViewHolder.java
38
import com.android.deskclock.provider.
AlarmInstance
;
175
public void bindAlarm(Context context, Alarm alarm,
AlarmInstance
alarmInstance
) {
176
setData(alarm,
alarmInstance
);
183
bindPreemptiveDismissButton(context, alarm,
alarmInstance
);
/packages/apps/DeskClock/src/com/android/deskclock/
HandleApiCalls.java
38
import com.android.deskclock.provider.
AlarmInstance
;
109
final
AlarmInstance
alarmInstance
=
AlarmInstance
.getNextUpcomingInstanceByAlarmId(
111
if (
alarmInstance
== null) {
119
alarmInstance
.getAlarmTime().getTime());
120
if (Utils.isAlarmWithin24Hours(
alarmInstance
)) {
121
AlarmStateManager.setPreDismissState(context,
alarmInstance
);
158
final
AlarmInstance
alarmInstance
= AlarmInstance.getNextUpcomingInstanceByAlarmId
[
all
...]
DeskClockBackupAgent.java
36
import com.android.deskclock.provider.
AlarmInstance
;
135
AlarmInstance
alarmInstance
= alarm.createInstanceAfter(now);
138
alarmInstance
=
AlarmInstance
.addInstance(contentResolver,
alarmInstance
);
141
AlarmStateManager.registerInstance(context,
alarmInstance
, true);
142
LogUtils.i(TAG, "DeskClockBackupAgent scheduled alarm instance: %s",
alarmInstance
);
FetchMatchingAlarmsAction.java
28
import com.android.deskclock.provider.
AlarmInstance
;
110
final
AlarmInstance
alarmInstance
=
111
AlarmInstance
.getNextUpcomingInstanceByAlarmId(cr, alarm.id);
112
if (
alarmInstance
!= null
113
&&
alarmInstance
.mAlarmState ==
AlarmInstance
.FIRED_STATE) {
122
final
AlarmInstance
nextAlarm = AlarmStateManager.getNextFiringAlarm(mContext);
AlarmUtils.java
27
import com.android.deskclock.provider.
AlarmInstance
;
45
public static String getAlarmText(Context context,
AlarmInstance
instance,
Utils.java
59
import com.android.deskclock.provider.
AlarmInstance
;
466
public static boolean isAlarmWithin24Hours(
AlarmInstance
alarmInstance
) {
467
final Calendar nextAlarmTime =
alarmInstance
.getAlarmTime();
/packages/apps/DeskClock/src/com/android/deskclock/provider/
AlarmInstance.java
39
public final class
AlarmInstance
implements ClockContract.InstancesColumns {
97
public static ContentValues createContentValues(
AlarmInstance
instance) {
145
public static
AlarmInstance
getInstance(ContentResolver cr, long instanceId) {
148
return new
AlarmInstance
(cursor, false /* joinedTable */);
162
public static List<
AlarmInstance
> getInstancesByAlarmId(ContentResolver contentResolver,
173
public static
AlarmInstance
getNextUpcomingInstanceByAlarmId(ContentResolver contentResolver,
175
final List<
AlarmInstance
> alarmInstances = getInstancesByAlarmId(contentResolver, alarmId);
179
AlarmInstance
nextAlarmInstance = alarmInstances.get(0);
180
for (
AlarmInstance
instance : alarmInstances) {
191
public static List<
AlarmInstance
> getInstancesByInstanceIdAndState
[
all
...]
Alarm.java
209
return alarm.instanceState !=
AlarmInstance
.SNOOZE_STATE
319
return instanceState ==
AlarmInstance
.SNOOZE_STATE
320
|| instanceState ==
AlarmInstance
.HIGH_NOTIFICATION_STATE
321
|| instanceState ==
AlarmInstance
.LOW_NOTIFICATION_STATE
322
|| instanceState ==
AlarmInstance
.HIDE_NOTIFICATION_STATE;
341
public
AlarmInstance
createInstanceAfter(Calendar time) {
343
AlarmInstance
result = new
AlarmInstance
(nextInstanceTime, id);
ClockDatabaseHelper.java
182
AlarmInstance
newInstance = alarm.createInstanceAfter(currentTime);
184
AlarmInstance
.createContentValues(newInstance));
Completed in 334 milliseconds