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

1 2

  /packages/inputmethods/LatinIME/tools/dicttool/compat/android/content/
SharedPreferences.java 19 public class SharedPreferences {
21 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key);
  /packages/apps/Calendar/tests/src/com/android/calendar/
DbTestUtils.java 22 import android.content.SharedPreferences;
46 private final FakeSharedPreferences sharedPreferences;
52 private SharedPreferences sharedPreferences;
69 public void setSharedPreferences(SharedPreferences sharedPreferences) {
70 this.sharedPreferences = sharedPreferences;
74 public SharedPreferences getSharedPreferences(String name, int mode) {
75 if (sharedPreferences != null)
    [all...]
  /frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/
SampleTrustAgent.java 23 import android.content.SharedPreferences;
32 implements SharedPreferences.OnSharedPreferenceChangeListener {
144 SharedPreferences sharedPreferences = PreferenceManager
146 sharedPreferences.edit().putBoolean(PREFERENCE_REPORT_UNLOCK_ATTEMPTS, enabled).apply();
150 SharedPreferences sharedPreferences = PreferenceManager
152 return sharedPreferences.getBoolean(PREFERENCE_REPORT_UNLOCK_ATTEMPTS, false);
156 SharedPreferences sharedPreferences = PreferenceManage
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/testing/
InjectedServices.java 20 import android.content.SharedPreferences;
36 private SharedPreferences mSharedPreferences;
49 public void setSharedPreferences(SharedPreferences sharedPreferences) {
50 this.mSharedPreferences = sharedPreferences;
53 public SharedPreferences getSharedPreferences() {
  /developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
MyCloudFragment.java 21 import android.content.SharedPreferences;
87 final SharedPreferences sharedPreferences =
90 sharedPreferences.edit().putBoolean(getString(R.string.key_logged_in), loggedIn).commit();
97 final SharedPreferences sharedPreferences =
100 return sharedPreferences.getBoolean(getString(R.string.key_logged_in), false);
  /developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
MyCloudFragment.java 21 import android.content.SharedPreferences;
87 final SharedPreferences sharedPreferences =
90 sharedPreferences.edit().putBoolean(getString(R.string.key_logged_in), loggedIn).commit();
97 final SharedPreferences sharedPreferences =
100 return sharedPreferences.getBoolean(getString(R.string.key_logged_in), false);
  /development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
MyCloudFragment.java 21 import android.content.SharedPreferences;
87 final SharedPreferences sharedPreferences =
90 sharedPreferences.edit().putBoolean(getString(R.string.key_logged_in), loggedIn).commit();
97 final SharedPreferences sharedPreferences =
100 return sharedPreferences.getBoolean(getString(R.string.key_logged_in), false);
  /development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
CubeWallpaper2Settings.java 21 import android.content.SharedPreferences;
26 implements SharedPreferences.OnSharedPreferenceChangeListener {
50 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
  /development/samples/training/network-usage/src/com/example/android/networkusage/
SettingsActivity.java 17 import android.content.SharedPreferences;
18 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
61 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
  /frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
SettingsActivity.java 17 import android.content.SharedPreferences;
18 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
61 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
  /packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
PolarClockSettings.java 21 import android.content.SharedPreferences;
26 implements SharedPreferences.OnSharedPreferenceChangeListener {
50 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
  /development/samples/ApiDemos/src/com/example/android/apis/preference/
AdvancedPreferences.java 21 import android.content.SharedPreferences;
22 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
86 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
90 + sharedPreferences.getInt(key, 0), Toast.LENGTH_SHORT).show();
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
AwBrowserContext.java 8 import android.content.SharedPreferences;
24 private SharedPreferences mSharedPreferences;
32 public AwBrowserContext(SharedPreferences sharedPreferences) {
33 mSharedPreferences = sharedPreferences;
AwGeolocationPermissions.java 7 import android.content.SharedPreferences;
25 private final SharedPreferences mSharedPreferences;
27 public AwGeolocationPermissions(SharedPreferences sharedPreferences) {
28 mSharedPreferences = sharedPreferences;
65 SharedPreferences.Editor editor = null;
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/content/
TestSharedPreferencesTest.java 13 import android.content.SharedPreferences;
24 private SharedPreferences.Editor editor;
25 private TestSharedPreferences sharedPreferences;
31 sharedPreferences = new TestSharedPreferences(content, FILENAME, 3);
32 editor = sharedPreferences.edit();
55 Map<String, ?> all = sharedPreferences.getAll();
139 private SharedPreferences.OnSharedPreferenceChangeListener testListener = new SharedPreferences.OnSharedPreferenceChangeListener() {
141 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key)
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
LocalBluetoothPreferences.java 21 import android.content.SharedPreferences;
52 private static SharedPreferences getSharedPreferences(Context context) {
82 SharedPreferences sharedPreferences = getSharedPreferences(context);
85 long lastDiscoverableEndTime = sharedPreferences.getLong(
96 } else if ((sharedPreferences.getLong(KEY_DISCOVERING_TIMESTAMP, 0) +
103 String lastSelectedDevice = sharedPreferences.getString(
107 long lastDeviceSelectedTime = sharedPreferences.getLong(
120 SharedPreferences.Editor editor = getSharedPreferences(context).edit();
129 SharedPreferences.Editor editor = getSharedPreferences(context).edit()
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/preferences/
MailPrefs.java 21 import android.content.SharedPreferences;
245 final SharedPreferences sharedPreferences = getSharedPreferences();
246 return sharedPreferences.getString(PreferenceKeys.REMOVAL_ACTION,
263 final SharedPreferences sharedPreferences = getSharedPreferences();
264 return sharedPreferences.getBoolean(PreferenceKeys.CONVERSATION_LIST_SWIPE, true);
356 final SharedPreferences sharedPreferences = getSharedPreferences();
359 final Set<String> currentPatterns = sharedPreferences.getStringSet
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/quickcontact/
QuickContactTestsActivity.java 21 import android.content.SharedPreferences;
22 import android.content.SharedPreferences.Editor;
76 final SharedPreferences sharedPreferences = getSharedPreferences(PREF_NAME, MODE_PRIVATE);
77 final String uriString = sharedPreferences.getString(PREF_SETTING_URI, null);
101 final SharedPreferences sharedPreferences = getSharedPreferences(PREF_NAME, MODE_PRIVATE);
102 final Editor editor = sharedPreferences.edit();
  /packages/apps/DeskClock/src/com/android/deskclock/timer/
TimerFragmentAdapter.java 21 import android.content.SharedPreferences;
31 private final SharedPreferences mSharedPrefs;
33 public TimerFragmentAdapter(FragmentManager fm, SharedPreferences sharedPreferences) {
35 mSharedPrefs = sharedPreferences;
  /frameworks/base/core/java/android/content/
SharedPreferences.java 36 * <p>For more information about using SharedPreferences, read the
42 public interface SharedPreferences {
54 * @param sharedPreferences The {@link SharedPreferences} that received
59 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key);
63 * Interface used for modifying values in a {@link SharedPreferences}
65 * back to the original {@link SharedPreferences} until you call {@link #commit}
176 * {@link SharedPreferences} object it is editing. This atomically
178 * in the SharedPreferences
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/location/
CountryDetector.java 7 import android.content.SharedPreferences;
164 final SharedPreferences sharedPreferences =
166 return sharedPreferences.getString(KEY_PREFERENCE_CURRENT_COUNTRY, null);
  /packages/apps/Browser/src/com/android/browser/preferences/
WebViewPreview.java 20 import android.content.SharedPreferences;
21 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
97 SharedPreferences sharedPreferences, String key) {
  /packages/apps/Mms/src/com/android/mms/ui/
MessagingPreferenceActivity.java 28 import android.content.SharedPreferences;
260 SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
261 if (mVibratePref != null && sharedPreferences.contains(NOTIFICATION_VIBRATE_WHEN)) {
262 String vibrateWhen = sharedPreferences.
265 SharedPreferences.Editor prefsEditor = sharedPreferences.edit();
279 String soundValue = sharedPreferences.getString(NOTIFICATION_RINGTONE, null);
416 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
423 // Store the value of notifications in SharedPreferences
    [all...]
  /external/chromium_org/android_webview/test/shell/src/org/chromium/android_webview/shell/
AwShellActivity.java 10 import android.content.SharedPreferences;
125 SharedPreferences sharedPreferences =
128 mBrowserContext = new AwBrowserContext(sharedPreferences);
  /external/replicaisland/src/com/replica/replicaisland/
KeyboardConfigDialogPreference.java 21 import android.content.SharedPreferences;
34 private SharedPreferences mSharedPrefs;
194 SharedPreferences.Editor editor = mSharedPrefs.edit();
203 public void setPrefs(SharedPreferences sharedPreferences) {
204 mSharedPrefs = sharedPreferences;

Completed in 983 milliseconds

1 2