/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/apps/Contacts/src/com/android/contacts/editor/ |
D | ContactEditorUtils.java | 55 private final SharedPreferences mPrefs; field in ContactEditorUtils 68 mPrefs = mContext.getSharedPreferences(context.getPackageName(), Context.MODE_PRIVATE); in ContactEditorUtils() 85 mPrefs.edit().remove(mDefaultAccountKey).remove(KEY_KNOWN_ACCOUNTS) in cleanupForTest() 91 mPrefs.edit().remove(mDefaultAccountKey).apply(); in removeDefaultAccountForTest() 99 mPrefs.edit().putString(KEY_KNOWN_ACCOUNTS, "").putString(mDefaultAccountKey, "").apply(); in resetPreferenceValues() 111 return !mPrefs.getBoolean(mAnythingSavedKey, false); in isFirstLaunch() 125 final SharedPreferences.Editor editor = mPrefs.edit() in saveDefaultAndAllAccounts() 158 final String saved = mPrefs.getString(mDefaultAccountKey, null); in getDefaultAccount() 190 final String saved = mPrefs.getString(KEY_KNOWN_ACCOUNTS, null); in getSavedAccounts()
|
/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/apps/Launcher3/src/com/android/launcher3/util/ |
D | ManagedProfileHeuristic.java | 82 private final SharedPreferences mPrefs; field in ManagedProfileHeuristic 101 mPrefs = mContext.getSharedPreferences(LauncherFiles.MANAGED_USER_PREFERENCES_KEY, in ManagedProfileHeuristic() 132 mPrefs.edit().putStringSet(mPackageSetKey, packageSet).apply(); in processUserApps() 173 if (mPrefs.contains(folderIdKey)) { in finalizeWorkFolder() 174 long folderId = mPrefs.getLong(folderIdKey, 0); in finalizeWorkFolder() 210 mPrefs.edit().putLong(USER_FOLDER_ID_PREFIX + mUserSerial, workFolder.id).apply(); in finalizeWorkFolder() 264 mPrefs.edit().putStringSet(mPackageSetKey, packageSet).apply(); in processPackageAdd() 284 mPrefs.edit().putStringSet(mPackageSetKey, packageSet).apply(); in processPackageRemoved() 293 Set<String> userApps = mPrefs.getStringSet(mPackageSetKey, null); in getUserApps()
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
D | VisualVoicemailEnabledChecker.java | 31 private SharedPreferences mPrefs; field in VisualVoicemailEnabledChecker 50 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in VisualVoicemailEnabledChecker() 52 mHasActiveVoicemailProvider = mPrefs.getBoolean(PREF_KEY_HAS_ACTIVE_VOICEMAIL_PROVIDER, in VisualVoicemailEnabledChecker() 80 mPrefs.edit().putBoolean(PREF_KEY_HAS_ACTIVE_VOICEMAIL_PROVIDER, in onVoicemailStatusFetched()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ |
D | RotationPreferenceTest.java | 21 private SharedPreferences mPrefs; field in RotationPreferenceTest 31 mPrefs = Utilities.getPrefs(mTargetContext); in setUp() 32 mOriginalRotationValue = mPrefs.getBoolean(Utilities.ALLOW_ROTATION_PREFERENCE_KEY, false); in setUp() 79 mPrefs.edit().putBoolean(Utilities.ALLOW_ROTATION_PREFERENCE_KEY, enabled).commit();
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RespondViaSmsSettings.java | 42 private SharedPreferences mPrefs; field in RespondViaSmsSettings 55 mPrefs = getPreferenceManager().getSharedPreferences(); in onCreate() 107 SharedPreferences.Editor editor = mPrefs.edit(); in onPreferenceChange() 137 pref.setText(mPrefs.getString(pref.getKey(), pref.getText())); in initPref()
|
/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()
|
D | DynamicGridKeyboard.java | 43 private final SharedPreferences mPrefs; field in DynamicGridKeyboard 64 mPrefs = prefs; in DynamicGridKeyboard() 142 Settings.writeEmojiRecentKeys(mPrefs, jsonStr); in saveRecentKeys() 170 final String str = Settings.readEmojiRecentKeys(mPrefs); in loadRecentKeys()
|
/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()
|
D | ContactsActor.java | 313 private final MockSharedPreferences mPrefs = new MockSharedPreferences(); in ContactsActor() 344 return mPrefs; in ContactsActor()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactBrowseListFragment.java | 80 private SharedPreferences mPrefs; field in ContactBrowseListFragment 182 mPrefs = PreferenceManager.getDefaultSharedPreferences(activity); in onAttach() 627 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveSelectedUri() 629 Editor editor = mPrefs.edit(); in saveSelectedUri() 645 String selectedUri = mPrefs.getString(getPersistentSelectionKey(), null); in restoreSelectedUri() 654 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveFilter() 658 mFilter = ContactListFilter.restoreDefaultPreferences(mPrefs); in restoreFilter()
|
/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()
|
/packages/apps/Settings/src/com/android/settings/ |
D | HomeSettings.java | 88 private ArrayList<HomeAppPreference> mPrefs; field in HomeSettings 104 HomeAppPreference pref = mPrefs.get(index); 115 uninstallApp(mPrefs.get(index)); 155 for (int i = 0; i < mPrefs.size(); i++) { in onActivityResult() 156 HomeAppPreference pref = mPrefs.get(i); in onActivityResult() 173 mPrefs = new ArrayList<HomeAppPreference>(); in buildHomeActivitiesList() 199 mPrefs.add(pref); in buildHomeActivitiesList()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
D | TetherServiceTest.java | 87 @Mock private SharedPreferences mPrefs; field in TetherServiceTest 114 when(mPrefs.getString(CURRENT_TYPES, "")).thenReturn(""); in setUp() 115 when(mPrefs.edit()).thenReturn(mPrefEditor); in setUp() 305 return mPrefs; in getSharedPreferences()
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | ListsFragment.java | 91 private SharedPreferences mPrefs; field in ListsFragment 197 mPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onCreate() 198 mHasActiveVoicemailProvider = mPrefs.getBoolean( in onCreate() 341 mPrefs.edit() in onVoicemailStatusFetched()
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/ |
D | ImapHelper.java | 76 SharedPreferences mPrefs; field in ImapHelper 117 mPrefs = PreferenceManager.getDefaultSharedPreferences(context); in ImapHelper() 118 mQuotaOccupied = mPrefs.getInt(getSharedPrefsKey(PREF_KEY_QUOTA_OCCUPIED), in ImapHelper() 120 mQuotaTotal = mPrefs.getInt(getSharedPrefsKey(PREF_KEY_QUOTA_TOTAL), in ImapHelper() 403 mPrefs.edit() in setQuota()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ActionBarAdapter.java | 98 private final SharedPreferences mPrefs; field in ActionBarAdapter 127 mPrefs = PreferenceManager.getDefaultSharedPreferences(mActivity); in ActionBarAdapter() 574 mPrefs.edit().putInt(PERSISTENT_LAST_TAB, tab).apply(); in saveLastTabPreference() 579 return mPrefs.getInt(PERSISTENT_LAST_TAB, TabState.DEFAULT); in loadLastTabPreference()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ViewImage.java | 101 private SharedPreferences mPrefs; field in ViewImage 563 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate() 715 mUseShuffleOrder = mPrefs.getBoolean(PREF_SHUFFLE_SLIDESHOW, false); in setMode() 716 mSlideShowLoop = mPrefs.getBoolean(PREF_SLIDESHOW_REPEAT, false); in setMode() 718 mPrefs, "pref_gallery_slideshow_transition_key", 0); in setMode() 720 mPrefs, "pref_gallery_slideshow_interval_key", 3) * 1000; in setMode() 882 String sortOrder = mPrefs.getString( in buildImageListFromUri()
|
D | ImageGallery.java | 83 private SharedPreferences mPrefs; field in ImageGallery 108 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate() 430 mPrefs.getString("pref_gallery_size_key", "1"))); 433 String sortOrder = mPrefs.getString("pref_gallery_sort_key", null);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/dialog/ |
D | CallSubjectDialog.java | 102 private SharedPreferences mPrefs; field in CallSubjectDialog 278 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate() 283 mSubjectHistory = loadSubjectHistory(mPrefs); in onCreate() 454 SharedPreferences.Editor editor = mPrefs.edit(); in saveSubjectHistory()
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallLogAdapter.java | 141 private SharedPreferences mPrefs; field in CallLogAdapter 296 mPrefs = PreferenceManager.getDefaultSharedPreferences(context); in CallLogAdapter() 890 boolean showPromoCard = mPrefs.getBoolean(SHOW_VOICEMAIL_PROMO_CARD, in maybeShowVoicemailPromoCard() 900 mPrefs.edit().putBoolean(SHOW_VOICEMAIL_PROMO_CARD, false).apply(); in dismissVoicemailPromoCard()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcService.java | 214 private SharedPreferences mPrefs; field in NfcService 349 mPrefs = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE); in NfcService() 350 mPrefsEditor = mPrefs.edit(); in NfcService() 355 mIsNdefPushEnabled = mPrefs.getBoolean(PREF_NDEF_PUSH_ON, NDEF_PUSH_ON_DEFAULT); in NfcService() 494 if (mPrefs.getBoolean(PREF_NFC_ON, NFC_ON_DEFAULT)) { in doInBackground() 501 if (mPrefs.getBoolean(PREF_FIRST_BOOT, true)) { in doInBackground()
|