/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | MultiTargetSwitchPreference.java | 52 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()
|
D | PermissionPreference.java | 187 Switch switchView = (Switch) v; in updateUi() 188 requestChange(switchView.isChecked(), PermissionTarget.PERMISSION_BOTH); in updateUi() 227 Switch switchView = (Switch) v; in updateUi() 229 if (switchView.isChecked()) { in updateUi()
|
D | AllAppPermissionsFragment.java | 282 Switch switchView = (Switch) v; in MyMultiTargetSwitchPreference() 283 if (switchView.isChecked()) { in MyMultiTargetSwitchPreference()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/floatingsheetcontent/ |
D | WallpaperActionsToggleAdapter.kt | 38 val switchView: Switch in <lambda>() constant in com.android.wallpaper.widget.floatingsheetcontent.WallpaperActionsToggleAdapter 41 switchView = v.requireViewById(R.id.wallpaper_action_switch) in <lambda>() 56 viewHolder.switchView.setOnCheckedChangeListener(null) in <lambda>() 57 viewHolder.switchView.isChecked = actionToggles[position].toggled in <lambda>() 59 viewHolder.switchView.setOnCheckedChangeListener { _, isChecked -> in <lambda>()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/mode/ |
D | DarkModeSectionView.java | 43 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/ |
D | FilterTouchesSwitchPreference.java | 51 final View switchView = holder.findViewById(androidx.preference.R.id.switchWidget); in onBindViewHolder() local 52 if (switchView != null) { in onBindViewHolder() 53 final View rootView = switchView.getRootView(); in onBindViewHolder()
|
D | FilterTouchesRestrictedSwitchPreference.java | 53 final View switchView = holder.findViewById(androidx.preference.R.id.switchWidget); in onBindViewHolder() local 54 if (switchView != null) { in onBindViewHolder() 55 final View rootView = switchView.getRootView(); in onBindViewHolder()
|
D | SettingsMainSwitchBar.java | 71 addOnSwitchChangeListener((switchView, isChecked) -> logMetrics(isChecked)); in SettingsMainSwitchBar()
|
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/ |
D | QCRowView.java | 325 Switch switchView = actionView == null ? null : actionView.findViewById( in initSwitchView() local 327 if (switchView == null) { in initSwitchView() 329 switchView = actionView.requireViewById(android.R.id.switch_widget); in initSwitchView() 331 CarUiUtils.makeAllViewsEnabled(switchView, action.isEnabled()); in initSwitchView() 336 switchView.setOnCheckedChangeListener(null); in initSwitchView() 337 switchView.setEnabled(shouldEnableView); in initSwitchView() 338 switchView.setChecked(action.isChecked()); in initSwitchView() 339 switchView.setContentDescription(action.getContentDescription()); in initSwitchView() 340 switchView.setOnTouchListener((v, event) -> { in initSwitchView() 349 switchView.setOnCheckedChangeListener( in initSwitchView()
|
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/ |
D | SyncPreference.java | 50 View switchView = view.findViewById(com.android.internal.R.id.switch_widget); in onBindViewHolder() local 52 switchView.setVisibility(View.GONE); in onBindViewHolder() 62 switchView.setVisibility(View.VISIBLE); in onBindViewHolder()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | SyncStateSwitchPreference.java | 73 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/ |
D | SyncStateSwitchPreference.java | 87 View switchView = view.findViewById(androidx.preference.R.id.switchWidget); in onBindViewHolder() local 89 switchView.setVisibility(View.GONE); in onBindViewHolder() 99 switchView.setVisibility(View.VISIBLE); in onBindViewHolder()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoAllAppPermissionsFragment.java | 322 Switch switchView = (Switch) v; in MyMultiTargetSwitchPreference() 323 if (switchView.isChecked()) { in MyMultiTargetSwitchPreference() 386 Switch switchView = holder.itemView.findViewById(android.R.id.switch_widget); in onBindViewHolder() local 387 if (switchView != null) { in onBindViewHolder() 388 switchView.setOnClickListener(mSwitchOnClickLister); in onBindViewHolder()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | TogglePreferenceController.java | 62 ((MainSwitchPreference) preference).addOnSwitchChangeListener((switchView, isChecked) -> in displayPreference() 63 SettingsJankMonitor.detectToggleJank(getPreferenceKey(), switchView)); in displayPreference() local
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | CellDataPreference.java | 169 final CompoundButton switchView = in onBindViewHolder() local 171 switchView.setClickable(false); in onBindViewHolder() 172 switchView.setChecked(mChecked); in onBindViewHolder()
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | OneHandedSettings.java | 75 mainSwitchPreference.addOnSwitchChangeListener((switchView, isChecked) -> { in updatePreferenceStates() argument 76 switchView.setChecked(isChecked); in updatePreferenceStates()
|
/packages/apps/ThemePicker/src/com/android/customization/model/mode/ |
D | DarkModeSectionController.java | 133 Switch switchView = mDarkModeSectionView.findViewById(R.id.dark_mode_toggle); in onViewActivated() local 134 if (!switchView.isEnabled()) { in onViewActivated()
|
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/view/ |
D | QCRowViewTest.java | 227 Switch switchView = (Switch) endContainer.getChildAt(0); in setRow_switchViewThumbTintList() local 228 assertThat(switchView.getThumbTintList()).isNotNull(); in setRow_switchViewThumbTintList() 230 ColorStateList switchColorStateList = switchView.getThumbTintList(); in setRow_switchViewThumbTintList()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | AppRestrictionsFragment.java | 214 View switchView = holder.findViewById(android.R.id.switch_widget); in onBindViewHolder() local 215 syncSwitchView(switchView); in onBindViewHolder() 220 final Switch switchView = (Switch) view; in syncSwitchView() local 221 switchView.setOnCheckedChangeListener(null); in syncSwitchView() 227 final Switch switchView = (Switch) view; in syncSwitchView() local 228 switchView.setOnCheckedChangeListener(mListener); in syncSwitchView()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | PeopleActivity.java | 435 switchView(ContactsView.GROUP_VIEW); in onNewIntent() 454 switchView(ContactsView.GROUP_VIEW); in onNewIntent() 985 switchView(ContactsView.GROUP_VIEW); in switchToOrUpdateGroupView() 990 switchView(ContactsView.ASSISTANT); in launchAssistant() 993 private void switchView(ContactsView contactsView) { in switchView() method in PeopleActivity
|
/packages/apps/Settings/src/com/android/settings/applications/credentials/ |
D | CredentialManagerPreferenceController.java | 1169 if (checkableView instanceof CompoundButton switchView) { in onBindViewHolder() 1170 switchView.setChecked(mChecked); in onBindViewHolder() 1171 switchView.setOnClickListener(mListener); in onBindViewHolder() 1174 mSwitch = switchView; in onBindViewHolder()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/ |
D | SettingsManageAppPermissionsFragment.kt | 108 private val onSwitchChangeListener = OnCheckedChangeListener { switchView, isChecked -> in <lambda>() method 112 switchView.isChecked = false in <lambda>()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyDialer.java | 435 switchView(mEmergencyShortcutView, mDialpadView, true); in onBackPressed() 534 switchView(mDialpadView, mEmergencyShortcutView, true); in onClick() 995 switchView(mEmergencyShortcutView, mDialpadView, false); in setupEmergencyShortcutsView() 1117 private void switchView(View displayView, View hideView, boolean hasAnimation) { in switchView() method in EmergencyDialer
|
/packages/apps/Settings/src/com/android/settings/notification/history/ |
D | NotificationHistoryActivity.java | 359 (switchView, isChecked) -> {
|