Skip to content

Commit

Permalink
Updated Javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankiitbhu committed Feb 28, 2024
1 parent 4f518b5 commit 748c570
Showing 1 changed file with 40 additions and 10 deletions.
Expand Up @@ -794,16 +794,20 @@ public static Status getStatus(Account account, String authority, boolean create

/**
* @deprecated This method affects all calls, and does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}
* android.content.ContentResolver#acquireContentProviderClient}. Instead, use
* {@link org.robolectric.Robolectric#setupContentProvider(Class, String)} to
* install a test-specific ContentProvider that can return any Cursor.
*/
@Deprecated
public void setCursor(BaseCursor cursor) {
this.cursor = cursor;
}

/**
* @deprecated This method does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}
* @deprecated This method affects all calls, and does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}. Instead, use
* {@link org.robolectric.Robolectric#setupContentProvider(Class, String)} to
* install a test-specific ContentProvider that can return any Cursor.
*/
@Deprecated
public void setCursor(Uri uri, BaseCursor cursorForUri) {
Expand All @@ -812,7 +816,9 @@ public void setCursor(Uri uri, BaseCursor cursorForUri) {

/**
* @deprecated This method affects all calls, and does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}
* android.content.ContentResolver#acquireContentProviderClient}. Instead, use
* {@link org.robolectric.Robolectric#setupContentProvider(Class, String)} to
* install a test-specific ContentProvider that can return any Cursor.
*/
@Deprecated
@SuppressWarnings({"unused", "WeakerAccess"})
Expand All @@ -825,8 +831,10 @@ public void setNextDatabaseIdForInserts(int nextId) {
* DeleteStatement}s invoked on this {@link ContentResolver}.
*
* @return a list of statements
* @deprecated This method does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}
* @deprecated This method affects all calls, and does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}. Instead, use
* {@link org.robolectric.Robolectric#setupContentProvider(Class, String)} to
* install a test-specific ContentProvider that has logic to keep a record of statements.
*/
@Deprecated
@SuppressWarnings({"unused", "WeakerAccess"})
Expand All @@ -840,8 +848,10 @@ public List<Statement> getStatements() {
* ContentValues[])}.
*
* @return a list of insert statements
* @deprecated This method does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}
* @deprecated This method affects all calls, and does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}. Instead, use
* {@link org.robolectric.Robolectric#setupContentProvider(Class, String)} to
* install a test-specific ContentProvider that can record insert statements.
*/
@Deprecated
@SuppressWarnings({"unused", "WeakerAccess"})
Expand All @@ -854,8 +864,10 @@ public List<InsertStatement> getInsertStatements() {
* ContentResolver#update(Uri, ContentValues, String, String[])}.
*
* @return a list of update statements
* @deprecated This method does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}
* @deprecated This method affects all calls, and does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}. Instead, use
* {@link org.robolectric.Robolectric#setupContentProvider(Class, String)} to
* install a test-specific ContentProvider that can record update statements.
*/
@Deprecated
@SuppressWarnings({"unused", "WeakerAccess"})
Expand Down Expand Up @@ -885,12 +897,30 @@ public List<DeleteStatement> getDeleteStatements() {
return deleteStatements;
}


/**
* Returns the list of {@link NotifiedUri}s for corresponding calls to {@link
* ContentResolver#notifyChange(Uri, ContentObserver)}.
*
* @return a list of notified URIs
* @deprecated This method affects all calls, and does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}.
*/
@Deprecated
@SuppressWarnings({"unused", "WeakerAccess"})
public List<NotifiedUri> getNotifiedUris() {
return notifiedUris;
}


/**
* Returns the list of {@link ContentProviderOperation}s for corresponding calls to {@link
* ContentResolver#applyBatch(String, ArrayList)}.
*
* @return a list of content provider operations
* @deprecated This method affects all calls, and does not work with {@link
* android.content.ContentResolver#acquireContentProviderClient}.
*/
@Deprecated
public List<ContentProviderOperation> getContentProviderOperations(String authority) {
List<ContentProviderOperation> operations = contentProviderOperations.get(authority);
Expand Down

0 comments on commit 748c570

Please sign in to comment.