Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DAddPreference.java37 private View mAddWidget; field in AddPreference
58 if (mAddWidget != null) { in setAddWidgetEnabled()
59 mAddWidget.setEnabled(enabled); in setAddWidgetEnabled()
77 mAddWidget = holder.findViewById(getAddWidgetResId()); in onBindViewHolder()
78 mAddWidget.setEnabled(true); in onBindViewHolder()
79 mAddWidget.setOnClickListener(this); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/widget/
DAddPreference.java37 private View mAddWidget; field in AddPreference
58 if (mAddWidget != null) { in setAddWidgetEnabled()
59 mAddWidget.setEnabled(enabled); in setAddWidgetEnabled()
77 mAddWidget = holder.findViewById(getAddWidgetResId()); in onBindViewHolder()
78 mAddWidget.setEnabled(true); in onBindViewHolder()
79 mAddWidget.setOnClickListener(this); in onBindViewHolder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DAddPreferenceTest.java47 private View mAddWidget; field in AddPreferenceTest
58 mAddWidget = spy(View.inflate(mContext, mPreference.getSecondTargetResId(), null)); in setUp()
59 when(mViewHolder.findViewById(mPreference.getAddWidgetResId())).thenReturn(mAddWidget); in setUp()
120 mPreference.onClick(mAddWidget); in onClick_noListener_noCrash()
132 mPreference.onClick(mAddWidget); in onClick_hasListenerBeforeBind_firesCorrectly()
146 mPreference.onClick(mAddWidget); in onClick_listenerAddedAfterBind_firesCorrectly()