fragment/src/main/java/androidx/fragment/app/Fragment.java
public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) {
        writer.print(prefix); writer.print("mFragmentId=#");
                writer.print(Integer.toHexString(mFragmentId));
                writer.print(" mContainerId=#");
                writer.print(Integer.toHexString(mContainerId));
                writer.print(" mTag="); writer.println(mTag);
        writer.print(prefix); writer.print("mState="); writer.print(mState);
                writer.print(" mIndex="); writer.print(mIndex);
                writer.print(" mWho="); writer.print(mWho);
                writer.print(" mBackStackNesting="); writer.println(mBackStackNesting);
        writer.print(prefix); writer.print("mAdded="); writer.print(mAdded);
                writer.print(" mRemoving="); writer.print(mRemoving);
                writer.print(" mFromLayout="); writer.print(mFromLayout);
                writer.print(" mInLayout="); writer.println(mInLayout);
        writer.print(prefix); writer.print("mHidden="); writer.print(mHidden);
                writer.print(" mDetached="); writer.print(mDetached);
                writer.print(" mMenuVisible="); writer.print(mMenuVisible);
                writer.print(" mHasMenu="); writer.println(mHasMenu);
        writer.print(prefix); writer.print("mRetainInstance="); writer.print(mRetainInstance);
                writer.print(" mRetaining="); writer.print(mRetaining);
                writer.print(" mUserVisibleHint="); writer.println(mUserVisibleHint);
        if (mFragmentManager != null) {
            writer.print(prefix); writer.print("mFragmentManager=");
                    writer.println(mFragmentManager);
        }
        if (mHost != null) {
            writer.print(prefix); writer.print("mHost=");
                    writer.println(mHost);
        }
        if (mParentFragment != null) {
            writer.print(prefix); writer.print("mParentFragment=");
                    writer.println(mParentFragment);
        }
        if (mArguments != null) {
            writer.print(prefix); writer.print("mArguments="); writer.println(mArguments);
        }
        if (mSavedFragmentState != null) {
            writer.print(prefix); writer.print("mSavedFragmentState=");
                    writer.println(mSavedFragmentState);
        }
        if (mSavedViewState != null) {
            writer.print(prefix); writer.print("mSavedViewState=");
                    writer.println(mSavedViewState);
        }
        if (mTarget != null) {
            writer.print(prefix); writer.print("mTarget="); writer.print(mTarget);
                    writer.print(" mTargetRequestCode=");
                    writer.println(mTargetRequestCode);
        }
        if (getNextAnim() != 0) {
            writer.print(prefix); writer.print("mNextAnim="); writer.println(getNextAnim());
        }
        if (mContainer != null) {
            writer.print(prefix); writer.print("mContainer="); writer.println(mContainer);
        }
        if (mView != null) {
            writer.print(prefix); writer.print("mView="); writer.println(mView);
        }
        if (mInnerView != null) {
            writer.print(prefix); writer.print("mInnerView="); writer.println(mView);
        }
        if (getAnimatingAway() != null) {
            writer.print(prefix);
            writer.print("mAnimatingAway=");
            writer.println(getAnimatingAway());
            writer.print(prefix);
            writer.print("mStateAfterAnimating=");
            writer.println(getStateAfterAnimating());
        }
        LoaderManager.getInstance(this).dump(prefix, fd, writer, args);
        if (mChildFragmentManager != null) {
            writer.print(prefix); writer.println("Child " + mChildFragmentManager + ":");
            mChildFragmentManager.dump(prefix + "  ", fd, writer, args);
        }
    }
/**
     * Print the Fragments's state into the given stream.
     *
     * @param prefix Text to print at the front of each line.
     * @param fd The raw file descriptor that the dump is being sent to.
     * @param writer The PrintWriter to which you should dump your state.  This will be
     * closed for you after you return.
     * @param args additional arguments to the dump request.
     */
