Skip to content

Commit 17876aa

Browse files
committed
Minor changes to ContentProvider javadoc to improve consistency.
Change-Id: I710f618c94ffd5d6368ef04a39ac08f675bec11b
1 parent 86c035f commit 17876aa

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

core/java/android/content/ContentProvider.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public final PathPermission[] getPathPermissions() {
438438
* turns out not to be needed, and stops database errors (such as a full
439439
* disk) from halting application launch.
440440
*
441-
* <p>For SQL databases, {@link android.database.sqlite.SQLiteOpenHelper}
441+
* <p>If you use SQLite, {@link android.database.sqlite.SQLiteOpenHelper}
442442
* is a helpful utility class that makes it easy to manage databases,
443443
* and will automatically defer opening until first use. If you do use
444444
* SQLiteOpenHelper, make sure to avoid calling
@@ -606,7 +606,7 @@ public int bulkInsert(Uri uri, ContentValues[] values) {
606606
public abstract int delete(Uri uri, String selection, String[] selectionArgs);
607607

608608
/**
609-
* Implement this to update one or more rows.
609+
* Implement this to handle requests to update one or more rows.
610610
* The implementation should update all rows matching the selection
611611
* to set the columns according to the provided values map.
612612
* As a courtesy, call {@link ContentResolver#notifyChange(android.net.Uri ,android.database.ContentObserver) notifyChange()}
@@ -626,14 +626,14 @@ public abstract int update(Uri uri, ContentValues values, String selection,
626626
String[] selectionArgs);
627627

628628
/**
629-
* Override this to open a file blob associated with a content URI.
629+
* Override this to handle requests to open a file blob.
630630
* The default implementation always throws {@link FileNotFoundException}.
631631
* This method can be called from multiple threads, as described in
632632
* <a href="{@docRoot}guide/topics/fundamentals.html#procthread">Application Fundamentals:
633633
* Processes and Threads</a>.
634634
*
635-
* <p>Returns a ParcelFileDescriptor, which is returned directly to the
636-
* caller. This way large data (such as images and documents) can be
635+
* <p>This method returns a ParcelFileDescriptor, which is returned directly
636+
* to the caller. This way large data (such as images and documents) can be
637637
* returned without copying the content.
638638
*
639639
* <p>The returned ParcelFileDescriptor is owned by the caller, so it is
@@ -671,7 +671,7 @@ public ParcelFileDescriptor openFile(Uri uri, String mode)
671671
* Processes and Threads</a>.
672672
*
673673
* <p>If you implement this, your clients must be able to deal with such
674-
* files, either directly with
674+
* file slices, either directly with
675675
* {@link ContentResolver#openAssetFileDescriptor}, or by using the higher-level
676676
* {@link ContentResolver#openInputStream ContentResolver.openInputStream}
677677
* or {@link ContentResolver#openOutputStream ContentResolver.openOutputStream}
@@ -792,11 +792,12 @@ public void attachInfo(Context context, ProviderInfo info) {
792792
}
793793

794794
/**
795-
* Override this to perform a batch of operations, or the default
796-
* implementation will {@link ContentProviderOperation#apply} each of the
797-
* {@link ContentProviderOperation} objects. If the apply calls all succeed
798-
* then a {@link ContentProviderResult} array with the same number of
799-
* elements as the operations will be returned. If any of the apply calls
795+
* Override this to handle requests to perform a batch of operations, or the
796+
* default implementation will iterate over the operations and call
797+
* {@link ContentProviderOperation#apply} on each of them.
798+
* If all calls to {@link ContentProviderOperation#apply} succeed
799+
* then a {@link ContentProviderResult} array with as many
800+
* elements as there were operations will be returned. If any of the calls
800801
* fail, it is up to the implementation how many of the others take effect.
801802
* This method can be called from multiple threads, as described in
802803
* <a href="{@docRoot}guide/topics/fundamentals.html#procthread">Application Fundamentals:

0 commit comments

Comments
 (0)