/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/Dialer/java/com/android/dialer/calllog/ |
CallLogState.java | 19 import android.content.SharedPreferences; 35 private final SharedPreferences sharedPreferences; 41 @Unencrypted SharedPreferences sharedPreferences, 43 this.sharedPreferences = sharedPreferences; 53 sharedPreferences.edit().putBoolean(ANNOTATED_CALL_LOG_BUILT_PREF, true).apply(); 65 () -> sharedPreferences.getBoolean(ANNOTATED_CALL_LOG_BUILT_PREF, false));
|
AnnotatedCallLogMigrator.java | 20 import android.content.SharedPreferences; 41 private final SharedPreferences sharedPreferences; 48 @Unencrypted SharedPreferences sharedPreferences, 52 this.sharedPreferences = sharedPreferences; 72 sharedPreferences.edit().putBoolean(PREF_MIGRATED, true).apply(); 87 if (sharedPreferences.getBoolean(PREF_MIGRATED, false)) {
|
/packages/apps/Dialer/java/com/android/dialer/calllog/notifier/ |
RefreshAnnotatedCallLogNotifier.java | 21 import android.content.SharedPreferences; 44 private final SharedPreferences sharedPreferences; 48 @ApplicationContext Context appContext, @Unencrypted SharedPreferences sharedPreferences) { 50 this.sharedPreferences = sharedPreferences; 61 sharedPreferences.edit().putBoolean(SharedPrefKeys.FORCE_REBUILD, true).apply();
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/ |
Preferences.java | 22 import android.content.SharedPreferences; 40 private SharedPreferences mSharedPreferences; 90 * {@link SharedPreferences} for the {@code lastCancelAllTime} value. 93 implements SharedPreferences.OnSharedPreferenceChangeListener { 95 private SharedPreferences mSharedPreferences; 98 LastCancelAllLiveData(SharedPreferences sharedPreferences) { 99 mSharedPreferences = sharedPreferences; 105 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...] |
/developers/build/prebuilts/gradle/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...] |
/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() {
|
/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);
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowSharedPreferencesTest.java | 10 import android.content.SharedPreferences; 24 private SharedPreferences.Editor editor; 25 private SharedPreferences sharedPreferences; 35 sharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); 37 assertThat(sharedPreferences.getAll()).hasSize(0); 39 editor = sharedPreferences.edit(); 56 SharedPreferences anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); 70 assertThat(sharedPreferences.getString("string", "no value for key")).isEqualTo("no value for key"); 72 SharedPreferences anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE) [all...] |
/packages/apps/Dialer/java/com/android/dialer/phonelookup/spam/ |
SpamPhoneLookup.java | 20 import android.content.SharedPreferences; 50 private final SharedPreferences sharedPreferences; 59 @Unencrypted SharedPreferences sharedPreferences, 63 this.sharedPreferences = sharedPreferences; 82 () -> sharedPreferences.getLong(PREF_LAST_TIMESTAMP_PROCESSED, 0L)); 145 sharedPreferences
|
/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();
|