/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
H A D | DetailsTestFragment.java | 50 ImageCardView cardView = new ImageCardView(getActivity()); 112 if (getActivity() == null) { 115 Resources res = getActivity().getResources(); 131 if (getActivity() == null) {
|
H A D | DetailsTestSupportFragment.java | 47 ImageCardView cardView = new ImageCardView(getActivity()); 109 if (getActivity() == null) { 112 Resources res = getActivity().getResources(); 128 if (getActivity() == null) {
|
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | ErrorFragment.java | 33 final Context context = getActivity();
|
H A D | ErrorSupportFragment.java | 36 final Context context = getActivity();
|
H A D | MusicPlayerFragment.java | 116 setArt(getPlayerAdapter().getMediaArt(getActivity())); 206 mController = new MediaControllerCompat(MusicPlayerFragment.this.getActivity(), 209 mGlue = new PlaybackBannerMusicPlayerControlGlue<>(getActivity(), fastForwardSpeed, 228 getActivity().getResources().openRawResource(R.raw.media)); 233 Intent serviceIntent = new Intent(getActivity(), MediaSessionService.class); 234 getActivity().bindService(serviceIntent, mPlaybackServiceConnection,
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/ |
H A D | RoundedDrawableTest.java | 75 mActivityRule.getActivity().getResources(), 138 (RoundedDrawable) mActivityRule.getActivity().getDrawable( 141 mActivityRule.getActivity().getColor(R.color.rounded_drawable_background_color), 145 assertEquals(mActivityRule.getActivity().getResources().getDimensionPixelSize(
|
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | ZeroSizedTest.java | 46 final ZeroSized activity = getActivity(); 91 getActivity().runOnUiThread(new Runnable() {
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
H A D | GridSetSelectionBaseTest.java | 38 mActivity = getActivity(); 39 mGridView = getActivity().getGridView();
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
H A D | GridTouchStackFromBottomTest.java | 39 mActivity = getActivity(); 40 mGridView = getActivity().getGridView();
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/tests/ |
H A D | ActivityTest.java | 49 assertEquals(10, getActivity().get1(true)); 50 assertEquals(11, getActivity().get2(true));
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | PrintErrorFragment.java | 89 Activity activity = getActivity(); 91 ((OnActionListener) getActivity()).onActionPerformed();
|
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/ |
H A D | BrowseFragment.java | 128 Toast.makeText(getActivity(), R.string.error_loading_media, 144 mediaController = new MediaControllerCompat(getActivity(), 149 ((MediaBrowserSupport) getActivity()).setMediaController(mediaController); 168 ((MediaBrowserSupport) getActivity()).setMediaController((MediaControllerCompat) null); 185 mBrowserAdapter = new BrowseAdapter(getActivity(), mMediaItems); 197 FragmentDataHelper listener = (FragmentDataHelper) getActivity(); 208 mMediaBrowser = new MediaBrowserCompat(getActivity(), 209 new ComponentName(getActivity(), MediaBrowserServiceSupport.class),
|
H A D | QueueFragment.java | 70 mMediaController = new MediaControllerCompat(getActivity(), 78 ((MediaBrowserSupport) getActivity()).setMediaController(mMediaController); 102 ((MediaBrowserSupport) getActivity()).setMediaController((MediaControllerCompat) null); 158 mQueueAdapter = new QueueAdapter(getActivity()); 171 mMediaBrowser = new MediaBrowserCompat(getActivity(), 172 new ComponentName(getActivity(), MediaBrowserServiceSupport.class), 241 ContextCompat.getDrawable(getActivity(), R.drawable.ic_play_arrow_white_24dp)); 244 ContextCompat.getDrawable(getActivity(), R.drawable.ic_pause_white_24dp));
|
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/ |
H A D | BrowseFragment.java | 128 Toast.makeText(getActivity(), R.string.error_loading_media, 144 mediaController = new MediaControllerCompat(getActivity(), 149 ((MediaBrowserSupport) getActivity()).setMediaController(mediaController); 168 ((MediaBrowserSupport) getActivity()).setMediaController((MediaControllerCompat) null); 185 mBrowserAdapter = new BrowseAdapter(getActivity(), mMediaItems); 197 FragmentDataHelper listener = (FragmentDataHelper) getActivity(); 208 mMediaBrowser = new MediaBrowserCompat(getActivity(), 209 new ComponentName(getActivity(), MediaBrowserServiceSupport.class),
|
H A D | QueueFragment.java | 70 mMediaController = new MediaControllerCompat(getActivity(), 78 ((MediaBrowserSupport) getActivity()).setMediaController(mMediaController); 102 ((MediaBrowserSupport) getActivity()).setMediaController((MediaControllerCompat) null); 158 mQueueAdapter = new QueueAdapter(getActivity()); 171 mMediaBrowser = new MediaBrowserCompat(getActivity(), 172 new ComponentName(getActivity(), MediaBrowserServiceSupport.class), 241 ContextCompat.getDrawable(getActivity(), R.drawable.ic_play_arrow_white_24dp)); 244 ContextCompat.getDrawable(getActivity(), R.drawable.ic_pause_white_24dp));
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/res/content/ |
H A D | AppCompatResourcesTestCase.java | 51 final Activity context = mActivityTestRule.getActivity(); 75 final Activity context = mActivityTestRule.getActivity();
|
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/ |
H A D | FragmentTestUtil.java | 73 FragmentManager fragmentManager = rule.getActivity().getSupportFragmentManager(); 95 ret[0] = rule.getActivity().getSupportFragmentManager().popBackStackImmediate(); 108 ret[0] = rule.getActivity().getSupportFragmentManager().popBackStackImmediate(id, 122 ret[0] = rule.getActivity().getSupportFragmentManager().popBackStackImmediate(name, 135 rule.getActivity().setContentView(layoutId); 153 final FragmentActivity activity = rule.getActivity();
|
H A D | FragmentAnimatorTest.java | 76 final FragmentManager fm = mActivityRule.getActivity().getSupportFragmentManager(); 94 final FragmentManager fm = mActivityRule.getActivity().getSupportFragmentManager(); 119 final FragmentManager fm = mActivityRule.getActivity().getSupportFragmentManager(); 162 final FragmentManager fm = mActivityRule.getActivity().getSupportFragmentManager(); 209 final FragmentManager fm = mActivityRule.getActivity().getSupportFragmentManager(); 233 final FragmentManager fm = mActivityRule.getActivity().getSupportFragmentManager(); 258 final FragmentManager fm = mActivityRule.getActivity().getSupportFragmentManager(); 283 final FragmentManager fm = mActivityRule.getActivity().getSupportFragmentManager(); 323 final FragmentManager fm = mActivityRule.getActivity().getSupportFragmentManager(); 347 final FragmentManager fm = mActivityRule.getActivity() [all...] |
H A D | FragmentViewLifecycleTest.java | 59 final FragmentTestActivity activity = mActivityRule.getActivity(); 72 final FragmentTestActivity activity = mActivityRule.getActivity(); 88 final FragmentTestActivity activity = mActivityRule.getActivity(); 105 final FragmentTestActivity activity = mActivityRule.getActivity(); 125 final FragmentTestActivity activity = mActivityRule.getActivity(); 162 final FragmentTestActivity activity = mActivityRule.getActivity(); 190 final FragmentTestActivity activity = mActivityRule.getActivity();
|
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | MusicPlayerFragment.java | 116 setArt(getPlayerAdapter().getMediaArt(getActivity())); 206 mController = new MediaControllerCompat(MusicPlayerFragment.this.getActivity(), 209 mGlue = new PlaybackBannerMusicPlayerControlGlue<>(getActivity(), fastForwardSpeed, 228 getActivity().getResources().openRawResource(R.raw.media)); 233 Intent serviceIntent = new Intent(getActivity(), MediaSessionService.class); 234 getActivity().bindService(serviceIntent, mPlaybackServiceConnection,
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | RecyclerViewFastScrollerTest.java | 60 final Activity activity = mActivityRule.getActivity(); 117 mRecyclerView = new RecyclerView(getActivity()); 118 final Activity activity = mActivityRule.getActivity(); 131 Resources res = getActivity().getResources(); 166 mScroller.attachToRecyclerView(new RecyclerView(getActivity())); 177 RecyclerView view = (RecyclerView) getActivity().findViewById( 192 final RecyclerView view = (RecyclerView) getActivity().findViewById( 303 final TestActivity activity = mActivityRule.getActivity(); 330 mRecyclerView = new RecyclerView(getActivity()) { 373 Resources res = getActivity() [all...] |
H A D | ItemTouchHelperTest.java | 111 basicSwipeTest(LEFT, LEFT | RIGHT, -getActivity().getWindow().getDecorView().getWidth()); 116 basicSwipeTest(RIGHT, LEFT | RIGHT, getActivity().getWindow().getDecorView().getWidth()); 121 basicSwipeTest(START, START | END, -getActivity().getWindow().getDecorView().getWidth()); 126 basicSwipeTest(END, START | END, getActivity().getWindow().getDecorView().getWidth()); 135 basicSwipeTest(START, START | END, getActivity().getWindow().getDecorView().getWidth()); 142 basicSwipeTest(END, START | END, -getActivity().getWindow().getDecorView().getWidth()); 171 getActivity().getContainer().addView(rvs2.mWrappedRecyclerView);
|
/frameworks/support/transition/src/androidTest/java/androidx/transition/ |
H A D | TransitionTest.java | 66 TransitionActivity activity = rule.getActivity(); 123 TransitionActivity activity = rule.getActivity(); 183 View view0 = rule.getActivity().findViewById(R.id.view0); 184 View view1 = rule.getActivity().findViewById(R.id.view1); 196 View view0 = rule.getActivity().findViewById(R.id.view0); 197 View view1 = rule.getActivity().findViewById(R.id.view1); 211 View view0 = rule.getActivity().findViewById(R.id.view0); 212 View view1 = rule.getActivity().findViewById(R.id.view1); 228 FrameLayout container = (FrameLayout) rule.getActivity().findViewById(R.id.container); 229 View view0 = rule.getActivity() [all...] |
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/ |
H A D | AlertDialogTest.java | 115 final AlertDialogTestActivity activity = mActivityTestRule.getActivity(); 144 final Context context = mActivityTestRule.getActivity(); 158 final Context context = mActivityTestRule.getActivity(); 190 AlertDialog.Builder builder = new AlertDialog.Builder(mActivityTestRule.getActivity()) 204 AlertDialog.Builder builder = new AlertDialog.Builder(mActivityTestRule.getActivity()) 233 final Context context = mActivityTestRule.getActivity(); 256 final Context context = mActivityTestRule.getActivity(); 272 final Context context = mActivityTestRule.getActivity(); 303 final Context context = mActivityTestRule.getActivity(); 325 final Context context = mActivityTestRule.getActivity(); [all...] |
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/ |
H A D | EmojiKeyboardTest.java | 70 TestActivity activity = mActivityRule.getActivity(); 87 TestActivity activity = mActivityRule.getActivity(); 109 TestActivity activity = mActivityRule.getActivity(); 132 TestActivity activity = mActivityRule.getActivity(); 161 TestActivity activity = mActivityRule.getActivity();
|