/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | SettingsModel.java | 38 private final SharedPreferences mPrefs; field in SettingsModel 48 mPrefs = prefs; in SettingsModel() 56 return SettingsDAO.getGlobalIntentId(mPrefs); in getGlobalIntentId() 60 SettingsDAO.updateGlobalIntentId(mPrefs); in updateGlobalIntentId() 64 return SettingsDAO.getCitySort(mPrefs); in getCitySort() 68 SettingsDAO.toggleCitySort(mPrefs); in toggleCitySort() 72 return SettingsDAO.getHomeTimeZone(mContext, mPrefs, TimeZone.getDefault()); in getHomeTimeZone() 76 return SettingsDAO.getClockStyle(mContext, mPrefs); in getClockStyle() 80 return SettingsDAO.getDisplayClockSeconds(mPrefs); in getDisplayClockSeconds() 84 SettingsDAO.setDisplayClockSeconds(mPrefs, shouldDisplaySeconds); in setDisplayClockSeconds() [all …]
|
D | StopwatchModel.java | 39 private final SharedPreferences mPrefs; field in StopwatchModel 66 mPrefs = prefs; in StopwatchModel() 94 mStopwatch = StopwatchDAO.getStopwatch(mPrefs); in getStopwatch() 106 StopwatchDAO.setStopwatch(mPrefs, stopwatch); in setStopwatch() 147 StopwatchDAO.addLap(mPrefs, lapNumber, totalTime); in addLap() 173 StopwatchDAO.clearLaps(mPrefs); in clearLaps() 240 mLaps = StopwatchDAO.getLaps(mPrefs); in getMutableLaps()
|
D | RingtoneModel.java | 57 private final SharedPreferences mPrefs; field in RingtoneModel 71 mPrefs = prefs; in RingtoneModel() 90 final CustomRingtone ringtone = CustomRingtoneDAO.addCustomRingtone(mPrefs, uri, title); in addCustomRingtone() 100 CustomRingtoneDAO.removeCustomRingtone(mPrefs, ringtone.getId()); in removeCustomRingtone() 195 mCustomRingtones = CustomRingtoneDAO.getCustomRingtones(mPrefs); in getMutableCustomRingtones()
|
D | TimerModel.java | 67 private final SharedPreferences mPrefs; field in TimerModel 134 mPrefs = prefs; in TimerModel() 220 timer = TimerDAO.addTimer(mPrefs, timer); in addTimer() 474 mTimers = TimerDAO.getTimers(mPrefs); in getMutableTimers() 530 TimerDAO.updateTimer(mPrefs, timer); in doUpdateTimer() 566 TimerDAO.removeTimer(mPrefs, timer); in doRemoveTimer()
|
D | CityModel.java | 47 private final SharedPreferences mPrefs; field in CityModel 83 mPrefs = prefs; in CityModel() 166 final List<City> selectedCities = CityDAO.getSelectedCities(mPrefs, getCityMap()); in getSelectedCities() 179 CityDAO.setSelectedCities(mPrefs, cities); in setSelectedCities()
|
D | WidgetModel.java | 30 private final SharedPreferences mPrefs; field in WidgetModel 33 mPrefs = prefs; in WidgetModel() 42 int delta = WidgetDAO.updateWidgetCount(mPrefs, widgetClass, count); in updateWidgetCount()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardThemeTests.java | 35 private SharedPreferences mPrefs; field in KeyboardThemeTests 45 mPrefs = PreferenceManager.getDefaultSharedPreferences(getContext()); in setUp() 68 mPrefs.edit().putString(prefKey, themeIdString).apply(); in setKeyboardThemePreference() 73 mPrefs.edit().remove(prefKey).apply(); in setKeyboardThemePreference() 78 mPrefs.edit().putString(prefKey, ILLEGAL_THEME_ID_STRING).apply(); in setKeyboardThemePreference() 83 mPrefs, sdkVersion, KeyboardTheme.KEYBOARD_THEMES); in assertKeyboardTheme() 147 mPrefs, sdkVersion, KeyboardTheme.KEYBOARD_THEMES); in assertDefaultKeyboardTheme() 153 assertEquals(isValidKeyboardThemeId(previousThemeId), mPrefs.contains(oldPrefKey)); in assertDefaultKeyboardTheme() 157 assertFalse(mPrefs.contains(oldPrefKey)); in assertDefaultKeyboardTheme() 202 mPrefs, sdkVersion, KeyboardTheme.KEYBOARD_THEMES); in assertUpgradeKeyboardToLxxOn() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 125 private SharedPreferences mPrefs; field in Settings 146 mPrefs = PreferenceManager.getDefaultSharedPreferences(context); in onCreate() 147 mPrefs.registerOnSharedPreferenceChangeListener(this); in onCreate() 148 upgradeAutocorrectionSettings(mPrefs, mRes); in onCreate() 152 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onDestroy() 177 final SharedPreferences prefs = mPrefs; in loadSettings() 383 mPrefs.edit().remove(PREF_LAST_USED_PERSONALIZATION_TOKEN).apply(); in writeLastUsedPersonalizationToken() 386 mPrefs.edit().putString(PREF_LAST_USED_PERSONALIZATION_TOKEN, tokenStr).apply(); in writeLastUsedPersonalizationToken() 391 final String tokenStr = mPrefs.getString(PREF_LAST_USED_PERSONALIZATION_TOKEN, null); in readLastUsedPersonalizationToken() 396 mPrefs.edit().putLong(PREF_LAST_PERSONALIZATION_DICT_WIPED_TIME, timestamp).apply(); in writeLastPersonalizationDictWipedTime() [all …]
|
D | CustomInputStyleSettingsFragment.java | 58 private SharedPreferences mPrefs; field in CustomInputStyleSettingsFragment 98 mPrefs = getPreferenceManager().getSharedPreferences(); in onCreate() 123 Settings.readPrefAdditionalSubtypes(mPrefs, getResources()); in onActivityCreated() 287 final String oldSubtypes = Settings.readPrefAdditionalSubtypes(mPrefs, getResources()); in onPause() 296 Settings.writePrefAdditionalSubtypes(mPrefs, prefSubtypes); in onPause()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/ |
D | AccountsChangedReceiverTests.java | 35 private SharedPreferences mPrefs; field in AccountsChangedReceiverTests 41 mPrefs = PreferenceManager.getDefaultSharedPreferences(getContext()); in setUp() 43 mLastKnownAccount = mPrefs.getString(LocalSettingsConstants.PREF_ACCOUNT_NAME, null); in setUp() 102 mPrefs.edit().remove(LocalSettingsConstants.PREF_ACCOUNT_NAME).apply(); in updateAccountName() 104 mPrefs.edit().putString(LocalSettingsConstants.PREF_ACCOUNT_NAME, accountName).apply(); in updateAccountName() 110 mPrefs.getString(LocalSettingsConstants.PREF_ACCOUNT_NAME, null)); in assertAccountName()
|
/packages/services/Car/TrustAgent/src/com/android/car/trust/ |
D | CarEnrolmentActivity.java | 64 private SharedPreferences mPrefs; field in CarEnrolmentActivity 85 mPrefs.edit().putLong(SP_HANDLE_KEY, handle).apply(); 108 mPrefs = PreferenceManager.getDefaultSharedPreferences(this /* context */); in onCreate() 159 if (!mPrefs.contains(SP_HANDLE_KEY)) { in onResume() 165 mHandle = mPrefs.getLong(SP_HANDLE_KEY, -1); in onResume() 231 if (mPrefs.contains(SP_HANDLE_KEY)) { in addEscrowToken() 232 handle = mPrefs.getLong(SP_HANDLE_KEY, -1); in addEscrowToken()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | AccountTypeManagerTest.java | 59 @Mock private SharedPreferences mPrefs; field in AccountTypeManagerTest 99 when(mPrefs.getString(Mockito.anyString(), Mockito.anyString())).thenReturn( in testGetDefaultAccount_NoAccounts_DefaultPreferenceSet() 111 when(mPrefs.getString(Mockito.anyString(), Mockito.anyString())).thenReturn( in testGetDefaultAccount_DefaultAccountPreferenceSet() 118 when(mPrefs.getString(Mockito.anyString(), Mockito.anyString())).thenReturn( in testGetDefaultAccount_DefaultAccountPreferenceSet_NonGoogleAccountType() 125 when(mPrefs.getString(Mockito.anyString(), Mockito.anyString())).thenReturn( in testGetDefaultAccount_DefaultAccountPreferenceSet_UnknownName() 133 mAccountManager, mPrefs, "contact_editor_default_account_key"); in getDefaultGoogleAccountName()
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
D | VisualVoicemailSmsFilterConfig.java | 153 private final SharedPreferences mPrefs; field in VisualVoicemailSmsFilterConfig.Reader 157 mPrefs = getSharedPreferences(context); in Reader() 162 return mPrefs.getInt(makeKey(key), defaultValue); in getInt() 166 return mPrefs.getString(makeKey(key), defaultValue); in getString() 170 return mPrefs.getBoolean(makeKey(key), defaultValue); in getBoolean() 174 Set<String> result = mPrefs.getStringSet(makeKey(key), null); in getStringSet()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | CachedPackageTracker.java | 44 protected final SharedPreferences mPrefs; field in CachedPackageTracker 49 mPrefs = context.getSharedPreferences(preferenceFileName, Context.MODE_PRIVATE); in CachedPackageTracker() 80 mPrefs.edit().putStringSet(prefKey, newPackageSet).apply(); in processUserApps() 100 Set<String> userApps = mPrefs.getStringSet(prefKey, null); in getUserApps() 114 mPrefs.edit().putStringSet(prefKey, packageSet).apply(); in onPackageRemoved() 132 mPrefs.edit().putStringSet(prefKey, packageSet).apply(); in onPackageAdded()
|
D | ManagedProfileHeuristic.java | 156 if (!mPrefs.contains(folderIdKey)) { in finalizeWorkFolder() 158 mPrefs.edit().putLong(folderIdKey, -1).apply(); in finalizeWorkFolder() 162 if (mPrefs.contains(folderIdKey)) { in finalizeWorkFolder() 163 long folderId = mPrefs.getLong(folderIdKey, 0); in finalizeWorkFolder() 199 mPrefs.edit().putLong(folderIdKey, workFolder.id).apply(); in finalizeWorkFolder()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiCategory.java | 150 private final SharedPreferences mPrefs; field in EmojiCategory 165 mPrefs = prefs; in EmojiCategory() 208 mCurrentCategoryId = Settings.readLastShownEmojiCategoryId(mPrefs, defaultCategoryId); in EmojiCategory() 280 Settings.writeLastShownEmojiCategoryId(mPrefs, categoryId); in setCurrentCategoryId() 293 mPrefs, mCurrentCategoryId, mCurrentCategoryPageId); in saveLastTypedCategoryPage() 313 Settings.readLastTypedEmojiCategoryPageId(mPrefs, categoryId); in getPageIdFromCategoryId() 373 final DynamicGridKeyboard kbd = new DynamicGridKeyboard(mPrefs, in getKeyboard() 384 final DynamicGridKeyboard tempKeyboard = new DynamicGridKeyboard(mPrefs, in getKeyboard()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactBrowseListFragment.java | 75 private SharedPreferences mPrefs; field in ContactBrowseListFragment 177 mPrefs = PreferenceManager.getDefaultSharedPreferences(activity); in onAttach() 626 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveSelectedUri() 628 Editor editor = mPrefs.edit(); in saveSelectedUri() 644 String selectedUri = mPrefs.getString(getPersistentSelectionKey(), null); in restoreSelectedUri() 653 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveFilter() 657 mFilter = ContactListFilter.restoreDefaultPreferences(mPrefs); in restoreFilter()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/ |
D | PreferencesMonitor.java | 37 private final SharedPreferences mPrefs; field in PreferencesMonitor 47 mPrefs = prefs; in PreferencesMonitor() 52 mPrefs.registerOnSharedPreferenceChangeListener(mListener); in start() 56 mPrefs.unregisterOnSharedPreferenceChangeListener(mListener); in stop()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/prefs/ |
D | PreferencesMonitorTest.java | 37 private SharedPreferences mPrefs; field in PreferencesMonitorTest 44 mPrefs = InstrumentationRegistry.getContext().getSharedPreferences("MonitorTest0", 0); in setUp() 45 mMonitor = new PreferencesMonitor("Poodles", mPrefs, mConsumer); in setUp() 56 mPrefs.edit().putBoolean(ScopedPreferences.INCLUDE_DEVICE_ROOT, true).apply(); in testReportsChangesToListener()
|
/packages/apps/Dialer/java/com/android/dialer/voicemailstatus/ |
D | VisualVoicemailEnabledChecker.java | 45 private SharedPreferences mPrefs; field in VisualVoicemailEnabledChecker 55 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in VisualVoicemailEnabledChecker() 57 mHasActiveVoicemailProvider = mPrefs.getBoolean(PREF_KEY_HAS_ACTIVE_VOICEMAIL_PROVIDER, false); in VisualVoicemailEnabledChecker() 83 mPrefs in onVoicemailStatusFetched()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | FastScrollingIndexCacheTest.java | 31 private MockSharedPreferences mPrefs; field in FastScrollingIndexCacheTest 55 mPrefs = new MockSharedPreferences(); in setUp() 56 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); in setUp() 143 FastScrollingIndexCache cache2 = FastScrollingIndexCache.getInstanceForTest(mPrefs); in testPutAndGet() 151 mPrefs.edit().putString(FastScrollingIndexCache.PREFERENCE_KEY, "123"); in testMalformedPreferences()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
D | RotationPreferenceTest.java | 19 private SharedPreferences mPrefs; field in RotationPreferenceTest 29 mPrefs = Utilities.getPrefs(mTargetContext); in setUp() 30 mOriginalRotationValue = mPrefs.getBoolean(Utilities.ALLOW_ROTATION_PREFERENCE_KEY, false); in setUp() 68 mPrefs.edit().putBoolean(Utilities.ALLOW_ROTATION_PREFERENCE_KEY, enabled).commit();
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RespondViaSmsSettings.java | 43 private SharedPreferences mPrefs; field in RespondViaSmsSettings 56 mPrefs = getPreferenceManager().getSharedPreferences(); in onCreate() 108 SharedPreferences.Editor editor = mPrefs.edit(); in onPreferenceChange() 138 pref.setText(mPrefs.getString(pref.getKey(), pref.getText())); in initPref()
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | TabModel.java | 35 private final SharedPreferences mPrefs; field in TabModel 50 mPrefs = prefs; in TabModel() 106 mSelectedTab = TabDAO.getSelectedTab(mPrefs); in getSelectedTab() 118 TabDAO.setSelectedTab(mPrefs, tab); in setSelectedTab()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | FastScrollingIndexCache.java | 70 private final SharedPreferences mPrefs; field in FastScrollingIndexCache 112 mPrefs = prefs; in FastScrollingIndexCache() 255 mPrefs.edit().remove(PREFERENCE_KEY).commit(); in invalidate() 280 mPrefs.edit().putString(PREFERENCE_KEY, sb.toString()).apply(); in save() 295 final String savedValue = mPrefs.getString(PREFERENCE_KEY, null); in ensureLoaded()
|