Searched refs:getActivity (Results 26 - 50 of 700) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridSingleColumnTest.java37 mActivity = getActivity();
38 mGridView = getActivity().getGridView();
H A DGridStackFromBottomManyTest.java37 mActivity = getActivity();
38 mGridView = getActivity().getGridView();
H A DGridStackFromBottomTest.java37 mActivity = getActivity();
38 mGridView = getActivity().getGridView();
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListBottomGravityManyTest.java37 mActivity = getActivity();
38 mListView = getActivity().getListView();
H A DListBottomGravityTest.java37 mActivity = getActivity();
38 mListView = getActivity().getListView();
H A DListSetSelectionTest.java39 mActivity = getActivity();
40 mListView = getActivity().getListView();
/frameworks/base/core/tests/coretests/src/android/widget/
H A DSuggestionsPopupWindowTest.java70 getActivity();
74 final TextView textView = (TextView) getActivity().findViewById(R.id.textview);
91 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(),
95 final TextView textView = (TextView) getActivity().findViewById(R.id.textview);
109 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(),
116 getActivity().getString(com.android.internal.R.string.replace));
119 getActivity().getString(com.android.internal.R.string.replace));
131 final SuggestionSpan suggestionSpan = new SuggestionSpan(getActivity(),
139 getActivity().getString(com.android.internal.R.string.replace));
141 getActivity()
[all...]
/frameworks/base/core/tests/coretests/src/android/animation/
H A DObjectAnimatorEventsTest.java28 final BasicAnimatorActivity activity = getActivity();
/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCacheTest.java45 final BigCache activity = getActivity();
58 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
66 final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize();
73 getActivity().runOnUiThread(new Runnable() {
H A DMutateDrawableTest.java36 mFirstButton = getActivity().findViewById(com.android.frameworks.coretests.R.id.a);
37 mSecondButton = getActivity().findViewById(com.android.frameworks.coretests.R.id.b);
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListWithNoFadingEdgeTest.java38 mListView = getActivity().getListView();
51 getActivity().runOnUiThread(() -> mListView.requestFocus());
64 getActivity().runOnUiThread(() -> mListView.requestFocus());
68 getActivity().runOnUiThread(new Runnable() {
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
H A DListHorizontalFocusWithinItemWinsTest.java41 mListView = getActivity().getListView();
42 mTopLeftButton = getActivity().getTopLeftButton();
43 mTopRightButton = getActivity().getTopRightButton();
44 mBottomMiddleButton = getActivity().getBottomMiddleButton();
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DRequestRectangleVisibleWithInternalScrollTest.java51 mTextBlob = getActivity().getTextBlob();
52 mScrollToBlob = getActivity().getScrollToBlob();
54 mScrollView = (ScrollView) getActivity().findViewById(R.id.scrollView);
60 assertEquals(getActivity().getScrollYofBlob(), mTextBlob.getScrollY());
/frameworks/base/test-runner/src/android/test/
H A DActivityInstrumentationTestCase2.java85 * before your first call to getActivity(). Calling them after your Activity has
96 public T getActivity() { method in class:ActivityInstrumentationTestCase2
97 Activity a = super.getActivity();
114 * Call this method before the first call to {@link #getActivity} to inject a customized Intent
136 * Call this method before the first call to {@link #getActivity} to set the initial touch
163 Activity a = super.getActivity();
187 getActivity();
/frameworks/support/leanback/src/main/java/androidx/leanback/app/
H A DFragmentUtil.java27 return fragment.getActivity();
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/test/
H A DRecyclerViewTest.java52 final Activity activity = mActivityRule.getActivity();
75 view = (RecyclerView) getActivity().findViewById(R.id.clipToPaddingUndefined);
77 view = (RecyclerView) getActivity().findViewById(R.id.clipToPaddingYes);
79 view = (RecyclerView) getActivity().findViewById(R.id.clipToPaddingNo);
82 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView);
93 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView2);
105 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView3);
112 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView4);
119 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView5);
123 view = (RecyclerView) getActivity()
141 private Activity getActivity() { method in class:RecyclerViewTest
[all...]
/frameworks/base/apct-tests/perftests/core/src/android/app/
H A DPendingIntentPerfTest.java64 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent,
82 final PendingIntent previousPendingIntent = PendingIntent.getActivity(mContext, 0,
86 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent,
104 final PendingIntent previousPendingIntent = PendingIntent.getActivity(mContext, 0,
108 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent,
126 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0,
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
H A DButtonsWithTallTextViewInBetweenTest.java46 mScrollView = getActivity().getScrollView();
47 mTopButton = getActivity().getTopButton();
48 mMiddleFiller = getActivity().getMiddleFiller();
49 mBottomButton = getActivity().getBottomButton();
106 getActivity().getLinearLayout().getHeight() - mScrollView.getHeight(),
121 final int maxScroll = getActivity().getLinearLayout().getHeight()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
H A DListGetSelectedViewTest.java44 mActivity = getActivity();
45 mListView = getActivity().getListView();
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
H A DStartInTouchWithViewInFocusTest.java43 mEditText = getActivity().getEditText();
44 mButton = getActivity().getButton();
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/
H A DTest.java31 assertEquals(3366, getActivity().getValue());
40 getActivity().getAnnotation2Value();
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DBindToFinalObservableFieldTest.java35 assertEquals(getActivity().getResources().getString(R.string.app_name), textView.getText().toString());
39 + " binder flags.", getActivity().getResources().getString(R.string.rain),
H A DCustomBindingTest.java38 getActivity().getLayoutInflater());
44 com.android.test.CustomBinding.inflate(getActivity().getLayoutInflater());
H A DDefaultBindingTest.java26 UseDefaultBinding binding = UseDefaultBinding.inflate(getActivity().getLayoutInflater());
32 assertEquals(getActivity().getResources().getString(android.R.string.cancel),
/frameworks/support/frameworks/support/samples/Support13Demos/src/main/java/com/example/android/supportv13/app/
H A DFragmentTabsFragment.java34 mTabHost = new FragmentTabHost(getActivity());
35 mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.pager);

Completed in 5014 milliseconds

1234567891011>>