Lines Matching refs:fragment

52  * <p>Very often, we need to access the car activity inside a fragment, by calling
53 * (CarActivity) fragment.getHost(), so we cannot directly use fragments inside
109 public void setContentFragment(Fragment fragment, int containerId) {
111 .replace(containerId, fragment)
120 * Dispatch incoming result to the correct fragment.
130 Log.w(TAG, "Activity result fragment index out of range: 0x"
138 Log.w(TAG, "Activity result no fragment exists for index: 0x"
152 public void startActivityFromFragment(Fragment fragment, Intent intent,
162 ((getFragmentIndex(fragment)+1)<<16) + (requestCode&0xffff));
178 * Take care of popping the fragment back stack or finishing the activity
257 if (!"fragment".equals(name)) {
304 * Handle onNewIntent() to inform the fragment manager that the
306 * making changes to the fragment state, you want to be sure to call
310 * perform fragment operations at that point will throw IllegalStateException
311 * because the fragment manager thinks the state is still saved.
320 * Hook in to note that fragment state is no longer saved.
331 * fragment transactions that modify the state. To correctly interact
355 * This is the fragment-orientated version of {@link #onResume()} that you
365 * Retain all appropriate fragment and loader state. You can NOT
392 * Save all appropriate fragment state.
611 * Returns the index of a fragment inside {@link #mFragments}.
635 // We use 8 bits of the request code to encode the fragment id when
636 // requesting permissions from a fragment. Hence, requestPermissions()
673 Log.w(TAG, "Activity result fragment index out of range: 0x"
681 Log.w(TAG, "Activity result no fragment exists for index: 0x"
692 private void requestPermissionsFromFragment(Fragment fragment, String[] permissions,
704 ((getFragmentIndex(fragment) + 1) << 8) + (requestCode & 0xff));
726 public boolean onShouldSaveFragmentState(Fragment fragment) {
737 public void onStartActivityFromFragment(Fragment fragment, Intent intent, int requestCode) {
738 CarFragmentActivity.this.startActivityFromFragment(fragment, intent, requestCode);
742 public void onRequestPermissionsFromFragment(@NonNull Fragment fragment,
744 CarFragmentActivity.this.requestPermissionsFromFragment(fragment,