Lines Matching refs:Secure
43 Settings.Secure.putString(r, "test_service", "Value");
44 assertEquals("Value", Settings.Secure.getString(r, "test_service"));
47 Settings.Secure.putString(r, "test_service", "New");
48 assertEquals("New", Settings.Secure.getString(r, "test_service"));
51 assertEquals(1, r.delete(Settings.Secure.getUriFor("test_service"), null, null));
52 assertEquals(null, Settings.Secure.getString(r, "test_service"));
70 testRowNameContentUri(Settings.Secure.CONTENT_URI, Settings.Secure.NAME,
71 Settings.Secure.VALUE, testKey, testValue, secondTestValue);
74 Settings.Secure.putString(getContext().getContentResolver(), testKey, null);
176 Settings.Secure.putString(r, testKey, testValue1);
177 Settings.Secure.putStringForUser(r, testKey, testValue2, otherUser.id);
179 assertEquals(testValue1, Settings.Secure.getString(r, testKey));
180 assertEquals(testValue2, Settings.Secure.getStringForUser(r, testKey, otherUser.id));
220 Settings.Secure.putString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED, "+test1");
221 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
225 Settings.Secure.putString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED, "+test2");
226 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
228 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
232 Settings.Secure.putString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED, "+test3");
233 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
235 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
237 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
241 Settings.Secure.putString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED, "-test1");
242 assertFalse(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
246 Settings.Secure.putString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED, "+test4");
247 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
249 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
251 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
253 Settings.Secure.putString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED, "-test3");
254 assertFalse(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
258 Settings.Secure.putString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED, "+test5");
259 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
261 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
263 assertTrue(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
265 Settings.Secure.putString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED, "-test5");
266 assertFalse(Settings.Secure.getString(r, Settings.Secure.LOCATION_PROVIDERS_ALLOWED)
297 Settings.Secure.putInt(r, TEST_KEY, SELF_VALUE);
298 Settings.Secure.putIntForUser(r, TEST_KEY, OTHER_VALUE, user.id);
301 int myValue = Settings.Secure.getInt(r, TEST_KEY, 0);
302 int otherValue = Settings.Secure.getIntForUser(r, TEST_KEY, 0, user.id);