/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
D | ApplicationSettingsActivity.java | 126 final SharedPreferences prefs = getPreferenceScreen().getSharedPreferences(); in onCreate() 132 getPreferenceScreen().removePreference(debugCategory); in onCreate() 141 .getAdvancedSettingsIntent(getPreferenceScreen().getContext())); in onCreate() 145 getPreferenceScreen().removePreference(advancedScreen); in onCreate() 190 getPreferenceScreen().removePreference(mSmsDisabledPreference); in updateSmsEnabledPreferences() 191 getPreferenceScreen().removePreference(mSmsEnabledPreference); in updateSmsEnabledPreferences() 198 if (getPreferenceScreen().findPreference(mSmsEnabledPrefKey) == null) { in updateSmsEnabledPreferences() 199 getPreferenceScreen().addPreference(mSmsEnabledPreference); in updateSmsEnabledPreferences() 205 getPreferenceScreen().removePreference(mSmsDisabledPreference); in updateSmsEnabledPreferences() 208 if (getPreferenceScreen().findPreference(mSmsDisabledPrefKey) == null) { in updateSmsEnabledPreferences() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/ui/ |
D | AddPrintersFragment.java | 65 mAddPrinterByIpPreference = getPreferenceScreen().findPreference(KEY_ADD_BY_IP); in onCreate() 67 mFindP2pPrintersPreference = getPreferenceScreen().findPreference( in onCreate() 76 mP2pEnablePreference = (SwitchPreference) getPreferenceScreen() in onCreate() 78 mSavedPrintersCategory = (PreferenceCategory) getPreferenceScreen() in onCreate() 151 getPreferenceScreen().addPreference(mFindP2pPrintersPreference); in updateP2pPreferences() 158 getPreferenceScreen().removePreference(mFindP2pPrintersPreference); in updateP2pPreferences() 174 if (getPreferenceScreen().findPreference(mSavedPrintersCategory.getKey()) != null) { in updateSavedPrinters() 175 getPreferenceScreen().removePreference(mSavedPrintersCategory); in updateSavedPrinters() 178 if (getPreferenceScreen().findPreference(mSavedPrintersCategory.getKey()) == null) { in updateSavedPrinters() 179 getPreferenceScreen().addPreference(mSavedPrintersCategory); in updateSavedPrinters()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | PhoneAccountSettingsFragment.java | 114 if (getPreferenceScreen() != null) { in onResume() 115 getPreferenceScreen().removeAll(); in onResume() 145 mAccountList = (PreferenceCategory) getPreferenceScreen().findPreference( in onResume() 148 getPreferenceScreen().findPreference(DEFAULT_OUTGOING_ACCOUNT_KEY); in onResume() 149 mAllCallingAccounts = getPreferenceScreen().findPreference(ALL_CALLING_ACCOUNTS_KEY); in onResume() 151 mMakeAndReceiveCallsCategory = (PreferenceCategory) getPreferenceScreen().findPreference( in onResume() 162 getPreferenceScreen().findPreference(USE_SIP_PREF_KEY); in onResume() 181 getPreferenceScreen().findPreference(SIP_RECEIVE_CALLS_PREF_KEY); in onResume() 187 getPreferenceScreen().removePreference( in onResume() 188 getPreferenceScreen().findPreference(SIP_SETTINGS_CATEGORY_PREF_KEY)); in onResume() [all …]
|
D | AccessibilitySettingsFragment.java | 58 Preference pref = getPreferenceScreen().findPreference(BUTTON_TTY_KEY); 99 getPreferenceScreen().removePreference(mButtonTty); in onCreate() 108 getPreferenceScreen().removePreference(mButtonHac); in onCreate() 120 getPreferenceScreen().removePreference(mButtonRtt); in onCreate() 122 getPreferenceScreen().removePreference(rttInfoPref); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountSyncSettings.java | 100 getPreferenceScreen().setOrderingAsAdded(false); in onCreate() 132 getPreferenceScreen().addPreference(pref); in onActivityCreated() 167 getPreferenceScreen().addPreference(item); in addSyncStateSwitch() 231 final int count = getPreferenceScreen().getPreferenceCount(); in onActivityResult() 233 Preference preference = getPreferenceScreen().getPreference(i); in onActivityResult() 345 int count = getPreferenceScreen().getPreferenceCount(); in requestOrCancelSyncForEnabledProviders() 347 Preference pref = getPreferenceScreen().getPreference(i); in requestOrCancelSyncForEnabledProviders() 405 for (int i = 0, count = getPreferenceScreen().getPreferenceCount(); i < count; i++) { in setFeedsState() 406 Preference pref = getPreferenceScreen().getPreference(i); in setFeedsState() 519 cacheRemoveAllPrefs(getPreferenceScreen()); in updateAccountSwitches() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AccountSyncSettings.java | 100 getPreferenceScreen().setOrderingAsAdded(false); in onCreate() 132 getPreferenceScreen().addPreference(pref); in onActivityCreated() 167 getPreferenceScreen().addPreference(item); in addSyncStateSwitch() 231 final int count = getPreferenceScreen().getPreferenceCount(); in onActivityResult() 233 Preference preference = getPreferenceScreen().getPreference(i); in onActivityResult() 345 int count = getPreferenceScreen().getPreferenceCount(); in requestOrCancelSyncForEnabledProviders() 347 Preference pref = getPreferenceScreen().getPreference(i); in requestOrCancelSyncForEnabledProviders() 405 for (int i = 0, count = getPreferenceScreen().getPreferenceCount(); i < count; i++) { in setFeedsState() 406 Preference pref = getPreferenceScreen().getPreference(i); in setFeedsState() 519 cacheRemoveAllPrefs(getPreferenceScreen()); in updateAccountSwitches() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/ |
D | VoicemailSettingsFragment.java | 98 PreferenceScreen preferenceScreen = getPreferenceScreen(); in onResume() 131 getPreferenceScreen().removePreference(voicemailAutoArchivePreference); in setupVisualVoicemailFeaturePreferences() 156 getPreferenceScreen().addPreference(transcribeVoicemailPreference); in showTranscriptionEnabledPreference() 176 getPreferenceScreen().removePreference(donateTranscribedVoicemailPreference); in updateTranscriptionDonationPreference() 189 getPreferenceScreen().addPreference(donateTranscribedVoicemailPreference); in showTranscriptionDonationEnabledPreferences() 206 getPreferenceScreen().removePreference(transcribeVoicemailPreference); in removeAllTranscriptionPreferences() 207 getPreferenceScreen().removePreference(donateTranscribedVoicemailPreference); in removeAllTranscriptionPreferences() 214 getPreferenceScreen().removePreference(voicemailAutoArchivePreference); in setupAutoArchivePreference() 268 PreferenceScreen prefSet = getPreferenceScreen(); in removeAllVisualVoicemailPreferences() 317 getPreferenceScreen().removePreference(changeGreetingPreference); in setupChangeGreetingPreference()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SubScreenFragment.java | 68 setPreferenceEnabled(prefKey, enabled, getPreferenceScreen()); 72 removePreference(prefKey, getPreferenceScreen()); 76 updateListPreferenceSummaryToCurrentValue(prefKey, getPreferenceScreen()); 97 getPreferenceScreen()); 108 if (context == null || fragment.getPreferenceScreen() == null) {
|
D | CustomInputStyleSettingsFragment.java | 132 getPreferenceScreen().addPreference( in onActivityCreated() 164 final PreferenceGroup group = getPreferenceScreen(); in onRemoveCustomInputStyle() 181 final PreferenceGroup group = getPreferenceScreen(); in onSaveCustomInputStyle() 201 final PreferenceGroup group = getPreferenceScreen(); in onAddCustomInputStyle() 257 final PreferenceGroup group = getPreferenceScreen(); in setPrefSubtypes() 269 final PreferenceGroup group = getPreferenceScreen(); in getSubtypes() 311 getPreferenceScreen().addPreference(newSubtype); in onOptionsItemSelected()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/print/ |
D | PrintSettingsFragment.java | 117 getPreferenceScreen().removePreference(mActivePrintJobsCategory); in onCreateView() 181 getPreferenceScreen().removePreference(mPrintServicesCategory); in onLoadFinished() 183 } else if (getPreferenceScreen().findPreference(PRINT_SERVICES_CATEGORY) == null) { in onLoadFinished() 184 getPreferenceScreen().addPreference(mPrintServicesCategory); in onLoadFinished() 234 getPreferenceScreen().removePreference(mPrintServicesCategory); in onLoaderReset() 303 getPreferenceScreen().removePreference(mActivePrintJobsCategory); in onLoadFinished() 305 if (getPreferenceScreen().findPreference(PRINT_JOBS_CATEGORY) == null) { in onLoadFinished() 306 getPreferenceScreen().addPreference(mActivePrintJobsCategory); in onLoadFinished() 394 getPreferenceScreen().removePreference(mActivePrintJobsCategory); in onLoaderReset()
|
/packages/apps/Settings/src/com/android/settings/print/ |
D | PrintSettingsFragment.java | 117 getPreferenceScreen().removePreference(mActivePrintJobsCategory); in onCreateView() 181 getPreferenceScreen().removePreference(mPrintServicesCategory); in onLoadFinished() 183 } else if (getPreferenceScreen().findPreference(PRINT_SERVICES_CATEGORY) == null) { in onLoadFinished() 184 getPreferenceScreen().addPreference(mPrintServicesCategory); in onLoadFinished() 234 getPreferenceScreen().removePreference(mPrintServicesCategory); in onLoaderReset() 303 getPreferenceScreen().removePreference(mActivePrintJobsCategory); in onLoadFinished() 305 if (getPreferenceScreen().findPreference(PRINT_JOBS_CATEGORY) == null) { in onLoadFinished() 306 getPreferenceScreen().addPreference(mActivePrintJobsCategory); in onLoadFinished() 394 getPreferenceScreen().removePreference(mActivePrintJobsCategory); in onLoaderReset()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | WorkSoundPreferenceControllerTest.java | 127 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in onManagedProfileAdded_shouldDisplayPreferenceCategory() 149 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in onManagedProfileRemoved_shouldHidePreferenceCategory() 175 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in displayPreference_isAvailable_shouldShowPreferenceCategory() 187 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in displayPreference_notAvailable_shouldHidePreferenceCategory() 212 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in onResume_noVoiceCapability_shouldHidePhoneRingtone() 233 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in onResume_availableButLocked_shouldRedactPreferences() 261 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in onResume_shouldSetUserIdToPreference()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | AppNotificationSettings.java | 67 final PreferenceScreen screen = getPreferenceScreen(); in onCreate() 116 controller.displayPreference(getPreferenceScreen()); in onResume() 163 getPreferenceScreen().removePreference(p); in populateList() 171 getPreferenceScreen().addPreference(groupCategory); in populateList() 188 getPreferenceScreen().addPreference(groupCategory); in populateGroupList() 251 PreferenceGroup) getPreferenceScreen().findPreference(group.getId()); in onGroupBlockStateChanged()
|
D | ChannelGroupNotificationSettings.java | 53 controller.displayPreference(getPreferenceScreen()); in onResume() 86 getPreferenceScreen().removePreference(p); in populateChannelList() 93 getPreferenceScreen().addPreference(empty); in populateChannelList() 101 getPreferenceScreen(), channel, mChannelGroup.isBlocked())); in populateChannelList()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | AppNotificationSettings.java | 66 final PreferenceScreen screen = getPreferenceScreen(); in onCreate() 115 controller.displayPreference(getPreferenceScreen()); in onResume() 162 getPreferenceScreen().removePreference(p); in populateList() 170 getPreferenceScreen().addPreference(groupCategory); in populateList() 187 getPreferenceScreen().addPreference(groupCategory); in populateGroupList() 250 PreferenceGroup) getPreferenceScreen().findPreference(group.getId()); in onGroupBlockStateChanged()
|
D | ChannelGroupNotificationSettings.java | 53 controller.displayPreference(getPreferenceScreen()); in onResume() 86 getPreferenceScreen().removePreference(p); in populateChannelList() 93 getPreferenceScreen().addPreference(empty); in populateChannelList() 101 getPreferenceScreen(), channel, mChannelGroup.isBlocked())); in populateChannelList()
|
/packages/services/Telephony/src/com/android/phone/ |
D | MobileNetworkSettings.java | 480 getMetricsEventCategory(getPreferenceScreen(), mButtonDataRoam), in onPositiveButtonClick() 816 PreferenceScreen prefSet = getPreferenceScreen(); in onCreate() 931 getPreferenceScreen().setEnabled(true); in onResume() 938 if (getPreferenceScreen().findPreference(BUTTON_PREFERED_NETWORK_MODE) != null in onResume() 939 || getPreferenceScreen().findPreference(BUTTON_ENABLED_NETWORKS_KEY) != null) { in onResume() 1018 final PreferenceScreen prefSet = getPreferenceScreen(); in updateBody() 1140 PreferenceScreen root = getPreferenceScreen(); in updateBodyAdvancedFields() 1299 updateCdmaOptions(this, getPreferenceScreen(), mSubId); in updateEnabledNetworksEntries() 1337 updateGsmUmtsOptions(this, getPreferenceScreen(), mSubId); in updateEnabledNetworksEntries() 1385 sendMetricsEventPreferenceChanged(getPreferenceScreen(), preference, objValue); in onPreferenceChange() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | SettingsPreferenceFragmentTest.java | 133 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in testUpdateEmptyView_containerInvisible_emptyViewVisible() 142 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in testUpdateEmptyView_containerNull_emptyViewGone() 153 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in onCreate_hasExtraFragmentKey_shouldExpandPreferences() 167 doReturn(null).when(mFragment).getPreferenceScreen(); in onCreate_noPreferenceScreen_shouldNotCrash() 178 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in checkAvailablePrefs_selfAvialbalePreferenceNotAvailable_shouldHidePreference()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/ |
D | AutoManagePermissionsFragment.java | 117 getPreferenceScreen().removeAll(); in updatePermissionsUi() 118 getPreferenceScreen().setOrderingAsAdded(true); in updatePermissionsUi() 140 getPreferenceScreen().addPreference(preference); in updatePermissionsUi() 147 if (getPreferenceScreen().getPreferenceCount() != 0) { in updatePermissionsUi()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/ |
D | DashboardFragment.java | 179 final Preference pref = getPreferenceScreen().findPreference(key); in notifySummaryChanged() 299 final PreferenceScreen screen = getPreferenceScreen(); in displayResourceTiles() 309 final PreferenceScreen screen = getPreferenceScreen(); in updatePreferenceStates() 341 final PreferenceScreen screen = getPreferenceScreen(); in refreshAllPreferences() 365 final PreferenceScreen screen = getPreferenceScreen(); in updatePreferenceVisibility() 388 final PreferenceScreen screen = getPreferenceScreen(); in refreshDashboardTiles()
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | DashboardFragment.java | 185 final Preference pref = getPreferenceScreen().findPreference(key); in notifySummaryChanged() 310 final PreferenceScreen screen = getPreferenceScreen(); in displayResourceTiles() 320 final PreferenceScreen screen = getPreferenceScreen(); in updatePreferenceStates() 352 final PreferenceScreen screen = getPreferenceScreen(); in refreshAllPreferences() 376 final PreferenceScreen screen = getPreferenceScreen(); in updatePreferenceVisibility() 399 final PreferenceScreen screen = getPreferenceScreen(); in refreshDashboardTiles()
|
/packages/apps/Contacts/src/com/android/contacts/preference/ |
D | DisplayOptionsPreferenceFragment.java | 281 getPreferenceScreen().removePreference(findPreference(KEY_SORT_ORDER)); in removeUnsupportedPreferences() 285 getPreferenceScreen().removePreference(findPreference(KEY_PHONETIC_NAME_DISPLAY)); in removeUnsupportedPreferences() 289 getPreferenceScreen().removePreference(findPreference(KEY_ABOUT)); in removeUnsupportedPreferences() 294 getPreferenceScreen().removePreference(findPreference(KEY_DISPLAY_ORDER)); in removeUnsupportedPreferences() 302 getPreferenceScreen().removePreference(findPreference(KEY_BLOCKED_NUMBERS)); in removeUnsupportedPreferences() 306 getPreferenceScreen().removePreference(findPreference(KEY_EXPORT)); in removeUnsupportedPreferences()
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipEditor.java | 176 getPreferenceScreen().setEnabled(false); in onResume() 179 getPreferenceScreen().setEnabled(true); in onResume() 200 PreferenceGroup screen = (PreferenceGroup) getPreferenceScreen(); in onCreate() 569 mAdvancedSettingsTrigger = getPreferenceScreen().findPreference( in AdvancedSettings() 577 PreferenceGroup screen = (PreferenceGroup) getPreferenceScreen(); in loadAdvancedPreferences() 597 PreferenceGroup screen = (PreferenceGroup) getPreferenceScreen(); in show() 610 PreferenceGroup screen = (PreferenceGroup) getPreferenceScreen(); in hide()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/configui/ |
D | ConfigOverrideFragment.java | 62 for (int i = 0; i < getPreferenceScreen().getPreferenceCount(); i++) { in onCreate() 63 Preference preference = getPreferenceScreen().getPreference(i); in onCreate() 106 for (int i = 0; i < getPreferenceScreen().getPreferenceCount(); i++) { in loadCurrentConfig() 107 Preference preference = getPreferenceScreen().getPreference(i); in loadCurrentConfig()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | DeletionHelperSettingsTest.java | 82 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in downloadsNotDeletedInNoThresholdMode() 109 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in requestingSpecificBytesToClearSetsOkResultCodeOnSufficientClear() 128 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in requestingSpecificBytesToClearSetsNegativeResultCodeOnSufficientClear() 147 doReturn(preferenceScreen).when(settings).getPreferenceScreen(); in requestingSpecificBytesToClearSetsNegativeResultCodeOnNoClear()
|