/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentAnimatorTest.java | 16 package android.fragment.cts; 72 final AnimatorFragment fragment = new AnimatorFragment(); in addAnimators() local 75 .add(R.id.fragmentContainer, fragment) in addAnimators() 80 assertEnterPopExit(fragment); in addAnimators() 89 final AnimatorFragment fragment = new AnimatorFragment(); in removeAnimators() local 90 fm.beginTransaction().add(R.id.fragmentContainer, fragment, "1").commit(); in removeAnimators() 95 .remove(fragment) in removeAnimators() 100 assertExitPopEnter(fragment); in removeAnimators() 110 final AnimatorFragment fragment = new AnimatorFragment(); in showAnimatorsReordered() local 111 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; 89 final Fragment fragment = new CorrectFragment(); in testAddTransactionWithValidFragment() local 94 .add(android.R.id.content, fragment) in testAddTransactionWithValidFragment() 102 assertTrue(fragment.isAdded()); in testAddTransactionWithValidFragment() 107 final Fragment fragment = new PrivateFragment(); in testAddTransactionWithPrivateFragment() local 114 .add(android.R.id.content, fragment) in testAddTransactionWithPrivateFragment() 123 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPrivateFragment() 132 final Fragment fragment = new PackagePrivateFragment(); in testAddTransactionWithPackagePrivateFragment() local 139 .add(android.R.id.content, fragment) in testAddTransactionWithPackagePrivateFragment() 148 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPackagePrivateFragment() [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 | PostponedTransitionTest.java | 16 package android.fragment.cts; 75 final PostponedFragment2 fragment = new PostponedFragment2(); in replaceTransition() local 78 .replace(R.id.fragmentContainer, fragment) in replaceTransition() 85 assertPostponedTransition(mBeginningFragment, fragment, null); in replaceTransition() 88 fragment.startPostponedEnterTransition(); in replaceTransition() 91 assertForwardTransition(mBeginningFragment, fragment); in replaceTransition() 96 assertPostponedTransition(fragment, mBeginningFragment, null); in replaceTransition() 102 assertBackTransition(fragment, mBeginningFragment); in replaceTransition() 659 final TransitionFragment fragment = new PostponedFragment2(); in popPostponedTransaction() local 663 .replace(R.id.fragmentContainer, fragment) in popPostponedTransaction() [all …]
|
D | FragmentExecuteTests.java | 16 package android.fragment.cts; 56 final StrictViewFragment fragment = new StrictViewFragment(); in executeAndPopNormal() local 62 .add(R.id.fragmentContainer, fragment, "1") in executeAndPopNormal() 69 FragmentTestUtil.assertChildren(container, fragment); in executeAndPopNormal() 71 assertEquals(fragment, fm.findFragmentById(R.id.fragmentContainer)); in executeAndPopNormal() 72 assertEquals(fragment, fm.findFragmentByTag("1")); in executeAndPopNormal() 102 final StrictViewFragment fragment = new StrictViewFragment(); in popBackStackImmediateSomething() local 105 .add(R.id.fragmentContainer, fragment, "1") in popBackStackImmediateSomething() 125 final StrictViewFragment fragment = new StrictViewFragment(); in popBackStackImmediateNothing() local 128 .add(R.id.fragmentContainer, fragment, "1") in popBackStackImmediateNothing() [all …]
|
D | FragmentLifecycleTest.java | 18 package android.fragment.cts; 359 ChildFragmentManagerFragment fragment = new ChildFragmentManagerFragment(); in childFragmentManagerAttach() 361 .add(android.R.id.content, fragment) in childFragmentManagerAttach() 364 verify(mockLc, times(1)).onFragmentCreated(fm, fragment, null); in childFragmentManagerAttach() 368 Fragment childFragment = fragment.getChildFragment(); in childFragmentManagerAttach() 370 verify(mockLc, times(1)).onFragmentActivityCreated(fm, fragment, null); in childFragmentManagerAttach() 371 verify(mockRecursiveLc, times(1)).onFragmentActivityCreated(fm, fragment, null); in childFragmentManagerAttach() 376 verify(mockLc, times(1)).onFragmentStarted(fm, fragment); in childFragmentManagerAttach() 377 verify(mockRecursiveLc, times(1)).onFragmentStarted(fm, fragment); in childFragmentManagerAttach() 382 verify(mockLc, times(1)).onFragmentResumed(fm, fragment); in childFragmentManagerAttach() [all …]
|
D | FragmentTransitionTest.java | 16 package android.fragment.cts; 104 TransitionFragment fragment = setupInitialFragment(); in enterExitTransitions() local 111 .remove(fragment) in enterExitTransitions() 115 fragment.waitForTransition(); in enterExitTransitions() 116 verifyAndClearTransition(fragment.exitTransition, null, green, blue); in enterExitTransitions() 117 verifyNoOtherTransitions(fragment); in enterExitTransitions() 122 fragment.waitForTransition(); in enterExitTransitions() 125 verifyAndClearTransition(fragment.reenterTransition, null, green2, blue2); in enterExitTransitions() 126 verifyNoOtherTransitions(fragment); in enterExitTransitions() 131 fragment.waitForTransition(); in enterExitTransitions() [all …]
|
D | ConfigOnStopActivity.java | 16 package android.fragment.cts;
|
D | LoaderTest.java | 16 package android.fragment.cts; 62 LoaderFragment fragment = new LoaderFragment(); in testLeak() local 66 .add(fragment, "1") in testLeak() 72 .remove(fragment) in testLeak()
|
D | FragmentTestActivity.java | 18 package android.fragment.cts;
|
D | PrimaryNavFragmentTest.java | 18 package android.fragment.cts; 28 import static android.fragment.cts.FragmentTestUtil.executePendingTransactions; 29 import static android.fragment.cts.FragmentTestUtil.popBackStackImmediate;
|
D | HostCallbacks.java | 16 package android.fragment.cts;
|
D | NewIntentActivity.java | 16 package android.fragment.cts;
|
D | FragmentManagerConfigTest.java | 16 package android.fragment.cts;
|
D | CountCallsFragment.java | 16 package android.fragment.cts;
|
/cts/tests/app/src/android/app/cts/ |
D | FragmentTransactionTest.java | 54 final Fragment fragment = new CorrectFragment(); in testAddTransactionWithValidFragment() local 59 .add(R.id.content, fragment) in testAddTransactionWithValidFragment() 66 assertTrue(fragment.isAdded()); in testAddTransactionWithValidFragment() 71 final Fragment fragment = new PrivateFragment(); in testAddTransactionWithPrivateFragment() local 78 .add(R.id.content, fragment) in testAddTransactionWithPrivateFragment() 86 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPrivateFragment() 95 final Fragment fragment = new PackagePrivateFragment(); in testAddTransactionWithPackagePrivateFragment() local 102 .add(R.id.content, fragment) in testAddTransactionWithPackagePrivateFragment() 110 assertFalse("Fragment shouldn't be added", fragment.isAdded()); in testAddTransactionWithPackagePrivateFragment() 119 final Fragment fragment = new Fragment() {}; in testAddTransactionWithAnonymousFragment() local [all …]
|
D | FragmentReceiveResultTest.java | 102 final Fragment fragment = spy(new Fragment()); in attachTestFragment() local 108 .add(R.id.content, fragment) in attachTestFragment() 115 return fragment; in attachTestFragment()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | UriTest.java | 35 .fragment("foo") in testParcelling() 63 Uri b = a.buildUpon().fragment("new").build(); in testBuildUpon() 70 .fragment("tee") in testBuildUpon() 72 b = a.buildUpon().fragment("new").build(); in testBuildUpon() 143 .fragment("tee") in testEqualsAndHashCode() 295 Uri withFragment = uri.buildUpon().fragment("top").build(); in testOpaqueUri() 311 String path, String query, String fragment) { in testHierarchical() argument 329 if (fragment != null) { in testHierarchical() 330 sb.append('#').append(fragment); in testHierarchical() 339 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() [all …]
|
/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/preference2/src/android/preference2/cts/ |
D | PreferenceWithHeaders.java | 55 protected boolean isValidFragment(String fragment) { in isValidFragment() argument 56 return PrefsOneFragment.class.getName().equals(fragment) in isValidFragment() 57 || PrefsTwoFragment.class.getName().equals(fragment) in isValidFragment() 58 || 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/tests/fragment/sdk26/src/android/fragment/cts/sdk26/ |
D | NonConfigOnStopActivity.java | 17 package android.fragment.cts.sdk26;
|