/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | RowsSupportFragment.java | 78 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 D | DetailsPresenterSelectionActivity.java | 83 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 D | WearableLinearLayoutManagerTest.java | 54 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 D | ConfirmationOverlayTest.java | 70 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 D | BoxInsetLayoutTest.java | 76 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 D | SlideEdgeTest.java | 79 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 D | AutoTransitionTest.java | 43 mRoot = (LinearLayout) rule.getActivity().getRoot(); 44 mView0 = new View(rule.getActivity()); 47 mView1 = new View(rule.getActivity());
|
H A D | ChangeTransformTest.java | 43 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 D | EventsTest.java | 273 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 D | ActionBarFragmentMenu.java | 147 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 D | MainFragment.java | 69 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 D | LiveDataOnSaveInstanceStateTest.java | 52 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 D | PartiallyCoveredActivityTest.java | 121 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 D | ActionBarFragmentMenu.java | 147 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 D | MainFragment.java | 69 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 D | LayoutInflaterFactoryTestCase.java | 69 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 D | ListOfThinItemsTest.java | 38 mListView = getActivity().getListView(); 54 getActivity().runOnUiThread(() -> mListView.requestFocus()); 86 getActivity().runOnUiThread(() -> mListView.requestFocus());
|
H A D | ListWithOffScreenNextSelectableTest.java | 41 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 D | SurfaceCompositionTest.java | 72 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 D | EmojiEditTextTest.java | 67 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 D | DialogFragmentTest.java | 51 fragment.show(mActivityTestRule.getActivity().getSupportFragmentManager(), null); 67 fragment.showNow(mActivityTestRule.getActivity().getSupportFragmentManager(), 83 fragment.show(mActivityTestRule.getActivity().getSupportFragmentManager(), null);
|
H A D | ViewModelTestInTransaction.java | 49 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 D | DetailsPresenterSelectionActivity.java | 83 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 D | ViewModelTestInTransaction.java | 48 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 D | ScrollToPositionWithAutoMeasure.java | 44 LinearLayoutManager llm = new LinearLayoutManager(getActivity()); 51 GridLayoutManager glm = new GridLayoutManager(getActivity(), 3); 65 final RecyclerView recyclerView = new RecyclerView(getActivity());
|