Searched refs:state (Results 1 - 25 of 5643) sorted by path

1234567891011>>

/external/aac/libAACdec/src/
H A Daacdec_tns.cpp221 // - The state variables of the filter are initialized to zero every time
234 C_ALLOC_SCRATCH_START(state, FIXP_DBL, TNS_MAXIMUM_ORDER);
235 FDKmemclear(state, order*sizeof(FIXP_DBL));
257 FIXP_DBL x, *pState = state; \
323 C_ALLOC_SCRATCH_END(state, FIXP_DBL, TNS_MAXIMUM_ORDER);
H A Dconceal.cpp442 /* set confort noise level which will be inserted while in state 'muting' */
540 \brief Get state of concealment module.
544 \return Concealment state.
551 CConcealmentState state = ConcealState_Ok; local
554 state = pConcealChannelInfo->concealState;
557 return (state);
761 /* hand current frame status to the state machine */
1211 /* scale spectrum according to concealment state */
1499 \brief Update the concealment state
1501 The function updates the state o
[all...]
/external/antlr/antlr-3.4/antlr3-maven-archetype/src/main/resources/archetype-resources/src/main/java/
H A DAbstractTLexer.java48 * @param state The shared state object, shared between all lexer comonents
50 public AbstractTLexer(CharStream input, RecognizerSharedState state) { argument
51 super(input,state);
H A DAbstractTParser.java35 * and the shared state.
41 * @param state The shared state object created by an interconnectd grammar
43 protected AbstractTParser(TokenStream input, RecognizerSharedState state) { argument
44 super(input, state);
/external/antlr/antlr-3.4/lib/
H A Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/antlr/analysis/ org/antlr/codegen/ org/ ...
/external/antlr/antlr-3.4/runtime/ActionScript/project/lib/
H A DFlexAntTasks.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/adobe/ com/adobe/ac/ com/adobe/ac/ant/ ...
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
H A DANTLRStringStream.as49 /** A list of CharStreamState objects that tracks the stream state
72 /** Reset the stream so that it's in the same state it was
133 var state:CharStreamState = null;
135 state = new CharStreamState();
136 markers.push(state);
139 state = CharStreamState(markers[markDepth]);
141 state.p = p;
142 state.line = _line;
143 state.charPositionInLine = _charPositionInLine;
149 var state
[all...]
H A DBaseRecognizer.as19 /** State of a lexer, parser, or tree parser are collected into a state
20 * object so the state can be shared. This sharing is needed to
22 * and other state variables. It's a kind of explicit multiple
23 * inheritance via delegation of methods and shared state.
26 public var state:RecognizerSharedState; // TODO - Place in private Namespace - cannot be private variable
28 public function BaseRecognizer(state:RecognizerSharedState = null) {
29 if ( state == null ) { // don't ever let us have a null state
30 state = new RecognizerSharedState();
32 this.state
[all...]
H A DDFA.as5 * Any state that has a semantic predicate edge is special; those states
70 if ( debug ) trace("DFA "+decisionNumber+" state "+s+" LA(1)="+String.fromCharCode(input.LA(1))+"("+input.LA(1)+
76 " state "+s+" is special state "+specialState);
81 " returns from special state "+specialState+" to "+s);
91 if ( debug ) trace("accept; predict "+accept[s]+" from state "+s);
97 var snext:int = transition[s][c-min[s]]; // move to next state
102 // state.
103 if ( eot[s]>=0 ) { // EOT Transition to accept state?
127 if ( c==TokenConstants.EOF && eof[s]>=0 ) { // EOF Transition to accept state
[all...]
H A DLexer.as39 public function Lexer(input:CharStream = null, state:RecognizerSharedState = null) {
40 super(state);
45 super.reset(); // reset all recognizer state variables
46 // wack Lexer state variables
50 if ( state==null ) {
51 return; // no shared state work to do
53 state.token = null;
54 state.type = TokenConstants.INVALID_TOKEN_TYPE;
55 state.channel = TokenConstants.DEFAULT_CHANNEL;
56 state
[all...]
H A DParser.as37 public function Parser(input:TokenStream, state:RecognizerSharedState = null) {
38 super(state);
43 super.reset(); // reset all recognizer state variables
H A DRecognizerSharedState.as4 * and recover from errors etc... As a separate state object, it can be
7 * These fields are publically visible but the actual state pointer per
55 // LEXER FIELDS (must be in same state object to avoid casting
H A DTokenRewriteStream.as231 var state:RewriteState = new RewriteState();
232 state.tokens = tokens;
245 state.buf += t.text;
249 i = op.execute(state); // execute operation and skip
261 if ( op.index >= tokens.length-1 ) state.buf += op.text;
265 return state.buf;
457 public function execute(state:RewriteState):int {
467 public override function execute(state:RewriteState):int {
468 state.buf += text;
469 state
[all...]
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/
H A DTreeParser.as41 public function TreeParser(input:TreeNodeStream, state:RecognizerSharedState = null) {
42 super(state);
47 super.reset(); // reset all recognizer state variables
84 state.errorRecovery = false;
85 state.failed = false;
/external/antlr/antlr-3.4/runtime/C/include/
H A Dantlr3baserecognizer.h88 /// A pointer to the shared recognizer state, such that multiple
92 pANTLR3_RECOGNIZER_SHARED_STATE state; member in struct:ANTLR3_BASE_RECOGNIZER_struct
H A Dantlr3defs.h541 ANTLR3_API pANTLR3_BASE_RECOGNIZER antlr3BaseRecognizerNew (ANTLR3_UINT32 type, ANTLR3_UINT32 sizeHint, pANTLR3_RECOGNIZER_SHARED_STATE state);
570 ANTLR3_API pANTLR3_LEXER antlr3LexerNewStream (ANTLR3_UINT32 sizeHint, pANTLR3_INPUT_STREAM input, pANTLR3_RECOGNIZER_SHARED_STATE state);
571 ANTLR3_API pANTLR3_LEXER antlr3LexerNew (ANTLR3_UINT32 sizeHint, pANTLR3_RECOGNIZER_SHARED_STATE state);
572 ANTLR3_API pANTLR3_PARSER antlr3ParserNewStreamDbg (ANTLR3_UINT32 sizeHint, pANTLR3_TOKEN_STREAM tstream, pANTLR3_DEBUG_EVENT_LISTENER dbg, pANTLR3_RECOGNIZER_SHARED_STATE state);
573 ANTLR3_API pANTLR3_PARSER antlr3ParserNewStream (ANTLR3_UINT32 sizeHint, pANTLR3_TOKEN_STREAM tstream, pANTLR3_RECOGNIZER_SHARED_STATE state);
574 ANTLR3_API pANTLR3_PARSER antlr3ParserNew (ANTLR3_UINT32 sizeHint, pANTLR3_RECOGNIZER_SHARED_STATE state);
591 ANTLR3_API pANTLR3_TREE_PARSER antlr3TreeParserNewStream (ANTLR3_UINT32 sizeHint, pANTLR3_COMMON_TREE_NODE_STREAM ctnstream, pANTLR3_RECOGNIZER_SHARED_STATE state);
H A Dantlr3exception.h185 ANTLR3_UINT32 state; member in struct:ANTLR3_EXCEPTION_struct
/external/antlr/antlr-3.4/runtime/C/src/
H A Dantlr3baserecognizer.c84 antlr3BaseRecognizerNew(ANTLR3_UINT32 type, ANTLR3_UINT32 sizeHint, pANTLR3_RECOGNIZER_SHARED_STATE state) argument
100 // If we have been supplied with a pre-existing recognizer state
103 if (state == NULL)
105 recognizer->state = (pANTLR3_RECOGNIZER_SHARED_STATE) ANTLR3_CALLOC(1, (size_t)sizeof(ANTLR3_RECOGNIZER_SHARED_STATE));
107 if (recognizer->state == NULL)
113 // Initialize any new recognizer state
115 recognizer->state->errorRecovery = ANTLR3_FALSE;
116 recognizer->state->lastErrorIndex = -1;
117 recognizer->state->failed = ANTLR3_FALSE;
118 recognizer->state
[all...]
H A Dantlr3cyclicdfa.c6 * Any state that has a semantic predicate edge is special; those states
59 if (rec->state->backtracking > 0)
61 rec->state->failed = ANTLR3_TRUE;
66 rec->state->exception->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION;
67 rec->state->exception->message = cdfa->description;
68 rec->state->exception->decisionNum = cdfa->decisionNumber;
69 rec->state->exception->state = s;
87 s = 0; /* Always start with state 0 */
91 /* Pick out any special state entr
[all...]
H A Dantlr3inputstream.c152 input->istream->mark = antlr38BitMark; // Record the current lex state for later restore
447 pANTLR3_LEX_STATE state; local
461 state = ANTLR3_MALLOC(sizeof(ANTLR3_LEX_STATE));
465 input->markers->add(input->markers, state, ANTLR3_FREE_FUNC); /* No special structure, just free() on delete */
469 state = (pANTLR3_LEX_STATE)input->markers->get(input->markers, input->markDepth - 1);
476 /* We have created or retrieved the state, so update it with the current
477 * elements of the lexer state.
479 state->charPositionInLine = input->charPositionInLine;
480 state->currentLine = input->currentLine;
481 state
513 pANTLR3_LEX_STATE state; local
[all...]
H A Dantlr3lexer.c72 antlr3LexerNew(ANTLR3_UINT32 sizeHint, pANTLR3_RECOGNIZER_SHARED_STATE state) argument
88 lexer->rec = antlr3BaseRecognizerNew(ANTLR3_TYPE_LEXER, sizeHint, state);
105 if (lexer->rec->state->tokSource == NULL)
107 lexer->rec->state->tokSource = (pANTLR3_TOKEN_SOURCE)ANTLR3_CALLOC(1, sizeof(ANTLR3_TOKEN_SOURCE));
109 if (lexer->rec->state->tokSource == NULL)
116 lexer->rec->state->tokSource->super = lexer;
121 lexer->rec->state->tokSource->nextToken = nextToken;
122 lexer->rec->state->tokSource->strFactory = NULL;
124 lexer->rec->state->tokFactory = NULL;
149 specialT = &(lexer->rec->state
220 pANTLR3_RECOGNIZER_SHARED_STATE state; local
384 antlr3LexerNewStream(ANTLR3_UINT32 sizeHint, pANTLR3_INPUT_STREAM input, pANTLR3_RECOGNIZER_SHARED_STATE state) argument
[all...]
H A Dantlr3parser.c44 antlr3ParserNewStreamDbg (ANTLR3_UINT32 sizeHint, pANTLR3_TOKEN_STREAM tstream, pANTLR3_DEBUG_EVENT_LISTENER dbg, pANTLR3_RECOGNIZER_SHARED_STATE state) argument
48 parser = antlr3ParserNewStream(sizeHint, tstream, state);
61 antlr3ParserNew (ANTLR3_UINT32 sizeHint, pANTLR3_RECOGNIZER_SHARED_STATE state) argument
76 parser->rec = antlr3BaseRecognizerNew(ANTLR3_TYPE_PARSER, sizeHint, state);
102 antlr3ParserNewStream (ANTLR3_UINT32 sizeHint, pANTLR3_TOKEN_STREAM tstream, pANTLR3_RECOGNIZER_SHARED_STATE state) argument
106 parser = antlr3ParserNew(sizeHint, state);
127 // state may already have been freed (and set to NULL therefore)
128 // so we ignore the state if we don't have it.
130 if (parser->rec->state != NULL)
132 if (parser->rec->state
[all...]
H A Dantlr3rewritestreams.c102 stream->rec->state->rStreams->add(stream->rec->state->rStreams, stream, (void(*)(void *))expungeRS);
171 stream->rec->state->rStreams->add(stream->rec->state->rStreams, stream, (void(*)(void *))expungeRS);
195 if (rec->state->rStreams->count > 0)
200 stream = rec->state->rStreams->remove(rec->state->rStreams, rec->state->rStreams->count - 1);
H A Dantlr3treeparser.c52 antlr3TreeParserNewStream(ANTLR3_UINT32 sizeHint, pANTLR3_COMMON_TREE_NODE_STREAM ctnstream, pANTLR3_RECOGNIZER_SHARED_STATE state) argument
67 parser->rec = antlr3BaseRecognizerNew(ANTLR3_TYPE_PARSER, sizeHint, state);
119 recognizer->state->exception->name = ANTLR3_MISMATCHED_TREE_NODE_NAME;
120 recognizer->state->exception->type = ANTLR3_MISMATCHED_TREE_NODE_EXCEPTION;
132 // state may already have been freed (and set to NULL therefore)
133 // so we ignore the state if we don't have it.
135 if (parser->rec->state != NULL)
137 if (parser->rec->state->following != NULL)
139 parser->rec->state->following->free(parser->rec->state
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
H A DDebugParser.cs55 public DebugParser(ITokenStream input, IDebugEventListener dbg, RecognizerSharedState state) argument
56 : base(input is DebugTokenStream ? input : new DebugTokenStream(input, dbg), state) {
60 public DebugParser(ITokenStream input, RecognizerSharedState state) argument
61 : base(input is DebugTokenStream ? input : new DebugTokenStream(input, null), state) {

Completed in 3806 milliseconds

1234567891011>>