Home
last modified time | relevance | path

Searched refs:mSettings (Results 1 – 25 of 30) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DLatinIME.java144 final Settings mSettings; field in LatinIME
254 latinIme.mSettings.getCurrent(), msg.arg1 /* inputStyle */); in handleMessage()
271 latinIme.mSettings.getCurrent(), false /* forStartInput */, in handleMessage()
276 latinIme.mSettings.getCurrent(), true /* forStartInput */, in handleMessage()
288 latinIme.mSettings.getCurrent(), in handleMessage()
293 final SettingsValues settingsValues = latinIme.mSettings.getCurrent(); in handleMessage()
331 if (!latinIme.mSettings.getCurrent().isSuggestionsEnabledPerUserSettings()) { in postResumeSuggestionsInternal()
582 mSettings = Settings.getInstance(); in LatinIME()
634 StatsUtils.onCreate(mSettings.getCurrent(), mRichImm); in onCreate()
644 mSettings.loadSettings(this, locale, inputAttributes); in loadSettings()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DPreferenceListTest.java46 @Mock VpnSettings mSettings; field in PreferenceListTest
64 }).when(mSettings).findOrCreatePreference(any(VpnProfile.class), anyBoolean()); in setUp()
72 }).when(mSettings).findOrCreatePreference(any(AppVpnInfo.class)); in setUp()
74 doNothing().when(mSettings).setShownPreferences(any()); in setUp()
75 doReturn(true).when(mSettings).canAddPreferences(); in setUp()
80 final VpnSettings.UpdatePreferences updater = new VpnSettings.UpdatePreferences(mSettings); in testNothingShownByDefault()
83 verify(mSettings, never()).findOrCreatePreference(any(VpnProfile.class), anyBoolean()); in testNothingShownByDefault()
92 final VpnSettings.UpdatePreferences updater = new VpnSettings.UpdatePreferences(mSettings); in testDisconnectedLegacyVpnShown()
99 verify(mSettings, times(1)).findOrCreatePreference(any(VpnProfile.class), eq(true)); in testDisconnectedLegacyVpnShown()
109 final VpnSettings.UpdatePreferences updater = new VpnSettings.UpdatePreferences(mSettings); in testConnectedLegacyVpnShownIfDeleted()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DPlayerApplicationSettings.java63 private Map<Integer, Integer> mSettings = new HashMap<Integer, Integer>(); field in PlayerApplicationSettings
97 for (Integer setting : mSettings.keySet()) { in getAvrcpSettings()
101 for (Integer setting : mSettings.keySet()) { in getAvrcpSettings()
102 result.addSettingValue(setting, mSettings.get(setting)); in getAvrcpSettings()
113 newObj.mSettings.put(mapBTAttribIdToAvrcpPlayerSettings(attrId), in makeSettings()
124 mSettings = updates.mSettings; in setSupport()
132 mSettings.put(i, updates.getSettingValue(i)); in setValues()
149 for (Integer settingId : mSettings.keySet()) { in supportsSettings()
171 for (Integer settingId : mSettings.keySet()) { in getNativeSettings()
177 settingId, mSettings.get(settingId))); in getNativeSettings()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSwitchBarControllerTest.java47 private DevelopmentSettings mSettings; field in DevelopmentSwitchBarControllerTest
67 mController = new DevelopmentSwitchBarController(mSettings, mSwitchBar, in runThroughLifecycle_isMonkeyRun_shouldNotRegisterListener()
73 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_isMonkeyRun_shouldNotRegisterListener()
76 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_isMonkeyRun_shouldNotRegisterListener()
82 mController = new DevelopmentSwitchBarController(mSettings, mSwitchBar, in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
88 assertThat(listeners).contains(mSettings); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
91 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
97 mController = new DevelopmentSwitchBarController(mSettings, mSwitchBar, in buildController_unavailable_shouldDisableSwitchBar()
DDevelopmentSettingsTest.java73 private DevelopmentSettings mSettings; field in DevelopmentSettingsTest
80 mSettings = spy(new DevelopmentSettings()); in setUp()
88 doReturn(mScreen).when(mSettings).getPreferenceScreen(); in addDashboardCategoryPreference_shouldAddToScreen()
89 doReturn(mPreferenceManager).when(mSettings).getPreferenceManager(); in addDashboardCategoryPreference_shouldAddToScreen()
90 doReturn(mActivity).when(mSettings).getActivity(); in addDashboardCategoryPreference_shouldAddToScreen()
93 mActivity, mContext, mSettings.getMetricsCategory(), in addDashboardCategoryPreference_shouldAddToScreen()
97 mSettings.onAttach(mContext); in addDashboardCategoryPreference_shouldAddToScreen()
98 mSettings.addDashboardCategoryPreferences(); in addDashboardCategoryPreference_shouldAddToScreen()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumDataAdapter.java42 private final AlbumSettings mSettings; field in AlbumDataAdapter
51 mSettings = AlbumSettings.getAlbumSettings(settings); in AlbumDataAdapter()
60 mSettings.pruneObsoleteSettings(mValidAlbumIds); in AlbumDataAdapter()
65 return mSettings.isAlbumEnabled(data.id); in isSelected()
69 return mSettings.areAllEnabled(mValidAlbumIds); in areAllSelected()
74 mSettings.enableAllAlbums(mValidAlbumIds); in selectAll()
76 mSettings.disableAllAlbums(); in selectAll()
178 mSettings.setAlbumEnabled(data.id, isChecked); in onClick()
DAlbumSettings.java33 private final SharedPreferences mSettings; field in AlbumSettings
110 mSettings = settings; in AlbumSettings()
116 Set<String> enabledAlbums = mSettings.getStringSet(ALBUM_SET, null); in readEnabledAlbumsLocked()
124 SharedPreferences.Editor editor = mSettings.edit(); in writeEnabledAlbumsLocked()
DFlipperDreamSettings.java39 protected SharedPreferences mSettings; field in FlipperDreamSettings
49 mSettings = getSharedPreferences(PREFS_NAME, 0); in onCreate()
60 mPhotoSource = new PhotoSourcePlexor(this, mSettings); in init()
70 mSettings, in init()
DPicasaSource.java179 if (mSettings.isAlbumEnabled(id)) { in findImages()
376 if (mSettings.isAlbumEnabled(uploadId)) { in findAlbums()
377 mSettings.setAlbumEnabled(uploadId, false); in findAlbums()
378 mSettings.setAlbumEnabled(id, true); in findAlbums()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacySettingsTest.java62 private EnterprisePrivacySettings mSettings; field in EnterprisePrivacySettingsTest
70 mSettings = new EnterprisePrivacySettings(); in setUp()
75 assertThat(mSettings.getMetricsCategory()) in testGetMetricsCategory()
81 assertThat(mSettings.getCategoryKey()).isNull(); in testGetCategoryKey()
86 assertThat(mSettings.getLogTag()).isEqualTo("EnterprisePrivacySettings"); in testGetLogTag()
91 assertThat(mSettings.getPreferenceScreenResId()) in testGetPreferenceScreenResId()
115 final List<AbstractPreferenceController> controllers = mSettings.getPreferenceControllers( in getPreferenceControllers()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/
DManageAssistTest.java35 private ManageAssist mSettings; field in ManageAssistTest
39 mSettings = new ManageAssist(); in setUp()
44 assertThat(mSettings.getMetricsCategory()) in testGetMetricsCategory()
50 assertThat(mSettings.getCategoryKey()).isNull(); in testGetCategoryKey()
55 assertThat(mSettings.getPreferenceScreenResId()) in testGetPreferenceScreenResId()
/packages/apps/Settings/tests/app/src/com/android/settings/
DSettingsHookTests.java53 private Settings mSettings; field in SettingsHookTests
62 mSettings = getActivity(); in setUp()
70 Context context = mSettings.getApplicationContext(); in testSettingsHookTestAppAvailable()
82 Context context = mSettings.getApplicationContext(); in testOperatorIntentFilter()
100 Context context = mSettings.getApplicationContext(); in testManufacturerIntentFilter()
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DSettingsDialog.java56 private ArrayList<Setting> mSettings; field in SettingsDialog
85 mSettings = getSettings(); in onCreate()
96 mAdapter = new DialogAdapter(mSettings, pivotX, pivotY, new SettingClickedListener() { in onCreate()
109 mSettings.get(PRESET_SETTING_INDEX).setValue( in onCreate()
169 mFocusedSetting = mSettings.get(position); in onChildSelected()
229 mSettings.get(PRESET_SETTING_INDEX).setValue( in setFocusedSettingToValue()
269 mSettings.get(i + INTEGER_SETTING_START_INDEX).setValue( in stringSettingHandleKeyCode()
DDialogAdapter.java29 private final ArrayList<Setting> mSettings; field in DialogAdapter
36 mSettings = settings; in DialogAdapter()
76 Setting s = mSettings.get(position); in onBindViewHolder()
88 return mSettings.size(); in getItemCount()
/packages/apps/Settings/src/com/android/settings/development/
DDevelopmentSwitchBarController.java30 private final DevelopmentSettings mSettings; field in DevelopmentSwitchBarController
36 mSettings = settings; in DevelopmentSwitchBarController()
47 mSwitchBar.addOnSwitchChangeListener(mSettings); in onStart()
52 mSwitchBar.removeOnSwitchChangeListener(mSettings); in onStop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DAssistGestureSettingsTest.java49 private AssistGestureSettings mSettings; field in AssistGestureSettingsTest
55 mSettings = new AssistGestureSettings(); in setUp()
60 assertThat(mSettings.getPreferenceScreenResId()) in testGetPreferenceScreenResId()
72 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
DDoubleTapScreenSettingsTest.java38 private DoubleTapScreenSettings mSettings; field in DoubleTapScreenSettingsTest
42 mSettings = new DoubleTapScreenSettings(); in setUp()
53 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
DPickupGestureSettingsTest.java38 private PickupGestureSettings mSettings; field in PickupGestureSettingsTest
42 mSettings = new PickupGestureSettings(); in setUp()
53 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
DDoubleTapPowerSettingsTest.java38 private DoubleTapPowerSettings mSettings; field in DoubleTapPowerSettingsTest
42 mSettings = new DoubleTapPowerSettings(); in setUp()
53 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
DDoubleTwistGestureSettingsTest.java38 private DoubleTwistGestureSettings mSettings; field in DoubleTwistGestureSettingsTest
42 mSettings = new DoubleTwistGestureSettings(); in setUp()
53 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DQsbApplication.java52 private SearchSettings mSettings; field in QsbApplication
167 if (mSettings == null) { in getSettings()
168 mSettings = createSettings(); in getSettings()
169 mSettings.upgradeSettingsIfNeeded(); in getSettings()
171 return mSettings; in getSettings()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DDeviceInfoSettingsTest.java64 private DeviceInfoSettings mSettings; field in DeviceInfoSettingsTest
70 mSettings = spy(new DeviceInfoSettings()); in setUp()
71 doReturn(mScreen).when(mSettings).getPreferenceScreen(); in setUp()
76 assertThat(mSettings.getPreferenceScreenResId()).isEqualTo(R.xml.device_info_settings); in getPrefXml_shouldReturnDeviceInfoXml()
DPrivacySettingsTest.java41 private PrivacySettings mSettings; field in PrivacySettingsTest
54 mSettings = new PrivacySettings(); in setUp()
59 mSettings.setPreferenceReferences(mScreen); in testSetPreference_noCrash()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java262 private final VpnSettings mSettings; field in VpnSettings.UpdatePreferences
265 mSettings = settings; in UpdatePreferences()
286 if (!mSettings.canAddPreferences()) { in run()
295 LegacyVpnPreference p = mSettings.findOrCreatePreference(profile, true); in run()
308 LegacyVpnPreference p = mSettings.findOrCreatePreference(stubProfile, false); in run()
316 AppPreference p = mSettings.findOrCreatePreference(app); in run()
327 mSettings.setShownPreferences(updates); in run()
/packages/apps/Settings/src/com/android/settings/location/
DSettingsInjector.java96 private final Set<Setting> mSettings; field in SettingsInjector
102 mSettings = new HashSet<Setting>(); in SettingsInjector()
245 mSettings.add(new Setting(setting, pref)); in getInjectedSettings()
260 Log.d(TAG, "reloadingStatusMessages: " + mSettings); in reloadStatusMessages()
397 mSettingsToLoad.addAll(mSettings); in handleMessage()

12