Searched refs:smallMockDrawable (Results 1 – 1 of 1) sorted by relevance
792 Drawable smallMockDrawable = spy(new ColorDrawable(Color.MAGENTA)); in testGetIntrinsicWidth() local793 doReturn(1).when(smallMockDrawable).getIntrinsicWidth(); in testGetIntrinsicWidth()794 doReturn(1).when(smallMockDrawable).getIntrinsicHeight(); in testGetIntrinsicWidth()796 Drawable[] array = new Drawable[] { largeMockDrawable, smallMockDrawable }; in testGetIntrinsicWidth()816 }).when(smallMockDrawable).getPadding(any()); in testGetIntrinsicWidth()819 assertEquals(smallMockDrawable.getIntrinsicWidth() + inset2.left in testGetIntrinsicWidth()835 Drawable smallMockDrawable = spy(new ColorDrawable(Color.DKGRAY)); in testGetIntrinsicHeight() local836 doReturn(1).when(smallMockDrawable).getIntrinsicWidth(); in testGetIntrinsicHeight()837 doReturn(1).when(smallMockDrawable).getIntrinsicHeight(); in testGetIntrinsicHeight()839 Drawable[] array = new Drawable[] { largeMockDrawable, smallMockDrawable }; in testGetIntrinsicHeight()[all …]