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

1 2 3 4 5 6 7 8 91011>>

  /external/objenesis/tck-android/
.gitignore 6 org.eclipse.m2e.core.prefs
7 org.eclipse.core.resources.prefs
8 org.eclipse.pde.core.prefs
  /external/chromium-trace/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...]
  /external/libchrome/base/prefs/
README 0 Prefs is a general-purpose key-value store for application preferences.
3 The Prefs code lives in base/prefs but is not part of the
5 optional. If you use Prefs, you should add a GYP dependency on
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
PreferencesTest.java 26 Preferences prefs = Gdx.app.getPreferences(".test"); local
27 if (prefs.contains("bool")) {
28 if (prefs.getBoolean("bool") != true) throw new GdxRuntimeException("bool failed");
29 if (prefs.getInteger("int") != 1234) throw new GdxRuntimeException("int failed");
30 if (prefs.getLong("long") != Long.MAX_VALUE) throw new GdxRuntimeException("long failed");
31 if (prefs.getFloat("float") != 1.2345f) throw new GdxRuntimeException("float failed");
32 if (!prefs.getString("string").equals("test!")) throw new GdxRuntimeException("string failed");
35 prefs.clear();
36 prefs.putBoolean("bool", true);
37 prefs.putInteger("int", 1234);
    [all...]
  /external/libgdx/tests/gdx-tests-iosrobovm/.settings/
org.robovm.eclipse.prefs 2 org.robovm.eclipse.prefs.incrementalBuildArch=x86
3 org.robovm.eclipse.prefs.incrementalBuildOs=ios
  /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...]
  /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...]
BuglePrefs.java 22 * Thin wrapper to get/set shared prefs values.
71 * @param key The key to look up in shared prefs
72 * @param defaultValue The default value if value in shared prefs is null or if
79 * @param key The key to look up in shared prefs
80 * @param defaultValue The default value if value in shared prefs is null or if
87 * @param key The key to look up in shared prefs
88 * @param defaultValue The default value if value in shared prefs is null.
94 * @param key The key to look up in shared prefs
95 * @param defaultValue The default value if value in shared prefs is null.
101 * @param key The key to look up in shared prefs
    [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...]
  /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...]
SettingsValues.java 64 // From preferences, in the same order as xml/prefs.xml:
122 public SettingsValues(final Context context, final SharedPreferences prefs, final Resources res,
134 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true);
135 mVibrateOn = Settings.readVibrationEnabled(prefs, res);
136 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res);
137 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res);
138 mSlidingKeyInputPreviewEnabled = prefs.getBoolean(
140 mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res)
144 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false)
147 ? Settings.readShowsLanguageSwitchKey(prefs) : true /* forcibly */
    [all...]
AdvancedSettingsFragment.java 57 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); local
59 if (!Settings.isInternal(prefs)) {
88 Settings.readKeyPreviewPopupEnabled(prefs, res));
100 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); local
105 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) {
109 Settings.readKeyPreviewPopupEnabled(prefs, res));
118 final SharedPreferences prefs = getSharedPreferences(); local
121 Settings.readVibrationEnabled(prefs, res));
123 Settings.readKeypressSoundEnabled(prefs, res));
132 final SharedPreferences prefs = getSharedPreferences() local
176 final SharedPreferences prefs = getSharedPreferences(); local
227 final SharedPreferences prefs = getSharedPreferences(); local
    [all...]
  /packages/services/Telephony/src/com/android/phone/settings/
VoicemailNotificationSettingsUtil.java 49 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); local
50 SharedPreferences.Editor editor = prefs.edit();
56 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); local
57 migrateVoicemailVibrationSettingsIfNeeded(phone, prefs);
58 return prefs.getBoolean(getVoicemailVibrationSharedPrefsKey(phone), false /* defValue */);
62 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); local
65 SharedPreferences.Editor editor = prefs.edit();
71 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); local
72 migrateVoicemailRingtoneSettingsIfNeeded(phone, prefs);
73 String uriString = prefs.getString
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
SharedPreferencesTest.java 51 SharedPreferences prefs = getPrefs(); local
52 prefs.edit().clear().commit();
73 SharedPreferences prefs = getPrefs(); local
75 prefs.edit().putString("foo", "bar").commit();
80 SharedPreferences prefs = getPrefs(); local
82 assertFalse(prefs.contains(key));
83 assertEquals(0, prefs.getAll().size());
84 assertTrue(prefs.getAll().isEmpty());
85 assertEquals(false, prefs.getBoolean(key, false));
86 assertEquals(true, prefs.getBoolean(key, true))
94 SharedPreferences prefs = getPrefs(); local
121 SharedPreferences prefs = getPrefs(); local
221 SharedPreferences prefs = getPrefs(); local
242 SharedPreferences prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE); local
283 SharedPreferences prefs = mContext.getSharedPreferences(prefsName, Context.MODE_PRIVATE); local
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/data/
SettingsDAO.java 52 final SharedPreferences prefs = getSharedPreferences(context); local
53 final int citySortOrdinal = prefs.getInt(KEY_SORT_PREFERENCE, defaultSortOrdinal);
63 final SharedPreferences prefs = getSharedPreferences(context); local
64 prefs.edit().putInt(KEY_SORT_PREFERENCE, newSort.ordinal()).apply();
72 final SharedPreferences prefs = getSharedPreferences(context); local
73 return prefs.getBoolean(SettingsActivity.KEY_AUTO_HOME_CLOCK, false);
80 final SharedPreferences prefs = getSharedPreferences(context); local
82 final String timeZoneId = prefs.getString(SettingsActivity.KEY_HOME_TZ, defaultTimeZoneId);
92 final SharedPreferences prefs = getSharedPreferences(context); local
93 final String homeTimeZoneId = prefs.getString(SettingsActivity.KEY_HOME_TZ, null)
118 final SharedPreferences prefs = getSharedPreferences(context); local
128 final SharedPreferences prefs = getSharedPreferences(context); local
137 final SharedPreferences prefs = getSharedPreferences(context); local
143 final SharedPreferences prefs = getSharedPreferences(context); local
    [all...]
  /cts/tests/app/src/android/app/backup/cts/
