public class SettingsProviderPerformanceTest 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 |
---|
SettingsProviderPerformanceTest() |
Modifier and Type | Method and Description |
---|---|
protected int |
deleteStringViaProviderApi(int type,
String name) |
protected static Uri |
getBaseUriForType(int type) |
protected String |
getStringViaFrontEndApiSetting(int type,
String name,
int userId) |
protected Uri |
insertStringViaProviderApi(int type,
String name,
String value,
boolean withTableRowUri) |
protected String |
queryStringViaProviderApi(int type,
String name) |
protected String |
queryStringViaProviderApi(int type,
String name,
boolean queryStringInQuotes,
boolean appendNameToUri) |
void |
setContext(Context context) |
protected void |
setStringViaFrontEndApiSetting(int type,
String name,
String value,
int userId) |
void |
testSetAndGetPerformanceForGlobalViaFrontEndApi() |
void |
testSetAndGetPerformanceForGlobalViaProviderApi() |
protected int |
updateStringViaProviderApiSetting(int type,
String name,
String value) |
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 testSetAndGetPerformanceForGlobalViaFrontEndApi() throws Exception
Exception
public void testSetAndGetPerformanceForGlobalViaProviderApi() 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)