Searched refs:mOnDismissListener (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | PopupMenuTest.java | 155 verify(mBuilder.mOnDismissListener, never()).onDismiss(mPopupMenu); in testPopulateViaInflater() 167 verify(mBuilder.mOnDismissListener, never()).onDismiss(mPopupMenu); in testDirectPopulate() 197 verify(mBuilder.mOnDismissListener, never()).onDismiss(mPopupMenu); in testDismissalViaAPI() 201 verify(mBuilder.mOnDismissListener, within(1000)).onDismiss(mPopupMenu); in testDismissalViaAPI() 202 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testDismissalViaAPI() 208 verifyNoMoreInteractions(mBuilder.mOnDismissListener); in testDismissalViaAPI() 223 verify(mBuilder.mOnDismissListener, never()).onDismiss(mPopupMenu); in testNestedDismissalViaAPI() 236 verify(mBuilder.mOnDismissListener, within(1000)).onDismiss(mPopupMenu); in testNestedDismissalViaAPI() 237 verify(mBuilder.mOnDismissListener, times(1)).onDismiss(mPopupMenu); in testNestedDismissalViaAPI() 243 verifyNoMoreInteractions(mBuilder.mOnDismissListener); in testNestedDismissalViaAPI() [all …]
|
D | ListPopupWindowTest.java | 411 verify(mPopupWindowBuilder.mOnDismissListener, times(1)).onDismiss(); in testSetOnDismissListener() 417 verify(mPopupWindowBuilder.mOnDismissListener, times(2)).onDismiss(); in testSetOnDismissListener() 426 verifyNoMoreInteractions(mPopupWindowBuilder.mOnDismissListener); in testSetOnDismissListener() 521 verify(mPopupWindowBuilder.mOnDismissListener, times(1)).onDismiss(); in verifyDismissalViaTouch() 551 verify(mPopupWindowBuilder.mOnDismissListener, times(1)).onDismiss(); in testItemClicks() 562 verify(mPopupWindowBuilder.mOnDismissListener, times(2)).onDismiss(); in testItemClicks() 703 verify(mPopupWindowBuilder.mOnDismissListener, never()).onDismiss(); in testNoDefaultDismissalWithBackButton() 717 verify(mPopupWindowBuilder.mOnDismissListener, never()).onDismiss(); in testNoDefaultDismissalWithEscapeButton() 753 verify(mPopupWindowBuilder.mOnDismissListener, times(1)).onDismiss(); in testCustomDismissalWithBackButton() 824 verify(mPopupWindowBuilder.mOnDismissListener, times(1)).onDismiss(); in testListSelectionWithDPad() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderTest.java | 78 private OnDismissListener mOnDismissListener = mock(OnDismissListener.class); field in AlertDialog_BuilderTest 143 mBuilder.setOnDismissListener(mOnDismissListener); in testSetPositiveButtonWithParamInt() 154 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamInt() 155 verifyNoMoreInteractions(mOnDismissListener); in testSetPositiveButtonWithParamInt() 163 mBuilder.setOnDismissListener(mOnDismissListener); in testSetPositiveButtonWithParamCharSequence() 173 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamCharSequence() 174 verifyNoMoreInteractions(mOnDismissListener); in testSetPositiveButtonWithParamCharSequence() 182 mBuilder.setOnDismissListener(mOnDismissListener); in testSetNegativeButtonWithParamCharSequence() 192 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetNegativeButtonWithParamCharSequence() 193 verifyNoMoreInteractions(mOnDismissListener); in testSetNegativeButtonWithParamCharSequence() [all …]
|