Searched refs:getActivity (Results 151 - 175 of 700) sorted by relevance

1234567891011>>

/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DRowsSupportFragment.java78 lrp.setRowHeight(cardPresenter.getRowHeight(getActivity()));
79 lrp.setExpandedRowHeight(cardPresenter.getExpandedRowHeight(getActivity()));
105 Intent intent = new Intent(getActivity(), DetailsSupportActivity.class);
109 getActivity(),
112 getActivity().startActivity(intent, bundle);
H A DDetailsPresenterSelectionActivity.java83 Drawable icon = getActivity().getResources().getDrawable(R.drawable.ic_main_icon);
110 addCheckedAction(actions, getActivity(), OPTION_IDS[i], OPTION_NAMES[i],
122 getActivity().finish();
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
H A DWearableLinearLayoutManagerTest.java54 Activity activity = mActivityRule.getActivity();
58 new WearableLinearLayoutManager(mActivityRule.getActivity(), mCurvingCallback);
70 (WearableRecyclerView) mActivityRule.getActivity().findViewById(R.id.wrv);
82 (WearableRecyclerView) mActivityRule.getActivity().findViewById(R.id.wrv);
127 (WearableRecyclerView) mActivityRule.getActivity().findViewById(R.id.wrv);
H A DConfirmationOverlayTest.java70 Activity activity = mActivityRule.getActivity();
101 assertNull(getContentView(mActivityRule.getActivity()));
146 assertNull(getContentView(mActivityRule.getActivity()));
177 assertNull(getContentView(mActivityRule.getActivity()));
208 assertNull(getContentView(mActivityRule.getActivity()));
249 assertNotNull(getContentView(mActivityRule.getActivity()));
278 assertNull(getContentView(mActivityRule.getActivity()));
H A DBoxInsetLayoutTest.java76 if (mActivityRule.getActivity().getResources().getConfiguration().isScreenRound()) {
83 View box = mActivityRule.getActivity().findViewById(R.id.box);
126 if (mActivityRule.getActivity().getResources().getConfiguration().isScreenRound()) {
133 View box = mActivityRule.getActivity().findViewById(R.id.box);
134 View child1 = mActivityRule.getActivity().findViewById(R.id.child1);
135 View child2 = mActivityRule.getActivity().findViewById(R.id.child2);
136 View child3 = mActivityRule.getActivity().findViewById(R.id.child3);
137 View child4 = mActivityRule.getActivity().findViewById(R.id.child4);
236 if (mActivityRule.getActivity().getResources().getConfiguration().isScreenRound()) {
243 View box = mActivityRule.getActivity()
[all...]
/frameworks/support/transition/src/androidTest/java/androidx/transition/
H A DSlideEdgeTest.java79 rule.getActivity().setContentView(R.layout.scene1);
84 final View redSquare = rule.getActivity().findViewById(R.id.redSquare);
85 final View greenSquare = rule.getActivity().findViewById(R.id.greenSquare);
86 final View hello = rule.getActivity().findViewById(R.id.hello);
87 final ViewGroup sceneRoot = (ViewGroup) rule.getActivity().findViewById(R.id.holder);
163 rule.getActivity().setContentView(R.layout.scene1);
168 final View redSquare = rule.getActivity().findViewById(R.id.redSquare);
169 final View greenSquare = rule.getActivity().findViewById(R.id.greenSquare);
170 final View hello = rule.getActivity().findViewById(R.id.hello);
171 final ViewGroup sceneRoot = (ViewGroup) rule.getActivity()
[all...]
H A DAutoTransitionTest.java43 mRoot = (LinearLayout) rule.getActivity().getRoot();
44 mView0 = new View(rule.getActivity());
47 mView1 = new View(rule.getActivity());
H A DChangeTransformTest.java43 final View redSquare = rule.getActivity().findViewById(R.id.redSquare);
67 final View redSquare = rule.getActivity().findViewById(R.id.redSquare);
89 final View redSquare = rule.getActivity().findViewById(R.id.redSquare);
/frameworks/base/core/tests/coretests/src/android/animation/
H A DEventsTest.java273 getActivity().runOnUiThread(new Runnable() {
296 getActivity().runOnUiThread(new Runnable() {
319 getActivity().runOnUiThread(new Runnable() {
342 getActivity().runOnUiThread(new Runnable() {
364 getActivity().runOnUiThread(new Runnable() {
387 getActivity().runOnUiThread(new Runnable() {
411 getActivity().runOnUiThread(new Runnable() {
435 getActivity().runOnUiThread(new Runnable() {
458 getActivity().runOnUiThread(new Runnable() {
485 getActivity()
[all...]
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/
H A DActionBarFragmentMenu.java147 Toast.makeText(getActivity(), "Selected Menu 1a.", Toast.LENGTH_SHORT).show();
151 Toast.makeText(getActivity(), "Selected Menu 1b.", Toast.LENGTH_SHORT).show();
187 Toast.makeText(getActivity(), "Selected Menu 2.", Toast.LENGTH_SHORT).show();
207 Toast.makeText(getActivity(), "Created nested fragment's menu.",
215 Toast.makeText(getActivity(), "Destroyed nested fragment's menu.",
222 Toast.makeText(getActivity(), "Prepared nested fragment's menu.",
230 Toast.makeText(getActivity(), "Selected nested fragment's menu item.",
/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/ui/
H A DMainFragment.java69 Intent intent = getActivity().getIntent();
99 Uri uri = Uri.parse("android.resource://" + getActivity().getPackageName() + "/"
101 Intent videoIntent = new Intent(Intent.ACTION_VIEW, uri, getActivity(),
108 mBackgroundManager = BackgroundManager.getInstance(getActivity());
109 mBackgroundManager.attach(getActivity().getWindow());
116 getActivity().getResources(), R.drawable.app_banner, null));
155 entriesPerCat, cardWidth, cardHeight, getActivity(), useSingleBitmap);
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/
H A DLiveDataOnSaveInstanceStateTest.java52 CollectingSupportActivity activity = mActivityTestRule.getActivity();
60 CollectingSupportActivity activity = mActivityTestRule.getActivity();
70 CollectingSupportActivity activity = mActivityTestRule.getActivity();
84 CollectingSupportActivity activity = mActivityTestRule.getActivity();
92 CollectingSupportActivity activity = mActivityTestRule.getActivity();
102 CollectingSupportActivity activity = mActivityTestRule.getActivity();
169 FragmentActivity activity = mActivityTestRule.getActivity();
H A DPartiallyCoveredActivityTest.java121 final CollectingSupportActivity activity = activityRule.getActivity();
128 activityRule.runOnUiThread(() -> activityRule.getActivity().replaceFragment(fragment));
137 activityRule.getActivity().replaceFragment(parentFragment);
152 TestUtils.waitTillResumed(activityRule.getActivity(), activityRule);
158 CollectingSupportActivity activity = activityRule.getActivity();
166 final CollectingSupportActivity activity = activityRule.getActivity();
190 FragmentActivity activity = activityRule.getActivity();
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/
H A DActionBarFragmentMenu.java147 Toast.makeText(getActivity(), "Selected Menu 1a.", Toast.LENGTH_SHORT).show();
151 Toast.makeText(getActivity(), "Selected Menu 1b.", Toast.LENGTH_SHORT).show();
187 Toast.makeText(getActivity(), "Selected Menu 2.", Toast.LENGTH_SHORT).show();
207 Toast.makeText(getActivity(), "Created nested fragment's menu.",
215 Toast.makeText(getActivity(), "Destroyed nested fragment's menu.",
222 Toast.makeText(getActivity(), "Prepared nested fragment's menu.",
230 Toast.makeText(getActivity(), "Selected nested fragment's menu item.",
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/ui/
H A DMainFragment.java69 Intent intent = getActivity().getIntent();
99 Uri uri = Uri.parse("android.resource://" + getActivity().getPackageName() + "/"
101 Intent videoIntent = new Intent(Intent.ACTION_VIEW, uri, getActivity(),
108 mBackgroundManager = BackgroundManager.getInstance(getActivity());
109 mBackgroundManager.attach(getActivity().getWindow());
116 getActivity().getResources(), R.drawable.app_banner, null));
155 entriesPerCat, cardWidth, cardHeight, getActivity(), useSingleBitmap);
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
H A DLayoutInflaterFactoryTestCase.java69 final LayoutInflater inflater = LayoutInflater.from(mActivityTestRule.getActivity());
77 final LayoutInflater inflater = LayoutInflater.from(mActivityTestRule.getActivity());
86 LayoutInflater inflater = LayoutInflater.from(mActivityTestRule.getActivity());
96 final Context activity = mActivityTestRule.getActivity();
198 LayoutInflater inflater = LayoutInflater.from(mActivityTestRule.getActivity());
202 assertTrue(mActivityTestRule.getActivity().wasDeclarativeOnClickCalled());
206 LayoutInflater inflater = LayoutInflater.from(mActivityTestRule.getActivity());
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListOfThinItemsTest.java38 mListView = getActivity().getListView();
54 getActivity().runOnUiThread(() -> mListView.requestFocus());
86 getActivity().runOnUiThread(() -> mListView.requestFocus());
H A DListWithOffScreenNextSelectableTest.java41 mListView = getActivity().getListView();
76 getActivity().getValueAtPosition(4), ((TextView) mListView.getSelectedView()).getText());
102 assertEquals(getActivity().getValueAtPosition(0),((TextView) mListView.getSelectedView()).getText());
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DSurfaceCompositionTest.java72 double[] minScores = getActivity().isAndromeda() ?
77 CompositorScore score = getActivity().measureCompositionScore(pixelFormat);
100 AllocationScore score = getActivity().measureAllocationScore(pixelFormat);
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/widget/
H A DEmojiEditTextTest.java67 final TestActivity activity = mActivityRule.getActivity();
88 final TestActivity activity = mActivityRule.getActivity();
97 final TestActivity activity = mActivityRule.getActivity();
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DDialogFragmentTest.java51 fragment.show(mActivityTestRule.getActivity().getSupportFragmentManager(), null);
67 fragment.showNow(mActivityTestRule.getActivity().getSupportFragmentManager(),
83 fragment.show(mActivityTestRule.getActivity().getSupportFragmentManager(), null);
H A DViewModelTestInTransaction.java49 EmptyFragmentTestActivity activity = mActivityRule.getActivity();
61 EmptyFragmentTestActivity activity = mActivityRule.getActivity();
94 parentFragment != null ? parentFragment : getActivity(),
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DDetailsPresenterSelectionActivity.java83 Drawable icon = getActivity().getResources().getDrawable(R.drawable.ic_main_icon);
110 addCheckedAction(actions, getActivity(), OPTION_IDS[i], OPTION_NAMES[i],
122 getActivity().finish();
/frameworks/support/lifecycle/extensions/src/androidTest/java/androidx/lifecycle/
H A DViewModelTestInTransaction.java48 EmptyActivity activity = mActivityRule.getActivity();
58 EmptyActivity activity = mActivityRule.getActivity();
89 ? ViewModelProviders.of(parentFragment) : ViewModelProviders.of(getActivity());
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DScrollToPositionWithAutoMeasure.java44 LinearLayoutManager llm = new LinearLayoutManager(getActivity());
51 GridLayoutManager glm = new GridLayoutManager(getActivity(), 3);
65 final RecyclerView recyclerView = new RecyclerView(getActivity());

Completed in 321 milliseconds

1234567891011>>