/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentAnimatorTest.java | 16 package android.fragment.cts; 73 final AnimatorFragment fragment = new AnimatorFragment(); in addAnimators() local 76 .add(R.id.fragmentContainer, fragment) in addAnimators() 81 assertEnterPopExit(fragment); in addAnimators() 90 final AnimatorFragment fragment = new AnimatorFragment(); in removeAnimators() local 91 fm.beginTransaction().add(R.id.fragmentContainer, fragment, "1").commit(); in removeAnimators() 96 .remove(fragment) in removeAnimators() 101 assertExitPopEnter(fragment); in removeAnimators() 111 final AnimatorFragment fragment = new AnimatorFragment(); in showAnimatorsReordered() local 112 fm.beginTransaction().add(R.id.fragmentContainer, fragment).hide(fragment).commit(); in showAnimatorsReordered() [all …]
|
D | FragmentViewTests.java | 16 package android.fragment.cts; 286 final StrictViewFragment fragment = new StrictViewFragment(); in addRemoveAdd() local 288 .add(R.id.fragmentContainer, fragment) in addRemoveAdd() 289 .remove(fragment) in addRemoveAdd() 290 .add(R.id.fragmentContainer, fragment) in addRemoveAdd() 294 FragmentTestUtil.assertChildren(container, fragment); in addRemoveAdd() 306 final StrictViewFragment fragment = new StrictViewFragment(); in removeNotThere() local 307 fm.beginTransaction().remove(fragment).commit(); in removeNotThere() 318 final StrictViewFragment fragment = new StrictViewFragment(); in hideFragment() local 319 fm.beginTransaction().add(R.id.fragmentContainer, fragment).commit(); in hideFragment() [all …]
|
D | ReentrantFragment.java | 18 package android.fragment.cts; 30 ReentrantFragment fragment = new ReentrantFragment(); in create() local 31 fragment.mFromState = fromState; in create() 32 fragment.mToState = toState; in create() 33 fragment.mIsRestored = false; in create() 34 return fragment; in create()
|
D | FragmentTransactionTest.java | 17 package android.fragment.cts; 90 final Fragment fragment = new CorrectFragment(); in testAddTransactionWithValidFragment() local 95 .add(android.R.id.content, fragment) in testAddTransactionWithValidFragment() 103 assertTrue(fragment.isAdded()); in testAddTransactionWithValidFragment() 108 final Fragment fragment = new PrivateFragment(); in testAddTransactionWithPrivateFragment() local 115 .add(android.R.id.content, fragment) in testAddTransactionWithPrivateFragment() 124 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPrivateFragment() 133 final Fragment fragment = new PackagePrivateFragment(); in testAddTransactionWithPackagePrivateFragment() local 140 .add(android.R.id.content, fragment) in testAddTransactionWithPackagePrivateFragment() 149 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPackagePrivateFragment() [all …]
|
D | PostponedTransitionTest.java | 16 package android.fragment.cts; 76 final PostponedFragment2 fragment = new PostponedFragment2(); in replaceTransition() local 79 .replace(R.id.fragmentContainer, fragment) in replaceTransition() 86 assertPostponedTransition(mBeginningFragment, fragment, null); in replaceTransition() 89 fragment.startPostponedEnterTransition(); in replaceTransition() 92 assertForwardTransition(mBeginningFragment, fragment); in replaceTransition() 97 assertPostponedTransition(fragment, mBeginningFragment, null); in replaceTransition() 103 assertBackTransition(fragment, mBeginningFragment); in replaceTransition() 660 final TransitionFragment fragment = new PostponedFragment2(); in popPostponedTransaction() local 664 .replace(R.id.fragmentContainer, fragment) in popPostponedTransaction() [all …]
|
D | StrictViewFragment.java | 18 package android.fragment.cts; 34 StrictViewFragment fragment = new StrictViewFragment(); in create() local 35 fragment.mLayoutId = layoutId; in create() 36 return fragment; in create()
|
D | FragmentExecuteTests.java | 16 package android.fragment.cts; 55 final StrictViewFragment fragment = new StrictViewFragment(); in executeAndPopNormal() local 61 .add(R.id.fragmentContainer, fragment, "1") in executeAndPopNormal() 68 FragmentTestUtil.assertChildren(container, fragment); in executeAndPopNormal() 70 assertEquals(fragment, fm.findFragmentById(R.id.fragmentContainer)); in executeAndPopNormal() 71 assertEquals(fragment, fm.findFragmentByTag("1")); in executeAndPopNormal() 101 final StrictViewFragment fragment = new StrictViewFragment(); in popBackStackImmediateSomething() local 104 .add(R.id.fragmentContainer, fragment, "1") in popBackStackImmediateSomething() 124 final StrictViewFragment fragment = new StrictViewFragment(); in popBackStackImmediateNothing() local 127 .add(R.id.fragmentContainer, fragment, "1") in popBackStackImmediateNothing() [all …]
|
D | FragmentLifecycleTest.java | 18 package android.fragment.cts; 360 ChildFragmentManagerFragment fragment = new ChildFragmentManagerFragment(); in childFragmentManagerAttach() 362 .add(android.R.id.content, fragment) in childFragmentManagerAttach() 365 verify(mockLc, times(1)).onFragmentCreated(fm, fragment, null); in childFragmentManagerAttach() 369 Fragment childFragment = fragment.getChildFragment(); in childFragmentManagerAttach() 371 verify(mockLc, times(1)).onFragmentActivityCreated(fm, fragment, null); in childFragmentManagerAttach() 372 verify(mockRecursiveLc, times(1)).onFragmentActivityCreated(fm, fragment, null); in childFragmentManagerAttach() 377 verify(mockLc, times(1)).onFragmentStarted(fm, fragment); in childFragmentManagerAttach() 378 verify(mockRecursiveLc, times(1)).onFragmentStarted(fm, fragment); in childFragmentManagerAttach() 383 verify(mockLc, times(1)).onFragmentResumed(fm, fragment); in childFragmentManagerAttach() [all …]
|
D | FragmentTransitionTest.java | 16 package android.fragment.cts; 105 TransitionFragment fragment = setupInitialFragment(); in enterExitTransitions() local 112 .remove(fragment) in enterExitTransitions() 116 fragment.waitForTransition(); in enterExitTransitions() 117 verifyAndClearTransition(fragment.exitTransition, null, green, blue); in enterExitTransitions() 118 verifyNoOtherTransitions(fragment); in enterExitTransitions() 123 fragment.waitForTransition(); in enterExitTransitions() 126 verifyAndClearTransition(fragment.reenterTransition, null, green2, blue2); in enterExitTransitions() 127 verifyNoOtherTransitions(fragment); in enterExitTransitions() 132 fragment.waitForTransition(); in enterExitTransitions() [all …]
|
D | LoaderTest.java | 16 package android.fragment.cts; 63 LoaderFragment fragment = new LoaderFragment(); in testLeak() local 67 .add(fragment, "1") in testLeak() 73 .remove(fragment) in testLeak()
|
D | ConfigOnStopActivity.java | 16 package android.fragment.cts;
|
D | PrimaryNavFragmentTest.java | 18 package android.fragment.cts; 20 import static android.fragment.cts.FragmentTestUtil.executePendingTransactions; 21 import static android.fragment.cts.FragmentTestUtil.popBackStackImmediate;
|
D | FragmentTestActivity.java | 18 package android.fragment.cts;
|
D | HostCallbacks.java | 16 package android.fragment.cts;
|
D | NewIntentActivity.java | 16 package android.fragment.cts;
|
D | FragmentManagerConfigTest.java | 16 package android.fragment.cts;
|
/cts/tests/app/src/android/app/cts/ |
D | FragmentTransactionTest.java | 55 final Fragment fragment = new CorrectFragment(); in testAddTransactionWithValidFragment() local 60 .add(R.id.content, fragment) in testAddTransactionWithValidFragment() 67 assertTrue(fragment.isAdded()); in testAddTransactionWithValidFragment() 72 final Fragment fragment = new PrivateFragment(); in testAddTransactionWithPrivateFragment() local 79 .add(R.id.content, fragment) in testAddTransactionWithPrivateFragment() 87 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPrivateFragment() 96 final Fragment fragment = new PackagePrivateFragment(); in testAddTransactionWithPackagePrivateFragment() local 103 .add(R.id.content, fragment) in testAddTransactionWithPackagePrivateFragment() 111 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPackagePrivateFragment() 120 final Fragment fragment = new Fragment() {}; in testAddTransactionWithAnonymousFragment() local [all …]
|
D | FragmentReceiveResultTest.java | 104 final Fragment fragment = spy(new Fragment()); in attachTestFragment() local 110 .add(R.id.content, fragment) in attachTestFragment() 117 return fragment; in attachTestFragment()
|
/cts/tests/tests/widget/app/src/android/widget/cts/app/ |
D | TranslucentActivity.java | 27 import androidx.fragment.app.DialogFragment; 28 import androidx.fragment.app.FragmentManager; 39 DialogFragment fragment = new SampleFragment(); in onCreate() local 40 fragment.show(fragmentManager, "dialog"); in onCreate()
|
/cts/tests/openglperf2/jni/reference/scene/glowing/ |
D | GlowingScene.cpp | 49 const char* fragment = GLUtils::openTextFile("fragment/perspective"); in setUpPrograms() local 50 if (vertex == NULL || fragment == NULL) { in setUpPrograms() 53 GLuint programId = GLUtils::createProgram(&vertex, &fragment); in setUpPrograms() 55 delete[] fragment; in setUpPrograms() 62 fragment = GLUtils::openTextFile("fragment/blur"); in setUpPrograms() 63 if (vertex == NULL || fragment == NULL) { in setUpPrograms() 66 programId = GLUtils::createProgram(&vertex, &fragment); in setUpPrograms() 68 delete[] fragment; in setUpPrograms()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceWithHeaders.java | 54 protected boolean isValidFragment(String fragment) { in isValidFragment() argument 55 return PrefsOneFragment.class.getName().equals(fragment) in isValidFragment() 56 || PrefsTwoFragment.class.getName().equals(fragment) in isValidFragment() 57 || PrefsOneFragmentInner.class.getName().equals(fragment); in isValidFragment()
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
D | FlockingScene.cpp | 44 const char* fragment = GLUtils::openTextFile("fragment/perspective"); in setUpPrograms() local 45 if (vertex == NULL || fragment == NULL) { in setUpPrograms() 48 GLuint programId = GLUtils::createProgram(&vertex, &fragment); in setUpPrograms() 50 delete[] fragment; in setUpPrograms() 57 fragment = GLUtils::openTextFile("fragment/water"); in setUpPrograms() 58 if (vertex == NULL || fragment == NULL) { in setUpPrograms() 61 programId = GLUtils::createProgram(&vertex, &fragment); in setUpPrograms() 63 delete[] fragment; in setUpPrograms()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/ |
D | PhaseStartFragment.java | 43 PhaseStartFragment fragment = new PhaseStartFragment(); in newInstance() local 46 fragment.setArguments(arguments); in newInstance() 48 return fragment; in newInstance()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/ |
D | TestActivity.java | 113 Fragment fragment = PhaseStartFragment.newInstance(CTSTest.ACCURACY); in onCreate() local 116 transaction.replace(R.id.contentFragment, fragment); in onCreate() 391 Fragment fragment; in switchToTestFragment() local 395 fragment = AccuracyFragment.newInstance(); in switchToTestFragment() 398 fragment = RobustnessFragment.newInstance(); in switchToTestFragment() 401 fragment = ComplexMovementFragment.newInstance(); //Complex Motion in switchToTestFragment() 408 transaction.replace(R.id.contentFragment, fragment); in switchToTestFragment() 426 Fragment fragment = PhaseStartFragment.newInstance(phase); in switchToStartFragment() local 429 transaction.replace(R.id.contentFragment, fragment); in switchToStartFragment()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | UnlockedDeviceRequiredTest.java | 136 Fragment fragment = getFragmentManager().findFragmentByTag(FRAGMENT_TAG); in showDialog() local 137 if (fragment != null) { in showDialog() 138 transaction.remove(fragment); in showDialog() 614 TestDialogFragment fragment = new TestDialogFragment(); in createDialogFragment() local 615 fragment.mController = controller; in createDialogFragment() 616 return fragment; in createDialogFragment()
|