Print the Fragments's state into the given stream.
@param prefix Text to print at the front of each line.
@param fd The raw file descriptor that the dump is being sent to.
@param writer The PrintWriter to which you should dump your state.  This will be
closed for you after you return.
@param args additional arguments to the dump request.
Print the Fragments ' s state into the given stream . @param prefix Text to print at the front of each line . @param fd The raw file descriptor that the dump is being sent to . @param writer The PrintWriter to which you should dump your state . This will be closed for you after you return . @param args additional arguments to the dump request .
public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) {
        writer.print(prefix); writer.print("mFragmentId=#");
                writer.print(Integer.toHexString(mFragmentId));
                writer.print(" mContainerId=#");
                writer.print(Integer.toHexString(mContainerId));
                writer.print(" mTag="); writer.println(mTag);
        writer.print(prefix); writer.print("mState="); writer.print(mState);
                writer.print(" mIndex="); writer.print(mIndex);
                writer.print(" mWho="); writer.print(mWho);
                writer.print(" mBackStackNesting="); writer.println(mBackStackNesting);
        writer.print(prefix); writer.print("mAdded="); writer.print(mAdded);
                writer.print(" mRemoving="); writer.print(mRemoving);
                writer.print(" mFromLayout="); writer.print(mFromLayout);
                writer.print(" mInLayout="); writer.println(mInLayout);
        writer.print(prefix); writer.print("mHidden="); writer.print(mHidden);
                writer.print(" mDetached="); writer.print(mDetached);
                writer.print(" mMenuVisible="); writer.print(mMenuVisible);
                writer.print(" mHasMenu="); writer.println(mHasMenu);
        writer.print(prefix); writer.print("mRetainInstance="); writer.print(mRetainInstance);
                writer.print(" mRetaining="); writer.print(mRetaining);
                writer.print(" mUserVisibleHint="); writer.println(mUserVisibleHint);
        if (mFragmentManager != null) {
            writer.print(prefix); writer.print("mFragmentManager=");
                    writer.println(mFragmentManager);
        }
        if (mHost != null) {
            writer.print(prefix); writer.print("mHost=");
                    writer.println(mHost);
        }
        if (mParentFragment != null) {
            writer.print(prefix); writer.print("mParentFragment=");
                    writer.println(mParentFragment);
        }
        if (mArguments != null) {
            writer.print(prefix); writer.print("mArguments="); writer.println(mArguments);
        }
        if (mSavedFragmentState != null) {
            writer.print(prefix); writer.print("mSavedFragmentState=");
                    writer.println(mSavedFragmentState);
        }
        if (mSavedViewState != null) {
            writer.print(prefix); writer.print("mSavedViewState=");
                    writer.println(mSavedViewState);
        }
        if (mTarget != null) {
            writer.print(prefix); writer.print("mTarget="); writer.print(mTarget);
                    writer.print(" mTargetRequestCode=");
                    writer.println(mTargetRequestCode);
        }
        if (getNextAnim() != 0) {
            writer.print(prefix); writer.print("mNextAnim="); writer.println(getNextAnim());
        }
        if (mContainer != null) {
            writer.print(prefix); writer.print("mContainer="); writer.println(mContainer);
        }
        if (mView != null) {
            writer.print(prefix); writer.print("mView="); writer.println(mView);
        }
        if (mInnerView != null) {
            writer.print(prefix); writer.print("mInnerView="); writer.println(mView);
        }
        if (getAnimatingAway() != null) {
            writer.print(prefix);
            writer.print("mAnimatingAway=");
            writer.println(getAnimatingAway());
            writer.print(prefix);
            writer.print("mStateAfterAnimating=");
            writer.println(getStateAfterAnimating());
        }
        LoaderManager.getInstance(this).dump(prefix, fd, writer, args);
        if (mChildFragmentManager != null) {
            writer.print(prefix); writer.println("Child " + mChildFragmentManager + ":");
            mChildFragmentManager.dump(prefix + "  ", fd, writer, args);
        }
    }
