public class SettingsProviderTest extends AndroidTestCase
Modifier and Type | Field and Description |
---|---|
protected static String |
FAKE_SETTING_NAME |
protected static String |
FAKE_SETTING_NAME_1 |
protected static String |
FAKE_SETTING_NAME_2 |
protected static String |
FAKE_SETTING_VALUE |
protected static String |
FAKE_SETTING_VALUE_1 |
protected static String |
FAKE_SETTING_VALUE_2 |
protected int |
mSecondaryUserId |
protected static int |
SETTING_TYPE_GLOBAL |
protected static int |
SETTING_TYPE_SECURE |
protected static int |
SETTING_TYPE_SYSTEM |
mContext
Constructor and Description |
---|
SettingsProviderTest() |
assertActivityRequiresPermission, assertReadingContentUriRequiresPermission, assertWritingContentUriRequiresPermission, getContext, getTestContext, scrubClass, setTestContext, setUp, tearDown, testAndroidTestCaseSetupProperly
protected static final int SETTING_TYPE_GLOBAL
protected static final int SETTING_TYPE_SECURE
protected static final int SETTING_TYPE_SYSTEM
protected static final String FAKE_SETTING_NAME
protected static final String FAKE_SETTING_NAME_1
protected static final String FAKE_SETTING_NAME_2
protected static final String FAKE_SETTING_VALUE
protected static final String FAKE_SETTING_VALUE_1
protected static final String FAKE_SETTING_VALUE_2
protected int mSecondaryUserId
public void testSetAndGetGlobalViaFrontEndApiForSystemUser() throws Exception
Exception
public void testSetAndGetGlobalViaFrontEndApiForNonSystemUser() throws Exception
Exception
public void testSetAndGetSecureViaFrontEndApiForSystemUser() throws Exception
Exception
public void testSetAndGetSecureViaFrontEndApiForNonSystemUser() throws Exception
Exception
public void testSetAndGetSystemViaFrontEndApiForSystemUser() throws Exception
Exception
public void testSetAndGetSystemViaFrontEndApiForNonSystemUser() throws Exception
Exception
public void testSetAndGetGlobalViaProviderApi() throws Exception
Exception
public void testSetAndGetSecureViaProviderApi() throws Exception
Exception
public void testSetAndGetSystemViaProviderApi() throws Exception
Exception
public void testSelectAllGlobalViaProviderApi() throws Exception
Exception
public void testSelectAllSecureViaProviderApi() throws Exception
Exception
public void testSelectAllSystemViaProviderApi() throws Exception
Exception
public void testQueryUpdateDeleteGlobalViaProviderApi() throws Exception
Exception
public void testQueryUpdateDeleteSecureViaProviderApi() throws Exception
Exception
public void testQueryUpdateDeleteSystemViaProviderApi() throws Exception
Exception
public void testBulkInsertGlobalViaProviderApi() throws Exception
Exception
public void testBulkInsertSystemViaProviderApi() throws Exception
Exception
public void testBulkInsertSecureViaProviderApi() throws Exception
Exception
public void testAppCannotRunsSystemOutOfMemoryWritingSystemSettings() throws Exception
Exception
public void testQueryStringInBracketsGlobalViaProviderApiForType() throws Exception
Exception
public void testQueryStringInBracketsSecureViaProviderApiForType() throws Exception
Exception
public void testQueryStringInBracketsSystemViaProviderApiForType() throws Exception
Exception
public void testQueryStringWithAppendedNameToUriViaProviderApi() throws Exception
Exception
public void setContext(Context context)
setContext
in class AndroidTestCase
protected void setStringViaFrontEndApiSetting(int type, String name, String value, int userId)
protected String getStringViaFrontEndApiSetting(int type, String name, int userId)
protected Uri insertStringViaProviderApi(int type, String name, String value, boolean withTableRowUri)
protected int deleteStringViaProviderApi(int type, String name)
protected int updateStringViaProviderApiSetting(int type, String name, String value)
protected String queryStringViaProviderApi(int type, String name, boolean queryStringInQuotes, boolean appendNameToUri)
protected static Uri getBaseUriForType(int type)