/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()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardThemeTests.java | 48 private SharedPreferences mPrefs; field in KeyboardThemeTests 61 mPrefs = PreferenceManager.getDefaultSharedPreferences(getContext()); in setUp() 84 mPrefs.edit().putString(prefKey, themeIdString).apply(); in setKeyboardThemePreference() 89 mPrefs.edit().remove(prefKey).apply(); in setKeyboardThemePreference() 94 mPrefs.edit().putString(prefKey, ILLEGAL_THEME_ID_STRING).apply(); in setKeyboardThemePreference() 99 mPrefs, sdkVersion, KeyboardTheme.KEYBOARD_THEMES); in assertKeyboardTheme() 165 mPrefs, sdkVersion, KeyboardTheme.KEYBOARD_THEMES); in assertDefaultKeyboardTheme() 171 assertEquals(isValidKeyboardThemeId(previousThemeId), mPrefs.contains(oldPrefKey)); in assertDefaultKeyboardTheme() 175 assertFalse(mPrefs.contains(oldPrefKey)); in assertDefaultKeyboardTheme() 222 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 …]
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/ |
D | TmaBrowser.java | 54 private TmaPrefs mPrefs; field in TmaBrowser 66 mPrefs = TmaPrefs.getInstance(this); in onCreate() 79 mPrefs.mAccountType.registerChangeListener( in onCreate() 82 mPrefs.mRootNodeType.registerChangeListener( in onCreate() 85 mPrefs.mRootReplyDelay.registerChangeListener( in onCreate() 97 mPrefs = null; in onDestroy() 142 TmaNodeReplyDelay delay = mPrefs.mRootReplyDelay.getValue(); in getMediaItemsWithDelay() 145 if (TmaAccountType.NONE.equals(mPrefs.mAccountType.getValue())) { in getMediaItemsWithDelay() 148 node = mLibrary.getRoot(mPrefs.mRootNodeType.getValue()); in getMediaItemsWithDelay()
|
/packages/apps/Launcher3/src/com/android/launcher3/states/ |
D | RotationHelper.java | 56 private final SharedPreferences mPrefs; field in RotationHelper 87 mPrefs = Utilities.getPrefs(mLauncher); in RotationHelper() 88 mPrefs.registerOnSharedPreferenceChangeListener(this); in RotationHelper() 89 mAutoRotateEnabled = mPrefs.getBoolean(ALLOW_ROTATION_PREFERENCE_KEY, in RotationHelper() 92 mPrefs = null; in RotationHelper() 122 mAutoRotateEnabled = mPrefs.getBoolean(ALLOW_ROTATION_PREFERENCE_KEY, in onSharedPreferenceChanged() 172 if (mPrefs != null) { in destroy() 173 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in destroy()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarSanityChecker.java | 74 final SharedPreferences mPrefs; field in CalendarSanityChecker 78 mPrefs = mContext.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); in CalendarSanityChecker() 118 mPrefs.edit() in updateLastCheckTime() 135 lastBootCount = mPrefs.getLong(LAST_CHECK_BOOT_COUNT_PREF_KEY, -1); in checkLastCheckTime() 136 lastCheckTime = mPrefs.getLong(LAST_CHECK_REALTIME_PREF_KEY, -1); in checkLastCheckTime() 137 lastWtfTime = mPrefs.getLong(LAST_WTF_REALTIME_PREF_KEY, 0); in checkLastCheckTime() 181 mPrefs.edit() in checkLastCheckTime()
|
/packages/apps/Car/Radio/src/com/android/car/radio/storage/ |
D | RadioStorage.java | 49 private final SharedPreferences mPrefs; field in RadioStorage 54 mPrefs = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); in RadioStorage() 154 SharedPreferences.Editor editor = mPrefs.edit(); in setRecentlySelected() 161 if (!mPrefs.getString(prefName, "").equals(selUriStr)) { in setRecentlySelected() 166 if (mPrefs.getInt(PREF_KEY_RECENT_TYPE, -1) != ptid) { in setRecentlySelected() 184 int ptid = pt != null ? pt.id : mPrefs.getInt(PREF_KEY_RECENT_TYPE, -1); in getRecentlySelected() 187 String selUriStr = mPrefs.getString(PREF_KEY_RECENT_PROGRAM_PREFIX + ptid, ""); in getRecentlySelected()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RespondViaSmsSettings.java | 43 private SharedPreferences mPrefs; field in RespondViaSmsSettings 56 mPrefs = getPreferenceManager().getSharedPreferences(); in onCreate() 57 QuickResponseUtils.maybeResetQuickResponses(this, mPrefs); in onCreate() 109 SharedPreferences.Editor editor = mPrefs.edit(); in onPreferenceChange() 113 QuickResponseUtils.maybeResetQuickResponses(this, mPrefs); in onPreferenceChange() 142 pref.setText(mPrefs.getString(pref.getKey(), pref.getText())); in initPref()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/ |
D | AccountsChangedReceiverTests.java | 47 private SharedPreferences mPrefs; field in AccountsChangedReceiverTests 56 mPrefs = PreferenceManager.getDefaultSharedPreferences(getContext()); in setUp() 58 mLastKnownAccount = mPrefs.getString(LocalSettingsConstants.PREF_ACCOUNT_NAME, null); in setUp() 120 mPrefs.edit().remove(LocalSettingsConstants.PREF_ACCOUNT_NAME).apply(); in updateAccountName() 122 mPrefs.edit().putString(LocalSettingsConstants.PREF_ACCOUNT_NAME, accountName).apply(); in updateAccountName() 128 mPrefs.getString(LocalSettingsConstants.PREF_ACCOUNT_NAME, null)); in assertAccountName()
|
/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/apps/PermissionController/src/com/android/packageinstaller/permission/data/ |
D | BooleanSharedPreferenceLiveData.java | 41 private final @NonNull SharedPreferences mPrefs; field in BooleanSharedPreferenceLiveData 63 mPrefs = getParentUserContext(application).getSharedPreferences(PREFERENCES_FILE, in BooleanSharedPreferenceLiveData() 70 onSharedPreferenceChanged(mPrefs, mKey); in onActive() 71 mPrefs.registerOnSharedPreferenceChangeListener(this); in onActive() 76 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onInactive()
|
D | ForcedUserSensitiveUidsLiveData.java | 48 private final SharedPreferences mPrefs; field in ForcedUserSensitiveUidsLiveData 67 mPrefs = getParentUserContext(application).getSharedPreferences(PREFERENCES_FILE, in ForcedUserSensitiveUidsLiveData() 73 onSharedPreferenceChanged(mPrefs, FORCED_USER_SENSITIVE_UIDS_KEY); in onActive() 74 mPrefs.registerOnSharedPreferenceChangeListener(this); in onActive() 79 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onInactive()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | P2pPermissionManager.java | 54 private final SharedPreferences mPrefs; field in P2pPermissionManager 59 mPrefs = mContext.getSharedPreferences(TAG, 0); in P2pPermissionManager() 77 mPrefs.edit().putString(STATE_KEY, state.name()).apply(); in setState() 148 mPrefs.unregisterOnSharedPreferenceChangeListener(preferenceListener); in request() 184 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in listenForPreferenceChanges() 188 mPrefs.registerOnSharedPreferenceChangeListener(preferenceListener); in listenForPreferenceChanges() 238 String stateString = mPrefs.getString(STATE_KEY, State.DENIED.name()); in getState()
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
D | VisualVoicemailSmsFilterConfig.java | 152 private final SharedPreferences mPrefs; field in VisualVoicemailSmsFilterConfig.Reader 156 mPrefs = getSharedPreferences(context); in Reader() 161 return mPrefs.getInt(makeKey(key), defaultValue); in getInt() 165 return mPrefs.getString(makeKey(key), defaultValue); in getString() 169 return mPrefs.getBoolean(makeKey(key), defaultValue); in getBoolean() 173 Set<String> result = mPrefs.getStringSet(makeKey(key), null); in getStringSet()
|
/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/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 | 38 private SharedPreferences mPrefs; field in PreferencesMonitorTest 45 mPrefs = InstrumentationRegistry.getContext().getSharedPreferences("MonitorTest0", 0); in setUp() 46 mMonitor = new PreferencesMonitor("Poodles", mPrefs, mConsumer); in setUp() 57 mPrefs.edit().putBoolean(ScopedPreferences.INCLUDE_DEVICE_ROOT, true).apply(); in testReportsChangesToListener()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/ |
D | AdjustUserSensitiveFragment.java | 253 private final @NonNull SharedPreferences mPrefs; field in AdjustUserSensitiveFragment.UserSensitiveOverrideViewModel 263 mPrefs = getParentUserContext(application).getSharedPreferences(PREFERENCES_FILE, in UserSensitiveOverrideViewModel() 322 Set<String> currentOverrides = mPrefs.getStringSet(FORCED_USER_SENSITIVE_UIDS_KEY, in setUidUserSensitive() 344 mPrefs.edit().remove(FORCED_USER_SENSITIVE_UIDS_KEY).apply(); in setUidUserSensitive() 346 mPrefs.edit().putStringSet(FORCED_USER_SENSITIVE_UIDS_KEY, newOverrides).apply(); in setUidUserSensitive() 361 SharedPreferences.Editor sharedPrefChanges = mPrefs.edit(); in setAllowOverrideUserSensitive() 392 SharedPreferences.Editor sharedPrefChanges = mPrefs.edit(); in setAssistantRecordAudioIsUserSensitive()
|
/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | FastScrollingIndexCacheTest.java | 30 private MockSharedPreferences mPrefs; field in FastScrollingIndexCacheTest 54 mPrefs = new MockSharedPreferences(); in setUp() 55 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); in setUp() 142 FastScrollingIndexCache cache2 = FastScrollingIndexCache.getInstanceForTest(mPrefs); in testPutAndGet() 150 mPrefs.edit().putString(FastScrollingIndexCache.PREFERENCE_KEY, "123"); in testMalformedPreferences()
|
/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/apps/ThemePicker/src/com/android/customization/module/ |
D | DefaultCustomizationInjector.java | 43 private WallpaperPreferences mPrefs; field in DefaultCustomizationInjector 47 if (mPrefs == null) { in getPreferences() 48 mPrefs = new DefaultCustomizationPreferences(context.getApplicationContext()); in getPreferences() 50 return mPrefs; in getPreferences()
|
/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()
|