Lines Matching refs:activity

26     private TestFragmentActivity activity;
31 activity = new TestFragmentActivity();
32 activity.onCreate(null);
33 fragment = (TestFragment) activity.getSupportFragmentManager().findFragmentByTag("fragment_tag");
38 assertNotNull(activity.getSupportFragmentManager());
48 Fragment fragmentById = activity.getSupportFragmentManager().findFragmentById(R.id.fragment);
54 assertSame(fragment.onCreateViewReturnValue, activity.findViewById(TestFragment.FRAGMENT_VIEW_ID));
59 assertSame(activity, fragment.getActivity());
64 ViewGroup container = (ViewGroup) activity.findViewById(R.id.fragment);
70 ViewGroup container = (ViewGroup) activity.findViewById(R.id.fragment);
80 activity.getSupportFragmentManager().beginTransaction().add(fragment_container, fragment).commit();
82 activity.onSaveInstanceState(outState);
99 activity.getSupportFragmentManager().beginTransaction().add(fragment_container, fragment).commit();
101 activity.onSaveInstanceState(outState);
114 activity = new TestFragmentActivity();
115 activity.onCreate(bundle);
116 TestFragmentManager fragmentManager = (TestFragmentManager) activity.getSupportFragmentManager();
123 assertSame(activity, restoredFrag.onAttachActivity);
124 assertSame(activity, restoredFrag.getActivity());
136 activity = new TestFragmentActivity();
137 activity.onCreate(bundle);
138 shadowOf(activity).onStart();
139 TestFragmentManager fragmentManager = (TestFragmentManager) activity.getSupportFragmentManager();
143 assertEquals(restoredFrag.onCreateViewInflater, activity.getLayoutInflater());
149 activity.onPause();
155 activity = new TestFragmentActivity();
156 activity.onCreate(null);
157 shadowOf(activity).onStart();
159 Fragment fragment = activity.getSupportFragmentManager().findFragmentById(
161 View button = activity.findViewById(R.id.button);
164 View focusedView = activity.getCurrentFocus();