{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TestArgsContentProvider

public final class TestArgsContentProvider


Provides access to test arguments stored as a file on external device storage. This provider supports only the query api. Use PropertyFile#buildUri(Authority) to retrieve all test arguments. To retrieve a specific argument, build the URI with the arg name as path by calling PropertyFile#buildUri(Authority, String).

Summary

Public constructors

Public methods

int
delete(Uri arg0, String arg1, String[] arg2)
String
getType(Uri arg0)
Uri
insert(Uri arg0, ContentValues arg1)
boolean
Cursor
query(
    Uri uri,
    String[] projection,
    String selection,
    String[] selectionArgs,
    String sortOrder
)
int
update(Uri arg0, ContentValues arg1, String arg2, String[] arg3)

Public constructors

TestArgsContentProvider

public TestArgsContentProvider()

Public methods

delete

public int delete(Uri arg0, String arg1, String[] arg2)

getType

public String getType(Uri arg0)

insert

public Uri insert(Uri arg0, ContentValues arg1)

onCreate

public boolean onCreate()

query

public Cursor query(
    Uri uri,
    String[] projection,
    String selection,
    String[] selectionArgs,
    String sortOrder
)

update

public int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3)