HomeSort by relevance Sort by last modified time
    Searched refs:prefs (Results 1 - 25 of 1038) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium-trace/catapult/devil/devil/android/sdk/
shared_prefs_test.py 46 '/data/data/com.some.package/shared_prefs/prefs.xml':
58 prefs = shared_prefs.SharedPrefs(
59 self.device, 'com.some.package', 'prefs.xml')
60 self.assertEquals(len(prefs), 0) # collection is empty before loading
61 prefs.SetInt('myValue', 444)
62 self.assertEquals(len(prefs), 1)
63 self.assertEquals(prefs.GetInt('myValue'), 444)
64 self.assertTrue(prefs.HasProperty('myValue'))
65 prefs.Remove('myValue')
66 self.assertEquals(len(prefs), 0
    [all...]
  /external/libmojo/third_party/catapult/devil/devil/android/sdk/
shared_prefs_test.py 45 '/data/data/com.some.package/shared_prefs/prefs.xml':
57 prefs = shared_prefs.SharedPrefs(
58 self.device, 'com.some.package', 'prefs.xml')
59 self.assertEquals(len(prefs), 0) # collection is empty before loading
60 prefs.SetInt('myValue', 444)
61 self.assertEquals(len(prefs), 1)
62 self.assertEquals(prefs.GetInt('myValue'), 444)
63 self.assertTrue(prefs.HasProperty('myValue'))
64 prefs.Remove('myValue')
65 self.assertEquals(len(prefs), 0
    [all...]
  /libcore/ojluni/src/main/java/java/util/prefs/
PreferencesFactory.java 26 package java.util.prefs;
FileSystemPreferencesFactory.java 26 package java.util.prefs;
31 * java.util.prefs.PreferencesFactory system property.
NodeChangeListener.java 26 package java.util.prefs;
PreferenceChangeListener.java 26 package java.util.prefs;
  /packages/apps/DeskClock/src/com/android/deskclock/data/
WidgetDAO.java 37 static int updateWidgetCount(SharedPreferences prefs, Class widgetProviderClass, int count) {
39 final int oldCount = prefs.getInt(key, 0);
41 prefs.edit().remove(key).apply();
43 prefs.edit().putInt(key, count).apply();
StopwatchDAO.java 58 static Stopwatch getStopwatch(SharedPreferences prefs) {
59 final int stateIndex = prefs.getInt(STATE, RESET.ordinal());
61 final long lastStartTime = prefs.getLong(LAST_START_TIME, Stopwatch.UNUSED);
62 final long lastWallClockTime = prefs.getLong(LAST_WALL_CLOCK_TIME, Stopwatch.UNUSED);
63 final long accumulatedTime = prefs.getLong(ACCUMULATED_TIME, 0);
69 setStopwatch(prefs, s);
77 static void setStopwatch(SharedPreferences prefs, Stopwatch stopwatch) {
78 final SharedPreferences.Editor editor = prefs.edit();
98 static List<Lap> getLaps(SharedPreferences prefs) {
100 final int lapCount = prefs.getInt(LAP_COUNT, 0)
    [all...]
SettingsDAO.java 73 static int getGlobalIntentId(SharedPreferences prefs) {
74 return prefs.getInt(KEY_ALARM_GLOBAL_ID, -1);
80 static void updateGlobalIntentId(SharedPreferences prefs) {
81 final int globalId = prefs.getInt(KEY_ALARM_GLOBAL_ID, -1) + 1;
82 prefs.edit().putInt(KEY_ALARM_GLOBAL_ID, globalId).apply();
88 static CitySort getCitySort(SharedPreferences prefs) {
90 final int citySortOrdinal = prefs.getInt(KEY_SORT_PREFERENCE, defaultSortOrdinal);
97 static void toggleCitySort(SharedPreferences prefs) {
98 final CitySort oldSort = getCitySort(prefs);
100 prefs.edit().putInt(KEY_SORT_PREFERENCE, newSort.ordinal()).apply()
    [all...]
CustomRingtoneDAO.java 53 static CustomRingtone addCustomRingtone(SharedPreferences prefs, Uri uri, String title) {
54 final long id = prefs.getLong(NEXT_RINGTONE_ID, 0);
55 final Set<String> ids = getRingtoneIds(prefs);
58 prefs.edit()
71 static void removeCustomRingtone(SharedPreferences prefs, long id) {
72 final Set<String> ids = getRingtoneIds(prefs);
75 final SharedPreferences.Editor editor = prefs.edit();
90 static List<CustomRingtone> getCustomRingtones(SharedPreferences prefs) {
91 final Set<String> ids = prefs.getStringSet(RINGTONE_IDS, Collections.<String>emptySet());
96 final Uri uri = Uri.parse(prefs.getString(RINGTONE_URI + id, null))
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
MockPreferencesFactory.java 17 package org.apache.harmony.tests.java.util.prefs;
19 import java.util.prefs.Preferences;
20 import java.util.prefs.PreferencesFactory;
PreferenceChangeListenerTest.java 17 package org.apache.harmony.tests.java.util.prefs;
19 import java.util.prefs.PreferenceChangeEvent;
20 import java.util.prefs.PreferenceChangeListener;
21 import java.util.prefs.Preferences;
PreferencesFactoryTest.java 17 package org.apache.harmony.tests.java.util.prefs;
19 import java.util.prefs.Preferences;
20 import java.util.prefs.PreferencesFactory;
  /packages/apps/Email/provider_src/com/android/email/
DebugUtils.java 18 final Preferences prefs = Preferences.getPreferences(context); local
19 DEBUG = prefs.getEnableDebugLogging();
20 DEBUG_EXCHANGE = prefs.getEnableExchangeLogging();
21 DEBUG_FILE = prefs.getEnableExchangeFileLogging();
25 enableStrictMode(prefs.getEnableStrictMode());
32 Preferences prefs = Preferences.getPreferences(context); local
33 int debugLogging = prefs.getEnableDebugLogging() ? EmailServiceProxy.DEBUG_BIT : 0;
35 prefs.getEnableExchangeLogging() ? EmailServiceProxy.DEBUG_EXCHANGE_BIT: 0;
37 prefs.getEnableExchangeFileLogging() ? EmailServiceProxy.DEBUG_FILE_BIT : 0;
39 prefs.getEnableStrictMode() ? EmailServiceProxy.DEBUG_ENABLE_STRICT_MODE : 0
    [all...]
  /external/webrtc/webrtc/base/
proxydetect_unittest.cc 38 // Mocking out platform specific path to firefox prefs file.
49 EXPECT_TRUE(name.compare("prefs.js") == 0 ||
59 bool GetProxyInfo(const std::string prefs, ProxyInfo* info) {
63 files.push_back(rtc::FakeFileSystem::File("prefs.js", prefs));
68 // Verifies that an empty Firefox prefs file results in no proxy detected.
75 // Verifies that corrupted prefs file results in no proxy detected.
89 std::string prefs(kFirefoxHeader);
90 prefs.append("user_pref(\"network.proxy.socks\", \"proxy.socks.com\");\n");
91 prefs.append("user_pref(\"network.proxy.socks_port\", 6666);\n")
    [all...]
  /system/update_engine/
metrics_utils.h 76 // Returns the persisted value from prefs for the given key. It also
78 int64_t GetPersistedValue(const std::string& key, PrefsInterface* prefs);
81 void SetNumReboots(int64_t num_reboots, PrefsInterface* prefs);
85 PrefsInterface* prefs);
88 void SetSystemUpdatedMarker(ClockInterface* clock, PrefsInterface* prefs);
92 PrefsInterface* prefs);
100 PrefsInterface* prefs,
  /frameworks/base/packages/Shell/src/com/android/shell/
BugreportPrefs.java 37 final SharedPreferences prefs = context.getSharedPreferences( local
39 return prefs.getInt(KEY_WARNING_STATE, def);
43 final SharedPreferences prefs = context.getSharedPreferences( local
45 prefs.edit().putInt(KEY_WARNING_STATE, value).apply();
  /packages/apps/DeskClock/src/com/android/deskclock/uidata/
TabDAO.java 36 static Tab getSelectedTab(SharedPreferences prefs) {
37 final int ordinal = prefs.getInt(KEY_SELECTED_TAB, Tab.CLOCKS.ordinal());
44 static void setSelectedTab(SharedPreferences prefs, Tab tab) {
45 prefs.edit().putInt(KEY_SELECTED_TAB, tab.ordinal()).apply();
  /packages/services/Telephony/src/com/android/phone/vvm/
VisualVoicemailSettingsUtil.java 34 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, local
36 if (prefs.contains(IS_ENABLED_KEY)) {
38 prefs.getBoolean(IS_ENABLED_KEY, false));
41 prefs.getString(DEFAULT_OLD_PIN_KEY));
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/formatting/
AndroidXmlFormattingStrategyTest.java 32 String expected, XmlFormatPreferences prefs)
37 replaceEnd, formatted, prefs);
68 XmlFormatPreferences prefs)
78 check(before, replaceStart, replaceEnd, insert, expected, prefs);
105 XmlFormatPreferences prefs = XmlFormatPreferences.defaults(); local
106 prefs.removeEmptyLines = true;
130 prefs);
134 XmlFormatPreferences prefs = XmlFormatPreferences.defaults(); local
135 prefs.removeEmptyLines = true;
159 prefs);
232 XmlFormatPreferences prefs = XmlFormatPreferences.defaults(); local
261 XmlFormatPreferences prefs = XmlFormatPreferences.defaults(); local
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
VoicemailNotificationSettingsUtil.java 48 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); local
49 SharedPreferences.Editor editor = prefs.edit();
61 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); local
62 migrateVoicemailVibrationSettingsIfNeeded(context, prefs);
63 return prefs.getBoolean(getVoicemailVibrationSharedPrefsKey(), false /* defValue */);
67 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); local
70 SharedPreferences.Editor editor = prefs.edit();
82 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); local
83 migrateVoicemailRingtoneSettingsIfNeeded(context, prefs);
84 String uriString = prefs.getString
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
Settings.java 51 // In the same order as xml/prefs.xml
156 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) {
177 final SharedPreferences prefs = mPrefs; local
181 return new SettingsValues(context, prefs, res, inputAttributes);
204 public static boolean readKeypressSoundEnabled(final SharedPreferences prefs,
206 return prefs.getBoolean(PREF_SOUND_ON,
210 public static boolean readVibrationEnabled(final SharedPreferences prefs,
213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON,
217 public static boolean readAutoCorrectEnabled(final SharedPreferences prefs,
219 return prefs.getBoolean(PREF_AUTO_CORRECTION, true)
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
SharedPreferencesTest.java 55 SharedPreferences prefs = getPrefs(); local
56 prefs.edit().clear().commit();
77 SharedPreferences prefs = getPrefs(); local
79 prefs.edit().putString("foo", "bar").commit();
84 SharedPreferences prefs = getPrefs(); local
86 assertFalse(prefs.contains(key));
87 assertEquals(0, prefs.getAll().size());
88 assertTrue(prefs.getAll().isEmpty());
89 assertEquals(false, prefs.getBoolean(key, false));
90 assertEquals(true, prefs.getBoolean(key, true))
98 SharedPreferences prefs = getPrefs(); local
125 SharedPreferences prefs = getPrefs(); local
225 SharedPreferences prefs = getPrefs(); local
246 SharedPreferences prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE); local
287 SharedPreferences prefs = mContext.getSharedPreferences(prefsName, Context.MODE_PRIVATE); local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/util/
BuglePrefsImpl.java 24 * Thin wrapper to get/set shared prefs values.
35 * Validate the prefs key passed in. Subclasses should override this as needed to perform
45 final SharedPreferences prefs = mContext.getSharedPreferences( local
47 return prefs.getInt(key, defaultValue);
53 final SharedPreferences prefs = mContext.getSharedPreferences( local
55 return prefs.getLong(key, defaultValue);
61 final SharedPreferences prefs = mContext.getSharedPreferences( local
63 return prefs.getBoolean(key, defaultValue);
69 final SharedPreferences prefs = mContext.getSharedPreferences( local
71 return prefs.getString(key, defaultValue)
83 final SharedPreferences prefs = mContext.getSharedPreferences( local
93 final SharedPreferences prefs = mContext.getSharedPreferences( local
103 final SharedPreferences prefs = mContext.getSharedPreferences( local
113 final SharedPreferences prefs = mContext.getSharedPreferences( local
129 final SharedPreferences prefs = mContext.getSharedPreferences( local
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/
EclipseXmlPrettyPrinterTest.java 40 AdtPrefs prefs = AdtPrefs.getPrefs(); local
41 prefs.initializeStoreWithDefaults(store);
42 prefs.loadValues(null);
47 private void checkFormat(EclipseXmlFormatPreferences prefs, String baseLocation,
65 EclipseXmlPrettyPrinter printer = new EclipseXmlPrettyPrinter(prefs, style, delimiter);
115 private void checkFormat(EclipseXmlFormatPreferences prefs, String baseLocation, String xml,
117 checkFormat(prefs, baseLocation, xml, expected, delimiter, null, false, null);
120 private void checkFormat(EclipseXmlFormatPreferences prefs, String baseLocation, String xml,
122 checkFormat(prefs, baseLocation, xml, expected, "\n"); //$NON-NLS-1$
126 EclipseXmlFormatPreferences prefs = EclipseXmlFormatPreferences.create() local
157 EclipseXmlFormatPreferences prefs = EclipseXmlFormatPreferences.create(); local
270 EclipseXmlFormatPreferences prefs = EclipseXmlFormatPreferences.create(); local
318 EclipseXmlFormatPreferences prefs = EclipseXmlFormatPreferences.create(); local
619 EclipseXmlFormatPreferences prefs = EclipseXmlFormatPreferences.create(); local
725 EclipseXmlFormatPreferences prefs = new EclipseXmlFormatPreferences() { local
753 EclipseXmlFormatPreferences prefs = new EclipseXmlFormatPreferences() { local
    [all...]

Completed in 376 milliseconds

1 2 3 4 5 6 7 8 91011>>