OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:strictFragment
(Results
1 - 4
of
4
) sorted by null
/cts/tests/fragment/src/android/fragment/cts/
PrimaryNavFragmentTest.java
42
final
StrictFragment
strictFragment
= new
StrictFragment
();
44
fm.beginTransaction().add(
strictFragment
, null).setPrimaryNavigationFragment(
strictFragment
)
48
assertSame("new fragment is not primary nav fragment",
strictFragment
,
51
final
StrictFragment
child = new
StrictFragment
();
52
FragmentManager cfm =
strictFragment
.getChildFragmentManager();
68
final
StrictFragment
strictFragment1 = new StrictFragment()
[
all
...]
FragmentLifecycleTest.java
73
final
StrictFragment
strictFragment
= new
StrictFragment
();
75
// Add fragment;
StrictFragment
will throw if it detects any violation
77
fm.beginTransaction().add(
strictFragment
, "EmptyHeadless").commit();
80
assertTrue("fragment is not added",
strictFragment
.isAdded());
81
assertFalse("fragment is detached",
strictFragment
.isDetached());
82
assertTrue("fragment is not resumed",
strictFragment
.isResumed());
84
// Test removal as well;
StrictFragment
will throw here too.
85
fm.beginTransaction().remove(
strictFragment
).commit()
[
all
...]
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
PrimaryNavFragmentTest.java
45
final
StrictFragment
strictFragment
= new
StrictFragment
();
47
fm.beginTransaction().add(
strictFragment
, null).setPrimaryNavigationFragment(
strictFragment
)
51
assertSame("new fragment is not primary nav fragment",
strictFragment
,
54
final
StrictFragment
child = new
StrictFragment
();
55
FragmentManager cfm =
strictFragment
.getChildFragmentManager();
71
final
StrictFragment
strictFragment1 = new StrictFragment()
[
all
...]
FragmentLifecycleTest.java
80
final
StrictFragment
strictFragment
= new
StrictFragment
();
82
// Add fragment;
StrictFragment
will throw if it detects any violation
84
fm.beginTransaction().add(
strictFragment
, "EmptyHeadless").commit();
87
assertTrue("fragment is not added",
strictFragment
.isAdded());
88
assertFalse("fragment is detached",
strictFragment
.isDetached());
89
assertTrue("fragment is not resumed",
strictFragment
.isResumed());
91
// Test removal as well;
StrictFragment
will throw here too.
92
fm.beginTransaction().remove(
strictFragment
).commit()
[
all
...]
Completed in 139 milliseconds