Searched refs:onLongClickListener (Results 1 – 2 of 2) sorted by relevance
352 final MockOnLongClickListener onLongClickListener = new MockOnLongClickListener(); in testSetupListeners() local353 mEditText.setOnLongClickListener(onLongClickListener); in testSetupListeners()356 assertFalse(onLongClickListener.isOnLongClickCalled()); in testSetupListeners()357 assertNull(onLongClickListener.getView()); in testSetupListeners()364 return onLongClickListener.isOnLongClickCalled(); in testSetupListeners()367 assertSame(mEditText, onLongClickListener.getView()); in testSetupListeners()
2705 MockOnLongClickListener onLongClickListener = new MockOnLongClickListener(true); in testPerformLongClick() local2708 mTextView.setOnLongClickListener(onLongClickListener); in testPerformLongClick()2711 assertTrue(onLongClickListener.hasLongClicked()); in testPerformLongClick()2714 onLongClickListener = new MockOnLongClickListener(false); in testPerformLongClick()2715 mTextView.setOnLongClickListener(onLongClickListener); in testPerformLongClick()2718 assertTrue(onLongClickListener.hasLongClicked()); in testPerformLongClick()