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

InternalUseOnlyFilesContentProvider

class InternalUseOnlyFilesContentProvider


Hosts an SD Card directory for the test framework to read/write internal files to.

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

InternalUseOnlyFilesContentProvider

InternalUseOnlyFilesContentProvider()

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!
Throws
java.io.FileNotFoundException: java.io.FileNotFoundException

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