Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 497789eb authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Add tests for DocumentsContract/Provider.

Confirm that invoking methods on DocumentsContract will correctly
be decoded and passed through to a DocumentsProvider instance.

Bug: 123725500, 123660195
Test: atest android.provider.cts.DocumentsContractTest
Change-Id: I16e7da808db83645db06f16a6be2c9575d9a3d06
parent a13887fa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ public abstract class ContentProvider implements ContentInterface, ComponentCall
    private boolean mNoPerms;
    private boolean mSingleUser;

    private final ThreadLocal<String> mCallingPackage = new ThreadLocal<>();
    private ThreadLocal<String> mCallingPackage;

    private Transport mTransport = new Transport();

@@ -2034,6 +2034,7 @@ public abstract class ContentProvider implements ContentInterface, ComponentCall

    private void attachInfo(Context context, ProviderInfo info, boolean testing) {
        mNoPerms = testing;
        mCallingPackage = new ThreadLocal<>();

        /*
         * Only allow it to be set once, so after the content service gives