/packages/inputmethods/LatinIME/tools/dicttool/compat/android/content/ |
SharedPreferences.java | 19 public class SharedPreferences { 21 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key);
|
/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/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...] |
Setting.java | 16 import android.content.SharedPreferences; 30 private final SharedPreferences mSharedPreferences; 38 public Setting(SharedPreferences sharedPreferences, String key, String title, int max) { 39 mSharedPreferences = sharedPreferences; 46 public Setting(SharedPreferences sharedPreferences, String key, String title) { 47 mSharedPreferences = sharedPreferences;
|
PresetSettingsListener.java | 20 import android.content.SharedPreferences; 24 public class PresetSettingsListener implements SharedPreferences.OnSharedPreferenceChangeListener { 33 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { 37 final String preset = sharedPreferences.getString(key, "standard"); 59 final SharedPreferences.Editor prefs = sharedPreferences.edit();
|
/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...] |
/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/Contacts/src/com/android/contacts/testing/ |
InjectedServices.java | 20 import android.content.SharedPreferences; 34 private SharedPreferences mSharedPreferences; 45 public void setSharedPreferences(SharedPreferences sharedPreferences) { 46 this.mSharedPreferences = sharedPreferences; 49 public SharedPreferences getSharedPreferences() {
|
/packages/apps/Dialer/java/com/android/contacts/common/testing/ |
InjectedServices.java | 20 import android.content.SharedPreferences; 32 private SharedPreferences mSharedPreferences; 43 public SharedPreferences getSharedPreferences() { 47 public void setSharedPreferences(SharedPreferences sharedPreferences) { 48 this.mSharedPreferences = sharedPreferences;
|
/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/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);
|
/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);
|
/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/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();
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/util/ |
SharedPreferencesHelper.java | 19 import android.content.SharedPreferences; 35 * Helper class to store {@link Subscription}s and {@link Movie}s in {@link SharedPreferences}. 55 * Reads the {@link List <Subscription>} from {@link SharedPreferences}. 65 * Overrides the subscriptions stored in {@link SharedPreferences}. 75 * Reads the {@link List <Movie>} from {@link SharedPreferences} for a given channel. 86 * Overrides the movies stored in {@link SharedPreferences} for the associated channel id. 97 * Retrieves a set of Strings from {@link SharedPreferences} and returns as a List. 108 SharedPreferences sharedPreferences = 110 Set<String> stringSet = sharedPreferences.getStringSet(key, new HashSet<String>()) [all...] |
/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/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();
|
/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/robolectric/v1/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/UnifiedEmail/src/com/android/mail/preferences/ |
MailPrefs.java | 21 import android.content.SharedPreferences; 268 final SharedPreferences sharedPreferences = getSharedPreferences(); 270 sharedPreferences.getString(PreferenceKeys.REMOVAL_ACTION, null); 274 return sharedPreferences.getString(PreferenceKeys.REMOVAL_ACTION, 291 final SharedPreferences sharedPreferences = getSharedPreferences(); 292 return sharedPreferences.getBoolean(PreferenceKeys.CONVERSATION_LIST_SWIPE, true); 384 final SharedPreferences sharedPreferences = getSharedPreferences() [all...] |
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
BlockedNumbersAutoMigrator.java | 20 import android.content.SharedPreferences; 50 * @throws NullPointerException if sharedPreferences or queryHandler are null. 108 SharedPreferences sharedPreferences = 111 if (sharedPreferences.contains(HAS_CHECKED_AUTO_MIGRATE_KEY)) { 126 sharedPreferences.edit().putBoolean(HAS_CHECKED_AUTO_MIGRATE_KEY, true).apply();
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/ |
AnswerHintFactory.java | 20 import android.content.SharedPreferences; 75 SharedPreferences sharedPreferences = 77 int answeredCount = sharedPreferences.getInt(ANSWERED_COUNT_PREFERENCE_KEY, 0); 78 sharedPreferences.edit().putInt(ANSWERED_COUNT_PREFERENCE_KEY, answeredCount + 1).apply();
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/quickcontact/ |
QuickContactTestsActivity.java | 21 import android.content.SharedPreferences; 22 import android.content.SharedPreferences.Editor; 87 final SharedPreferences sharedPreferences = getSharedPreferences(PREF_NAME, MODE_PRIVATE); 88 final String uriString = sharedPreferences.getString(PREF_SETTING_URI, null); 113 final SharedPreferences sharedPreferences = getSharedPreferences(PREF_NAME, MODE_PRIVATE); 114 final Editor editor = sharedPreferences.edit();
|