Home
last modified time | relevance | path

Searched refs:mSharedPreferences (Results 1 – 25 of 78) sorted by relevance

1234

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DManagedProvisioningSharedPreferences.java58 private final SharedPreferences mSharedPreferences; field in ManagedProvisioningSharedPreferences
61 mSharedPreferences = context.getSharedPreferences(SHARED_PREFERENCE, Context.MODE_PRIVATE); in ManagedProvisioningSharedPreferences()
65 return mSharedPreferences.getLong(KEY_PROVISIONING_ID, DEFAULT_PROVISIONING_ID); in getProvisioningId()
77 mSharedPreferences.edit().putLong(KEY_PROVISIONING_ID, provisioningId).commit(); in incrementAndGetProvisioningId()
86 mSharedPreferences.edit() in writeProvisioningStartedTimestamp()
95 return mSharedPreferences.getLong(KEY_PROVISIONING_START_TIMESTAMP, 0L); in getProvisioningStartedTimestamp()
102 mSharedPreferences.edit() in writeNavigationBarColor()
111 return mSharedPreferences.getInt(KEY_NAVIGATION_BAR_BACKGROUND_COLOR, 0); in getNavigationBarColor()
118 mSharedPreferences.edit() in writeNavigationBarDividerColor()
127 return mSharedPreferences.getInt(KEY_NAVIGATION_BAR_DIVIDER_COLOR, 0); in getNavigationBarDividerColor()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageCacheHelper.java42 private final SharedPreferences mSharedPreferences; field in StorageCacheHelper
46 mSharedPreferences = context.getSharedPreferences(sharedPrefName, Context.MODE_PRIVATE); in StorageCacheHelper()
53 return mSharedPreferences.getAll().size() > 0; in hasCachedSizeInfo()
61 mSharedPreferences in cacheSizeInfo()
80 mSharedPreferences in cacheTotalSizeAndTotalUsedSize()
91 mSharedPreferences.edit().putLong(USED_SIZE_KEY, usedSize).apply(); in cacheUsedSize()
98 return mSharedPreferences.getLong(USED_SIZE_KEY, 0); in retrieveUsedSize()
106 result.totalSize = mSharedPreferences.getLong(TOTAL_SIZE_KEY, 0); in retrieveCachedSize()
107 result.totalUsedSize = mSharedPreferences.getLong(TOTAL_USED_SIZE_KEY, 0); in retrieveCachedSize()
108 result.imagesSize = mSharedPreferences.getLong(IMAGES_SIZE_KEY, 0); in retrieveCachedSize()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DProvisioningAnalyticsTracker.java71 private final ManagedProvisioningSharedPreferences mSharedPreferences; field in ProvisioningAnalyticsTracker
92 mSharedPreferences = prefs; in ProvisioningAnalyticsTracker()
117 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningCancelled()
134 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningError()
148 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningNotAllowed()
160 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningSessionStarted()
172 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningSessionCompleted()
186 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logNumberOfTermsDisplayed()
200 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logNumberOfTermsRead()
211 .setTimePeriod(AnalyticsUtils.getProvisioningTime(mSharedPreferences))); in logProvisioningPrepareStarted()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/preference/
DContactsPreferencesTest.java44 @Mock private SharedPreferences mSharedPreferences; field in ContactsPreferencesTest
60 .thenReturn(mSharedPreferences); in setUp()
61 Mockito.when(mSharedPreferences.contains(ContactsPreferences.SORT_ORDER_KEY)) in setUp()
63 Mockito.when(mSharedPreferences.contains(ContactsPreferences.DISPLAY_ORDER_KEY)) in setUp()
65 Mockito.when(mSharedPreferences.contains(ContactsPreferences.PHONETIC_NAME_DISPLAY_KEY)) in setUp()
89 Mockito.when(mSharedPreferences.getInt(Mockito.eq(ContactsPreferences.SORT_ORDER_KEY), in testGetSortOrder()
108 Mockito.when(mSharedPreferences.getInt(Mockito.eq(ContactsPreferences.DISPLAY_ORDER_KEY), in testGetDisplayOrder()
127 Mockito.when(mSharedPreferences.getInt( in testGetPhoneticNameDisplay()
138 Mockito.when(mSharedPreferences.getInt( in testRefreshPhoneticNameDisplay()
155 Mockito.when(mSharedPreferences.getInt(Mockito.eq(ContactsPreferences.SORT_ORDER_KEY), in testRefreshSortOrder()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/feature/
DSharedPreferencesFeature.java32 private SharedPreferences mSharedPreferences; field in SharedPreferencesFeature
53 if (mSharedPreferences == null) { in isEnabled()
54 mSharedPreferences = in isEnabled()
57 mEnabled = mSharedPreferences.getBoolean(mKey, mDefaultValue); in isEnabled()
70 if (mSharedPreferences == null) { in setEnabled()
71 mSharedPreferences = in setEnabled()
75 mSharedPreferences.edit().putBoolean(mKey, enable).apply(); in setEnabled()
78 mSharedPreferences.edit().putBoolean(mKey, enable).apply(); in setEnabled()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/
DUserProfileIdDaoSharedPreferencesImplTest.java42 SharedPreferences mSharedPreferences; field in UserProfileIdDaoSharedPreferencesImplTest
51 mSharedPreferences = CONTEXT.getSharedPreferences(STORAGE_NAME, Context.MODE_PRIVATE); in setup()
52 mUserProfileIdDao = new UserProfileIdDaoSharedPreferencesImpl(mSharedPreferences, mClock); in setup()
68 mSharedPreferences.getString( in testSetAndReadId()
83 mSharedPreferences.getString( in testSetId_idExist_overrideExistingId()
93 mSharedPreferences.getString( in testSetId_idExist_overrideExistingId()
107 mSharedPreferences.getString( in testDeleteStorage()
115 mSharedPreferences.getString( in testDeleteStorage()
120 mSharedPreferences.getLong( in testDeleteStorage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DToggleAutoclickCustomSeekbarControllerTest.java71 private SharedPreferences mSharedPreferences; field in ToggleAutoclickCustomSeekbarControllerTest
80 mSharedPreferences = mContext.getSharedPreferences(mContext.getPackageName(), MODE_PRIVATE); in setUp()
100 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in displayPreference_initSeekBar()
115 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in displayPreference_initDelayLabel()
126 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in onSharedPreferenceChanged_delayMode_updateCustomDelayValue()
129 mController.onSharedPreferenceChanged(mSharedPreferences, KEY_DELAY_MODE); in onSharedPreferenceChanged_delayMode_updateCustomDelayValue()
134 mSharedPreferences.getInt(KEY_CUSTOM_DELAY_VALUE, /* defValue= */ 0); in onSharedPreferenceChanged_delayMode_updateCustomDelayValue()
144 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in onSeekBarProgressChanged_updateCustomDelayValue()
154 mSharedPreferences.getInt(KEY_CUSTOM_DELAY_VALUE, /* defValue= */ 0); in onSeekBarProgressChanged_updateCustomDelayValue()
164 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in onShorterClicked_updateCustomDelayValue()
[all …]
DToggleAutoclickPreferenceControllerTest.java72 private SharedPreferences mSharedPreferences; field in ToggleAutoclickPreferenceControllerTest
95 doReturn(mSharedPreferences).when(mContext).getSharedPreferences(anyString(), anyInt()); in onStart_registerOnSharedPreferenceChangeListener()
100 verify(mSharedPreferences).registerOnSharedPreferenceChangeListener(mController); in onStart_registerOnSharedPreferenceChangeListener()
105 doReturn(mSharedPreferences).when(mContext).getSharedPreferences(anyString(), anyInt()); in onStop_unregisterOnSharedPreferenceChangeListener()
110 verify(mSharedPreferences).unregisterOnSharedPreferenceChangeListener(mController); in onStop_unregisterOnSharedPreferenceChangeListener()
149 mController.onSharedPreferenceChanged(mSharedPreferences, KEY_DELAY_MODE); in onSharedPreferenceChanged_customMode_shouldShowCustomSeekbar()
161 mController.onSharedPreferenceChanged(mSharedPreferences, KEY_DELAY_MODE); in onSharedPreferenceChanged_offMode_shouldNotShowCustomSeekbar()
/packages/modules/ExtServices/java/tests/src/android/ext/services/common/
DAdServicesAppsearchDeleteJobTest.java84 private SharedPreferences mSharedPreferences; field in AdServicesAppsearchDeleteJobTest
104 doReturn(mSharedPreferences).when(mAdServicesAppsearchDeleteJob).getSharedPreferences(); in setup()
105 doReturn(mEditor).when(mSharedPreferences).edit(); in setup()
111 doReturn(0L).when(mSharedPreferences) in setup()
296 verify(mSharedPreferences, never()) in onStartJob_disabledJob()
323 verify(mSharedPreferences, never()) in onStartJob_onDoNothing()
342 doReturn(0L).when(mSharedPreferences) in onStartJob_enabledJob_firstTimeOta_appsearchDataNotFound()
351 verify(mSharedPreferences) in onStartJob_enabledJob_firstTimeOta_appsearchDataNotFound()
379 doReturn(0L).when(mSharedPreferences) in onStartJob_enabledJob_firstTimeOta_appsearchDataFound()
388 verify(mSharedPreferences) in onStartJob_enabledJob_firstTimeOta_appsearchDataFound()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/extdata/
DAdServicesExtDataStorageServiceDebugProxy.java59 private final SharedPreferences mSharedPreferences; field in AdServicesExtDataStorageServiceDebugProxy
62 mSharedPreferences = in AdServicesExtDataStorageServiceDebugProxy()
90 SharedPreferences.Editor editor = mSharedPreferences.edit(); in setAdServicesExtData()
133 mSharedPreferences.getInt( in getAdServicesExtData()
136 mSharedPreferences.getInt( in getAdServicesExtData()
139 mSharedPreferences.getInt( in getAdServicesExtData()
142 mSharedPreferences.getInt( in getAdServicesExtData()
145 mSharedPreferences.getInt( in getAdServicesExtData()
149 mSharedPreferences.getLong( in getAdServicesExtData()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DHideSystemSwitchPreferenceControllerTest.java49 private SharedPreferences mSharedPreferences; field in HideSystemSwitchPreferenceControllerTest
61 mSharedPreferences = mContext.getSharedPreferences( in setUp()
72 mSharedPreferences.edit().clear().apply(); in tearDown()
77 mSharedPreferences.edit().putBoolean(AppListFragment.KEY_HIDE_SYSTEM, true).apply(); in onStart_sharedPreferenceTrue_switchChecked()
87 mSharedPreferences.edit().putBoolean(AppListFragment.KEY_HIDE_SYSTEM, false).apply(); in onStart_sharedPreferenceFalse_switchUnchecked()
97 mSharedPreferences.edit().putBoolean(AppListFragment.KEY_HIDE_SYSTEM, true).apply(); in onPreferenceClicked_sharedPreferenceToggled()
103 assertThat(mSharedPreferences.getBoolean(AppListFragment.KEY_HIDE_SYSTEM, in onPreferenceClicked_sharedPreferenceToggled()
107 assertThat(mSharedPreferences.getBoolean(AppListFragment.KEY_HIDE_SYSTEM, in onPreferenceClicked_sharedPreferenceToggled()
/packages/apps/TV/src/com/android/tv/data/
DWatchedHistoryManager.java61 private SharedPreferences mSharedPreferences; field in WatchedHistoryManager
69 final long lastIndex = mSharedPreferences.getLong(PREF_KEY_LAST_INDEX, -1);
81 mSharedPreferences.getString(
141 mSharedPreferences = in loadWatchedHistory()
144 mLastIndex = mSharedPreferences.getLong(PREF_KEY_LAST_INDEX, -1); in loadWatchedHistory()
148 decode(mSharedPreferences.getString(getSharedPreferencesKey(i), null)); in loadWatchedHistory()
156 decode(mSharedPreferences.getString(getSharedPreferencesKey(i), null)); in loadWatchedHistory()
170 Editor editor = mSharedPreferences.edit(); in onLoadFinished()
182 mSharedPreferences.registerOnSharedPreferenceChangeListener( in onLoadFinished()
201 mSharedPreferences in logChannelViewStop()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DUserProfileIdDaoSharedPreferencesImpl.java43 private final SharedPreferences mSharedPreferences; field in UserProfileIdDaoSharedPreferencesImpl
54 mSharedPreferences = sharedPreferences; in UserProfileIdDaoSharedPreferencesImpl()
77 return Optional.ofNullable(mSharedPreferences.getString(USER_PROFILE_ID_KEY, null)) in getUserProfileId()
84 return mSharedPreferences.getLong(USER_PROFILE_ID_CREATION_TIMESTAMP_KEY, 0); in getTimestamp()
91 mSharedPreferences.edit().putString(USER_PROFILE_ID_KEY, userProfileId.toString()).commit(); in setUserProfileId()
92 mSharedPreferences in setUserProfileId()
100 mSharedPreferences.edit().clear().commit(); in deleteStorage()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/util/
DPreferenceUtilsTest.java56 @Mock SharedPreferences mSharedPreferences; field in PreferenceUtilsTest
72 when(mContext.getSharedPreferences(anyString(), anyInt())).thenReturn(mSharedPreferences); in setUp()
73 when(mSharedPreferences.edit()).thenReturn(mSharedPreferencesEditor); in setUp()
80 when(mSharedPreferences.getString(anyString(), anyString())).thenReturn(""); in testHasAtLeastOnePreferenceSet_notSet()
87 when(mSharedPreferences.getString(anyString(), anyString())).thenReturn("mxyzptlk"); in testHasAtLeastOnePreferenceSet_set()
94 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_EMERGENCY_CONTACTS), any())) in testHasAtLeastOneEmergencyContact_notSet()
104 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_EMERGENCY_CONTACTS), any())) in testHasAtLeastOneEmergencyContact_set()
127 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_EMERGENCY_CONTACTS), any())) in testUpdateSettingsSuggestionState_contactSet()
143 when(mSharedPreferences.getString(anyString(), anyString())).thenReturn(""); in testUpdateSettingsSuggestionState_noPreferencesOrContactSet()
155 when(mSharedPreferences.getString(eq(PreferenceKeys.KEY_ALLERGIES), any())) in testUpdateSettingsSuggestionState_preferenceSet()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DAppListFragment.java38 private SharedPreferences mSharedPreferences; field in AppListFragment
51 mSharedPreferences = in onCreate()
56 mSharedPreferences.edit().putBoolean(KEY_HIDE_SYSTEM, mHideSystem).apply(); in onCreate()
58 mSharedPreferences.edit().putBoolean(KEY_HIDE_SYSTEM, true).apply(); in onCreate()
66 mSharedPreferences.registerOnSharedPreferenceChangeListener( in onStart()
73 mSharedPreferences.unregisterOnSharedPreferenceChangeListener( in onStop()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/extdata/
DAdServicesExtDataStorageServiceDebugProxyTest.java71 @Mock private SharedPreferences mSharedPreferences; field in AdServicesExtDataStorageServiceDebugProxyTest
84 doReturn(mSharedPreferences) in setup()
87 doReturn(mEditor).when(mSharedPreferences).edit(); in setup()
98 .when(mSharedPreferences) in testGetAdServicesExtData_onResultSet()
101 .when(mSharedPreferences) in testGetAdServicesExtData_onResultSet()
104 .when(mSharedPreferences) in testGetAdServicesExtData_onResultSet()
107 .when(mSharedPreferences) in testGetAdServicesExtData_onResultSet()
110 .when(mSharedPreferences) in testGetAdServicesExtData_onResultSet()
113 .when(mSharedPreferences) in testGetAdServicesExtData_onResultSet()
138 .when(mSharedPreferences) in testGetAdServicesExtData_onErrorSet()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertReminderTest.java48 private SharedPreferences mSharedPreferences; field in CellBroadcastAlertReminderTest
173 doReturn(mSharedPreferences).when(mMockContext).getSharedPreferences(anyString(), anyInt()); in testQueueAlertReminderReturnFalseIfIntervalNull()
174 doReturn(null).when(mSharedPreferences).getString( in testQueueAlertReminderReturnFalseIfIntervalNull()
180 doReturn(mSharedPreferences).when(mMockContext).getSharedPreferences(anyString(), anyInt()); in testQueueAlertReminderReturnFalseIfIntervalStringNotANumber()
181 doReturn("NotANumber").when(mSharedPreferences).getString( in testQueueAlertReminderReturnFalseIfIntervalStringNotANumber()
187 doReturn(mSharedPreferences).when(mMockContext).getSharedPreferences(anyString(), anyInt()); in testQueueAlertReminderReturnFalseIfIntervalZero()
188 doReturn("0").when(mSharedPreferences).getString( in testQueueAlertReminderReturnFalseIfIntervalZero()
194 doReturn(mSharedPreferences).when(mMockContext).getSharedPreferences(anyString(), anyInt()); in testQueueAlertReminderReturnFalseIfIntervalOneButNotFirstTime()
195 doReturn("1").when(mSharedPreferences).getString( in testQueueAlertReminderReturnFalseIfIntervalOneButNotFirstTime()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/ui/enrollment/
DConsentNotificationResetChannelTest.java60 private SharedPreferences mSharedPreferences; field in ConsentNotificationResetChannelTest
104 doReturn(mSharedPreferences).when(mUxStatesManager).getUxSharedPreferences(); in isEligibleTest_newTokenWriteSucceeded()
105 doReturn(mEditor).when(mSharedPreferences).edit(); in isEligibleTest_newTokenWriteSucceeded()
120 doReturn(mSharedPreferences).when(mUxStatesManager).getUxSharedPreferences(); in isEligibleTest_newTokenWriteFailed()
121 doReturn(mEditor).when(mSharedPreferences).edit(); in isEligibleTest_newTokenWriteFailed()
137 doReturn(mSharedPreferences).when(mUxStatesManager).getUxSharedPreferences(); in isEligibleTest_sameToken()
138 doReturn(mEditor).when(mSharedPreferences).edit(); in isEligibleTest_sameToken()
141 doReturn(currentToken).when(mSharedPreferences).getString( in isEligibleTest_sameToken()
/packages/apps/Settings/src/com/android/settings/accessibility/
DToggleAutoclickCustomSeekbarController.java51 private final SharedPreferences mSharedPreferences; field in ToggleAutoclickCustomSeekbarController
80 mSharedPreferences = context.getSharedPreferences(context.getPackageName(), MODE_PRIVATE); in ToggleAutoclickCustomSeekbarController()
91 if (mSharedPreferences != null) { in onStart()
92 mSharedPreferences.registerOnSharedPreferenceChangeListener(this); in onStart()
98 if (mSharedPreferences != null) { in onStop()
99 mSharedPreferences.unregisterOnSharedPreferenceChangeListener(this); in onStop()
154 return mSharedPreferences.getInt(KEY_CUSTOM_DELAY_VALUE, delayMillis); in getSharedPreferenceForDelayValue()
160 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, delayMillis).apply(); in updateCustomDelayValue()
DToggleAutoclickPreferenceController.java63 private final SharedPreferences mSharedPreferences; field in ToggleAutoclickPreferenceController
69 mSharedPreferences = context.getSharedPreferences(context.getPackageName(), MODE_PRIVATE); in ToggleAutoclickPreferenceController()
76 mSharedPreferences.registerOnSharedPreferenceChangeListener(this); in onStart()
81 mSharedPreferences.unregisterOnSharedPreferenceChangeListener(this); in onStop()
110 mSharedPreferences.edit().putInt(KEY_DELAY_MODE, mode).apply(); in onRadioButtonClicked()
123 ? mSharedPreferences.getInt(KEY_DELAY_MODE, AUTOCLICK_CUSTOM_MODE) in updateState()
/packages/apps/TV/src/com/android/tv/util/
DSetupUtils.java70 private final SharedPreferences mSharedPreferences; field in SetupUtils
82 mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); in SetupUtils()
85 mSharedPreferences.getStringSet(PREF_KEY_SET_UP_INPUTS, Collections.emptySet())); in SetupUtils()
88 mSharedPreferences.getStringSet(PREF_KEY_KNOWN_INPUTS, Collections.emptySet())); in SetupUtils()
91 mSharedPreferences.getStringSet(PREF_KEY_RECOGNIZED_INPUTS, mKnownInputs)); in SetupUtils()
92 mIsFirstTune = mSharedPreferences.getBoolean(PREF_KEY_IS_FIRST_TUNE, true); in SetupUtils()
215 mSharedPreferences in markAsKnownInput()
254 mSharedPreferences in markAllInputsRecognized()
329 mSharedPreferences.edit().putBoolean(PREF_KEY_IS_FIRST_TUNE, false).apply(); in onTuned()
366 mSharedPreferences in onInputListUpdated()
[all …]
/packages/services/Car/service/src/com/android/car/wifi/
DCarWifiService.java100 if (mSharedPreferences != null) {
104 mSharedPreferences
122 if (mSharedPreferences != null) {
126 mSharedPreferences
162 private SharedPreferences mSharedPreferences; field in CarWifiService
262 if (mSharedPreferences == null || !mSharedPreferences.getBoolean( in startTethering()
279 if (mSharedPreferences == null) { in onStateOn()
294 mSharedPreferences = mContext.getSharedPreferences(SHARED_PREF_NAME, in onSystemUserUnlocked()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/
DDeviceNameSuggestionStatus.java28 private SharedPreferences mSharedPreferences; field in DeviceNameSuggestionStatus
42 mSharedPreferences = context.getSharedPreferences( in DeviceNameSuggestionStatus()
51 mSharedPreferences.edit().putBoolean(IS_SUGGESTION_FINISHED, true).apply(); in setFinished()
60 return mSharedPreferences.getBoolean(IS_SUGGESTION_FINISHED, false); in isFinished()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraPreference.java33 private SharedPreferences mSharedPreferences; field in CameraPreference
55 if (mSharedPreferences == null) { in getSharedPreferences()
56 mSharedPreferences = ComboPreferences.get(mContext); in getSharedPreferences()
58 return mSharedPreferences; in getSharedPreferences()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/networkconnection/
DEstablishNetworkConnectionViewModel.java60 private final SharedPreferences mSharedPreferences; field in EstablishNetworkConnectionViewModel
69 mSharedPreferences = requireNonNull(sharedPreferences); in EstablishNetworkConnectionViewModel()
101 mSharedPreferences.setIsEstablishNetworkConnectionRun(true); in connectToNetwork()
170 private final SharedPreferences mSharedPreferences; field in EstablishNetworkConnectionViewModel.EstablishNetworkConnectionViewModelFactory
178 mSharedPreferences = requireNonNull(sharedPreferences); in EstablishNetworkConnectionViewModelFactory()
190 mUtils, mSettingsFacade, mSharedPreferences); in create()

1234