parameters: (initial_params, context, kind, bit)
return_statement: return params
docstring: Appends standard parameters shared between encode and decode calls.
docstring_summary: Appends standard parameters shared between encode and decode calls.
docstring_tokens: Appends standard parameters shared between encode and decode calls .
function: def AppendEncodeDecodeParams(initial_params, context, kind, bit):
    """ Appends standard parameters shared between encode and decode calls. """
    params = list(initial_params)
    if (kind == mojom.BOOL):
      params.append(str(bit))
    if mojom.IsReferenceKind(kind):
      if mojom.IsArrayKind(kind):
        params.append(GetArrayNullabilityFlags(kind))
      else:
        params.append(GetJavaTrueFalse(mojom.IsNullableKind(kind)))
    if mojom.IsArrayKind(kind):
      params.append(GetArrayExpectedLength(kind))
    if mojom.IsInterfaceKind(kind):
      params.append('%s.MANAGER' % GetJavaType(context, kind))
    if mojom.IsPendingRemoteKind(kind):
      params.append('%s.MANAGER' % GetJavaType(context, kind.kind))
    if mojom.IsArrayKind(kind) and mojom.IsInterfaceKind(kind.kind):
      params.append('%s.MANAGER' % GetJavaType(context, kind.kind))
    if mojom.IsArrayKind(kind) and mojom.IsPendingRemoteKind(kind.kind):
      params.append('%s.MANAGER' % GetJavaType(context, kind.kind.kind))
    return params
function_tokens: def AppendEncodeDecodeParams ( initial_params , context , kind , bit ) : params = list ( initial_params ) if ( kind == mojom . BOOL ) : params . append ( str ( bit ) ) if mojom . IsReferenceKind ( kind ) : if mojom . IsArrayKind ( kind ) : params . append ( GetArrayNullabilityFlags ( kind ) ) else : params . append ( GetJavaTrueFalse ( mojom . IsNullableKind ( kind ) ) ) if mojom . IsArrayKind ( kind ) : params . append ( GetArrayExpectedLength ( kind ) ) if mojom . IsInterfaceKind ( kind ) : params . append ( '%s.MANAGER' % GetJavaType ( context , kind ) ) if mojom . IsPendingRemoteKind ( kind ) : params . append ( '%s.MANAGER' % GetJavaType ( context , kind . kind ) ) if mojom . IsArrayKind ( kind ) and mojom . IsInterfaceKind ( kind . kind ) : params . append ( '%s.MANAGER' % GetJavaType ( context , kind . kind ) ) if mojom . IsArrayKind ( kind ) and mojom . IsPendingRemoteKind ( kind . kind ) : params . append ( '%s.MANAGER' % GetJavaType ( context , kind . kind . kind ) ) return params