Home
last modified time | relevance | path

Searched refs:instanceId (Results 1 – 4 of 4) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.java115 public static Intent createIntent(String action, long instanceId) { in createIntent() argument
116 return new Intent(action).setData(getContentUri(instanceId)); in createIntent()
119 public static Intent createIntent(Context context, Class<?> cls, long instanceId) { in createIntent() argument
120 return new Intent(context, cls).setData(getContentUri(instanceId)); in createIntent()
130 public static Uri getContentUri(long instanceId) { in getContentUri() argument
131 return ContentUris.withAppendedId(CONTENT_URI, instanceId); in getContentUri()
141 public static AlarmInstance getInstance(ContentResolver cr, long instanceId) { in getInstance() argument
142 try (Cursor cursor = cr.query(getContentUri(instanceId), QUERY_COLUMNS, null, null, null)) { in getInstance()
159 final long instanceId = ContentUris.parseId(contentUri); in getInstance() local
160 return getInstance(cr, instanceId); in getInstance()
[all …]
DAlarm.java288 public int instanceId;
318 instanceId = c.getInt(INSTANCE_ID_INDEX);
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmService.java129 final long instanceId = mCurrentAlarm.mId; in stopCurrentAlarm() local
130 LogUtils.v("AlarmService.stop with instance: %s", instanceId); in stopCurrentAlarm()
193 final long instanceId = AlarmInstance.getId(intent.getData()); in onStartCommand() local
202 final AlarmInstance instance = AlarmInstance.getInstance(cr, instanceId); in onStartCommand()
204 LogUtils.e("No instance found to start alarm: %d", instanceId); in onStartCommand()
212 if (mCurrentAlarm != null && mCurrentAlarm.mId == instanceId) { in onStartCommand()
213 LogUtils.e("Alarm already started for instance: %d", instanceId); in onStartCommand()
220 if (mCurrentAlarm != null && mCurrentAlarm.mId != instanceId) { in onStartCommand()
222 instanceId, mCurrentAlarm.mId); in onStartCommand()
DAlarmActivity.java160 final long instanceId = AlarmInstance.getId(getIntent().getData()); in onCreate() local
161 mAlarmInstance = AlarmInstance.getInstance(getContentResolver(), instanceId); in onCreate()
241 final long instanceId = AlarmInstance.getId(getIntent().getData()); in onResume() local
242 mAlarmInstance = AlarmInstance.getInstance(getContentResolver(), instanceId); in onResume()
245 LOGGER.i("No alarm instance for instanceId: %d", instanceId); in onResume()