/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 | 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 | 42 private final SharedPreferences mPrefs; field in StopwatchModel 69 mPrefs = prefs; in StopwatchModel() 97 mStopwatch = StopwatchDAO.getStopwatch(mPrefs); in getStopwatch() 109 StopwatchDAO.setStopwatch(mPrefs, stopwatch); in setStopwatch() 150 StopwatchDAO.addLap(mPrefs, lapNumber, totalTime); in addLap() 176 StopwatchDAO.clearLaps(mPrefs); in clearLaps() 243 mLaps = StopwatchDAO.getLaps(mPrefs); in getMutableLaps()
|
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.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/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestWallpaperPersister.java | 41 private WallpaperPreferences mPrefs; field in TestWallpaperPersister 60 mPrefs = InjectorProvider.getInjector().getPreferences(appContext); in TestWallpaperPersister() 78 mPrefs.setHomeWallpaperAttributions(wallpaperInfo.getAttributions(mAppContext)); in setIndividualWallpaper() 79 mPrefs.setWallpaperPresentationMode( in setIndividualWallpaper() 81 mPrefs.setHomeWallpaperRemoteId(wallpaperInfo.getWallpaperId()); in setIndividualWallpaper() 85 mPrefs.setLockWallpaperAttributions(wallpaperInfo.getAttributions(mAppContext)); in setIndividualWallpaper() 101 mPrefs.setHomeWallpaperAttributions(wallpaper.getAttributions(mAppContext)); in setIndividualWallpaperWithPosition() 102 mPrefs.setHomeWallpaperBaseImageUrl(wallpaper.getBaseImageUrl()); in setIndividualWallpaperWithPosition() 103 mPrefs.setHomeWallpaperActionUrl(wallpaper.getActionUrl(mAppContext)); in setIndividualWallpaperWithPosition() 104 mPrefs.setHomeWallpaperCollectionId(wallpaper.getCollectionId(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 | 67 private TmaPrefs mPrefs; field in TmaBrowser 78 mPrefs = TmaPrefs.getInstance(this); in onCreate() 94 mPrefs.mAccountType.registerChangeListener( in onCreate() 97 mPrefs.mRootNodeType.registerChangeListener( in onCreate() 100 mPrefs.mRootReplyDelay.registerChangeListener( in onCreate() 107 updatePlaybackState(mPrefs.mAccountType.getValue()); in onCreate() 114 mPrefs = null; in onDestroy() 119 if (PLAYBACK_STATE_UPDATE_FIRST.equals(mPrefs.mLoginEventOrder.getValue())) { in onAccountChanged() 170 if (QUEUE_ONLY.equals(mPrefs.mRootNodeType.getValue()) && ROOT_ID.equals(parentId)) { in onLoadChildren() 188 TmaReplyDelay delay = mPrefs.mRootReplyDelay.getValue(); in getMediaItemsWithDelay() [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/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/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/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/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()
|