Home
last modified time | relevance | path

Searched refs:mPreferences (Results 1 – 25 of 29) sorted by relevance

12

/packages/services/Telephony/src/com/android/phone/
DGsmUmtsAdditionalCallOptions.java31 private final ArrayList<Preference> mPreferences = new ArrayList<Preference>(); field in GsmUmtsAdditionalCallOptions
86 mPreferences.add(mCLIRButton); in onCreate()
98 mPreferences.add(mCWButton); in onCreate()
105 if (mPreferences.size() != 0) { in onCreate()
111 mInitIndex = mPreferences.size(); in onCreate()
141 int indexOfStartInit = mPreferences.size(); in onResume()
149 if (mPreferences.contains(mCLIRButton)) { in onResume()
150 mPreferences.remove(mCLIRButton); in onResume()
155 if (!mPreferences.contains(mCLIRButton)) { in onResume()
157 mPreferences.add(mCLIRButton); in onResume()
[all …]
DCdmaCallForwardOptions.java61 private final ArrayList<CallForwardEditPreference> mPreferences = field in CdmaCallForwardOptions
111 mPreferences.add(mButtonCFU); in onCreate()
112 mPreferences.add(mButtonCFB); in onCreate()
113 mPreferences.add(mButtonCFNRy); in onCreate()
116 mPreferences.add(mButtonCFNRc); in onCreate()
131 mPreferences.remove(mButtonCFU); in onCreate()
132 mPreferences.remove(mButtonCFB); in onCreate()
133 mPreferences.remove(mButtonCFNRc); in onCreate()
158 CallForwardEditPreference pref = mPreferences.get(mInitIndex); in onResume()
163 mInitIndex = mPreferences.size(); in onResume()
[all …]
DGsmUmtsCallForwardOptions.java46 private final ArrayList<CallForwardEditPreference> mPreferences = field in GsmUmtsCallForwardOptions
102 mPreferences.add(mButtonCFU); in onCreate()
113 mPreferences.remove(mButtonCFU); in onCreate()
114 mPreferences.remove(mButtonCFB); in onCreate()
115 mPreferences.remove(mButtonCFNRc); in onCreate()
136 mPreferences.add(preference); in layoutCallForwardItem()
149 CallForwardEditPreference pref = mPreferences.get(mInitIndex); in onResume()
154 mInitIndex = mPreferences.size(); in onResume()
156 for (CallForwardEditPreference pref : mPreferences) { in onResume()
176 for (CallForwardEditPreference pref : mPreferences) { in onSaveInstanceState()
[all …]
DGsmUmtsCallBarringOptions.java108 private ArrayList<CallBarringEditPreference> mPreferences = field in GsmUmtsCallBarringOptions
336 for (CallBarringEditPreference pref : mPreferences) { in resetCallBarringPrefState()
414 mPreferences.add(mButtonBAOC); in onCreate()
415 mPreferences.add(mButtonBAOIC); in onCreate()
416 mPreferences.add(mButtonBAOICxH); in onCreate()
417 mPreferences.add(mButtonBAIC); in onCreate()
418 mPreferences.add(mButtonBAICr); in onCreate()
451 mInitIndex = mPreferences.size(); in onCreate()
453 for (CallBarringEditPreference pref : mPreferences) { in onCreate()
479 mPreferences.get(mInitIndex).init(this, false, mPhone); in onResume()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkPreferenceList.java51 @NonNull private final List<T> mPreferences; field in NetworkPreferenceList
54 mPreferences = Collections.EMPTY_LIST; in NetworkPreferenceList()
58 mPreferences = Collections.unmodifiableList(list); in NetworkPreferenceList()
68 final ArrayList<T> newPrefs = new ArrayList<>(mPreferences); in plus()
80 for (final T existingPref : mPreferences) { in minus()
89 return mPreferences.isEmpty(); in isEmpty()
94 return mPreferences.iterator(); in iterator()
98 return "NetworkPreferenceList : " + mPreferences; in toString()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DPreferencesController.java28 private SharedPreferences mPreferences; field in PreferencesController
36 mPreferences = PreferenceManager.getDefaultSharedPreferences(context); in PreferencesController()
61 mPreferences.edit() in setUsername()
70 return mPreferences.getString(PREF_KEY_USER_NAME, null); in getUsername()
80 mPreferences.edit() in setVoice()
89 return mPreferences.getString(PREF_KEY_VOICE, null); in getVoice()
96 return mPreferences.getBoolean(PREF_KEY_DEBUG_DIRECT_SEND, false); in isDirectSendTextInput()
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java96 private final SharedPreferences mPreferences; field in ContactsPreferences
114 mPreferences = mContext.getSharedPreferences(context.getPackageName(), in ContactsPreferences()
138 mSortOrder = mPreferences.getInt(SORT_ORDER_KEY, getDefaultSortOrder()); in getSortOrder()
145 final Editor editor = mPreferences.edit(); in setSortOrder()
168 mDisplayOrder = mPreferences.getInt(DISPLAY_ORDER_KEY, getDefaultDisplayOrder()); in getDisplayOrder()
175 final Editor editor = mPreferences.edit(); in setDisplayOrder()
196 final Editor editor = mPreferences.edit(); in setPhoneticNameDisplayPreference()
207 mPhoneticNameDisplayPreference = mPreferences.getInt(PHONETIC_NAME_DISPLAY_KEY, in getPhoneticNameDisplayPreference()
345 mPreferences.registerOnSharedPreferenceChangeListener(this); in registerChangeListener()
353 mPreferences.unregisterOnSharedPreferenceChangeListener(this); in unregisterChangeListener()
[all …]
DPhoneticNameDisplayPreference.java35 private ContactsPreferences mPreferences; field in PhoneticNameDisplayPreference
49 mPreferences = new ContactsPreferences(mContext); in prepare()
58 setValue(String.valueOf(mPreferences.getPhoneticNameDisplayPreference())); in prepare()
68 switch (mPreferences.getPhoneticNameDisplayPreference()) { in getSummary()
80 if (newValue != mPreferences.getPhoneticNameDisplayPreference()) { in persistString()
81 mPreferences.setPhoneticNameDisplayPreference(newValue); in persistString()
DSortOrderPreference.java31 private ContactsPreferences mPreferences; field in SortOrderPreference
46 mPreferences = new ContactsPreferences(mContext); in prepare()
55 setValue(String.valueOf(mPreferences.getSortOrder())); in prepare()
65 switch (mPreferences.getSortOrder()) { in getSummary()
77 if (newValue != mPreferences.getSortOrder()) { in persistString()
78 mPreferences.setSortOrder(newValue); in persistString()
DDisplayOrderPreference.java31 private ContactsPreferences mPreferences; field in DisplayOrderPreference
46 mPreferences = new ContactsPreferences(mContext); in prepare()
55 setValue(String.valueOf(mPreferences.getDisplayOrder())); in prepare()
65 switch (mPreferences.getDisplayOrder()) { in getSummary()
77 if (newValue != mPreferences.getDisplayOrder()) { in persistString()
78 mPreferences.setDisplayOrder(newValue); in persistString()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/entitlement/
DEntitlementConfigurationsDataStore.java32 private final SharedPreferences mPreferences; field in EntitlementConfigurationsDataStore
45 this.mPreferences = context.getSharedPreferences( in EntitlementConfigurationsDataStore()
51 mPreferences in set()
60 mPreferences in set()
68 return Optional.ofNullable(mPreferences.getString(XML_DOCUMENT, null)); in getRawXml()
72 return mPreferences.getLong(QUERY_TIME_MILLIS, 0); in getQueryTimeMillis()
76 return Optional.ofNullable(mPreferences.getString(ENTITLEMENT_VERSION, null)); in getEntitlementVersion()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DUserDeniedManager.java39 private final SharedPreferences mPreferences; field in UserDeniedManager
58 mPreferences = context.getSharedPreferences(Constants.REQUEST_ROLE_USER_DENIED_FILE, in UserDeniedManager()
123 mPreferences.edit() in clearPackageDenied()
138 return mPreferences.getStringSet(key, Collections.emptySet()).contains(roleName); in isDenied()
144 Set<String> roleNames = mPreferences.getStringSet(key, Collections.emptySet()); in setDenied()
155 mPreferences.edit().remove(key).apply(); in setDenied()
157 mPreferences.edit().putStringSet(key, roleNames).apply(); in setDenied()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPreferenceHelper.java59 protected volatile ConcurrentHashMap<String, String> mPreferences; field in PreferenceHelper
108 mPreferences = null; in clearCache()
122 if (mPreferences == null) { in getPreferences()
125 return mPreferences; in getPreferences()
137 if (mPreferences != null) { in populatePreferences()
141 mPreferences = new ConcurrentHashMap<>(); in populatePreferences()
147 mPreferences.put(key, value); in populatePreferences()
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/
DEnabledKeyboardPreferenceController.java52 private final Map<String, Preference> mPreferences = new ArrayMap<>(); field in EnabledKeyboardPreferenceController
73 Set<String> preferencesToRemove = new HashSet<>(mPreferences.keySet()); in updateState()
82 if (mPreferences.containsKey(preference.getKey())) { in updateState()
83 Preference displayedPreference = mPreferences.get(preference.getKey()); in updateState()
104 preferenceGroup.removePreference(mPreferences.get(key)); in updatePreferenceGroup()
105 mPreferences.remove(key); in updatePreferenceGroup()
111 mPreferences.put(pref.getKey(), pref); in updatePreferenceGroup()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DChooseAccountPreferenceController.java53 private ArrayMap<String, AuthenticatorDescriptionPreference> mPreferences = new ArrayMap<>(); field in ChooseAccountPreferenceController
114 Set<String> preferencesToRemove = new HashSet<>(mPreferences.keySet()); in forceUpdateAccountsCategory()
123 mPreferences.put(key, preference); in forceUpdateAccountsCategory()
128 getPreference().removePreference(mPreferences.get(key)); in forceUpdateAccountsCategory()
129 mPreferences.remove(key); in forceUpdateAccountsCategory()
153 AuthenticatorDescriptionPreference preference = mPreferences.getOrDefault(accountType, in getAuthenticatorDescriptionPreferences()
DAccountListPreferenceController.java65 private final ArrayMap<String, Preference> mPreferences = new ArrayMap<>(); field in AccountListPreferenceController
190 Set<String> preferencesToRemove = new HashSet<>(mPreferences.keySet()); in forceUpdateAccountsCategory()
197 mPreferences.put(pref.getKey(), pref); in forceUpdateAccountsCategory()
202 getPreference().removePreference(mPreferences.get(key)); in forceUpdateAccountsCategory()
203 mPreferences.remove(key); in forceUpdateAccountsCategory()
240 AccountPreference preference = (AccountPreference) mPreferences.getOrDefault(key, in getAccountPreferences()
254 return Arrays.asList(mPreferences.getOrDefault(NO_ACCOUNT_PREF_KEY, in getAccountPreferences()
/packages/services/Telephony/src/com/android/phone/vvm/
DVisualVoicemailPreferences.java38 private final SharedPreferences mPreferences; field in VisualVoicemailPreferences
42 mPreferences = PreferenceManager.getDefaultSharedPreferences(context); in VisualVoicemailPreferences()
51 mEditor = mPreferences.edit(); in Editor()
129 return mPreferences.contains(getKey(key)); in contains()
136 Object object = mPreferences.getAll().get(getKey(key)); in getValue()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcServiceTest.java86 @Mock SharedPreferences mPreferences; field in NfcServiceTest
125 when(mApplication.getSharedPreferences(anyString(), anyInt())).thenReturn(mPreferences); in setUp()
137 when(mPreferences.edit()).thenReturn(mPreferencesEditor); in setUp()
159 when(mPreferences.getBoolean(eq(PREF_NFC_ON), anyBoolean())).thenReturn(true); in enableAndVerify()
169 when(mPreferences.getBoolean(eq(PREF_NFC_ON), anyBoolean())).thenReturn(false); in disableAndVerify()
192 when(mPreferences.getBoolean(eq(PREF_NFC_ON), anyBoolean())).thenReturn(true); in testBootupWithNfcOn()
212 when(mPreferences.getBoolean(eq(PREF_NFC_ON), anyBoolean())).thenReturn(true); in testBootupWithNfcOn_WhenOemExtensionEnabled_ThenAllowBoot()
223 when(mPreferences.getBoolean(eq(PREF_NFC_ON), anyBoolean())).thenReturn(true); in testBootupWithNfcOn_WhenOemExtensionEnabled_ThenTimeout()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DWallpaperSetter.java58 private final WallpaperPreferences mPreferences; field in WallpaperSetter
68 mPreferences = preferences; in WallpaperSetter()
97 mPreferences.setPendingWallpaperSetStatus( in setCurrentWallpaper()
180 mPreferences.storeLatestWallpaper(WallpaperPersister.destinationToFlags(destination), in setCurrentLiveWallpaper()
226 mPreferences.storeLatestWallpaper(WallpaperPersister.destinationToFlags(destination), in setCurrentLiveWallpaperFromRestore()
260 mPreferences.setPendingWallpaperSetStatus( in onWallpaperApplied()
267 mPreferences.setPendingWallpaperSetStatus( in onWallpaperApplyError()
/packages/apps/Settings/src/com/android/settings/network/
DNetworkProviderSimListController.java51 private Map<Integer, RestrictedPreference> mPreferences; field in NetworkProviderSimListController
59 mPreferences = new ArrayMap<>(); in NetworkProviderSimListController()
90 final Map<Integer, RestrictedPreference> existingPreferences = mPreferences; in update()
91 mPreferences = new ArrayMap<>(); in update()
123 mPreferences.put(subId, pref); in update()
/packages/apps/EmergencyInfo/src/com/android/emergency/view/
DViewEmergencyInfoFragment.java40 private final List<Preference> mPreferences = new ArrayList<Preference>(); field in ViewEmergencyInfoFragment
48 mPreferences.add(preference); in onCreatePreferences()
69 for (Preference preference : mPreferences) { in onResume()
/packages/apps/LegacyCamera/src/com/android/camera/
DVideoCamera.java145 private ComboPreferences mPreferences; field in VideoCamera
358 mPreferences = new ComboPreferences(this); in onCreate()
359 CameraSettings.upgradeGlobalPreferences(mPreferences.getGlobal()); in onCreate()
360 mCameraId = CameraSettings.readPreferredCameraId(mPreferences); in onCreate()
368 mPreferences.setLocalId(this, mCameraId); in onCreate()
369 CameraSettings.upgradeLocalPreferences(mPreferences.getLocal()); in onCreate()
721 mPreferences.getString(CameraSettings.KEY_VIDEO_QUALITY, in readVideoPreferences()
748 mEffectType = CameraSettings.readEffectType(mPreferences); in readVideoPreferences()
750 mEffectParameter = CameraSettings.readEffectParameter(mPreferences); in readVideoPreferences()
772 String frameIntervalStr = mPreferences.getString( in readVideoPreferences()
[all …]
DCamera.java139 private ComboPreferences mPreferences; field in Camera
328 String value = mPreferences.getString(CameraSettings.KEY_EXPOSURE, in resetExposureCompensation()
331 Editor editor = mPreferences.edit(); in resetExposureCompensation()
363 mPreferences, getContentResolver()); in initializeFirstTime()
397 mPreferences.getBoolean(CameraSettings.KEY_CAMERA_FIRST_USE_HINT_SHOWN, true)) { in initializeFirstTime()
444 mPreferences, getContentResolver()); in initializeSecondTime()
710 updateExposureOnScreenIndicator(CameraSettings.readExposure(mPreferences)); in updateOnScreenIndicators()
1086 mPreferences = new ComboPreferences(this); in getPreferredCameraId()
1087 CameraSettings.upgradeGlobalPreferences(mPreferences.getGlobal()); in getPreferredCameraId()
1090 int attemptedCameraId = CameraSettings.readPreferredCameraId(mPreferences); in getPreferredCameraId()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/
DFakePreferenceHelper.java31 mPreferences = new ConcurrentHashMap<>(); in FakePreferenceHelper()
46 mPreferences.clear(); in clearCache()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPickRawContactDialogFragment.java57 private final ContactsPreferences mPreferences; field in PickRawContactDialogFragment.RawContactAccountListAdapter
64 mPreferences = new ContactsPreferences(context); in RawContactAccountListAdapter()
104 mPreferences.getDisplayOrder() == ContactsPreferences.DISPLAY_ORDER_PRIMARY in getView()

12