Home
last modified time | relevance | path

Searched refs:switchView (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DMultiTargetSwitchPreference.java52 Switch switchView = holder.itemView.findViewById(android.R.id.switch_widget); in onBindViewHolder() local
53 if (switchView != null) { in onBindViewHolder()
54 switchView.setOnClickListener(mSwitchOnClickLister); in onBindViewHolder()
58 - switchView.getMeasuredHeight()) / 2 + 0.5f); in onBindViewHolder()
59 switchView.setPaddingRelative(padding, padding, 0, padding); in onBindViewHolder()
DPermissionPreference.java229 Switch switchView = (Switch) v; in updateUi()
230 requestChange(switchView.isChecked(), CHANGE_BOTH); in updateUi()
266 Switch switchView = (Switch) v; in updateUi()
268 if (switchView.isChecked()) { in updateUi()
DAllAppPermissionsFragment.java281 Switch switchView = (Switch) v; in MyMultiTargetSwitchPreference()
282 if (switchView.isChecked()) { in MyMultiTargetSwitchPreference()
/packages/apps/ThemePicker/src/com/android/customization/picker/mode/
DDarkModeSectionView.java43 Switch switchView = findViewById(R.id.dark_mode_toggle); in onFinishInflate() local
44 switchView.setChecked(mIsDarkModeActivated); in onFinishInflate()
45 switchView.setOnCheckedChangeListener((buttonView, isChecked) -> in onFinishInflate()
46 switchView.setChecked(mIsDarkModeActivated) in onFinishInflate()
/packages/apps/Settings/src/com/android/settings/widget/
DFilterTouchesRestrictedSwitchPreference.java53 final View switchView = holder.findViewById(android.R.id.switch_widget); in onBindViewHolder() local
54 if (switchView != null) { in onBindViewHolder()
55 final View rootView = switchView.getRootView(); in onBindViewHolder()
DFilterTouchesSwitchPreference.java51 final View switchView = holder.findViewById(android.R.id.switch_widget); in onBindViewHolder() local
52 if (switchView != null) { in onBindViewHolder()
53 final View rootView = switchView.getRootView(); in onBindViewHolder()
DSettingsMainSwitchBar.java48 boolean onBeforeCheckedChanged(Switch switchView, boolean isChecked); in onBeforeCheckedChanged() argument
77 addOnSwitchChangeListener((switchView, isChecked) -> logMetrics(isChecked)); in SettingsMainSwitchBar()
DSwitchBar.java61 void onSwitchChanged(Switch switchView, boolean isChecked); in onSwitchChanged() argument
141 (switchView, isChecked) -> setTextViewLabelAndBackground(isChecked)); in SwitchBar()
DSettingsMainSwitchPreferenceController.java52 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
DSwitchBarController.java75 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
DMainSwitchBarController.java77 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/apps/Settings/src/com/android/settings/accessibility/
DDividerSwitchPreference.java48 final View switchView = holder.itemView.findViewById(android.R.id.widget_frame); in onBindViewHolder() local
49 if (switchView != null) { in onBindViewHolder()
50 switchView.setVisibility(mSwitchVisibility); in onBindViewHolder()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DSyncPreference.java51 View switchView = view.findViewById(com.android.internal.R.id.switch_widget); in onBindViewHolder() local
53 switchView.setVisibility(View.GONE); in onBindViewHolder()
63 switchView.setVisibility(View.VISIBLE); in onBindViewHolder()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DSyncStateSwitchPreference.java73 View switchView = view.findViewById(R.id.switch_widget_container); in onBindViewHolder() local
75 switchView.setVisibility(View.GONE); in onBindViewHolder()
85 switchView.setVisibility(View.VISIBLE); in onBindViewHolder()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoAllAppPermissionsFragment.java317 Switch switchView = (Switch) v; in MyMultiTargetSwitchPreference()
318 if (switchView.isChecked()) { in MyMultiTargetSwitchPreference()
381 Switch switchView = holder.itemView.findViewById(android.R.id.switch_widget); in onBindViewHolder() local
382 if (switchView != null) { in onBindViewHolder()
383 switchView.setOnClickListener(mSwitchOnClickLister); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/accounts/
DSyncStateSwitchPreference.java87 View switchView = view.findViewById(com.android.internal.R.id.switch_widget); in onBindViewHolder() local
89 switchView.setVisibility(View.GONE); in onBindViewHolder()
99 switchView.setVisibility(View.VISIBLE); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/datausage/
DCellDataPreference.java173 final View switchView = holder.findViewById(android.R.id.switch_widget); in onBindViewHolder() local
174 switchView.setClickable(false); in onBindViewHolder()
175 ((Checkable) switchView).setChecked(mChecked); in onBindViewHolder()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java205 View switchView = holder.findViewById(android.R.id.switch_widget); in onBindViewHolder() local
206 syncSwitchView(switchView); in onBindViewHolder()
211 final Switch switchView = (Switch) view; in syncSwitchView() local
212 switchView.setOnCheckedChangeListener(null); in syncSwitchView()
218 final Switch switchView = (Switch) view; in syncSwitchView() local
219 switchView.setOnCheckedChangeListener(mListener); in syncSwitchView()
/packages/apps/ThemePicker/src/com/android/customization/model/mode/
DDarkModeSectionController.java121 Switch switchView = mDarkModeSectionView.findViewById(R.id.dark_mode_toggle); in onViewActivated() local
122 if (!switchView.isEnabled()) { in onViewActivated()
/packages/apps/Contacts/src/com/android/contacts/activities/
DPeopleActivity.java428 switchView(ContactsView.GROUP_VIEW); in onNewIntent()
447 switchView(ContactsView.GROUP_VIEW); in onNewIntent()
977 switchView(ContactsView.GROUP_VIEW); in switchToOrUpdateGroupView()
982 switchView(ContactsView.ASSISTANT); in launchAssistant()
985 private void switchView(ContactsView contactsView) { in switchView() method in PeopleActivity
/packages/apps/Settings/src/com/android/settings/display/
DAutoBrightnessDetailPreferenceController.java61 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java432 switchView(mEmergencyShortcutView, mDialpadView, true); in onBackPressed()
531 switchView(mDialpadView, mEmergencyShortcutView, true); in onClick()
988 switchView(mEmergencyShortcutView, mDialpadView, false); in setupEmergencyShortcutsView()
1110 private void switchView(View displayView, View hideView, boolean hasAnimation) { in switchView() method in EmergencyDialer
/packages/apps/Settings/src/com/android/settings/location/
DBluetoothScanningMainSwitchPreferenceController.java71 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
DWifiScanningMainSwitchPreferenceController.java72 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/apps/Settings/src/com/android/settings/emergency/
DEmergencyGesturePreferenceController.java75 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument

12