Home
last modified time | relevance | path

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

123

/packages/apps/PermissionController/src/com/android/packageinstaller/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.java233 Switch switchView = (Switch) v; in updateUi()
234 requestChange(switchView.isChecked(), CHANGE_BOTH); in updateUi()
270 Switch switchView = (Switch) v; in updateUi()
272 if (switchView.isChecked()) { in updateUi()
DAllAppPermissionsFragment.java335 Switch switchView = (Switch) v; in MyMultiTargetSwitchPreference()
336 if (switchView.isChecked()) { in MyMultiTargetSwitchPreference()
/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/PermissionController/src/com/android/packageinstaller/permission/ui/auto/
DAutoAllAppPermissionsFragment.java317 Switch switchView = (Switch) v; in MyMultiTargetSwitchPreference()
318 if (switchView.isChecked()) { in MyMultiTargetSwitchPreference()
380 Switch switchView = holder.itemView.findViewById(android.R.id.switch_widget); in onBindViewHolder() local
381 if (switchView != null) { in onBindViewHolder()
382 switchView.setOnClickListener(mSwitchOnClickLister); 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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/Settings/src/com/android/settings/datausage/
DCellDataPreference.java193 View switchView = holder.findViewById(android.R.id.switch_widget); in onBindViewHolder() local
194 switchView.setClickable(false); in onBindViewHolder()
195 ((Checkable) switchView).setChecked(mChecked); in onBindViewHolder()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DCellDataPreference.java193 View switchView = holder.findViewById(android.R.id.switch_widget); in onBindViewHolder() local
194 switchView.setClickable(false); in onBindViewHolder()
195 ((Checkable) switchView).setChecked(mChecked); in onBindViewHolder()
/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/services/Telephony/src/com/android/phone/
DEmergencyDialer.java426 switchView(mEmergencyShortcutView, mDialpadView, true); in onBackPressed()
525 switchView(mDialpadView, mEmergencyShortcutView, true); in onClick()
982 switchView(mEmergencyShortcutView, mDialpadView, false); in setupEmergencyShortcutsView()
1104 private void switchView(View displayView, View hideView, boolean hasAnimation) { in switchView() method in EmergencyDialer
/packages/apps/Settings/src/com/android/settings/widget/
DSwitchBar.java61 void onSwitchChanged(Switch switchView, boolean isChecked); in onSwitchChanged() argument
143 (switchView, isChecked) -> setTextViewLabelAndBackground(isChecked)); in SwitchBar()
DSwitchBarController.java76 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSwitchBar.java63 void onSwitchChanged(Switch switchView, boolean isChecked); in onSwitchChanged() argument
139 (switchView, isChecked) -> setTextViewLabelAndBackground(isChecked)); in SwitchBar()
DSwitchBarController.java76 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/apps/Settings/src/com/android/settings/deletionhelper/
DAutomaticStorageManagerSwitchBarController.java66 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationSwitchBarController.java96 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deletionhelper/
DAutomaticStorageManagerSwitchBarController.java66 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/apps/Settings/src/com/android/settings/location/
DLocationSwitchBarController.java96 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/apps/Settings/src/com/android/settings/notification/
DZenAutomaticRuleSwitchPreferenceController.java91 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenAutomaticRuleSwitchPreferenceController.java91 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DDevelopmentSettingsDashboardFragment.java214 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
215 if (switchView != mSwitchBar.getSwitch()) { in onSwitchChanged()
/packages/apps/Settings/src/com/android/settings/development/
DDevelopmentSettingsDashboardFragment.java214 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged() argument
215 if (switchView != mSwitchBar.getSwitch()) { in onSwitchChanged()

123