Lines Matching refs:uri
104 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
108 switch (sUriMatcher.match(uri)) {
117 qb.appendWhere("_id" + "=" + uri.getPathSegments().get(1));
121 throw new IllegalArgumentException("Unknown URI " + uri);
136 // Tell the cursor what uri to watch, so it knows when its source data changes
137 c.setNotificationUri(getContext().getContentResolver(), uri);
142 public String getType(Uri uri) {
143 switch (sUriMatcher.match(uri)) {
151 throw new IllegalArgumentException("Unknown URI " + uri);
156 public Uri insert(Uri uri, ContentValues initialValues) {
157 // Validate the requested uri
158 if (sUriMatcher.match(uri) != WORDS) {
159 throw new IllegalArgumentException("Unknown URI " + uri);
192 throw new SQLException("Failed to insert row into " + uri);
196 public int delete(Uri uri, String where, String[] whereArgs) {
199 switch (sUriMatcher.match(uri)) {
205 String wordId = uri.getPathSegments().get(1);
211 throw new IllegalArgumentException("Unknown URI " + uri);
214 getContext().getContentResolver().notifyChange(uri, null);
220 public int update(Uri uri, ContentValues values, String where, String[] whereArgs) {
223 switch (sUriMatcher.match(uri)) {
229 String wordId = uri.getPathSegments().get(1);
235 throw new IllegalArgumentException("Unknown URI " + uri);
238 getContext().getContentResolver().notifyChange(uri, null);