/external/aac/libAACdec/src/ |
H A D | aacdec_hcrs.cpp | 110 static INT ModuloValue(INT input, INT bufferlength); 450 description: This function returns the input value if the value is in the 451 range of bufferlength. If <input> is smaller, one bufferlength is added, 452 if <input> is bigger one bufferlength is subtracted. 456 static INT ModuloValue(INT input, INT bufferlength) argument 458 if ( input > (bufferlength - 1) ) { 459 return (input - bufferlength); 461 if ( input < 0 ) { 462 return (input + bufferlength); 464 return input; [all...] |
/external/aac/libSBRenc/src/ |
H A D | ps_encode.cpp | 213 static FIXP_DBL quantizeCoef( const FIXP_DBL *RESTRICT input, argument 225 if( fixp_abs((input[band]>>1)-(quantTable[idx+1]>>1)) > 226 fixp_abs((input[band]>>1)-(quantTable[idx]>>1)) ) 231 quantErr += (fixp_abs(input[band]-quantTable[idx])>>PS_QUANT_SCALE); /* don't scale before subtraction; diff smaller (64-25)/64 */ 578 FIXP_DBL icc[PS_MAX_ENVELOPES][PS_MAX_BANDS], /* const input values: unable to declare as const, since it does not poINT to const memory */
|
H A D | resampler.cpp | 110 int Wc; /*! normalized passband bandwidth at input samplerate * 1000 */ 112 int delay; /*! delay in samples at input samplerate */ 355 INT_PCM *pInput, /*!< input of filter */ 370 FIXP_DBL input; local 382 input = ((FIXP_DBL)pInput[n*inStride]) << (DFRACT_BITS-SAMPLE_BITS-BIQUAD_SCALE); 384 input = pInput[n*inStride] >> BIQUAD_SCALE; 405 state0 = input + fMult(state1, coeff[B1]) + fMult(state2, coeff[B2]); 411 states[i][s2] = input<<1; 414 input = y; 440 state0 = input [all...] |
/external/ant-glob/src/org/apache/tools/ant/types/selectors/ |
H A D | SelectorUtils.java | 624 * @param input a String to remove all whitespace. 627 public static String removeWhitespace(String input) { argument 629 if (input != null) { 630 StringTokenizer st = new StringTokenizer(input); 640 * @param input a String which one wants to test for containing wildcard 643 public static boolean hasWildcards(String input) { argument 644 return (input.indexOf('*') != -1 || input.indexOf('?') != -1);
|
/external/antlr/antlr-3.4/antlr3-maven-archetype/src/main/resources/archetype-resources/src/main/java/ |
H A D | AbstractTLexer.java | 35 * the input to lex into tokens. 37 * @param input A valid character stream that contains the ruleSrc code you 40 public AbstractTLexer(CharStream input) { argument 41 this(input, new RecognizerSharedState()); 47 * @param input The character stream we are going to lex 50 public AbstractTLexer(CharStream input, RecognizerSharedState state) { argument 51 super(input,state);
|
H A D | AbstractTParser.java | 25 * Create a new parser instance, pre-supplying the input token stream. 27 * @param input The stream of tokens that will be pulled from the lexer 29 protected AbstractTParser(TokenStream input) { argument 30 super(input); 34 * Create a new parser instance, pre-supplying the input token stream 40 * @param input The stream of tokesn that will be pulled from the lexer 43 protected AbstractTParser(TokenStream input, RecognizerSharedState state) { argument 44 super(input, state);
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/ |
H A D | Interp.java | 44 CharStream input = null; 45 /** If the input source is a testsuite file, where is it? */ 52 input = new ANTLRFileStream(gunitFile); 57 input = new ANTLRInputStream(System.in); 59 GrammarInfo grammarInfo = parse(input); 67 input = new ANTLRFileStream(gunitFile); 72 input = new ANTLRInputStream(System.in); 74 gUnitExecutor executer = new gUnitExecutor(parse(input), testsuiteDir); 99 public static GrammarInfo parse(CharStream input) throws RecognitionException { argument 100 gUnitLexer lexer = new gUnitLexer(input); [all...] |
H A D | gUnitExecutor.java | 164 private gUnitTestResult runCorrectParser(String parserName, String lexerName, String rule, String lexicalRule, String treeRule, gUnitTestInput input) throws Exception argument 166 if ( lexicalRule!=null ) return runLexer(lexerName, lexicalRule, input); 167 else if ( treeRule!=null ) return runTreeParser(parserName, lexerName, rule, treeRule, input); 168 else return runParser(parserName, lexerName, rule, input); 176 for ( gUnitTestInput input: ts.testSuites.keySet() ) { // each rule may contain multiple tests 180 AbstractTest test = ts.testSuites.get(input); 183 //System.out.print(numOfTest + ". Running rule: " + rule + "; input: '" + input.testInput + "'"); 184 result = runCorrectParser(parserName, lexerName, rule, lexicalRule, treeRule, input); 189 test.setHeader(rule, lexicalRule, treeRule, numOfTest, input [all...] |
H A D | gUnitTestInput.java | 30 /** A class which contains input information of an individual testuite */ 32 public String input; // a test input string for a testsuite field in class:gUnitTestInput 33 public boolean isFile; // if true, the input represents a filename 36 public gUnitTestInput(String input, boolean isFile, int line) { argument 37 this.input = input; 43 return JUnitCodeGen.escapeForJava(input);
|
H A D | gUnitTestSuite.java | 40 /** A map which stores input/output pairs (individual testsuites). 41 * In other words, it maps input data for unit test (gUnitTestInput object) 67 public void addTestCase(gUnitTestInput input, AbstractTest expect) { argument 68 if ( input!=null && expect!=null ) { 76 this.testSuites.put(input, expect);
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/ |
H A D | AbstractInputEditor.java | 41 protected ITestCaseInput input; field in class:AbstractInputEditor 42 public void setInput(ITestCaseInput input) { argument 43 this.input = input;
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/ |
H A D | TestCase.java | 32 private ITestCaseInput input; field in class:TestCase 45 return this.input; 52 public TestCase(ITestCaseInput input, ITestCaseOutput output) { argument 53 this.input = input; 59 return String.format("[%s]->[%s]", input.getScript(), output.getScript()); 63 this.input = in; 70 public static String convertPreservedChars(String input) { argument 71 //return input.replace("\"", "\\\""); 72 return input; [all...] |
/external/antlr/antlr-3.4/lib/ |
H A D | antlr-3.4-complete.jar | META-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 D | FlexAntTasks.jar | META-INF/ META-INF/MANIFEST.MF com/ com/adobe/ com/adobe/ac/ com/adobe/ac/ant/ ... |
/external/antlr/antlr-3.4/runtime/C/include/ |
H A D | antlr3commontoken.h | 125 /** The line number in the input stream where this token was derived from 129 /** The offset into the input stream that the line in which this 142 /** Pointer to the input stream that this token originated in. 144 pANTLR3_INPUT_STREAM input; member in struct:ANTLR3_COMMON_TOKEN_struct 150 /** The character offset in the input stream where the text for this token 155 /** The character offset in the input stream where the text for this token 229 * strings associated with them but just point into the current input stream. These 238 * strings associated with them but just point into the current input stream. These 278 * input stream. 283 * input strea 342 pANTLR3_INPUT_STREAM input; member in struct:ANTLR3_TOKEN_FACTORY_struct [all...] |
H A D | antlr3exception.h | 40 * in the input that was not predicted. 57 /** Recognizer could not find a valid alternative from the input 130 /** Name of the file/input source for reporting. Note that this may be NULL!! 145 * all input streams will be able to retrieve the nth token, we track it here 195 /** Pointer to the input stream that this exception occurred in. 197 pANTLR3_INT_STREAM input; member in struct:ANTLR3_EXCEPTION_struct
|
H A D | antlr3lexer.h | 11 * A lexer class contains a character input stream, a base recognizer interface 21 * - Create a lexer interface and tell it where it its input stream is. 94 * the input stream as per the java implementation. 96 pANTLR3_INPUT_STREAM input; member in struct:ANTLR3_LEXER_struct 110 void (*setCharStream) (struct ANTLR3_LEXER_struct * lexer, pANTLR3_INPUT_STREAM input); 112 /** Pointer to a function that switches the current character input stream to 116 void (*pushCharStream) (struct ANTLR3_LEXER_struct * lexer, pANTLR3_INPUT_STREAM input); 118 /** Pointer to a function that abandons the current input stream, whether it 119 * is empty or not and reverts to the previous stacked input stream. 135 * pANTLR3_TOKEN_SOURCE. Note that the input paramete [all...] |
/external/antlr/antlr-3.4/runtime/C/src/ |
H A D | antlr3commontoken.c | 63 static void setInputStream (pANTLR3_TOKEN_FACTORY factory, pANTLR3_INPUT_STREAM input); 92 antlr3TokenFactoryNew(pANTLR3_INPUT_STREAM input) argument 130 setInputStream(factory, input); 137 setInputStream (pANTLR3_TOKEN_FACTORY factory, pANTLR3_INPUT_STREAM input) argument 139 factory->input = input; 140 factory->unTruc.input = input; 141 if (input != NULL) 143 factory->unTruc.strFactory = input [all...] |
H A D | antlr3filestream.c | 3 * is a filesystem based input set and all the characters in the filestream 7 * sets can be supported from input files. The ANTLR3 C runtime expects 49 static void setupInputStream (pANTLR3_INPUT_STREAM input); 56 pANTLR3_INPUT_STREAM input; local 63 input = antlr3CreateFileStream(fileName); 64 if (input == NULL) 72 input->encoding = encoding; 77 setupInputStream(input); 81 input->istream->streamName = input 91 pANTLR3_INPUT_STREAM input; local 130 setupInputStream(pANTLR3_INPUT_STREAM input) argument 312 pANTLR3_INPUT_STREAM input; local 353 antlr3read8Bit(pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 fileName) argument 446 pANTLR3_INPUT_STREAM input; local [all...] |
H A D | antlr3inputstream.c | 2 /// Base functions to initialize and manipulate any input stream 37 // Generic 8 bit input such as latin-1 55 static void antlr3InputClose (pANTLR3_INPUT_STREAM input); 56 static void antlr3InputReset (pANTLR3_INPUT_STREAM input); 57 static void antlr38BitReuse (pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 inString, ANTLR3_UINT32 size, pANTLR3_UINT8 name); 58 static void * antlr38BitLT (pANTLR3_INPUT_STREAM input, ANTLR3_INT32 lt); 59 static ANTLR3_UINT32 antlr38BitSize (pANTLR3_INPUT_STREAM input); 60 static pANTLR3_STRING antlr38BitSubstr (pANTLR3_INPUT_STREAM input, ANTLR3_MARKER start, ANTLR3_MARKER stop); 61 static ANTLR3_UINT32 antlr38BitGetLine (pANTLR3_INPUT_STREAM input); 62 static void * antlr38BitGetLineBuf (pANTLR3_INPUT_STREAM input); 125 antlr38BitSetupStream(pANTLR3_INPUT_STREAM input) argument 136 antlr3GenericSetupStream(pANTLR3_INPUT_STREAM input) argument 203 antlr3InputClose(pANTLR3_INPUT_STREAM input) argument 239 antlr38BitSetUcaseLA(pANTLR3_INPUT_STREAM input, ANTLR3_BOOLEAN flag) argument 261 antlr3InputReset(pANTLR3_INPUT_STREAM input) argument 288 antlr38BitReuse(pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 inString, ANTLR3_UINT32 size, pANTLR3_UINT8 name) argument 317 pANTLR3_INPUT_STREAM input; local 352 pANTLR3_INPUT_STREAM input; local 379 pANTLR3_INPUT_STREAM input; local 402 antlr38BitLT(pANTLR3_INPUT_STREAM input, ANTLR3_INT32 lt) argument 418 pANTLR3_INPUT_STREAM input; local 433 antlr38BitSize(pANTLR3_INPUT_STREAM input) argument 448 pANTLR3_INPUT_STREAM input; local 514 pANTLR3_INPUT_STREAM input; local 552 pANTLR3_INPUT_STREAM input; local 573 pANTLR3_INPUT_STREAM input; local 603 antlr38BitSubstr(pANTLR3_INPUT_STREAM input, ANTLR3_MARKER start, ANTLR3_MARKER stop) argument 614 antlr38BitGetLine(pANTLR3_INPUT_STREAM input) argument 626 antlr38BitGetLineBuf(pANTLR3_INPUT_STREAM input) argument 637 antlr38BitGetCharPosition(pANTLR3_INPUT_STREAM input) argument 654 antlr38BitSetLine(pANTLR3_INPUT_STREAM input, ANTLR3_UINT32 line) argument 669 antlr38BitSetCharPosition(pANTLR3_INPUT_STREAM input, ANTLR3_UINT32 position) argument 685 antlr38BitSetNewLineChar(pANTLR3_INPUT_STREAM input, ANTLR3_UINT32 newlineChar) argument 702 antlr3UTF16SetupStream(pANTLR3_INPUT_STREAM input, ANTLR3_BOOLEAN machineBigEndian, ANTLR3_BOOLEAN inputBigEndian) argument 780 pANTLR3_INPUT_STREAM input; local 859 pANTLR3_INPUT_STREAM input; local 998 pANTLR3_INPUT_STREAM input; local 1015 pANTLR3_INPUT_STREAM input; local 1046 antlr3UTF16Substr(pANTLR3_INPUT_STREAM input, ANTLR3_MARKER start, ANTLR3_MARKER stop) argument 1062 pANTLR3_INPUT_STREAM input; local 1139 pANTLR3_INPUT_STREAM input; local 1281 pANTLR3_INPUT_STREAM input; local 1360 pANTLR3_INPUT_STREAM input; local 1500 antlr3UTF32SetupStream(pANTLR3_INPUT_STREAM input, ANTLR3_BOOLEAN machineBigEndian, ANTLR3_BOOLEAN inputBigEndian) argument 1572 pANTLR3_INPUT_STREAM input; local 1605 pANTLR3_INPUT_STREAM input; local 1620 antlr3UTF32Substr(pANTLR3_INPUT_STREAM input, ANTLR3_MARKER start, ANTLR3_MARKER stop) argument 1635 pANTLR3_INPUT_STREAM input; local 1669 pANTLR3_INPUT_STREAM input; local 1693 pANTLR3_INPUT_STREAM input; local 1724 pANTLR3_INPUT_STREAM input; local 1750 antlr3UTF8SetupStream(pANTLR3_INPUT_STREAM input) argument 1806 pANTLR3_INPUT_STREAM input; local 1872 pANTLR3_INPUT_STREAM input; local 2013 antlr3EBCDICSetupStream(pANTLR3_INPUT_STREAM input) argument 2036 pANTLR3_INPUT_STREAM input; local [all...] |
H A D | antlr3lexer.c | 43 static void setCharStream (pANTLR3_LEXER lexer, pANTLR3_INPUT_STREAM input); 44 static void pushCharStream (pANTLR3_LEXER lexer, pANTLR3_INPUT_STREAM input); 201 /// Returns the next available token from the current input stream. 208 /// The next token in the current input stream or the EOF token 221 pANTLR3_INPUT_STREAM input; local 226 input = lexer->input; 227 istream = input->istream; 244 // Record the start of the token in our input stream. 247 state->tokenStartCharIndex = (ANTLR3_MARKER)(((pANTLR3_UINT8)input 384 antlr3LexerNewStream(ANTLR3_UINT32 sizeHint, pANTLR3_INPUT_STREAM input, pANTLR3_RECOGNIZER_SHARED_STATE state) argument 492 setCharStream(pANTLR3_LEXER lexer, pANTLR3_INPUT_STREAM input) argument 564 pushCharStream(pANTLR3_LEXER lexer, pANTLR3_INPUT_STREAM input) argument 612 pANTLR3_INPUT_STREAM input; local [all...] |
H A D | antlr3string.c | 370 // 3X (in bytes) the input size (in chars). 403 // up to the grammar programmer to verify that the input is sensible. 619 /** First, determine the length of the input string 848 /** First, determine the length of the input string 924 /** First, determine the length of the input string 1106 /** First, determine the length of the input string 1323 pANTLR3_UINT16 input; local 1328 input = (pANTLR3_UINT16)(string->chars); 1331 if (*input == (ANTLR3_UCHAR)'-') 1334 input [all...] |
H A D | antlr3treeparser.c | 42 static void setTreeNodeStream (pANTLR3_TREE_PARSER parser, pANTLR3_COMMON_TREE_NODE_STREAM input); 150 /** Set the input stream and reset the parser 153 setTreeNodeStream (pANTLR3_TREE_PARSER parser, pANTLR3_COMMON_TREE_NODE_STREAM input) argument 155 parser->ctnstream = input; 160 /** Return a pointer to the input stream
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
H A D | DebugParser.cs | 55 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) { 64 public DebugParser(ITokenStream input, IDebugEventListener dbg) argument 65 : this(input i [all...] |
H A D | DebugTokenStream.cs | 37 public ITokenStream input; field in class:Antlr.Runtime.Debug.DebugTokenStream 43 public DebugTokenStream(ITokenStream input, IDebugEventListener dbg) { argument 44 this.input = input; 48 input.LT(1); 55 return input.Index; 61 return input.Range; 80 int a = input.Index; 81 IToken t = input.LT(1); 82 input [all...] |