Lines Matching defs:uri

148     public Cursor query(@NonNull Uri uri, String[] projectionIn, String selection,
154 int match = sURIMatcher.match(uri);
162 qb.appendWhere(uri.getLastPathSegment());
170 qb.appendWhere(uri.getLastPathSegment());
178 throw new IllegalArgumentException("Unknown URI " + uri);
186 ret.setNotificationUri(getContext().getContentResolver(), uri);
193 public String getType(@NonNull Uri uri) {
194 int match = sURIMatcher.match(uri);
210 public int update(@NonNull Uri uri, ContentValues values, String where, String[] whereArgs) {
214 switch (sURIMatcher.match(uri)) {
216 alarmId = uri.getLastPathSegment();
222 alarmId = uri.getLastPathSegment();
228 throw new UnsupportedOperationException("Cannot update URI: " + uri);
231 LogUtils.v("*** notifyChange() id: " + alarmId + " url " + uri);
232 notifyChange(getContext().getContentResolver(), uri);
237 public Uri insert(@NonNull Uri uri, ContentValues initialValues) {
240 switch (sURIMatcher.match(uri)) {
248 throw new IllegalArgumentException("Cannot insert from URI: " + uri);
251 Uri uriResult = ContentUris.withAppendedId(uri, rowId);
257 public int delete(@NonNull Uri uri, String where, String[] whereArgs) {
261 switch (sURIMatcher.match(uri)) {
266 primaryKey = uri.getLastPathSegment();
278 primaryKey = uri.getLastPathSegment();
287 throw new IllegalArgumentException("Cannot delete from URI: " + uri);
290 notifyChange(getContext().getContentResolver(), uri);
297 private void notifyChange(ContentResolver resolver, Uri uri) {
298 resolver.notifyChange(uri, null);
300 final int match = sURIMatcher.match(uri);