public final class

TestArgsContentProvider

extends ContentProvider
java.lang.Object
   ↳ android.content.ContentProvider
     ↳ androidx.test.services.storage.provider.TestArgsContentProvider

Class Overview

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

[Expand]
Inherited Constants
From interface android.content.ComponentCallbacks2
Public Constructors
TestArgsContentProvider()
Public Methods
int delete(Uri arg0, String arg1, String[] arg2)
String getType(Uri arg0)
Uri insert(Uri arg0, ContentValues arg1)
boolean onCreate()
Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3)
[Expand]
Inherited Methods
From class android.content.ContentProvider
From class java.lang.Object
From interface android.content.ComponentCallbacks2
From interface android.content.ComponentCallbacks

Public Constructors

public TestArgsContentProvider ()

Public Methods

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

Parameters
arg0 Uri
arg1 String
arg2 String
Returns
int

public String getType (Uri arg0)

Parameters
arg0 Uri
Returns
String

public Uri insert (Uri arg0, ContentValues arg1)

Parameters
arg0 Uri
arg1 ContentValues
Returns
Uri

public boolean onCreate ()

Returns
boolean

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

Parameters
uri Uri
projection String
selection String
selectionArgs String
sortOrder String
Returns
Cursor

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

Parameters
arg0 Uri
arg1 ContentValues
arg2 String
arg3 String
Returns
int