OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:sharedPreferences
(Results
1 - 17
of
17
) sorted by null
/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);
/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/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/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
;
125
SharedPreferences
sharedPreferences
=
128
mBrowserContext = new AwBrowserContext(
sharedPreferences
);
/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/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
98
protected
SharedPreferences
getSharedPreferences() {
107
SharedPreferences
.OnSharedPreferenceChangeListener listener) {
112
SharedPreferences
.OnSharedPreferenceChangeListener listener) {
117
* Returns the current version of the {@link
SharedPreferences
} file
[
all
...]
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/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
...]
/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
;
251
SharedPreferences
sharedPreferences
=
253
mLastModifiedBookmarkFolderId =
sharedPreferences
.getLong(
575
SharedPreferences
sharedPreferences
=
577
sharedPreferences
.edit()
[
all
...]
/packages/apps/Settings/src/com/android/settings/wifi/
WifiSettings.java
30
import android.content.
SharedPreferences
;
720
SharedPreferences
sharedPreferences
= getPreferenceScreen().getSharedPreferences();
721
int lastDismissPlatform =
sharedPreferences
.getInt(KEY_ASSISTANT_DISMISS_PLATFORM, 0);
777
SharedPreferences
sharedPreferences
= getPreferenceScreen().getSharedPreferences();
778
SharedPreferences
.Editor editor =
sharedPreferences
.edit();
[
all
...]
Completed in 899 milliseconds