Lines Matching refs:url
95 public Cursor query(Uri url, String[] projectionIn, String selection,
100 int match = sURLMatcher.match(url);
108 qb.appendWhere(url.getPathSegments().get(1));
111 throw new IllegalArgumentException("Unknown URL " + url);
121 ret.setNotificationUri(getContext().getContentResolver(), url);
128 public String getType(Uri url) {
129 int match = sURLMatcher.match(url);
136 throw new IllegalArgumentException("Unknown URL");
141 public int update(Uri url, ContentValues values, String where, String[] whereArgs) {
144 int match = sURLMatcher.match(url);
148 String segment = url.getPathSegments().get(1);
155 "Cannot update URL: " + url);
158 if (Log.LOGV) Log.v("*** notifyChange() rowId: " + rowId + " url " + url);
159 getContext().getContentResolver().notifyChange(url, null);
164 public Uri insert(Uri url, ContentValues initialValues) {
165 if (sURLMatcher.match(url) != ALARMS) {
166 throw new IllegalArgumentException("Cannot insert into URL: " + url);
174 throw new SQLException("Failed to insert row into " + url);
183 public int delete(Uri url, String where, String[] whereArgs) {
187 switch (sURLMatcher.match(url)) {
192 String segment = url.getPathSegments().get(1);
202 throw new IllegalArgumentException("Cannot delete from URL: " + url);
205 getContext().getContentResolver().notifyChange(url, null);