Home
last modified time | relevance | path

Searched refs:toggleButton (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/common/
DToggleButtonActionItem.java59 final DrawableStateToggleButton toggleButton = getOptionalToggleButton(frameLayout); in bindViewHolder() local
60 toggleButton.setOnClickListener(null); in bindViewHolder()
62 toggleButton.setOnCheckedChangeListener(null); in bindViewHolder()
63 toggleButton.setButtonDrawable(mDrawable); in bindViewHolder()
64 toggleButton.setChecked(mIsChecked); in bindViewHolder()
65 toggleButton.setEnabled(isEnabled()); in bindViewHolder()
66 toggleButton.setAllowClickWhenDisabled(true); in bindViewHolder()
67 toggleButton.setOnCheckedChangeListener((view, isChecked) -> { in bindViewHolder()
69 toggleButton.setChecked(mIsChecked); in bindViewHolder()
74 DrawableStateToggleButton toggleButton = in getOptionalToggleButton() local
[all …]
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/
DQCRowView.java339 DrawableStateToggleButton toggleButton = tmpToggleButton; // must be effectively final in initToggleView() local
342 toggleButton.setText(null); in initToggleView()
343 toggleButton.setTextOn(null); in initToggleView()
344 toggleButton.setTextOff(null); in initToggleView()
345 toggleButton.setOnCheckedChangeListener(null); in initToggleView()
348 toggleButton.setButtonDrawable(icon); in initToggleView()
349 toggleButton.setChecked(action.isChecked()); in initToggleView()
350 toggleButton.setEnabled(shouldEnableView); in initToggleView()
351 setToggleButtonDrawableState(toggleButton, action.isEnabled(), action.isAvailable()); in initToggleView()
352 toggleButton.setOnTouchListener((v, event) -> { in initToggleView()
[all …]
/packages/apps/Camera2/src/com/android/camera/widget/
DModeOptions.java226 MultiToggleImageButton toggleButton = (MultiToggleImageButton) button; in setupToggleButtonParams() local
227 toggleButton.setParentSize(size); in setupToggleButtonParams()
228 toggleButton.setAnimDirection(mIsPortrait ? in setupToggleButtonParams()