OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:alarmId
(Results
1 - 8
of
8
) sorted by null
/packages/apps/DeskClock/src/com/android/deskclock/
AlarmListeners.java
26
private int
alarmId
;
28
public DigitalClockClickListener(int
alarmId
) {
29
this.
alarmId
=
alarmId
;
AlarmClockFragment.java
462
long
alarmId
= intent.getLongExtra(SCROLL_TO_ALARM_INTENT_EXTRA, Alarm.INVALID_ID);
463
if (
alarmId
!= Alarm.INVALID_ID) {
464
mScrollToAlarmId =
alarmId
;
603
* @param
alarmId
The alarm id to scroll to.
605
private void scrollToAlarm(long
alarmId
) {
609
if (id ==
alarmId
) {
616
mAdapter.setNewAlarm(
alarmId
);
[
all
...]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
Alarm.java
102
public static Intent createIntent(String action, long
alarmId
) {
103
return new Intent(action).setData(getUri(
alarmId
));
106
public static Intent createIntent(Context context, Class<?> cls, long
alarmId
) {
107
return new Intent(context, cls).setData(getUri(
alarmId
));
110
public static Uri getUri(long
alarmId
) {
111
return ContentUris.withAppendedId(CONTENT_URI,
alarmId
);
133
* @param
alarmId
for the desired alarm.
136
public static Alarm getAlarm(ContentResolver contentResolver, long
alarmId
) {
137
Cursor cursor = contentResolver.query(getUri(
alarmId
), QUERY_COLUMNS, null, null, null);
202
public static boolean deleteAlarm(ContentResolver contentResolver, long
alarmId
) {
[
all
...]
ClockProvider.java
133
String
alarmId
;
137
alarmId
= uri.getLastPathSegment();
139
ClockContract.AlarmsColumns._ID + "=" +
alarmId
,
143
alarmId
= uri.getLastPathSegment();
145
ClockContract.InstancesColumns._ID + "=" +
alarmId
,
149
alarmId
= uri.getLastPathSegment();
151
ClockContract.CitiesColumns.CITY_ID + "=" +
alarmId
,
159
if (Log.LOGV) Log.v("*** notifyChange() id: " +
alarmId
+ " url " + uri);
AlarmInstance.java
163
* Get an alarm instances by
alarmId
.
166
* @param
alarmId
of instances desired.
167
* @return list of alarms instances that are owned by
alarmId
.
170
long
alarmId
) {
171
return getInstances(contentResolver, ALARM_ID + "=" +
alarmId
);
257
public AlarmInstance(Calendar calendar, Long
alarmId
) {
259
mAlarmId =
alarmId
;
/packages/apps/Calendar/src/com/android/calendar/alerts/
GlobalDismissManager.java
159
public static class
AlarmId
{
163
public
AlarmId
(long id, long start) {
345
public static void dismissGlobally(Context context, List<
AlarmId
> alarmIds) {
347
for (
AlarmId
alarmId
: alarmIds) {
348
eventIds.add(
alarmId
.mEventId);
369
for (
AlarmId
alarmId
: alarmIds) {
370
Long calendar = eventsToCalendars.get(
alarmId
.mEventId);
374
alarmId
.mEventId, alarmId.mStart)
[
all
...]
AlertActivity.java
44
import com.android.calendar.alerts.GlobalDismissManager.
AlarmId
;
116
List<
AlarmId
> alarmIds = new LinkedList<
AlarmId
>();
120
alarmIds.add(new
AlarmId
(eventId, eventStart));
132
List<
AlarmId
> alarmIds = new LinkedList<
AlarmId
>();
133
alarmIds.add(new
AlarmId
(eventId, startTime));
138
private void initiateGlobalDismiss(List<
AlarmId
> alarmIds) {
139
new AsyncTask<List<
AlarmId
>, Void, Void>() {
141
protected Void doInBackground(List<
AlarmId
>... params)
[
all
...]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmStateManager.java
592
* This will delete and unregister all instances associated with
alarmId
, without affect
596
* @param
alarmId
to find instances to delete.
598
public static void deleteAllInstances(Context context, long
alarmId
) {
600
List<AlarmInstance> instances = AlarmInstance.getInstancesByAlarmId(cr,
alarmId
);
708
long
alarmId
= instance.mAlarmId == null ? Alarm.INVALID_ID : instance.mAlarmId;
709
Intent viewAlarmIntent = Alarm.createIntent(context, DeskClock.class,
alarmId
);
711
viewAlarmIntent.putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA,
alarmId
);
Completed in 61 milliseconds