Home
last modified time | relevance | path

Searched refs:mOnClickListener (Results 1 – 2 of 2) sorted by relevance

/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java81 private OnClickListener mOnClickListener = mock(OnClickListener.class); field in AlertDialog_BuilderTest
174 mBuilder.setPositiveButton(android.R.string.yes, mOnClickListener); in testSetPositiveButtonWithParamInt()
184 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
185 verifyNoMoreInteractions(mOnClickListener); in testSetPositiveButtonWithParamInt()
197 mBuilder.setPositiveButton(android.R.string.yes, mOnClickListener); in testSetPositiveButtonWithParamCharSequence()
206 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence()
207 verifyNoMoreInteractions(mOnClickListener); in testSetPositiveButtonWithParamCharSequence()
219 mBuilder.setNegativeButton(mTitle, mOnClickListener); in testSetNegativeButtonWithParamCharSequence()
228 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamCharSequence()
229 verifyNoMoreInteractions(mOnClickListener); in testSetNegativeButtonWithParamCharSequence()
[all …]
DAlertDialog_BuilderCursorTest.java66 private OnClickListener mOnClickListener = mock(OnClickListener.class); field in AlertDialog_BuilderCursorTest
175 mBuilder.setCursor(mCursor, mOnClickListener, TEXT_COLUMN_NAME); in testSetCursor()
183 verify(mOnClickListener, times(1)).onClick(mDialog, 0); in testSetCursor()
184 verifyNoMoreInteractions(mOnClickListener); in testSetCursor()
196 mBuilder.setSingleChoiceItems(mCursor, 0, TEXT_COLUMN_NAME, mOnClickListener); in testSetSingleChoiceItemsWithParamCursor()
204 verify(mOnClickListener, times(1)).onClick(mDialog, 0); in testSetSingleChoiceItemsWithParamCursor()
205 verifyNoMoreInteractions(mOnClickListener); in testSetSingleChoiceItemsWithParamCursor()