SharedPreferencesBackupHelperTest.java 26 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1");
27 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1", "test-prefs-group-2");
  /system/update_engine/
image_properties_android.cc 38 // Prefs used to store the target channel and powerwash settings.
72 // channel where we got the image from in prefs at the time of the update, so
79 if (!system_state->prefs()->Exists(current_channel_key) ||
80 !system_state->prefs()->GetString(current_channel_key, &current_channel))
92 PrefsInterface* const prefs = system_state->prefs(); local
93 if (!prefs->GetString(kPrefsImgPropChannelName, &result.target_channel))
95 if (!prefs->GetBoolean(kPrefsImgPropPowerwashAllowed,
104 PrefsInterface* const prefs = system_state->prefs(); local
    [all...]
daemon_state_android.cc 24 #include "update_engine/common/prefs.h"
46 // Initialize prefs.
48 // TODO(deymo): Fall back to in-memory prefs if there's no physical directory
54 Prefs* prefs = new Prefs(); local
55 prefs_.reset(prefs);
56 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
PreferencesTest.java 17 package org.apache.harmony.tests.java.util.prefs;
27 import java.util.prefs.AbstractPreferences;
28 import java.util.prefs.BackingStoreException;
29 import java.util.prefs.InvalidPreferencesFormatException;
30 import java.util.prefs.NodeChangeListener;
31 import java.util.prefs.PreferenceChangeListener;
32 import java.util.prefs.Preferences;
33 import java.util.prefs.PreferencesFactory;
42 private static final String PREFS =
62 in = new ByteArrayInputStream(PREFS.getBytes(StandardCharsets.US_ASCII))
145 Preferences prefs = null; local
449 Preferences prefs = Preferences.userNodeForPackage(OutputStream.class); local
    [all...]
NodeChangeListenerTest.java 17 package org.apache.harmony.tests.java.util.prefs;
19 import java.util.prefs.NodeChangeEvent;
20 import java.util.prefs.NodeChangeListener;
21 import java.util.prefs.Preferences;
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;
  /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();
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
AutoTileManager.java 20 import com.android.systemui.Prefs;
21 import com.android.systemui.Prefs.Key;
41 if (!Prefs.getBoolean(context, Key.QS_HOTSPOT_ADDED, false)) {
44 if (!Prefs.getBoolean(context, Key.QS_DATA_SAVER_ADDED, false)) {
47 if (!Prefs.getBoolean(context, Key.QS_INVERT_COLORS_ADDED, false)) {
54 Prefs.putBoolean(mContext, Key.QS_INVERT_COLORS_ADDED, true);
66 if (!Prefs.getBoolean(context, Key.QS_WORK_ADDED, false)) {
81 Prefs.putBoolean(mContext, Key.QS_WORK_ADDED, true);
104 Prefs.putBoolean(mContext, Key.QS_DATA_SAVER_ADDED, true);
121 Prefs.putBoolean(mContext, Key.QS_HOTSPOT_ADDED, true)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
PackagesMonitor.java 33 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); local
34 return prefs.getInt(KEY_PACKAGES_VERSION, 1);
56 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); local
58 int version = prefs.getInt(KEY_PACKAGES_VERSION, 1);
59 prefs.edit().putInt(KEY_PACKAGES_VERSION, version + 1).commit();
  /developers/build/prebuilts/gradle/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
SimpleGeofenceStore.java 87 SharedPreferences.Editor prefs = mPrefs.edit(); local
89 prefs.putFloat(getGeofenceFieldKey(id, KEY_LATITUDE), (float) geofence.getLatitude());
90 prefs.putFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), (float) geofence.getLongitude());
91 prefs.putFloat(getGeofenceFieldKey(id, KEY_RADIUS), geofence.getRadius());
92 prefs.putLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION),
94 prefs.putInt(getGeofenceFieldKey(id, KEY_TRANSITION_TYPE),
97 prefs.commit();
104 SharedPreferences.Editor prefs = mPrefs.edit(); local
105 prefs.remove(getGeofenceFieldKey(id, KEY_LATITUDE));
106 prefs.remove(getGeofenceFieldKey(id, KEY_LONGITUDE))
    [all...]

Completed in 1764 milliseconds

1 2 3 4 5 6 7 8 91011>>