/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | SettingsModel.kt | 33 private val mPrefs: SharedPreferences, constant in com.android.deskclock.data.SettingsModel 43 SettingsDAO.setDefaultDisplayClockSeconds(mContext, mPrefs) 47 get() = SettingsDAO.getGlobalIntentId(mPrefs) 50 SettingsDAO.updateGlobalIntentId(mPrefs) in updateGlobalIntentId() 54 get() = SettingsDAO.getCitySort(mPrefs) 57 SettingsDAO.toggleCitySort(mPrefs) in toggleCitySort() 61 get() = SettingsDAO.getHomeTimeZone(mContext, mPrefs, TimeZone.getDefault()) 64 get() = SettingsDAO.getClockStyle(mContext, mPrefs) 67 get() = SettingsDAO.getDisplayClockSeconds(mPrefs) 69 SettingsDAO.setDisplayClockSeconds(mPrefs, shouldDisplaySeconds) [all …]
|
D | StopwatchModel.kt | 35 private val mPrefs: SharedPreferences, constant in com.android.deskclock.data.StopwatchModel 84 mStopwatch = StopwatchDAO.getStopwatch(mPrefs) 96 StopwatchDAO.setStopwatch(mPrefs, stopwatch) in setStopwatch() 136 StopwatchDAO.addLap(mPrefs, lapNumber, totalTime) in addLap() 162 StopwatchDAO.clearLaps(mPrefs) in clearLaps() 230 mLaps = StopwatchDAO.getLaps(mPrefs)
|
D | RingtoneModel.kt | 47 internal class RingtoneModel(private val mContext: Context, private val mPrefs: SharedPreferences) { constant in com.android.deskclock.data.RingtoneModel 75 val ringtone = CustomRingtoneDAO.addCustomRingtone(mPrefs, uri, title) in addCustomRingtone() 85 CustomRingtoneDAO.removeCustomRingtone(mPrefs, ringtone.id) in removeCustomRingtone() 186 mCustomRingtones = CustomRingtoneDAO.getCustomRingtones(mPrefs)
|
D | TimerModel.kt | 50 private val mPrefs: SharedPreferences, constant in com.android.deskclock.data.TimerModel 111 mPrefs.registerOnSharedPreferenceChangeListener(mPreferenceListener) 187 timer = TimerDAO.addTimer(mPrefs, timer) in addTimer() 431 mTimers = TimerDAO.getTimers(mPrefs) 487 TimerDAO.updateTimer(mPrefs, timer) in doUpdateTimer() 524 TimerDAO.removeTimer(mPrefs, timerVar) in doRemoveTimer()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestWallpaperPersister.java | 41 private WallpaperPreferences mPrefs; field in TestWallpaperPersister 61 mPrefs = InjectorProvider.getInjector().getPreferences(appContext); in TestWallpaperPersister() 80 mPrefs.setHomeWallpaperAttributions(wallpaperInfo.getAttributions(mAppContext)); in setIndividualWallpaper() 81 mPrefs.setWallpaperPresentationMode( in setIndividualWallpaper() 83 mPrefs.setHomeWallpaperRemoteId(wallpaperInfo.getWallpaperId()); in setIndividualWallpaper() 87 mPrefs.setLockWallpaperAttributions(wallpaperInfo.getAttributions(mAppContext)); in setIndividualWallpaper() 88 mPrefs.setLockWallpaperRemoteId(wallpaperInfo.getWallpaperId()); in setIndividualWallpaper() 105 mPrefs.setHomeWallpaperAttributions(wallpaper.getAttributions(mAppContext)); in setIndividualWallpaperWithPosition() 106 mPrefs.setHomeWallpaperBaseImageUrl(wallpaper.getBaseImageUrl()); in setIndividualWallpaperWithPosition() 107 mPrefs.setHomeWallpaperActionUrl(wallpaper.getActionUrl(mAppContext)); in setIndividualWallpaperWithPosition() [all …]
|
/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/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/ |
D | TmaBrowser.java | 73 private TmaPrefs mPrefs; field in TmaBrowser 88 mPrefs = TmaPrefs.getInstance(this); in onCreate() 111 mPrefs.mAccountType.registerChangeListener(mOnAccountChanged); in onCreate() 112 mPrefs.mRootNodeType.registerChangeListener(mOnRootNodeTypeChanged); in onCreate() 113 mPrefs.mRootReplyDelay.registerChangeListener(mOnReplyDelayChanged); in onCreate() 119 updatePlaybackState(mPrefs.mAccountType.getValue()); in onCreate() 124 mPrefs.mAccountType.unregisterChangeListener(mOnAccountChanged); in onDestroy() 125 mPrefs.mRootNodeType.unregisterChangeListener(mOnRootNodeTypeChanged); in onDestroy() 126 mPrefs.mRootReplyDelay.unregisterChangeListener(mOnReplyDelayChanged); in onDestroy() 129 mPrefs = null; in onDestroy() [all …]
|
/packages/apps/Car/Radio/src/com/android/car/radio/storage/ |
D | RadioStorage.java | 52 private final SharedPreferences mPrefs; field in RadioStorage 57 mPrefs = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); in RadioStorage() 157 SharedPreferences.Editor editor = mPrefs.edit(); in setRecentlySelected() 164 if (!mPrefs.getString(prefName, "").equals(selUriStr)) { in setRecentlySelected() 169 if (mPrefs.getInt(PREF_KEY_RECENT_TYPE, -1) != ptid) { in setRecentlySelected() 187 int ptid = pt != null ? pt.id : mPrefs.getInt(PREF_KEY_RECENT_TYPE, -1); in getRecentlySelected() 190 String selUriStr = mPrefs.getString(PREF_KEY_RECENT_PROGRAM_PREFIX + ptid, ""); in getRecentlySelected() 201 SharedPreferences.Editor editor = mPrefs.edit(); in setSkipMode() 203 if (mPrefs.getInt(PREF_KEY_SKIP_MODE, in setSkipMode() 215 int value = mPrefs.getInt(PREF_KEY_SKIP_MODE, SkipMode.DEFAULT_MODE.ordinal()); in getSkipMode()
|
/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/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarConfidenceChecker.java | 69 final SharedPreferences mPrefs; field in CalendarConfidenceChecker 73 mPrefs = mContext.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); in CalendarConfidenceChecker() 106 mPrefs.edit() in updateLastCheckTime() 123 lastBootCount = mPrefs.getLong(LAST_CHECK_BOOT_COUNT_PREF_KEY, -1); in checkLastCheckTime() 124 lastCheckTime = mPrefs.getLong(LAST_CHECK_REALTIME_PREF_KEY, -1); in checkLastCheckTime() 125 lastWtfTime = mPrefs.getLong(LAST_WTF_REALTIME_PREF_KEY, 0); in checkLastCheckTime() 169 mPrefs.edit() in checkLastCheckTime()
|
/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/services/Telecomm/src/com/android/server/telecom/ |
D | RespondViaSmsSettings.java | 45 private SharedPreferences mPrefs; field in RespondViaSmsSettings 58 mPrefs = getPreferenceManager().getSharedPreferences(); in onCreate() 59 QuickResponseUtils.maybeResetQuickResponses(this, mPrefs); in onCreate() 114 SharedPreferences.Editor editor = mPrefs.edit(); in onPreferenceChange() 119 QuickResponseUtils.maybeResetQuickResponses(this, mPrefs); in onPreferenceChange() 148 pref.setText(mPrefs.getString(pref.getKey(), pref.getText())); in initPref()
|
/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.any())).thenReturn( in testGetDefaultAccount_NoAccounts_DefaultPreferenceSet() 111 when(mPrefs.getString(Mockito.anyString(), Mockito.any())).thenReturn( in testGetDefaultAccount_DefaultAccountPreferenceSet() 118 when(mPrefs.getString(Mockito.anyString(), Mockito.any())).thenReturn( in testGetDefaultAccount_DefaultAccountPreferenceSet_NonGoogleAccountType() 125 when(mPrefs.getString(Mockito.anyString(), Mockito.any())).thenReturn( in testGetDefaultAccount_DefaultAccountPreferenceSet_UnknownName() 133 mAccountManager, mPrefs, "contact_editor_default_account_key"); in getDefaultGoogleAccountName()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | P2pPermissionManager.java | 56 private final SharedPreferences mPrefs; field in P2pPermissionManager 61 mPrefs = mContext.getSharedPreferences(TAG, 0); in P2pPermissionManager() 78 if (DEBUG) Log.d(TAG, "State from " + mPrefs.getString(STATE_KEY, "?") + " to " + state); in setState() 79 mPrefs.edit().putString(STATE_KEY, state.name()).apply(); in setState() 159 mPrefs.unregisterOnSharedPreferenceChangeListener(preferenceListener); in request() 207 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in listenForPreferenceChanges() 211 mPrefs.registerOnSharedPreferenceChangeListener(preferenceListener); in listenForPreferenceChanges() 268 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/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 | 40 private SharedPreferences mPrefs; field in PreferencesMonitorTest 47 mPrefs = InstrumentationRegistry.getContext().getSharedPreferences("MonitorTest0", 0); in setUp() 48 mMonitor = new PreferencesMonitor("Poodles", mPrefs, mConsumer); in setUp() 59 mPrefs.edit().putInt(LOCAL_PREFERENCE, 1).apply(); in testReportsChangesToListener()
|
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPanelViewController.java | 71 private final SharedPreferences mPrefs; field in WalletPanelViewController 86 mPrefs = mSysuiContext.getSharedPreferences(TAG, Context.MODE_PRIVATE); in WalletPanelViewController() 99 if (!mPrefs.getBoolean(PREFS_HAS_CARDS, false)) { in WalletPanelViewController() 200 mPrefs.edit().putBoolean(PREFS_HAS_CARDS, !data.isEmpty()).apply(); in onWalletCardsRetrieved() 306 mPrefs.edit().putInt(PREFS_WALLET_VIEW_HEIGHT, 0).apply(); in showEmptyStateView() 332 int expectedHeight = mPrefs.getInt(PREFS_WALLET_VIEW_HEIGHT, -1); in getExpectedMinHeight() 347 mPrefs.edit().putInt(PREFS_WALLET_VIEW_HEIGHT, bottom - top).apply(); in removeMinHeightAndRecordHeightOnLayout()
|
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/ |
D | PinnedAppsAdapter.java | 62 private final SharedPreferences mPrefs; field in PinnedAppsAdapter 75 mPrefs = launcher.getSharedPreferences(PINNED_APPS_KEY, MODE_PRIVATE); in PinnedAppsAdapter() 160 mPrefs.registerOnSharedPreferenceChangeListener(this); in init() 161 onSharedPreferenceChanged(mPrefs, PINNED_APPS_KEY); in init() 168 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in destroy() 177 mPrefs.edit().putStringSet(PINNED_APPS_KEY, in update()
|
/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/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/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/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | BaseWallpaperInjector.java | 32 private WallpaperPreferences mPrefs; field in BaseWallpaperInjector 65 if (mPrefs == null) { in getPreferences() 66 mPrefs = new DefaultWallpaperPreferences(context.getApplicationContext()); in getPreferences() 68 return mPrefs; in getPreferences()
|
/packages/apps/ThemePicker/src/com/android/customization/module/ |
D | DefaultCustomizationInjector.java | 46 private WallpaperPreferences mPrefs; field in DefaultCustomizationInjector 51 if (mPrefs == null) { in getPreferences() 52 mPrefs = new DefaultCustomizationPreferences(context.getApplicationContext()); in getPreferences() 54 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()
|