Android Open Source - SimpleContentProvider Contract For Tests






From Project

Back to project page SimpleContentProvider.

License

The source code is released under:

Apache License

If you think the Android project SimpleContentProvider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package dk.simplecontentprovider;
// w w  w . jav a  2  s.com
import android.net.Uri;
import android.provider.BaseColumns;

public class ContractForTests {
    public static final String SCHEME = "content://";
    public static final String AUTHORITY = "dk.simplecontentprovider.test";

    public static final class Values implements BaseColumns {
        protected static final String TABLE_NAME = "test_table";

        public static final Uri CONTENT_URI = Uri.parse(SCHEME + AUTHORITY + "/" + TABLE_NAME);

        public static final String KEY = "key";
        public static final String VALUE = "value";
    }

    public static final class View implements BaseColumns {
        protected static final String VIEW_NAME = "view";

        public static final Uri CONTENT_URI = Uri.parse(SCHEME + AUTHORITY + "/" + VIEW_NAME);

        public static final String NUMBER_OF_KEYS = "number_of_keys";
        public static final String MIN_VALUE = "min_value";
        public static final String MAX_VALUE = "max_value";
    }

}




Java Source Code List

dk.simplecontentprovider.ContentProviderForTests.java
dk.simplecontentprovider.ContractForTests.java
dk.simplecontentprovider.FullTestSuite.java
dk.simplecontentprovider.SimpleContentProvider.java
dk.simplecontentprovider.SimpleDatabaseHelper.java
dk.simplecontentprovider.SimpleUriMatcher.java
dk.simplecontentprovider.TestContentProvider.java
dk.simplecontentprovider.demo.OverviewActivity.java
dk.simplecontentprovider.demo.OwnersActivity.java
dk.simplecontentprovider.demo.PetsActivity.java
dk.simplecontentprovider.demo.dialogs.AddOwnerDialog.java
dk.simplecontentprovider.demo.dialogs.AddPetDialog.java
dk.simplecontentprovider.demo.provider.DemoContentProvider.java
dk.simplecontentprovider.demo.provider.DemoContract.java