Home
last modified time | relevance | path

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

/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.java187 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()
DAllAppPermissionsFragment.java282 Switch switchView = (Switch) v; in MyMultiTargetSwitchPreference()
283 if (switchView.isChecked()) { in MyMultiTargetSwitchPreference()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/floatingsheetcontent/
DWallpaperActionsToggleAdapter.kt38 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/
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/
DFilterTouchesSwitchPreference.java51 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()
DFilterTouchesRestrictedSwitchPreference.java53 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()
DSettingsMainSwitchBar.java71 addOnSwitchChangeListener((switchView, isChecked) -> logMetrics(isChecked)); in SettingsMainSwitchBar()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/
DQCRowView.java325 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/
DSyncPreference.java50 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/
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(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/
DAutoAllAppPermissionsFragment.java322 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/
DTogglePreferenceController.java62 ((MainSwitchPreference) preference).addOnSwitchChangeListener((switchView, isChecked) -> in displayPreference()
63 SettingsJankMonitor.detectToggleJank(getPreferenceKey(), switchView)); in displayPreference() local
/packages/apps/Settings/src/com/android/settings/datausage/
DCellDataPreference.java169 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/
DOneHandedSettings.java75 mainSwitchPreference.addOnSwitchChangeListener((switchView, isChecked) -> { in updatePreferenceStates() argument
76 switchView.setChecked(isChecked); in updatePreferenceStates()
/packages/apps/ThemePicker/src/com/android/customization/model/mode/
DDarkModeSectionController.java133 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/
DQCRowViewTest.java227 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/
DAppRestrictionsFragment.java214 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/
DPeopleActivity.java435 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/
DCredentialManagerPreferenceController.java1169 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/
DSettingsManageAppPermissionsFragment.kt108 private val onSwitchChangeListener = OnCheckedChangeListener { switchView, isChecked -> in <lambda>() method
112 switchView.isChecked = false in <lambda>()
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java435 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/
DNotificationHistoryActivity.java359 (switchView, isChecked) -> {