/packages/apps/TV/src/com/android/tv/util/ |
AccountHelper.java | 21 import android.content.SharedPreferences; 39 private final SharedPreferences mDefaultPreferences; 106 SharedPreferences defaultPreferences = PreferenceManager
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/ |
AccountsChangedReceiver.java | 23 import android.content.SharedPreferences; 48 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 66 private static void removeUnknownAccountFromPreference(final SharedPreferences prefs,
|
/packages/screensavers/WebView/src/com/android/dreams/web/ |
SetURL.java | 20 import android.content.SharedPreferences.Editor; 21 import android.content.SharedPreferences; 48 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
SetURLInteractive.java | 20 import android.content.SharedPreferences.Editor; 21 import android.content.SharedPreferences; 48 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/config/ |
PreferenceFile.java | 20 import android.content.SharedPreferences; 21 import android.content.SharedPreferences.Editor; 30 * Utility class for retrieving and storing key/value pairs in a SharedPreferences file. 76 SharedPreferences sp = open(); 86 /** Return a SharedPreferences for this file. */ 87 public SharedPreferences open() { 92 SharedPreferences.Editor editor = open().edit(); 99 /** Synchronously clear all SharedPreferences in this file. */ 129 protected Long read(SharedPreferences sp) { 150 protected String read(SharedPreferences sp) [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
PreferencesFacade.java | 20 import android.content.SharedPreferences; 21 import android.content.SharedPreferences.Editor; 38 * supplied (the default) then the SharedPreferences uses is the default for the SL4A application.<br> 62 SharedPreferences p = getPref(filename); 75 SharedPreferences p = getPref(filename); 99 private SharedPreferences getPref(String filename) {
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
ApprovedPrintServices.java | 21 import android.content.SharedPreferences; 22 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 39 private final SharedPreferences mPreferences; 103 SharedPreferences.Editor editor = mPreferences.edit(); 153 SharedPreferences.Editor editor = mPreferences.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( 106 String lastSelectedDevice = sharedPreferences.getString( 110 long lastDeviceSelectedTime = sharedPreferences.getLong( 135 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); 144 SharedPreferences.Editor editor = getSharedPreferences(context).edit();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
SubScreenFragment.java | 21 import android.content.SharedPreferences; 22 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 79 final SharedPreferences getSharedPreferences() { 105 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { 131 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) {
|
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/ |
LensPickerUtils.java | 20 import android.content.SharedPreferences; 56 public static SharedPreferences getFacetSharedPrefs(Context context) { 65 public static void launch(Context context, SharedPreferences sharedPrefs, String facetId, 67 SharedPreferences.Editor editor = sharedPrefs.edit(); 85 public static void saveLastLaunchedAppInfo(SharedPreferences sharedPrefs, String facetId, 87 SharedPreferences.Editor editor = sharedPrefs.edit(); 104 public static AppLaunchInformation getLastLaunchedAppInfo(SharedPreferences sharedPrefs) { 118 SharedPreferences prefs, boolean forceRefresh) { 133 SharedPreferences.Editor editor = prefs.edit(); 142 String className, SharedPreferences prefs) [all...] |
/developers/samples/android/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
SharedPreferencesHelper.java | 19 import android.content.SharedPreferences; 37 * <p>The user's profile details and chat details are persisted in SharedPreferences to access 53 SharedPreferences sharedPreferences = context.getSharedPreferences(Constants.PREFS_NAME, 0); 54 String profileString = sharedPreferences.getString(Constants.PREFS_USER_KEY, null); 69 * @param context used to access {@link SharedPreferences} 73 SharedPreferences sharedPreferences = context.getSharedPreferences(Constants.PREFS_NAME, 0); 74 SharedPreferences.Editor editor = sharedPreferences.edit() [all...] |
/packages/apps/Camera2/src/com/android/camera/settings/ |
SettingsManager.java | 20 import android.content.SharedPreferences; 21 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 34 * SettingsManager class provides an api for getting and setting SharedPreferences 40 * in SharedPreferences as Strings. To do this, the API to converts boolean and 56 * SharedPreferences file. 66 * This API allows you to store your SharedPreferences keys and default values 82 private final SharedPreferences mDefaultPreferences; 83 private SharedPreferences mCustomPreferences; 117 public SharedPreferences getDefaultPreferences() { 124 * Open a SharedPreferences file by custom scope [all...] |
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
SettingsActivity.java | 14 import android.content.SharedPreferences; 15 import android.content.SharedPreferences.OnSharedPreferenceChangeListener; 81 SharedPreferences sharedPreferences = 83 sharedPreferences.registerOnSharedPreferenceChangeListener(this); 84 updateSummaryB(sharedPreferences, keyprefVideoCall); 85 updateSummary(sharedPreferences, keyprefResolution); 86 updateSummary(sharedPreferences, keyprefFps); 87 updateSummaryB(sharedPreferences, keyprefCaptureQualitySlider); 88 updateSummary(sharedPreferences, keyprefStartVideoBitrateType) [all...] |
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
StorageManagerUpsellDialog.java | 23 import android.content.SharedPreferences; 89 SharedPreferences sp = getSharedPreferences(getContext()); 91 SharedPreferences.Editor editor = sp.edit(); 104 SharedPreferences sp = getSharedPreferences(getContext()); 106 SharedPreferences.Editor editor = sp.edit(); 135 private static SharedPreferences getSharedPreferences(Context context) {
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
QuickSettingsPreferenceFragment.java | 22 import android.content.SharedPreferences; 33 SharedPreferences.OnSharedPreferenceChangeListener, Preference.OnPreferenceClickListener { 85 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); 86 sharedPreferences.registerOnSharedPreferenceChangeListener(this); 87 sharedPreferences.registerOnSharedPreferenceChangeListener(mPresetSettingsListener); 89 updateDescriptions(sharedPreferences); 97 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); 98 sharedPreferences.unregisterOnSharedPreferenceChangeListener(this) [all...] |
/packages/services/Telephony/src/com/android/phone/settings/ |
VoicemailProviderSettingsUtil.java | 20 import android.content.SharedPreferences; 55 SharedPreferences prefs = getPrefs(context); 103 SharedPreferences prefs = getPrefs(context); 104 SharedPreferences.Editor editor = prefs.edit(); 136 SharedPreferences prefs = getPrefs(context); 143 private static SharedPreferences getPrefs(Context context) {
|
/developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/ |
StorageProviderFragment.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/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/provider/ |
ComplicationToggleReceiver.java | 23 import android.content.SharedPreferences; 50 SharedPreferences sharedPreferences = 53 int value = sharedPreferences.getInt(preferenceKey, 0); 58 SharedPreferences.Editor editor = sharedPreferences.edit();
|
/developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/ |
StorageProviderFragment.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/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/provider/ |
ComplicationToggleReceiver.java | 23 import android.content.SharedPreferences; 50 SharedPreferences sharedPreferences = 53 int value = sharedPreferences.getInt(preferenceKey, 0); 58 SharedPreferences.Editor editor = sharedPreferences.edit();
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
RedirectMain.java | 23 import android.content.SharedPreferences; 92 SharedPreferences preferences = getSharedPreferences("RedirectData", 0); 107 SharedPreferences preferences = getSharedPreferences("RedirectData", 0);
|
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/ |
StorageProviderFragment.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/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
PresencePreferences.java | 32 import android.content.SharedPreferences; 33 import android.content.SharedPreferences.Editor; 40 private SharedPreferences mCommonPref = null;
|
/external/replicaisland/src/com/replica/replicaisland/ |
SetPreferencesActivity.java | 19 import android.content.SharedPreferences; 62 SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); 63 SharedPreferences.Editor editor = prefs.edit();
|
/packages/apps/Dialer/java/com/android/contacts/common/location/ |
UpdateCountryService.java | 22 import android.content.SharedPreferences; 23 import android.content.SharedPreferences.Editor; 69 final SharedPreferences prefs =
|