HomeSort by relevance Sort by last modified time
    Searched defs:sharedPreferences (Results 1 - 25 of 51) sorted by null

1 2 3

  /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)) {
RefreshAnnotatedCallLogWorker.java 20 import android.content.SharedPreferences;
52 private final SharedPreferences sharedPreferences;
66 @Unencrypted SharedPreferences sharedPreferences,
74 this.sharedPreferences = sharedPreferences;
118 sharedPreferences.getBoolean(SharedPrefKeys.FORCE_REBUILD, true);
233 sharedPreferences.edit().putBoolean(SharedPrefKeys.FORCE_REBUILD, false).apply();
  /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/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/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();
  /developers/samples/android/input/autofill/AutofillFramework/afservice/src/androidTest/java/com/example/android/autofill/service/data/source/local/
LocalDataSourceTest.java 21 import android.content.SharedPreferences;
48 SharedPreferences sharedPreferences = InstrumentationRegistry.getContext()
52 mLocalDataSource = LocalAutofillDataSource.getInstance(sharedPreferences,
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/
AnswerHintFactory.java 20 import android.content.SharedPreferences;
75 SharedPreferences sharedPreferences = StorageComponent.get(context).unencryptedSharedPrefs();
76 int answeredCount = sharedPreferences.getInt(ANSWERED_COUNT_PREFERENCE_KEY, 0);
77 sharedPreferences.edit().putInt(ANSWERED_COUNT_PREFERENCE_KEY, answeredCount + 1).apply();
  /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...]
  /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);
  /packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
BluetoothUtils.java 20 import android.content.SharedPreferences;
83 private static SharedPreferences getSharedPreferences(Context context) {
113 SharedPreferences sharedPreferences = getSharedPreferences(context);
116 long lastDiscoverableEndTime = sharedPreferences.getLong(
137 String lastSelectedDevice = sharedPreferences.getString(
141 long lastDeviceSelectedTime = sharedPreferences.getLong(
  /packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/
Cp2DefaultDirectoryPhoneLookup.java 20 import android.content.SharedPreferences;
73 private final SharedPreferences sharedPreferences;
82 @Unencrypted SharedPreferences sharedPreferences,
86 this.sharedPreferences = sharedPreferences;
155 () -> sharedPreferences.getLong(PREF_LAST_TIMESTAMP_PROCESSED, 0L));
445 () -> sharedPreferences.getLong(PREF_LAST_TIMESTAMP_PROCESSED, 0L));
545 sharedPreferences
    [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/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...]
  /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();
  /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...]
  /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/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;
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();
  /packages/apps/EmergencyInfo/src/com/android/emergency/edit/
EditInfoActivity.java 27 import android.content.SharedPreferences;
126 SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
128 sharedPreferences.edit().remove(key).commit();
130 sharedPreferences.edit().remove(PreferenceKeys.KEY_EMERGENCY_CONTACTS).commit();
  /packages/apps/Settings/src/com/android/settings/
SettingsDumpService.java 20 import android.content.SharedPreferences;
172 final SharedPreferences sharedPreferences = getSharedPreferences(
175 final int currentVersion = sharedPreferences.getInt(
  /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();

Completed in 1907 milliseconds

1 2 3