Lines Matching refs:url

324      * @param url A Uri identifying content (either a list or specific type),
328 public final @Nullable String getType(@NonNull Uri url) {
329 Preconditions.checkNotNull(url, "url");
332 IContentProvider provider = acquireExistingProvider(url);
335 return provider.getType(url);
339 Log.w(TAG, "Failed to get type for: " + url + " (" + e.getMessage() + ")");
346 if (!SCHEME_CONTENT.equals(url.getScheme())) {
352 ContentProvider.getUriWithoutUserId(url), resolveUserId(url));
359 Log.w(TAG, "Failed to get type for: " + url + " (" + e.getMessage() + ")");
372 * @param url A Uri identifying content (either a list or specific type),
381 public @Nullable String[] getStreamTypes(@NonNull Uri url, @NonNull String mimeTypeFilter) {
382 Preconditions.checkNotNull(url, "url");
385 IContentProvider provider = acquireProvider(url);
391 return provider.getStreamTypes(url, mimeTypeFilter);
541 * Transform the given <var>url</var> to a canonical representation of
559 * @param url The {@link Uri} that is to be transformed to a canonical
563 * @return Returns the official canonical representation of <var>url</var>,
570 public final @Nullable Uri canonicalize(@NonNull Uri url) {
571 Preconditions.checkNotNull(url, "url");
572 IContentProvider provider = acquireProvider(url);
578 return provider.canonicalize(mPackageName, url);
596 * @param url The canonical {@link Uri} that is to be convered back to its
599 * @return Returns the non-canonical representation of <var>url</var>. This will
606 public final @Nullable Uri uncanonicalize(@NonNull Uri url) {
607 Preconditions.checkNotNull(url, "url");
608 IContentProvider provider = acquireProvider(url);
614 return provider.uncanonicalize(mPackageName, url);
1218 * @param url The URL of the table to insert into.
1223 public final @Nullable Uri insert(@NonNull Uri url, @Nullable ContentValues values) {
1224 Preconditions.checkNotNull(url, "url");
1225 IContentProvider provider = acquireProvider(url);
1227 throw new IllegalArgumentException("Unknown URL " + url);
1231 Uri createdRow = provider.insert(mPackageName, url, values);
1233 maybeLogUpdateToEventLog(durationMillis, url, "insert", null /* where */);
1281 * @param url The URL of the table to insert into.
1286 public final int bulkInsert(@NonNull Uri url, @NonNull ContentValues[] values) {
1287 Preconditions.checkNotNull(url, "url");
1289 IContentProvider provider = acquireProvider(url);
1291 throw new IllegalArgumentException("Unknown URL " + url);
1295 int rowsCreated = provider.bulkInsert(mPackageName, url, values);
1297 maybeLogUpdateToEventLog(durationMillis, url, "bulkinsert", null /* where */);
1313 * @param url The URL of the row to delete.
1318 public final int delete(@NonNull Uri url, @Nullable String where,
1320 Preconditions.checkNotNull(url, "url");
1321 IContentProvider provider = acquireProvider(url);
1323 throw new IllegalArgumentException("Unknown URL " + url);
1327 int rowsDeleted = provider.delete(mPackageName, url, where, selectionArgs);
1329 maybeLogUpdateToEventLog(durationMillis, url, "delete", where);