Lines Matching full:uri
46 import android.net.Uri;
76 * {@link Uri} triggered at any registered {@link android.database.ContentObserver} when
80 static final Uri CONTENT_APPWIDGET_RESET_URI =
81 Uri.parse("content://" + AUTHORITY + "/appWidgetReset");
92 public String getType(Uri uri) {
93 SqlArguments args = new SqlArguments(uri, null, null);
102 public Cursor query(Uri uri, String[] projection, String selection,
105 SqlArguments args = new SqlArguments(uri, selection, selectionArgs);
111 result.setNotificationUri(getContext().getContentResolver(), uri);
117 public Uri insert(Uri uri, ContentValues initialValues) {
118 SqlArguments args = new SqlArguments(uri);
124 uri = ContentUris.withAppendedId(uri, rowId);
125 sendNotify(uri);
127 return uri;
131 public int bulkInsert(Uri uri, ContentValues[] values) {
132 SqlArguments args = new SqlArguments(uri);
146 sendNotify(uri);
151 public int delete(Uri uri, String selection, String[] selectionArgs) {
152 SqlArguments args = new SqlArguments(uri, selection, selectionArgs);
156 if (count > 0) sendNotify(uri);
162 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
163 SqlArguments args = new SqlArguments(uri, selection, selectionArgs);
167 if (count > 0) sendNotify(uri);
172 private void sendNotify(Uri uri) {
173 String notify = uri.getQueryParameter(PARAMETER_NOTIFY);
175 getContext().getContentResolver().notifyChange(uri, null);
228 "uri TEXT," +
248 final Uri uri = Uri.parse("content://" + Settings.AUTHORITY +
254 cursor = resolver.query(uri, null, null, null, null);
268 resolver.delete(uri, null, null);
294 final int uriIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.URI);
314 values.put(LauncherSettings.Favorites.URI, c.getString(uriIndex));
441 final Uri uri = intent.getData();
442 final String data = uri.toString();
452 intent.setData(uri);
827 String uri = null;
829 uri = a.getString(R.styleable.Favorite_uri);
830 intent = Intent.parseUri(uri, 0);
832 Log.w(TAG, "Shortcut has malformed uri: " + uri);
877 SqlArguments(Uri url, String where, String[] args) {
883 throw new IllegalArgumentException("Invalid URI: " + url);
893 SqlArguments(Uri url) {
899 throw new IllegalArgumentException("Invalid URI: " + url);