FileDocCategorySizeDatePackage
ContentResolverTest.javaAPI DocAndroid 5.1 API1531Thu Mar 12 22:22:12 GMT 2015android.content

ContentResolverTest

public class ContentResolverTest extends android.test.AndroidTestCase

Fields Summary
private android.content.ContentResolver
mContentResolver
Constructors Summary
Methods Summary
protected voidsetUp()

        super.setUp();
        mContentResolver = mContext.getContentResolver();
    
public voidtestCursorFinalizer()

        // TODO: Want a test case that more predictably reproduce this issue. Selected
        // 600 as this causes the problem 100% of the runs on current hw, it might not
        // do so on some other configuration though.
        for (int i = 0; i < 600; i++) {
            mContentResolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
        }