samples/Support4Demos/src/main/java/com/example/android/supportv4/view/inputmethod/CommitContentSupport.java
private static String flagsToString(int flags) {
        final ArrayList<String> tokens = new ArrayList<>();
        if ((flags & InputConnectionCompat.INPUT_CONTENT_GRANT_READ_URI_PERMISSION) != 0) {
            tokens.add("INPUT_CONTENT_GRANT_READ_URI_PERMISSION");
            flags &= ~InputConnectionCompat.INPUT_CONTENT_GRANT_READ_URI_PERMISSION;
        }
        if (flags != 0) {
            tokens.add("0x" + Integer.toHexString(flags));
        }
        return TextUtils.join(" | ", tokens);
    }
/**
     * Converts {@code flags} specified in {@link InputConnectionCompat#commitContent(
     *InputConnection, EditorInfo, InputContentInfoCompat, int, Bundle)} to a human readable
     * string.
     *
     * @param flags the 2nd parameter of
     *              {@link InputConnectionCompat#commitContent(InputConnection, EditorInfo,
     *              InputContentInfoCompat, int, Bundle)}
     * @return a human readable string that corresponds to the given {@code flags}
     */
Converts  flags specified in {@link InputConnectionCompat#commitContent(
InputConnection, EditorInfo, InputContentInfoCompat, int, Bundle)} to a human readable
string.

@param flags the 2nd parameter of
{@link InputConnectionCompat#commitContent(InputConnection, EditorInfo,
InputContentInfoCompat, int, Bundle)}
@return a human readable string that corresponds to the given  flags
Converts flags specified in { @link InputConnectionCompat#commitContent ( InputConnection EditorInfo InputContentInfoCompat int Bundle ) } to a human readable string . @param flags the 2nd parameter of { @link InputConnectionCompat#commitContent ( InputConnection EditorInfo InputContentInfoCompat int Bundle ) } @return a human readable string that corresponds to the given flags
private static String flagsToString(int flags) {
        final ArrayList<String> tokens = new ArrayList<>();
        if ((flags & InputConnectionCompat.INPUT_CONTENT_GRANT_READ_URI_PERMISSION) != 0) {
            tokens.add("INPUT_CONTENT_GRANT_READ_URI_PERMISSION");
            flags &= ~InputConnectionCompat.INPUT_CONTENT_GRANT_READ_URI_PERMISSION;
        }
        if (flags != 0) {
            tokens.add("0x" + Integer.toHexString(flags));
        }
        return TextUtils.join(" | ", tokens);
    }
private static String flagsToString ( int flags ) { final ArrayList < String > tokens = new ArrayList < > ( ) ; if ( ( flags & InputConnectionCompat . INPUT_CONTENT_GRANT_READ_URI_PERMISSION ) != 0 ) { tokens . add ( "INPUT_CONTENT_GRANT_READ_URI_PERMISSION" ) ; flags &= ~ InputConnectionCompat . INPUT_CONTENT_GRANT_READ_URI_PERMISSION ; } if ( flags != 0 ) { tokens . add ( "0x" + Integer . toHexString ( flags ) ) ; } return TextUtils . join ( " | " , tokens ) ; }
Converts {@code flags} specified in {@link InputConnectionCompat#commitContent(
InputConnection, EditorInfo, InputContentInfoCompat, int, Bundle)} to a human readable
 string.
Converts { @code flags } specified in { @link InputConnectionCompat#commitContent ( InputConnection EditorInfo InputContentInfoCompat int Bundle ) } to a human readable string .