Home
last modified time | relevance | path

Searched refs:switchBar (Results 1 – 21 of 21) sorted by relevance

/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/activitydelegates/
DMeasurementActivityActionDelegate.java67 switchBar -> mMeasurementViewModel.consentSwitchClickHandlerOnR((Switch) switchBar), in initRvc()
69 switchBar -> ((Switch) switchBar)::setChecked); in initRvc()
89 switchBar -> in configureSharedElements()
90 mMeasurementViewModel.consentSwitchClickHandler((MainSwitchBar) switchBar), in configureSharedElements()
92 switchBar -> ((MainSwitchBar) switchBar)::setChecked); in configureSharedElements()
DTopicsActivityActionDelegate.java68 switchBar -> mTopicsViewModel.consentSwitchClickHandler((MainSwitchBar) switchBar), in initGA()
70 switchBar -> ((MainSwitchBar) switchBar)::setChecked); in initGA()
DAppsActivityActionDelegate.java69 switchBar -> mAppsViewModel.consentSwitchClickHandler((MainSwitchBar) switchBar), in initGA()
71 switchBar -> ((MainSwitchBar) switchBar)::setChecked); in initGA()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettings.java93 final SettingsMainSwitchBar switchBar = activity.getSwitchBar(); in onActivityCreated() local
94 switchBar.setTitle(getContext().getString(R.string.location_settings_primary_switch_title)); in onActivityCreated()
95 updateChromeSwitchBarPreference(switchBar); in onActivityCreated()
96 switchBar.show(); in onActivityCreated()
97 mSwitchBarController = new LocationSwitchBarController(activity, switchBar, in onActivityCreated()
179 private void updateChromeSwitchBarPreference(final SettingsMainSwitchBar switchBar) { in updateChromeSwitchBarPreference() argument
183 switchBar.setClickable(false); in updateChromeSwitchBarPreference()
184 switchBar.setTooltipText(getResources().getString( in updateChromeSwitchBarPreference()
DLocationSwitchBarController.java39 public LocationSwitchBarController(Context context, SettingsMainSwitchBar switchBar, in LocationSwitchBarController() argument
41 mSwitchBar = switchBar; in LocationSwitchBarController()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectLocationFragment.java39 final SettingsMainSwitchBar switchBar = activity.getSwitchBar(); in onActivityCreated() local
40 switchBar.setTitle(getContext().getString(R.string.location_settings_primary_switch_title)); in onActivityCreated()
42 activity, switchBar, getSettingsLifecycle()); in onActivityCreated()
43 switchBar.show(); in onActivityCreated()
/packages/apps/Settings/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverDashboard.java67 final SettingsMainSwitchBar switchBar = activity.getSwitchBar(); in onActivityCreated() local
70 activity, new MainSwitchBarController(switchBar)); in onActivityCreated()
72 switchBar.setTitle( in onActivityCreated()
74 switchBar.show(); in onActivityCreated()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverSummary.kt31 private lateinit var switchBar: SettingsMainSwitchBar in <lambda>() variable in com.android.settings.datausage.DataSaverSummary
50 switchBar = (activity as SettingsActivity).switchBar.apply { in <lambda>()
84 switchBar.isChecked = isDataSaving in <lambda>()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/delegates/
DMeasurementActionDelegate.java125 switchBar -> in configureMeasurementConsentSwitch()
126 mMeasurementViewModel.consentSwitchClickHandler((MainSwitchBar) switchBar)); in configureMeasurementConsentSwitch()
137 switchBar -> in configureMeasurementConsentSwitchOnR()
138 mMeasurementViewModel.consentSwitchClickHandlerOnR((Switch) switchBar)); in configureMeasurementConsentSwitchOnR()
DTopicsActionDelegate.java155 switchBar -> mTopicsViewModel.consentSwitchClickHandler((MainSwitchBar) switchBar)); in configureTopicsConsentSwitch()
DAppsActionDelegate.java163 switchBar -> mAppsViewModel.consentSwitchClickHandler((MainSwitchBar) switchBar)); in configureAppsConsentSwitch()
/packages/apps/Settings/src/com/android/settings/development/
DDevelopmentSwitchBarController.java36 SettingsMainSwitchBar switchBar, boolean isAvailable, Lifecycle lifecycle) { in DevelopmentSwitchBarController() argument
37 mSwitchBar = switchBar; in DevelopmentSwitchBarController()
DWirelessDebuggingFragment.java176 final SettingsMainSwitchBar switchBar = activity.getSwitchBar(); in onActivityCreated() local
177 switchBar.setTitle(getContext().getString(R.string.wireless_debugging_main_switch_title)); in onActivityCreated()
180 new MainSwitchBarController(switchBar), this, getSettingsLifecycle()); in onActivityCreated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DSettingsMainSwitchPreferenceTest.java49 final SettingsMainSwitchBar switchBar = new SettingsMainSwitchBar(context); in setUp() local
52 ReflectionHelpers.setField(mPreference, "mMainSwitchBar", switchBar); in setUp()
/packages/apps/Settings/src/com/android/settings/deletionhelper/
DAutomaticStorageManagerSwitchBarController.java48 SettingsMainSwitchBar switchBar, in AutomaticStorageManagerSwitchBarController() argument
53 mSwitchBar = Preconditions.checkNotNull(switchBar); in AutomaticStorageManagerSwitchBarController()
/packages/apps/Settings/src/com/android/settings/users/
DMultiUserSwitchBarController.java48 MultiUserSwitchBarController(Context context, SwitchWidgetController switchBar, in MultiUserSwitchBarController() argument
51 mSwitchBar = switchBar; in MultiUserSwitchBarController()
DUserSettings.java288 final SettingsMainSwitchBar switchBar = activity.getSwitchBar(); in onActivityCreated() local
289 switchBar.setTitle(getContext().getString(R.string.multiple_users_main_switch_title)); in onActivityCreated()
291 switchBar.show(); in onActivityCreated()
293 switchBar.hide(); in onActivityCreated()
296 new MainSwitchBarController(switchBar), this /* listener */); in onActivityCreated()
300 if (switchBar.isChecked() && openUserEditDialog) { in onActivityCreated()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarController.java77 WifiTetherSwitchBarController(Context context, SettingsMainSwitchBar switchBar) { in WifiTetherSwitchBarController() argument
79 mSwitchBar = switchBar; in WifiTetherSwitchBarController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSettingsDashboardFragmentTest.java75 SettingsMainSwitchBar switchBar = new SettingsMainSwitchBar(mContext); in setUp() local
77 ReflectionHelpers.setField(mDashboard, "mSwitchBar", switchBar); in setUp()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingSwitchBarController.java268 SettingsMainSwitchBar switchBar, in AudioSharingSwitchBarController() argument
271 mSwitchBar = switchBar; in AudioSharingSwitchBarController()
/packages/apps/Settings/src/com/android/settings/accessibility/
DToggleFeaturePreferenceFragment.java250 final SettingsMainSwitchBar switchBar = settingsActivity.getSwitchBar(); in onViewCreated() local
251 switchBar.hide(); in onViewCreated()