public void dump ( String prefix , FileDescriptor fd , PrintWriter writer , String [ ] args ) { writer . print ( prefix ) ; writer . print ( "mFragmentId=#" ) ; writer . print ( Integer . toHexString ( mFragmentId ) ) ; writer . print ( " mContainerId=#" ) ; writer . print ( Integer . toHexString ( mContainerId ) ) ; writer . print ( " mTag=" ) ; writer . println ( mTag ) ; writer . print ( prefix ) ; writer . print ( "mState=" ) ; writer . print ( mState ) ; writer . print ( " mIndex=" ) ; writer . print ( mIndex ) ; writer . print ( " mWho=" ) ; writer . print ( mWho ) ; writer . print ( " mBackStackNesting=" ) ; writer . println ( mBackStackNesting ) ; writer . print ( prefix ) ; writer . print ( "mAdded=" ) ; writer . print ( mAdded ) ; writer . print ( " mRemoving=" ) ; writer . print ( mRemoving ) ; writer . print ( " mFromLayout=" ) ; writer . print ( mFromLayout ) ; writer . print ( " mInLayout=" ) ; writer . println ( mInLayout ) ; writer . print ( prefix ) ; writer . print ( "mHidden=" ) ; writer . print ( mHidden ) ; writer . print ( " mDetached=" ) ; writer . print ( mDetached ) ; writer . print ( " mMenuVisible=" ) ; writer . print ( mMenuVisible ) ; writer . print ( " mHasMenu=" ) ; writer . println ( mHasMenu ) ; writer . print ( prefix ) ; writer . print ( "mRetainInstance=" ) ; writer . print ( mRetainInstance ) ; writer . print ( " mRetaining=" ) ; writer . print ( mRetaining ) ; writer . print ( " mUserVisibleHint=" ) ; writer . println ( mUserVisibleHint ) ; if ( mFragmentManager != null ) { writer . print ( prefix ) ; writer . print ( "mFragmentManager=" ) ; writer . println ( mFragmentManager ) ; } if ( mHost != null ) { writer . print ( prefix ) ; writer . print ( "mHost=" ) ; writer . println ( mHost ) ; } if ( mParentFragment != null ) { writer . print ( prefix ) ; writer . print ( "mParentFragment=" ) ; writer . println ( mParentFragment ) ; } if ( mArguments != null ) { writer . print ( prefix ) ; writer . print ( "mArguments=" ) ; writer . println ( mArguments ) ; } if ( mSavedFragmentState != null ) { writer . print ( prefix ) ; writer . print ( "mSavedFragmentState=" ) ; writer . println ( mSavedFragmentState ) ; } if ( mSavedViewState != null ) { writer . print ( prefix ) ; writer . print ( "mSavedViewState=" ) ; writer . println ( mSavedViewState ) ; } if ( mTarget != null ) { writer . print ( prefix ) ; writer . print ( "mTarget=" ) ; writer . print ( mTarget ) ; writer . print ( " mTargetRequestCode=" ) ; writer . println ( mTargetRequestCode ) ; } if ( getNextAnim ( ) != 0 ) { writer . print ( prefix ) ; writer . print ( "mNextAnim=" ) ; writer . println ( getNextAnim ( ) ) ; } if ( mContainer != null ) { writer . print ( prefix ) ; writer . print ( "mContainer=" ) ; writer . println ( mContainer ) ; } if ( mView != null ) { writer . print ( prefix ) ; writer . print ( "mView=" ) ; writer . println ( mView ) ; } if ( mInnerView != null ) { writer . print ( prefix ) ; writer . print ( "mInnerView=" ) ; writer . println ( mView ) ; } if ( getAnimatingAway ( ) != null ) { writer . print ( prefix ) ; writer . print ( "mAnimatingAway=" ) ; writer . println ( getAnimatingAway ( ) ) ; writer . print ( prefix ) ; writer . print ( "mStateAfterAnimating=" ) ; writer . println ( getStateAfterAnimating ( ) ) ; } LoaderManager . getInstance ( this ) . dump ( prefix , fd , writer , args ) ; if ( mChildFragmentManager != null ) { writer . print ( prefix ) ; writer . println ( "Child " + mChildFragmentManager + ":" ) ; mChildFragmentManager . dump ( prefix + "  " , fd , writer , args ) ; } }
Print the Fragments's state into the given stream.
Print the Fragments ' s state into the given stream .