Searched refs:theView (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | GridViewTest.java | 574 final AttachDetachAwareView theView = new AttachDetachAwareView(mActivity); 576 mGridView.setAdapter(new DummyAdapter(1000, theView)); 578 assertEquals("test sanity", 1, theView.mOnAttachCount); 579 assertEquals("test sanity", 0, theView.mOnDetachCount); 583 assertNull("test sanity, unused view should be removed", theView.getParent()); 584 assertEquals("unused view should be detached", 1, theView.mOnDetachCount); 585 assertFalse(theView.isTemporarilyDetached()); 591 assertNotNull("test sanity, view should be re-added", theView.getParent()); 592 assertEquals("view should receive another attach call", 2, theView.mOnAttachCount); 593 assertEquals("view should not receive a detach call", 1, theView.mOnDetachCount); [all …]
|
D | ListViewTest.java | 674 final AttachDetachAwareView theView = new AttachDetachAwareView(mActivity); in testFullyDetachUnusedViewOnScroll() local 676 mListView.setAdapter(new DummyAdapter(1000, theView)); in testFullyDetachUnusedViewOnScroll() 678 assertEquals("test sanity", 1, theView.mOnAttachCount); in testFullyDetachUnusedViewOnScroll() 679 assertEquals("test sanity", 0, theView.mOnDetachCount); in testFullyDetachUnusedViewOnScroll() 683 assertNull("test sanity, unused view should be removed", theView.getParent()); in testFullyDetachUnusedViewOnScroll() 684 assertEquals("unused view should be detached", 1, theView.mOnDetachCount); in testFullyDetachUnusedViewOnScroll() 685 assertFalse(theView.isTemporarilyDetached()); in testFullyDetachUnusedViewOnScroll() 691 assertNotNull("test sanity, view should be re-added", theView.getParent()); in testFullyDetachUnusedViewOnScroll() 692 assertEquals("view should receive another attach call", 2, theView.mOnAttachCount); in testFullyDetachUnusedViewOnScroll() 693 assertEquals("view should not receive a detach call", 1, theView.mOnDetachCount); in testFullyDetachUnusedViewOnScroll() [all …]
|