Home
last modified time | relevance | path

Searched refs:setSwitchEnabled (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/network/
DTetherEnabler.java191 private void setSwitchEnabled(boolean enabled) { in setSwitchEnabled() method in TetherEnabler
203 setSwitchEnabled(true); in updateState()
277 setSwitchEnabled(false); in stopTethering()
307 setSwitchEnabled(false); in startTethering()
367 setSwitchEnabled(true); in onDataSaverChanged()
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardFeatureProviderImpl.java298 setSwitchEnabled(preference, false);
304 setSwitchEnabled(pref, false);
311 setSwitchEnabled(pref, true);
333 setSwitchEnabled(preference, true);
346 private void setSwitchEnabled(Preference pref, boolean enabled) {
348 ((MasterSwitchPreference) pref).setSwitchEnabled(enabled);
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DMasterSwitchPreferenceTest.java83 mPreference.setSwitchEnabled(true); in setSwitchEnabled_shouldUpdateButtonEnabledState()
86 mPreference.setSwitchEnabled(false); in setSwitchEnabled_shouldUpdateButtonEnabledState()
94 mPreference.setSwitchEnabled(false); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationSwitchBarPreference.java72 public void setSwitchEnabled(boolean enabled) { in setSwitchEnabled() method in NotificationSwitchBarPreference
80 setSwitchEnabled(admin == null); in setDisabledByAdmin()
DNotificationAppPreference.java101 public void setSwitchEnabled(boolean enabled) { in setSwitchEnabled() method in NotificationAppPreference
113 setSwitchEnabled(admin == null); in setDisabledByAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DMasterSwitchPreference.java103 public void setSwitchEnabled(boolean enabled) { in setSwitchEnabled() method in MasterSwitchPreference
115 setSwitchEnabled(admin == null); in setDisabledByAdmin()
DMasterSwitchController.java62 mPreference.setSwitchEnabled(enabled); in setEnabled()
/packages/apps/Settings/src/com/android/settings/widget/
DMasterSwitchPreference.java116 public void setSwitchEnabled(boolean enabled) { in setSwitchEnabled() method in MasterSwitchPreference
129 setSwitchEnabled(admin == null); in setDisabledByAdmin()
DMasterSwitchController.java68 mPreference.setSwitchEnabled(enabled); in setEnabled()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModePreference.java48 setSwitchEnabled(!batterySaver); in DarkModePreference()
/packages/apps/Settings/src/com/android/settings/notification/app/
DAppChannelsBypassingDndPreferenceController.java163 channelPreference.setSwitchEnabled( in populateList()
DChannelListPreferenceController.java181 channelPref.setSwitchEnabled(mAdmin == null in populateSingleChannelPrefs()
/packages/apps/Settings/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceController.java274 pref.setSwitchEnabled(mNotificationBackend.isBlockable(mContext, appEntry.info)); in displayRecentApps()