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()
2301 MockOnLongClickListener onLongClickListener = new MockOnLongClickListener(true);2304 mTextView.setOnLongClickListener(onLongClickListener);2307 assertTrue(onLongClickListener.hasLongClicked());2310 onLongClickListener = new MockOnLongClickListener(false);2311 mTextView.setOnLongClickListener(onLongClickListener);2314 assertTrue(onLongClickListener.hasLongClicked());