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

ExportTestPropertiesContentProvider

class ExportTestPropertiesContentProvider


Hosts the properties file that are exported to the testing infrastructure for tests.

Summary

Public constructors

Public functions

Int
delete(uri: Uri, selection: String, selectionArgs: Array<String>)
String
getType(uri: Uri)
Uri
insert(uri: Uri, contentValues: ContentValues)
Boolean
ParcelFileDescriptor
openFile(uri: Uri, mode: String)
Cursor
query(
    uri: Uri,
    projection: Array<String>,
    selection: String,
    selectionArgs: Array<String>,
    sortOrder: String
)
Unit
Int
update(
    uri: Uri,
    values: ContentValues,
    selection: String,
    selectionArgs: Array<String>
)

Public constructors

ExportTestPropertiesContentProvider

ExportTestPropertiesContentProvider()

Public functions

delete

fun delete(uri: Uri, selection: String, selectionArgs: Array<String>): Int

getType

fun getType(uri: Uri): String

insert

fun insert(uri: Uri, contentValues: ContentValues): Uri

onCreate

fun onCreate(): Boolean

openFile

fun openFile(uri: Uri, mode: String): ParcelFileDescriptor

query

fun query(
    uri: Uri,
    projection: Array<String>,
    selection: String,
    selectionArgs: Array<String>,
    sortOrder: String
): Cursor

shutdown

fun shutdown(): Unit

update

fun update(
    uri: Uri,
    values: ContentValues,
    selection: String,
    selectionArgs: Array<String>
): Int