OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:sharedPreferences
(Results
1 - 14
of
14
) sorted by null
/developers/build/prebuilts/gradle/StorageProvider/StorageProviderSample/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/StorageProviderSample/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);
/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/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
...]
/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/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
...]
/external/chromium_org/android_webview/test/shell/src/org/chromium/android_webview/shell/
AwShellActivity.java
10
import android.content.
SharedPreferences
;
88
SharedPreferences
sharedPreferences
=
91
mBrowserContext = new AwBrowserContext(
sharedPreferences
);
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
VersionedPrefs.java
25
import android.content.
SharedPreferences
;
26
import android.content.
SharedPreferences
.Editor;
44
private final
SharedPreferences
mSharedPreferences;
47
/** The key for the version number of the {@link
SharedPreferences
} file. */
51
* The current version number for {@link
SharedPreferences
}. This is a constant for all
59
* @param sharedPrefsName The name of the {@link
SharedPreferences
} file to use
90
protected
SharedPreferences
getSharedPreferences() {
99
* Returns the current version of the {@link
SharedPreferences
} file.
134
* Upgrades the {@link
SharedPreferences
} file.
176
final
SharedPreferences
sharedPreferences = getSharedPreferences()
[
all
...]
MailPrefs.java
21
import android.content.
SharedPreferences
;
208
final
SharedPreferences
sharedPreferences
= getSharedPreferences();
209
return
sharedPreferences
.getString(PreferenceKeys.REMOVAL_ACTION, defaultAction);
225
final
SharedPreferences
sharedPreferences
= getSharedPreferences();
226
return
sharedPreferences
.getBoolean(PreferenceKeys.CONVERSATION_LIST_SWIPE, true);
318
final
SharedPreferences
sharedPreferences
= getSharedPreferences();
321
final Set<String> currentPatterns =
sharedPreferences
.getStringSet
[
all
...]
/packages/apps/Mms/src/com/android/mms/ui/
MessagingPreferenceActivity.java
26
import android.content.
SharedPreferences
;
226
SharedPreferences
sharedPreferences
= PreferenceManager.getDefaultSharedPreferences(this);
227
if (
sharedPreferences
.contains(NOTIFICATION_VIBRATE_WHEN)) {
228
String vibrateWhen =
sharedPreferences
.
231
SharedPreferences
.Editor prefsEditor =
sharedPreferences
.edit();
245
String soundValue =
sharedPreferences
.getString(NOTIFICATION_RINGTONE, null);
382
SharedPreferences
prefs = PreferenceManager.getDefaultSharedPreferences(context);
389
// Store the value of notifications in
SharedPreferences
[
all
...]
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
PartnerBookmarksProvider.java
23
import android.content.
SharedPreferences
;
24
import android.content.
SharedPreferences
.Editor;
131
private final
SharedPreferences
sharedPreferences
;
135
sharedPreferences
= context.getSharedPreferences(
149
sharedPreferences
.getString(ACTIVE_CONFIGURATION_PREFNAME, null);
160
Editor editor =
sharedPreferences
.edit();
/packages/apps/Calendar/src/com/android/calendar/
GeneralPreferences.java
24
import android.content.
SharedPreferences
;
25
import android.content.
SharedPreferences
.Editor;
26
import android.content.
SharedPreferences
.OnSharedPreferenceChangeListener;
132
/** Return a properly configured
SharedPreferences
instance */
133
public static
SharedPreferences
getSharedPreferences(Context context) {
152
final
SharedPreferences
sharedPreferences
= getSharedPreferences(activity);
191
SharedPreferences
prefs = CalendarUtils.getSharedPreferences(activity,
222
migrateOldPreferences(
sharedPreferences
);
280
public void onSharedPreferenceChanged(
SharedPreferences
sharedPreferences, String key)
[
all
...]
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
ChromeBrowserProvider.java
13
import android.content.
SharedPreferences
;
247
SharedPreferences
sharedPreferences
=
249
mLastModifiedBookmarkFolderId =
sharedPreferences
.getLong(
579
SharedPreferences
sharedPreferences
=
581
sharedPreferences
.edit()
[
all
...]
Completed in 1570 milliseconds