/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/ |
D | DefaultAppChildFragment.java | 123 PreferenceScreen preferenceScreen = preferenceFragment.getPreferenceScreen(); in onRoleChanged() local 126 if (preferenceScreen == null) { in onRoleChanged() 127 preferenceScreen = preferenceManager.createPreferenceScreen(context); in onRoleChanged() 128 preferenceFragment.setPreferenceScreen(preferenceScreen); in onRoleChanged() 130 oldDescriptionPreference = preferenceScreen.findPreference(PREFERENCE_KEY_DESCRIPTION); in onRoleChanged() 132 preferenceScreen.removePreference(oldDescriptionPreference); in onRoleChanged() 135 for (int i = preferenceScreen.getPreferenceCount() - 1; i >= 0; --i) { in onRoleChanged() 136 Preference preference = preferenceScreen.getPreference(i); in onRoleChanged() 138 preferenceScreen.removePreference(preference); in onRoleChanged() 149 oldPreferences, preferenceScreen, context); in onRoleChanged() [all …]
|
D | SpecialAppAccessChildFragment.java | 111 PreferenceScreen preferenceScreen = preferenceFragment.getPreferenceScreen(); in onRoleChanged() local 114 if (preferenceScreen == null) { in onRoleChanged() 115 preferenceScreen = preferenceManager.createPreferenceScreen(context); in onRoleChanged() 116 preferenceFragment.setPreferenceScreen(preferenceScreen); in onRoleChanged() 118 oldDescriptionPreference = preferenceScreen.findPreference(PREFERENCE_KEY_DESCRIPTION); in onRoleChanged() 120 preferenceScreen.removePreference(oldDescriptionPreference); in onRoleChanged() 123 for (int i = preferenceScreen.getPreferenceCount() - 1; i >= 0; --i) { in onRoleChanged() 124 Preference preference = preferenceScreen.getPreference(i); in onRoleChanged() 126 preferenceScreen.removePreference(preference); in onRoleChanged() 158 preferenceScreen.addPreference(preference); in onRoleChanged() [all …]
|
D | SpecialAppAccessListChildFragment.java | 79 PreferenceScreen preferenceScreen = preferenceFragment.getPreferenceScreen(); in onRoleListChanged() local 81 if (preferenceScreen == null) { in onRoleListChanged() 82 preferenceScreen = preferenceManager.createPreferenceScreen(context); in onRoleListChanged() 83 preferenceFragment.setPreferenceScreen(preferenceScreen); in onRoleListChanged() 85 for (int i = preferenceScreen.getPreferenceCount() - 1; i >= 0; --i) { in onRoleListChanged() 86 Preference preference = preferenceScreen.getPreference(i); in onRoleListChanged() 88 preferenceScreen.removePreference(preference); in onRoleListChanged() 112 preferenceScreen.addPreference(preference); in onRoleListChanged()
|
D | DefaultAppListChildFragment.java | 107 PreferenceScreen preferenceScreen = preferenceFragment.getPreferenceScreen(); in onRoleListChanged() local 111 if (preferenceScreen == null) { in onRoleListChanged() 112 preferenceScreen = preferenceManager.createPreferenceScreen(context); in onRoleListChanged() 113 preferenceFragment.setPreferenceScreen(preferenceScreen); in onRoleListChanged() 115 oldWorkPreferenceCategory = preferenceScreen.findPreference( in onRoleListChanged() 119 preferenceScreen.removePreference(oldWorkPreferenceCategory); in onRoleListChanged() 122 clearPreferences(preferenceScreen, oldPreferences); in onRoleListChanged() 125 addPreferences(preferenceScreen, roleItems, oldPreferences, this, mViewModel.getUser(), in onRoleListChanged() 127 addMoreDefaultAppsPreference(preferenceScreen, oldPreferences, context); in onRoleListChanged() 128 addManageDomainUrlsPreference(preferenceScreen, oldPreferences, context); in onRoleListChanged() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AccessoriesFragment.java | 69 PreferenceScreen preferenceScreen = getPreferenceScreen(); in updateAccessories() local 70 if (preferenceScreen == null) { in updateAccessories() 75 preferenceScreen.removeAll(); in updateAccessories() 81 preferenceScreen.removeAll(); in updateAccessories() 103 Preference preference = preferenceScreen.findPreference(key); in updateAccessories() 119 preferenceScreen.addPreference(preference); in updateAccessories() 122 for (int i = 0; i < preferenceScreen.getPreferenceCount();) { in updateAccessories() 123 final Preference preference = preferenceScreen.getPreference(i); in updateAccessories() 127 preferenceScreen.removePreference(preference); in updateAccessories()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | GeneralPreferences.java | 157 final PreferenceScreen preferenceScreen = getPreferenceScreen(); in onCreate() local 158 mAlert = (CheckBoxPreference) preferenceScreen.findPreference(KEY_ALERTS); in onCreate() 159 mVibrate = (CheckBoxPreference) preferenceScreen.findPreference(KEY_ALERTS_VIBRATE); in onCreate() 162 PreferenceCategory mAlertGroup = (PreferenceCategory) preferenceScreen in onCreate() 167 mPopup = (CheckBoxPreference) preferenceScreen.findPreference(KEY_ALERTS_POPUP); in onCreate() 168 mUseHomeTZ = (CheckBoxPreference) preferenceScreen.findPreference(KEY_HOME_TZ_ENABLED); in onCreate() 169 mHideDeclined = (CheckBoxPreference) preferenceScreen.findPreference(KEY_HIDE_DECLINED); in onCreate() 170 mWeekStart = (ListPreference) preferenceScreen.findPreference(KEY_WEEK_START_DAY); in onCreate() 171 mDefaultReminder = (ListPreference) preferenceScreen.findPreference(KEY_DEFAULT_REMINDER); in onCreate() 172 mHomeTZ = preferenceScreen.findPreference(KEY_HOME_TZ); in onCreate() [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | DeletionHelperSettingsTest.java | 81 PreferenceScreen preferenceScreen = mock(PreferenceScreen.class); in downloadsNotDeletedInNoThresholdMode() local 82 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in downloadsNotDeletedInNoThresholdMode() 108 PreferenceScreen preferenceScreen = mock(PreferenceScreen.class); in requestingSpecificBytesToClearSetsOkResultCodeOnSufficientClear() local 109 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in requestingSpecificBytesToClearSetsOkResultCodeOnSufficientClear() 127 PreferenceScreen preferenceScreen = mock(PreferenceScreen.class); in requestingSpecificBytesToClearSetsNegativeResultCodeOnSufficientClear() local 128 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in requestingSpecificBytesToClearSetsNegativeResultCodeOnSufficientClear() 146 PreferenceScreen preferenceScreen = mock(PreferenceScreen.class); in requestingSpecificBytesToClearSetsNegativeResultCodeOnNoClear() local 147 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in requestingSpecificBytesToClearSetsNegativeResultCodeOnNoClear()
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettingsForSub.java | 522 final PreferenceScreen preferenceScreen = getPreferenceScreen(); in updateButtonWfcMode() local 526 preferenceScreen.addPreference(mButtonWfcMode); in updateButtonWfcMode() 529 preferenceScreen.removePreference(mButtonWfcMode); in updateButtonWfcMode() 532 preferenceScreen.addPreference(mButtonWfcRoamingMode); in updateButtonWfcMode() 535 preferenceScreen.removePreference(mButtonWfcRoamingMode); in updateButtonWfcMode() 538 preferenceScreen.addPreference(mUpdateAddress); in updateButtonWfcMode() 540 preferenceScreen.removePreference(mUpdateAddress); in updateButtonWfcMode() 543 preferenceScreen.removePreference(mButtonWfcMode); in updateButtonWfcMode() 544 preferenceScreen.removePreference(mButtonWfcRoamingMode); in updateButtonWfcMode() 545 preferenceScreen.removePreference(mUpdateAddress); in updateButtonWfcMode()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/ |
D | WifiCallingSettingsForSub.java | 521 final PreferenceScreen preferenceScreen = getPreferenceScreen(); in updateButtonWfcMode() local 525 preferenceScreen.addPreference(mButtonWfcMode); in updateButtonWfcMode() 528 preferenceScreen.removePreference(mButtonWfcMode); in updateButtonWfcMode() 531 preferenceScreen.addPreference(mButtonWfcRoamingMode); in updateButtonWfcMode() 534 preferenceScreen.removePreference(mButtonWfcRoamingMode); in updateButtonWfcMode() 537 preferenceScreen.addPreference(mUpdateAddress); in updateButtonWfcMode() 539 preferenceScreen.removePreference(mUpdateAddress); in updateButtonWfcMode() 542 preferenceScreen.removePreference(mButtonWfcMode); in updateButtonWfcMode() 543 preferenceScreen.removePreference(mButtonWfcRoamingMode); in updateButtonWfcMode() 544 preferenceScreen.removePreference(mUpdateAddress); in updateButtonWfcMode()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ToggleFeaturePreferenceFragment.java | 48 PreferenceScreen preferenceScreen = getPreferenceManager().createPreferenceScreen( in onCreate() local 50 setPreferenceScreen(preferenceScreen); in onCreate() 67 PreferenceScreen preferenceScreen = getPreferenceScreen(); in onViewCreated() local 68 Preference settingsPref = new Preference(preferenceScreen.getContext()); in onViewCreated() 72 preferenceScreen.addPreference(settingsPref); in onViewCreated()
|
D | ToggleScreenMagnificationPreferenceFragment.java | 153 final PreferenceScreen preferenceScreen = getPreferenceManager().getPreferenceScreen(); in onCreate() local 154 preferenceScreen.setOrderingAsAdded(false); in onCreate() 157 preferenceScreen.addPreference(mVideoPreference); in onCreate() 158 preferenceScreen.addPreference(mConfigWarningPreference); in onCreate()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | ToggleFeaturePreferenceFragment.java | 48 PreferenceScreen preferenceScreen = getPreferenceManager().createPreferenceScreen( in onCreate() local 50 setPreferenceScreen(preferenceScreen); in onCreate() 67 PreferenceScreen preferenceScreen = getPreferenceScreen(); in onViewCreated() local 68 Preference settingsPref = new Preference(preferenceScreen.getContext()); in onViewCreated() 72 preferenceScreen.addPreference(settingsPref); in onViewCreated()
|
D | ToggleScreenMagnificationPreferenceFragment.java | 144 final PreferenceScreen preferenceScreen = getPreferenceManager().getPreferenceScreen(); in onCreate() local 145 preferenceScreen.setOrderingAsAdded(false); in onCreate() 148 preferenceScreen.addPreference(mVideoPreference); in onCreate() 149 preferenceScreen.addPreference(mConfigWarningPreference); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsPreferenceFragment.java | 294 public void setPreferenceScreen(PreferenceScreen preferenceScreen) { in setPreferenceScreen() argument 295 if (preferenceScreen != null && !preferenceScreen.isAttached()) { in setPreferenceScreen() 297 preferenceScreen.setShouldUseGeneratedIds(mAnimationAllowed); in setPreferenceScreen() 299 super.setPreferenceScreen(preferenceScreen); in setPreferenceScreen() 300 if (preferenceScreen != null) { in setPreferenceScreen() 302 preferenceScreen.addPreference(mHeader); in setPreferenceScreen() 341 protected RecyclerView.Adapter onCreateAdapter(PreferenceScreen preferenceScreen) { in onCreateAdapter() argument 343 mAdapter = new HighlightablePreferenceGroupAdapter(preferenceScreen, in onCreateAdapter()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | SettingsPreferenceFragment.java | 294 public void setPreferenceScreen(PreferenceScreen preferenceScreen) { in setPreferenceScreen() argument 295 if (preferenceScreen != null && !preferenceScreen.isAttached()) { in setPreferenceScreen() 297 preferenceScreen.setShouldUseGeneratedIds(mAnimationAllowed); in setPreferenceScreen() 299 super.setPreferenceScreen(preferenceScreen); in setPreferenceScreen() 300 if (preferenceScreen != null) { in setPreferenceScreen() 302 preferenceScreen.addPreference(mHeader); in setPreferenceScreen() 341 protected RecyclerView.Adapter onCreateAdapter(PreferenceScreen preferenceScreen) { in onCreateAdapter() argument 343 mAdapter = new HighlightablePreferenceGroupAdapter(preferenceScreen, in onCreateAdapter()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/ |
D | KeyboardFragment.java | 153 PreferenceScreen preferenceScreen = getPreferenceScreen(); in updateKeyboardsSettings() local 163 Preference preference = preferenceScreen.findPreference(key); in updateKeyboardsSettings() 167 preferenceScreen.addPreference(preference); in updateKeyboardsSettings() 176 for (int i = 0; i < preferenceScreen.getPreferenceCount();) { in updateKeyboardsSettings() 177 final Preference preference = preferenceScreen.getPreference(i); in updateKeyboardsSettings() 182 preferenceScreen.removePreference(preference); in updateKeyboardsSettings()
|
/packages/services/Telephony/src/com/android/phone/ |
D | MobileNetworkSettings.java | 503 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, in onPreferenceTreeClick() argument 505 sendMetricsEventPreferenceClicked(preferenceScreen, preference); in onPreferenceTreeClick() 575 preferenceScreen.setEnabled(false); in onPreferenceTreeClick() 2163 PreferenceScreen preferenceScreen, Preference preference) { in sendMetricsEventPreferenceClicked() argument 2164 final int category = getMetricsEventCategory(preferenceScreen, preference); in sendMetricsEventPreferenceClicked() 2178 || preference == preferenceScreen.findPreference(BUTTON_CDMA_SYSTEM_SELECT_KEY) in sendMetricsEventPreferenceClicked() 2179 || preference == preferenceScreen.findPreference(BUTTON_CDMA_SUBSCRIPTION_KEY) in sendMetricsEventPreferenceClicked() 2180 || preference == preferenceScreen.findPreference(BUTTON_GSM_APN_EXPAND_KEY) in sendMetricsEventPreferenceClicked() 2181 || preference == preferenceScreen.findPreference(BUTTON_CDMA_APN_EXPAND_KEY) in sendMetricsEventPreferenceClicked() 2182 || preference == preferenceScreen.findPreference(BUTTON_CARRIER_SETTINGS_KEY)) { in sendMetricsEventPreferenceClicked() [all …]
|
D | NetworkSelectSetting.java | 189 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, in onPreferenceTreeClick() argument 245 preferenceScreen.setEnabled(false); in onPreferenceTreeClick() 496 PreferenceScreen preferenceScreen = getPreferenceScreen(); in addConnectedNetworkOperatorPreference() local 497 preferenceScreen.addPreference(mConnectedNetworkOperatorsPreference); in addConnectedNetworkOperatorPreference() 503 PreferenceScreen preferenceScreen = getPreferenceScreen(); in removeConnectedNetworkOperatorPreference() local 504 preferenceScreen.removePreference(mConnectedNetworkOperatorsPreference); in removeConnectedNetworkOperatorPreference()
|
D | CallFeaturesSetting.java | 114 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { in onPreferenceTreeClick() argument 120 } else if (preference == preferenceScreen.findPreference( in onPreferenceTreeClick() 123 } else if (preference == preferenceScreen.findPreference( in onPreferenceTreeClick() 288 PreferenceScreen preferenceScreen = getPreferenceScreen(); in onResume() local 289 if (preferenceScreen != null) { in onResume() 290 preferenceScreen.removeAll(); in onResume()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiAPITest.java | 75 final PreferenceScreen preferenceScreen = getPreferenceScreen(); in onCreatePreferences() local 77 mWifiDisconnect = (Preference) preferenceScreen.findPreference(KEY_DISCONNECT); in onCreatePreferences() 80 mWifiDisableNetwork = (Preference) preferenceScreen.findPreference(KEY_DISABLE_NETWORK); in onCreatePreferences() 83 mWifiEnableNetwork = (Preference) preferenceScreen.findPreference(KEY_ENABLE_NETWORK); in onCreatePreferences()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/handheld/ |
D | SettingsFragment.java | 124 PreferenceScreen preferenceScreen = getPreferenceScreen(); in updateState() local 125 boolean isLoading = preferenceScreen == null; in updateState() 127 boolean isEmpty = preferenceScreen != null && preferenceScreen.getPreferenceCount() == 0; in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiAPITest.java | 75 final PreferenceScreen preferenceScreen = getPreferenceScreen(); in onCreatePreferences() local 77 mWifiDisconnect = (Preference) preferenceScreen.findPreference(KEY_DISCONNECT); in onCreatePreferences() 80 mWifiDisableNetwork = (Preference) preferenceScreen.findPreference(KEY_DISABLE_NETWORK); in onCreatePreferences() 83 mWifiEnableNetwork = (Preference) preferenceScreen.findPreference(KEY_ENABLE_NETWORK); in onCreatePreferences()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | SpellCheckerSettingsFragment.java | 48 final PreferenceScreen preferenceScreen = getPreferenceScreen(); in onActivityCreated() local 49 preferenceScreen.setTitle(ApplicationUtils.getActivityTitleResId( in onActivityCreated() 51 TwoStatePreferenceHelper.replaceCheckBoxPreferencesBySwitchPreferences(preferenceScreen); in onActivityCreated()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RespondViaSmsSettings.java | 64 PreferenceScreen preferenceScreen = getPreferenceScreen(); in onResume() local 65 if (preferenceScreen != null) { in onResume() 66 preferenceScreen.removeAll(); in onResume()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SettingsFragment.java | 51 final PreferenceScreen preferenceScreen = getPreferenceScreen(); in onCreate() local 52 preferenceScreen.setTitle( in onCreate() 56 preferenceScreen.removePreference(accountsPreference); in onCreate()
|