Home
last modified time | relevance | path

Searched refs:getVisibility (Results 1 – 25 of 266) sorted by relevance

1234567891011

/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListEmptyViewTest.java50 assertTrue("Empty view not shown", mListView.getVisibility() == View.GONE); in testPreconditions()
59 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOne()
60 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOne()
69 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOneForwardBack()
70 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOneForwardBack()
80 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOneForwardBack()
81 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOneForwardBack()
95 mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToManyToZero()
96 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToManyToZero()
104 mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToManyToZero()
[all …]
/frameworks/support/transition/tests/src/android/support/transition/
DExplodeTest.java61 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testExplode()
62 assertEquals(View.VISIBLE, greenSquare.getVisibility()); in testExplode()
63 assertEquals(View.VISIBLE, blueSquare.getVisibility()); in testExplode()
64 assertEquals(View.VISIBLE, yellowSquare.getVisibility()); in testExplode()
81 assertEquals(View.INVISIBLE, redSquare.getVisibility()); in testExplode()
82 assertEquals(View.INVISIBLE, greenSquare.getVisibility()); in testExplode()
83 assertEquals(View.INVISIBLE, blueSquare.getVisibility()); in testExplode()
84 assertEquals(View.INVISIBLE, yellowSquare.getVisibility()); in testExplode()
118 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testImplode()
119 assertEquals(View.VISIBLE, greenSquare.getVisibility()); in testImplode()
[all …]
DSlideEdgeTest.java97 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testSlideOut()
98 assertEquals(View.VISIBLE, greenSquare.getVisibility()); in testSlideOut()
99 assertEquals(View.VISIBLE, hello.getVisibility()); in testSlideOut()
141 assertEquals(View.INVISIBLE, redSquare.getVisibility()); in testSlideOut()
142 assertEquals(View.INVISIBLE, greenSquare.getVisibility()); in testSlideOut()
143 assertEquals(View.INVISIBLE, hello.getVisibility()); in testSlideOut()
192 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testSlideIn()
193 assertEquals(View.VISIBLE, greenSquare.getVisibility()); in testSlideIn()
194 assertEquals(View.VISIBLE, hello.getVisibility()); in testSlideIn()
236 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testSlideIn()
[all …]
DAutoTransitionTest.java58 assertThat(mView0.getVisibility(), is(View.VISIBLE)); in testLayoutBetweenFadeAndChangeBounds()
77 assertThat(mView0.getVisibility(), is(View.GONE)); in testLayoutBetweenFadeAndChangeBounds()
91 assertThat(mView0.getVisibility(), is(View.VISIBLE)); in testLayoutBetweenFadeAndChangeBounds()
/frameworks/base/core/tests/coretests/src/android/view/
DVisibilityTest.java79 assertEquals(View.INVISIBLE, mVictim.getVisibility()); in testVisibleToInvisible()
94 assertEquals(View.GONE, mVictim.getVisibility()); in testVisibleToGone()
108 assertEquals(View.GONE, mVictim.getVisibility()); in testGoneToVisible()
114 assertEquals(View.VISIBLE, mVictim.getVisibility()); in testGoneToVisible()
128 assertEquals(View.GONE, mVictim.getVisibility()); in testGoneToInvisible()
134 assertEquals(View.INVISIBLE, mVictim.getVisibility()); in testGoneToInvisible()
148 assertEquals(View.INVISIBLE, mVictim.getVisibility()); in testInvisibleToVisible()
154 assertEquals(View.VISIBLE, mVictim.getVisibility()); in testInvisibleToVisible()
168 assertEquals(View.INVISIBLE, mVictim.getVisibility()); in testInvisibleToGone()
174 assertEquals(View.GONE, mVictim.getVisibility()); in testInvisibleToGone()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DPresenterTest.java68 vh.view.getVisibility() == expectedVisibility); in testHeaderPresenter()
71 vh.view.getVisibility() == expectedVisibility); in testHeaderPresenter()
74 vh.view.getVisibility() == View.VISIBLE); in testHeaderPresenter()
116 assertEquals("Header visibility", View.GONE, vh.view.getVisibility()); in testRowHeaderPresenter()
118 assertEquals("Header visibility", View.GONE, vh.view.getVisibility()); in testRowHeaderPresenter()
121 assertEquals("Header visibility", View.VISIBLE, vh.view.getVisibility()); in testRowHeaderPresenter()
123 vh.mDescriptionView.getVisibility()); in testRowHeaderPresenter()
128 assertEquals("Header visibility", View.VISIBLE, vh.view.getVisibility()); in testRowHeaderPresenter()
130 vh.mDescriptionView.getVisibility()); in testRowHeaderPresenter()
140 assertEquals("Header visibility", View.VISIBLE, vh.view.getVisibility()); in testSingleRowHeaderPresenter()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DProgressBarManagerTest.java67 return rootView.getChildAt(0).getVisibility() == View.VISIBLE; in defaultProgressBarView()
94 return rootView.getChildAt(0).getVisibility() == View.VISIBLE; in defaultProgressBarView()
116 return rootView.getChildAt(0).getVisibility() == View.VISIBLE; in customProgressBarView()
130 return rootView.getChildAt(0).getVisibility() != View.VISIBLE; in customProgressBarView()
145 return rootView.getChildAt(0).getVisibility() == View.VISIBLE; in customProgressBarView()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DFocusAfterRemovalTest.java77 assertEquals(View.GONE, mLeftLayout.getVisibility()); in testFocusLeavesWhenParentLayoutIsGone()
94 getActivity().findViewById(R.id.leftLayout).getVisibility()); in testFocusLeavesWhenParentLayoutInvisible()
109 assertEquals(View.GONE, mTopRightButton.getVisibility()); in testFocusLeavesWhenFocusedViewBecomesGone()
125 assertEquals(View.INVISIBLE, mBottomRightButton.getVisibility()); in testFocusLeavesWhenFocusedViewBecomesInvisible()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationInfoTest.java187 assertEquals(View.GONE, groupNameView.getVisibility()); in testBindNotification_GroupNameHiddenIfNoGroup()
190 assertEquals(View.GONE, groupDividerView.getVisibility()); in testBindNotification_GroupNameHiddenIfNoGroup()
206 assertEquals(View.VISIBLE, groupNameView.getVisibility()); in testBindNotification_SetsGroupNameIfNonNull()
210 assertEquals(View.VISIBLE, groupDividerView.getVisibility()); in testBindNotification_SetsGroupNameIfNonNull()
272 assertTrue(settingsButton.getVisibility() != View.VISIBLE); in testBindNotification_SettingsButtonInvisibleWhenNoClickListener()
286 assertEquals(View.VISIBLE, settingsButton.getVisibility()); in testBindNotification_SettingsButtonReappersAfterSecondBind()
359 assertEquals(View.INVISIBLE, numChannelsView.getVisibility()); in testBindNotification_NumChannelsTextHiddenWhenDefaultChannel()
373 assertEquals(numChannelsView.getVisibility(), View.VISIBLE); in testBindNotification_NumChannelsTextDisplaysWhenMoreThanOneChannelExists()
386 assertEquals(numChannelsView.getVisibility(), View.VISIBLE); in testBindNotification_NumChannelsTextDisplaysWhenNotDefaultChannel()
475 assertEquals(View.INVISIBLE, enabledSwitch.getVisibility()); in testEnabledSwitchInvisibleIfBundleFromDifferentChannels()
[all …]
/frameworks/base/core/tests/coretests/src/android/transition/
DFadeTransitionTest.java52 assertEquals(View.VISIBLE, square1.getVisibility()); in testFadeOutAndIn()
57 assertEquals(View.INVISIBLE, square1.getVisibility()); in testFadeOutAndIn()
62 assertEquals(View.VISIBLE, square1.getVisibility()); in testFadeOutAndIn()
69 assertEquals(View.VISIBLE, square1.getVisibility()); in testFadeOutAndIn()
96 assertEquals(View.VISIBLE, square1.getVisibility()); in testFadeOutInterrupt()
129 assertEquals(View.INVISIBLE, square1.getVisibility()); in testFadeInInterrupt()
DSlideTransitionTest.java61 assertEquals(View.VISIBLE, square1.getVisibility()); in testShortSlide()
69 assertEquals(View.INVISIBLE, square1.getVisibility()); in testShortSlide()
78 assertEquals(View.VISIBLE, square1.getVisibility()); in testShortSlide()
85 assertEquals(View.VISIBLE, square1.getVisibility()); in testShortSlide()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DListMenuItemView.java132 if (mTitleView.getVisibility() != VISIBLE) mTitleView.setVisibility(VISIBLE); in setTitle()
134 if (mTitleView.getVisibility() != GONE) mTitleView.setVisibility(GONE); in setTitle()
172 if (compoundButton.getVisibility() != newVisibility) { in setCheckable()
177 if (otherCompoundButton != null && otherCompoundButton.getVisibility() != GONE) { in setCheckable()
224 if (mShortcutView.getVisibility() != newVisibility) { in setShortcut()
247 if (mIconView.getVisibility() != VISIBLE) { in setIcon()
/frameworks/base/core/java/com/android/internal/view/menu/
DListMenuItemView.java128 if (mTitleView.getVisibility() != VISIBLE) mTitleView.setVisibility(VISIBLE); in setTitle()
130 if (mTitleView.getVisibility() != GONE) mTitleView.setVisibility(GONE); in setTitle()
166 if (compoundButton.getVisibility() != newVisibility) { in setCheckable()
171 if (otherCompoundButton != null && otherCompoundButton.getVisibility() != GONE) { in setCheckable()
212 if (mShortcutView.getVisibility() != newVisibility) { in setShortcut()
234 if (mIconView.getVisibility() != VISIBLE) { in setIcon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java90 assertEquals(View.GONE, mRootView.getVisibility()); in testUnmanaged()
102 assertEquals(View.VISIBLE, mRootView.getVisibility()); in testManagedNoOwnerName()
103 assertEquals(View.VISIBLE, mFooterIcon.getVisibility()); in testManagedNoOwnerName()
119 assertEquals(View.VISIBLE, mRootView.getVisibility()); in testManagedOwnerName()
120 assertEquals(View.VISIBLE, mFooterIcon.getVisibility()); in testManagedOwnerName()
134 assertEquals(View.VISIBLE, mFooterIcon.getVisibility()); in testNetworkLoggingEnabled()
172 assertEquals(View.VISIBLE, mFooterIcon.getVisibility()); in testManagedOneVpnEnabled()
198 assertEquals(View.VISIBLE, mFooterIcon.getVisibility()); in testManagedTwoVpnsEnabled()
221 assertEquals(View.VISIBLE, mFooterIcon.getVisibility()); in testNetworkLoggingAndVpnEnabled()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/
DContentLoadingProgressBarActivity.java68 mLastVisibility = mBar.getVisibility(); in onCreate()
91 final int visibility = mBar.getVisibility(); in onGlobalLayout()
102 mLastVisibility = mBar.getVisibility(); in onGlobalLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DCrossFadeHelper.java69 } else if (view.getVisibility() == View.INVISIBLE) { in fadeOut()
97 if (view.getVisibility() == View.INVISIBLE) { in fadeIn()
128 if (view.getVisibility() == View.INVISIBLE) { in fadeIn()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/template/
DRequireScrollMixinTest.java132 View.VISIBLE, navigationBar.getMoreButton().getVisibility()); in testRequireScrollWithNavigationBar()
134 View.GONE, navigationBar.getNextButton().getVisibility()); in testRequireScrollWithNavigationBar()
141 View.GONE, navigationBar.getMoreButton().getVisibility()); in testRequireScrollWithNavigationBar()
143 View.VISIBLE, navigationBar.getNextButton().getVisibility()); in testRequireScrollWithNavigationBar()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionBarContainer.java255 return view == null || view.getVisibility() == GONE || view.getMeasuredHeight() == 0; in isCollapsed()
275 if (mTabContainer != null && mTabContainer.getVisibility() != GONE in onMeasure()
298 final boolean hasTabs = tabContainer != null && tabContainer.getVisibility() != GONE; in onLayout()
300 if (tabContainer != null && tabContainer.getVisibility() != GONE) { in onLayout()
316 if (mActionBarView.getVisibility() == View.VISIBLE) { in onLayout()
320 mContextView.getVisibility() == View.VISIBLE) { in onLayout()
DAbsActionBarView.java153 return getVisibility(); in getAnimatedVisibility()
162 if (getVisibility() != VISIBLE) { in setupAnimatorToVisibility()
184 if (visibility != getVisibility()) { in setVisibility()
234 return isOverflowReserved() && getVisibility() == VISIBLE; in canShowOverflowMenu()
/frameworks/support/fragment/tests/java/android/support/v4/app/
DFragmentViewTests.java261 assertEquals(View.GONE, replacement1.getView().getVisibility()); in removeHiddenView()
337 assertEquals(View.VISIBLE, fragment.getView().getVisibility()); in hideFragment()
344 assertEquals(View.GONE, fragment.getView().getVisibility()); in hideFragment()
351 assertEquals(View.VISIBLE, fragment.getView().getVisibility()); in hideFragment()
394 assertEquals(View.GONE, fragment.getView().getVisibility()); in showFragment()
401 assertEquals(View.VISIBLE, fragment.getView().getVisibility()); in showFragment()
408 assertEquals(View.GONE, fragment.getView().getVisibility()); in showFragment()
450 assertEquals(View.VISIBLE, fragment.getView().getVisibility()); in detachFragment()
463 assertEquals(View.VISIBLE, fragment.getView().getVisibility()); in detachFragment()
481 assertEquals(View.GONE, fragment.getView().getVisibility()); in detachHiddenFragment()
[all …]
DFragmentAnimatorTest.java128 assertEquals(View.GONE, fragment.getView().getVisibility()); in showAnimatorsReordered()
143 assertEquals(View.VISIBLE, fragment.getView().getVisibility()); in showAnimatorsReordered()
152 assertEquals(View.GONE, fragment.getView().getVisibility()); in showAnimatorsReordered()
175 assertEquals(View.GONE, fragment.getView().getVisibility()); in showAnimatorsOrdered()
191 assertEquals(View.VISIBLE, fragment.getView().getVisibility()); in showAnimatorsOrdered()
200 assertEquals(View.GONE, fragment.getView().getVisibility()); in showAnimatorsOrdered()
394 assertEquals(View.VISIBLE, fragment1.getView().getVisibility()); in postponedAddRemove()
549 assertEquals(View.VISIBLE, fragment.getView().getVisibility()); in assertPostponed()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DCollapsedStatusBarFragmentTest.java76 .getVisibility()); in testDisableNone()
89 .getVisibility()); in testDisableSystemInfo()
94 .getVisibility()); in testDisableSystemInfo()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBottomLabelLayoutTest.java60 assertThat(mSpace.getVisibility()).isEqualTo(View.GONE); in testSetStacked_stackedTrue_layoutVertical()
68 assertThat(mSpace.getVisibility()).isEqualTo(View.VISIBLE); in testSetStacked_stackedFalse_layoutHorizontal()
/frameworks/base/core/java/android/view/
DNotificationHeaderView.java113 if (child.getVisibility() == GONE) { in onMeasure()
129 if (overFlow > 0 && mAppName.getVisibility() != GONE && appWidth > mChildMinWidth) { in onMeasure()
136 if (overFlow > 0 && mHeaderText.getVisibility() != GONE) { in onMeasure()
154 if (child.getVisibility() == GONE) { in onLayout()
332 if (view.getVisibility() == GONE) { in getRectAroundView()
392 if (child.getVisibility() != GONE) { in getFirstChildNotGone()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContainer.java276 return view == null || view.getVisibility() == GONE || view.getMeasuredHeight() == 0; in isCollapsed()
295 if (mTabContainer != null && mTabContainer.getVisibility() != GONE) { in onMeasure()
320 final boolean hasTabs = tabContainer != null && tabContainer.getVisibility() != GONE; in onLayout()
322 if (tabContainer != null && tabContainer.getVisibility() != GONE) { in onLayout()
338 if (mActionBarView.getVisibility() == View.VISIBLE) { in onLayout()
342 mActionContextView.getVisibility() == View.VISIBLE) { in onLayout()

1234567891011