Searched refs:instanceId (Results 1 – 8 of 8) sorted by relevance
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | AlarmInstance.java | 115 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 …]
|
D | AlarmInstance.kt | 320 fun createIntent(action: String?, instanceId: Long): Intent { in createIntent() 321 return Intent(action).setData(getContentUri(instanceId)) in createIntent() 325 fun createIntent(context: Context?, cls: Class<*>?, instanceId: Long): Intent { in createIntent() 326 return Intent(context, cls).setData(getContentUri(instanceId)) in createIntent() 337 fun getContentUri(instanceId: Long): Uri { in getContentUri() 338 return ContentUris.withAppendedId(InstancesColumns.CONTENT_URI, instanceId) in getContentUri() 349 fun getInstance(cr: ContentResolver, instanceId: Long): AlarmInstance? { in getInstance() 351 cr.query(getContentUri(instanceId), QUERY_COLUMNS, null, null, null) in getInstance() 368 val instanceId: Long = ContentUris.parseId(contentUri) in getInstance() constant 369 return getInstance(cr, instanceId) in getInstance() [all …]
|
D | Alarm.kt | 76 var instanceId = 0 variable in com.android.deskclock.provider.Alarm 103 instanceId = c.getInt(INSTANCE_ID_INDEX)
|
D | Alarm.java | 288 public int instanceId; 318 instanceId = c.getInt(INSTANCE_ID_INDEX);
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmService.java | 129 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()
|
D | AlarmService.kt | 92 val instanceId = mCurrentAlarm!!.mId in stopCurrentAlarm() constant 93 LogUtils.v("AlarmService.stop with instance: %s", instanceId) in stopCurrentAlarm() 154 val instanceId = AlarmInstance.getId(intent.getData()!!) in onStartCommand() constant 163 val instance: AlarmInstance? = AlarmInstance.getInstance(cr, instanceId) in onStartCommand() 165 LogUtils.e("No instance found to start alarm: %d", instanceId) in onStartCommand() 170 } else if (mCurrentAlarm != null && mCurrentAlarm!!.mId == instanceId) { in onStartCommand() 171 LogUtils.e("Alarm already started for instance: %d", instanceId) in onStartCommand() 178 if (mCurrentAlarm != null && mCurrentAlarm!!.mId != instanceId) { in onStartCommand() 180 instanceId, mCurrentAlarm!!.mId) in onStartCommand()
|
D | AlarmActivity.kt | 133 val instanceId = AlarmInstance.getId(getIntent().getData()!!) in onCreate() constant 134 mAlarmInstance = AlarmInstance.getInstance(getContentResolver(), instanceId) in onCreate() 214 val instanceId = AlarmInstance.getId(getIntent().getData()!!) in onResume() constant 215 mAlarmInstance = AlarmInstance.getInstance(getContentResolver(), instanceId) in onResume() 218 LOGGER.i("No alarm instance for instanceId: %d", instanceId) in onResume()
|
D | AlarmActivity.java | 160 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()
|