Home
last modified time | relevance | path

Searched refs:isAdded (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DAutoAddTrackerTest.java49 assertTrue(mAutoTracker.isAdded(SAVER)); in testMigration()
50 assertTrue(mAutoTracker.isAdded(WORK)); in testMigration()
51 assertFalse(mAutoTracker.isAdded(INVERSION)); in testMigration()
63 assertFalse(mAutoTracker.isAdded(SAVER)); in testChangeFromBackup()
68 assertTrue(mAutoTracker.isAdded(SAVER)); in testChangeFromBackup()
77 assertFalse(mAutoTracker.isAdded(SAVER)); in testSetAdded()
80 assertTrue(mAutoTracker.isAdded(SAVER)); in testSetAdded()
89 assertFalse(mAutoTracker.isAdded(SAVER)); in testPersist()
95 assertTrue(mAutoTracker.isAdded(SAVER)); in testPersist()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java55 if (!mAutoTracker.isAdded(HOTSPOT)) { in AutoTileManager()
58 if (!mAutoTracker.isAdded(SAVER)) { in AutoTileManager()
61 if (!mAutoTracker.isAdded(INVERSION)) { in AutoTileManager()
66 if (mAutoTracker.isAdded(INVERSION)) return; in AutoTileManager()
76 if (!mAutoTracker.isAdded(WORK)) { in AutoTileManager()
80 if (!mAutoTracker.isAdded(NIGHT) in AutoTileManager()
99 if (mAutoTracker.isAdded(WORK)) return;
118 if (mAutoTracker.isAdded(SAVER)) return;
131 if (mAutoTracker.isAdded(HOTSPOT)) return;
160 if (mAutoTracker.isAdded(NIGHT)) return;
/frameworks/support/fragment/tests/java/android/support/v4/app/
DFragmentLifecycleTest.java87 assertTrue("fragment is not added", strictFragment.isAdded()); in basicLifecycle()
95 assertFalse("fragment is added", strictFragment.isAdded()); in basicLifecycle()
113 assertTrue("fragment 1 is not added", f1.isAdded()); in detachment()
114 assertTrue("fragment 2 is not added", f2.isAdded()); in detachment()
122 assertFalse("fragment 1 is added", f1.isAdded()); in detachment()
123 assertFalse("fragment 2 is added", f2.isAdded()); in detachment()
129 assertTrue("fragment 1 is not added", f1.isAdded()); in detachment()
137 assertFalse("fragment 1 is added", f1.isAdded()); in detachment()
138 assertFalse("fragment 2 is added", f2.isAdded()); in detachment()
153 assertTrue("fragment 1 is not added", f1.isAdded()); in basicBackStack()
[all …]
DFragmentTransactionTest.java104 assertTrue(fragment.isAdded()); in testAddTransactionWithValidFragment()
125 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPrivateFragment()
150 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPackagePrivateFragment()
175 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithAnonymousFragment()
248 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithNonStaticFragment()
DFragmentAnimationTest.java341 assertTrue(fragment1.isAdded()); in popPostponed()
344 assertFalse(fragment2.isAdded()); in popPostponed()
393 assertFalse(fragment2.isAdded()); in saveWhileAnimatingAway()
DFragmentAnimatorTest.java437 assertTrue(fragment1.isAdded()); in popPostponed()
440 assertFalse(fragment2.isAdded()); in popPostponed()
481 assertFalse(fragment2.isAdded()); in saveWhileAnimatingAway()
DPostponedTransitionTest.java717 assertFalse(fragment.isAdded()); in popPostponedTransaction()
759 assertTrue(fragment2.isAdded()); in saveWhilePostponed()
771 assertFalse(fragment2.isAdded()); in saveWhilePostponed()
DFragmentViewTests.java645 assertTrue(replacement1.isAdded()); in replaceOne()
687 assertTrue(replacement1.isAdded()); in replaceTwo()
693 assertTrue(replacement2.isAdded()); in replaceTwo()
/frameworks/support/fragment/java/android/support/v4/app/
DFragmentStatePagerAdapter.java140 mSavedState.set(position, fragment.isAdded() in destroyItem()
188 if (f != null && f.isAdded()) { in saveState()
DFragment.java692 final public boolean isAdded() { in isAdded() method in Fragment
739 return isAdded() && !isHidden() && mView != null in isVisible()
807 if (isAdded() && !isHidden()) { in setHasOptionsMenu()
825 if (mHasMenu && isAdded() && !isHidden()) { in setMenuVisibility()
849 && mFragmentManager != null && isAdded()) { in setUserVisibleHint()
/frameworks/support/v13/java/android/support/v13/app/
DFragmentStatePagerAdapter.java144 mSavedState.set(position, fragment.isAdded() in destroyItem()
193 if (f != null && f.isAdded()) { in saveState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCard.java290 private void onIccSwap(boolean isAdded) { in onIccSwap() argument
301 promptForRestart(isAdded); in onIccSwap()
304 private void promptForRestart(boolean isAdded) { in promptForRestart() argument
312 .putExtra(EXTRA_ICC_CARD_ADDED, isAdded); in promptForRestart()
348 String title = (isAdded) ? r.getString(R.string.sim_added_title) : in promptForRestart()
350 String message = (isAdded) ? r.getString(R.string.sim_added_message) : in promptForRestart()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DAutoAddTracker.java64 public boolean isAdded(String tile) { in isAdded() method in AutoAddTracker
/frameworks/support/lifecycle/extensions/src/main/java/android/arch/lifecycle/
DLifecycleDispatcher.java130 if (fragment.isAdded()) { in markState()
/frameworks/base/core/java/android/app/
DFragment.java840 final public boolean isAdded() { in isAdded() method in Fragment
887 return isAdded() && !isHidden() && mView != null in isVisible()
943 if (isAdded() && !isHidden()) { in setHasOptionsMenu()
961 if (mHasMenu && isAdded() && !isHidden()) { in setMenuVisibility()
1013 && mFragmentManager != null && isAdded(); in setUserVisibleHint()
/frameworks/base/core/tests/coretests/src/android/app/
DLoaderLifecycleTest.java219 assertTrue(restoredOne.isAdded()); in backStackLoaderIdentityTest()
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
DPageAndListRowFragment.java285 if (isAdded()) { in loadData()
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
DPhotoViewFragment.java344 if (getView() == null || !isAdded()) { in onLoadFinished()
/frameworks/support/fragment/api/
D26.0.0.txt60 method public final boolean isAdded();
Dcurrent.txt61 method public final boolean isAdded();
/frameworks/support/api/
D22.0.0.txt1581 method public final boolean isAdded();
D22.1.0.txt1723 method public final boolean isAdded();
D22.2.0.txt2091 method public final boolean isAdded();
D22.2.1.txt2119 method public final boolean isAdded();
D24.2.0.txt3787 method public final boolean isAdded();

12