Home
last modified time | relevance | path

Searched refs:mButton (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorVignette.java57 private SwapButton mButton; field in EditorVignette
157 mButton = (SwapButton) accessoryViewList.findViewById(R.id.applyEffect); in openUtilityPanel()
158 mButton.setText(mContext.getString(R.string.vignette_main)); in openUtilityPanel()
161 final PopupMenu popupMenu = new PopupMenu(mImageShow.getActivity(), mButton); in openUtilityPanel()
173 mButton.setOnClickListener(new View.OnClickListener() { in openUtilityPanel()
180 mButton.setListener(this); in openUtilityPanel()
186 mButton.setText(mContext.getString(R.string.vignette_main)); in openUtilityPanel()
250 if (mButton == null) { in detach()
253 mButton.setListener(null); in detach()
254 mButton.setOnClickListener(null); in detach()
[all …]
DEditorChanSat.java47 private SwapButton mButton; field in EditorChanSat
99 mButton = (SwapButton) accessoryViewList.findViewById(R.id.applyEffect); in openUtilityPanel()
100 mButton.setText(mContext.getString(R.string.editor_chan_sat_main)); in openUtilityPanel()
103 final PopupMenu popupMenu = new PopupMenu(mImageShow.getActivity(), mButton); in openUtilityPanel()
115 mButton.setOnClickListener(new OnClickListener() { in openUtilityPanel()
122 mButton.setListener(this); in openUtilityPanel()
128 mButton.setText(mContext.getString(R.string.saturation)); in openUtilityPanel()
242 if (mButton == null) { in detach()
245 mButton.setListener(null); in detach()
246 mButton.setOnClickListener(null); in detach()
[all …]
DEditor.java61 private Button mButton; field in Editor
98 mButton = editTitle; in setUpEditorUI()
129 if (mButton != null) { in setUtilityPanelUI()
235 if (mButton != null) { in commitLocalRepresentation()
259 mButton.setText(calculateUserMessage(mContext, s, "")); in updateText()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceSettingsRemoveButtonPreferenceController.java83 private Button mButton; field in FaceSettingsRemoveButtonPreferenceController
105 mButton.setEnabled(true);
121 mButton.setEnabled(false);
134 mButton.setEnabled(true);
158 mButton = ((LayoutPreference) preference) in updateState()
160 mButton.setOnClickListener(this); in updateState()
163 mButton.setEnabled(false); in updateState()
165 mButton.setEnabled(!mRemoving); in updateState()
181 if (v == mButton) { in onClick()
DFaceSettingsEnrollButtonPreferenceController.java44 private Button mButton; field in FaceSettingsEnrollButtonPreferenceController
59 mButton = ((LayoutPreference) preference) in updateState()
61 mButton.setOnClickListener(this); in updateState()
/packages/apps/Settings/src/com/android/settings/notification/
DZenCustomRadioButtonPreference.java35 private RadioButton mButton; field in ZenCustomRadioButtonPreference
84 mButton = (RadioButton) holder.findViewById(android.R.id.checkbox); in onBindViewHolder()
85 if (mButton != null) { in onBindViewHolder()
86 mButton.setChecked(mChecked); in onBindViewHolder()
103 return mButton != null && mChecked; in isChecked()
108 if (mButton != null) { in setChecked()
109 mButton.setChecked(checked); in setChecked()
114 return mButton; in getRadioButton()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenCustomRadioButtonPreference.java35 private RadioButton mButton; field in ZenCustomRadioButtonPreference
84 mButton = (RadioButton) holder.findViewById(android.R.id.checkbox); in onBindViewHolder()
85 if (mButton != null) { in onBindViewHolder()
86 mButton.setChecked(mChecked); in onBindViewHolder()
103 return mButton != null && mChecked; in isChecked()
108 if (mButton != null) { in setChecked()
109 mButton.setChecked(checked); in setChecked()
114 return mButton; in getRadioButton()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DActionPresenterSelector.java57 Button mButton; field in ActionPresenterSelector.ActionViewHolder
62 mButton = (Button) view.findViewById(R.id.lb_action_button); in ActionViewHolder()
81 vh.mButton.setText(action.getLabel1()); in onBindViewHolder()
123 vh.mButton.setCompoundDrawablesRelativeWithIntrinsicBounds(icon, null, null, null); in onBindViewHolder()
128 vh.mButton.setText(line2); in onBindViewHolder()
130 vh.mButton.setText(line1); in onBindViewHolder()
132 vh.mButton.setText(line1 + "\n" + line2); in onBindViewHolder()
139 vh.mButton.setCompoundDrawablesRelativeWithIntrinsicBounds(null, null, null, null); in onUnbindViewHolder()
/packages/apps/Car/Radio/src/com/android/car/radio/widget/
DBandSelectorToggle.java33 private final ImageButton mButton; field in BandSelectorToggle
43 mButton = (ImageButton) getChildAt(0); // ImageButton is the only child in BandSelectorToggle()
44 mButton.setOnClickListener(v -> switchToNext()); in BandSelectorToggle()
53 mButton.setImageResource(R.drawable.ic_radio_fm); in setType()
56 mButton.setImageResource(R.drawable.ic_radio_am); in setType()
59 mButton.setImageDrawable(null); in setType()
/packages/apps/TV/src/com/android/tv/menu/
DPlayControlsButton.java34 private final ImageView mButton; field in PlayControlsButton
60 mButton = (ImageView) findViewById(R.id.button); in PlayControlsButton()
89 mButton.setOnClickListener( in setAction()
109 mButton.setOnFocusChangeListener( in setFocusedIconColor()
137 mButton.getDrawable().jumpToCurrentState(); in hideRippleAnimation()
143 mButton.setEnabled(enabled); in setEnabled()
144 mButton.setFocusable(enabled); in setEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DFaceSettingsRemoveButtonPreferenceController.java84 private Button mButton; field in FaceSettingsRemoveButtonPreferenceController
104 mButton.setEnabled(true);
131 mButton.setEnabled(true);
154 mButton = ((LayoutPreference) preference) in updateState()
156 mButton.setOnClickListener(this); in updateState()
171 if (v == mButton) { in onClick()
172 mButton.setEnabled(false); in onClick()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionMenu.java32 private final Button mButton; field in SelectionMenu
37 mButton = button; in SelectionMenu()
38 mPopupList = new PopupList(context, mButton); in SelectionMenu()
42 mButton.setOnClickListener(this); in SelectionMenu()
59 mButton.setText(title); in setTitle()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
DColorChooser.java41 private Button[] mButton = new Button[mButtonsID.length]; field in ColorChooser
66 mButton[i] = button; in setUp()
101 mButton[i].setTag(hsvo); in setColorSet()
102 GradientDrawable sd = ((GradientDrawable) mButton[i].getBackground()); in setColorSet()
115 final Button button = mButton[i]; in resetBorders()
151 final Button button = mButton[mSelectedButton]; in changeSelectedColor()
172 float[] c = (float[]) mButton[mSelectedButton].getTag(); in showColorPicker()
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DEditFdnContactScreen.java83 private Button mButton; field in EditFdnContactScreen
263 mButton = (Button) findViewById(R.id.button); in setupView()
264 if (mButton != null) { in setupView()
265 mButton.setOnClickListener(mClicked); in setupView()
285 if (mButton != null && mNameField != null && mNumberField != null) { in setButtonEnabled()
286 mButton.setEnabled(mNameField.length() > 0 && mNumberField.length() > 0); in setButtonEnabled()
378 mButton.setClickable(!mDataBusy); in displayProgress()
433 mButton.requestFocus();
434 } else if (v == mButton) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/dream/
DStartNowPreferenceControllerTest.java55 private Button mButton; field in StartNowPreferenceControllerTest
65 when(mLayoutPref.findViewById(R.id.dream_start_now_button)).thenReturn(mButton); in setup()
76 verify(mButton).setOnClickListener(captor.capture()); in setsOnClickListenerForStartNow()
85 verify(mButton).setEnabled(false); in buttonIsDisabledWhenNeverDreaming()
93 verify(mButton).setEnabled(true); in buttonIsEnabledWhenDreamIsAvailable()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DHeaderMessageDocumentHolder.java37 private final Button mButton; field in HeaderMessageDocumentHolder
45 mButton = (Button) itemView.findViewById(R.id.button_dismiss); in HeaderMessageDocumentHolder()
50 mButton.setOnClickListener(this::onButtonClick); in bind()
63 mButton.setText(mMessage.getButtonString()); in bind()
/packages/apps/Car/Cluster/src/android/car/cluster/
DMainClusterActivity.java230 mOrderToFacet.get(NAV_FACET_ID).mButton.requestFocus(); in onCreate()
275 mOrderToFacet.get(COMMS_FACET_ID).mButton.requestFocus(); in onCreate()
280 mOrderToFacet.get(mPreviousFacet).mButton.requestFocus(); in onCreate()
361 mButtonToFacet.put(facet.mButton, facet); in registerFacet()
363 facet.mButton.setOnFocusChangeListener(mFacetButtonFocusListener); in registerFacet()
367 Button mButton; field in MainClusterActivity.Facet
372 this.mButton = button; in Facet()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/quickcontact/
DQuickContactTestsActivity.java49 private Button mButton; field in QuickContactTestsActivity
68 mButton = (Button) findViewById(android.R.id.button1); in onCreate()
69 mButton.setOnClickListener(new OnClickListener() { in onCreate()
103 mButton.setEnabled(true); in onActivityResult()
/packages/services/Telephony/src/com/android/phone/
DChangeIccPinScreen.java72 private Button mButton; field in ChangeIccPinScreen
118 mButton = (Button) findViewById(R.id.button); in onCreate()
119 mButton.setOnClickListener(mClicked); in onCreate()
175 mButton.requestFocus();
176 } else if (v == mButton) {