/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
RecognitionException.java | 54 * problem occurred and/or what was the expected input. While the parser 55 * knows its state (such as current input symbol and line info) that 58 * perhaps print an entire line of input not just a single token, for example. 63 /** What input stream did the error occur in? */ 64 public transient IntStream input; field in class:RecognitionException 102 public RecognitionException(IntStream input) { 103 this.input = input; 104 this.index = input.index(); 105 if ( input instanceof TokenStream ) [all...] |
Lexer.java | 30 /** A lexer is recognizer that draws input symbols from a character stream. 37 protected CharStream input; field in class:Lexer 42 public Lexer(CharStream input) { 43 this.input = input; 46 public Lexer(CharStream input, RecognizerSharedState state) { 48 this.input = input; 54 if ( input!=null ) { 55 input.seek(0); // rewind the inpu [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
RecognitionException.js | 18 * problem occurred and/or what was the expected input. While the parser 19 * knows its state (such as current input symbol and line info) that 22 * perhaps print an entire line of input not just a single token, for example. 27 * @param {org.antlr.runtime.CommonTokenStream|org.antlr.runtime.tree.TreeNodeStream|org.antlr.runtime.ANTLRStringStream} input input stream that has an exception. 31 org.antlr.runtime.RecognitionException = function(input) { 33 this.input = input; 34 this.index = input.index(); 35 if ( input instanceof org.antlr.runtime.TokenStream ) [all...] |
/external/libvpx/libvpx/vp9/common/ |
vp9_idct.c | 20 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride, 36 IHT_4[tx_type].rows(input, outptr); 37 input += 4; 59 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int stride, 69 ht.rows(input, outptr); 70 input += 8; 92 void vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *dest, int stride, 102 ht.rows(input, outptr); 103 input += 16; 119 void vp9_idct4x4_add(const tran_low_t *input, uint8_t *dest, int stride [all...] |
/external/dexmaker/dexmaker/src/main/java/com/android/dx/ |
AppDataDirGuesser.java | 74 static String processClassLoaderString(String input) { 75 if (input.contains("DexPathList")) { 76 return processClassLoaderString43OrLater(input); 78 return processClassLoaderString42OrEarlier(input); 82 private static String processClassLoaderString42OrEarlier(String input) { 86 int index = input.lastIndexOf('['); 87 input = (index == -1) ? input : input.substring(index + 1); 88 index = input.indexOf(']') [all...] |
/external/webrtc/webrtc/libjingle/xmpp/ |
xmpplogintask_unittest.cc | 79 std::string input; local 99 input = "<stream:stream id=\"a5f2d8c9\" version=\"1.0\" " 102 engine_->HandleInput(input.c_str(), input.length()); 112 input = "<stream:features>" 115 engine_->HandleInput(input.c_str(), input.length()); 126 input = std::string("<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>"); 127 engine_->HandleInput(input.c_str(), input.length()) 250 std::string input = "<?xml version='1.0' encoding='UTF-8'?>" local 263 std::string input = "<?xml version='1.0' encoding='ISO-8859-1'?>" local 276 std::string input = "<iq type='get' id='1'\/>"; local 287 std::string input = "<stream:features>" local 303 std::string input = "<stream:features>" local 325 std::string input = "<stream:features>" local 346 std::string input = "<stream:features>" local 368 std::string input = "<stream:features>" local 389 std::string input = "<stream:features>" local 410 std::string input = "<failure xmlns='urn:ietf:params:xml:ns:xmpp-tls'\/>"; local 421 std::string input = "<wrongtag>"; local 432 std::string input = "<stream:features>" local 447 std::string input = "<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'\/>"; local 458 std::string input = "<wrongtag>"; local 469 std::string input = "<stream:features>" local 481 std::string input = "<stream:features>" local 511 std::string input = "<iq type='result' id='0'>" local 524 std::string input = "<iq type='error' id='0'\/>"; local 536 std::string input = "<iq type='error' id='1'\/>"; local 546 std::string input = "<iq type='error' id='1'\/>"; local 558 std::string input = "<iq type='get' id='1'\/>"; local 575 std::string input; local 609 std::string input = "<stream:error>" local [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
Lexer.cs | 37 * A lexer is recognizer that draws input symbols from a character stream. 45 protected ICharStream input; field in class:Antlr.Runtime.Lexer 50 public Lexer(ICharStream input) { 51 this.input = input; 54 public Lexer(ICharStream input, RecognizerSharedState state) 56 this.input = input; 66 return input.Substring(state.tokenStartCharIndex, CharIndex - state.tokenStartCharIndex); 75 return input.Line [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
Lexer.cs | 38 * A lexer is recognizer that draws input symbols from a character stream. 47 protected ICharStream input; field in class:Antlr.Runtime.Lexer 53 public Lexer( ICharStream input ) 55 this.input = input; 58 public Lexer( ICharStream input, RecognizerSharedState state ) 61 this.input = input; 74 return input.Substring( state.tokenStartCharIndex, CharIndex - state.tokenStartCharIndex ); 86 return input.Line [all...] |
/frameworks/support/compat/src/androidTest/java/androidx/core/app/ |
RemoteInputTest.java | 50 RemoteInput input = newDataOnlyRemoteInput(); local 52 assertTrue(input.isDataOnly()); 53 assertFalse(input.getAllowFreeFormInput()); 54 assertTrue(input.getChoices() == null || input.getChoices().length == 0); 55 assertEquals(1, input.getAllowedDataTypes().size()); 56 assertTrue(input.getAllowedDataTypes().contains(MIME_TYPE)); 61 RemoteInput input = newTextRemoteInput(); local 63 assertFalse(input.isDataOnly()); 64 assertTrue(input.getAllowFreeFormInput()) 71 RemoteInput input = newChoicesOnlyRemoteInput(); local 84 RemoteInput input = local 101 RemoteInput input = newDataOnlyRemoteInput(); local 114 RemoteInput input = newTextRemoteInput(); local 131 RemoteInput input = local 157 RemoteInput input = local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/zlib/ |
minigzip.py | 18 def read32(input):
19 v = ord(input.read(1))
20 v += (ord(input.read(1)) << 8 )
21 v += (ord(input.read(1)) << 16)
22 v += (ord(input.read(1)) << 24)
25 def compress (filename, input, output):
40 data = input.read(1024)
49 def decompress (input, output):
50 magic = input.read(2)
54 if ord(input.read(1)) != 8: [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/ |
TreeParser.as | 39 protected var input:TreeNodeStream; 41 public function TreeParser(input:TreeNodeStream, state:RecognizerSharedState = null) { 43 treeNodeStream = input; 48 if ( input!=null ) { 49 input.seek(0); // rewind the input 53 /** Set the input stream */ 54 public function set treeNodeStream(input:TreeNodeStream):void { 55 this.input = input; [all...] |
/external/python/cpython2/Demo/zlib/ |
minigzip.py | 18 def read32(input): 19 v = ord(input.read(1)) 20 v += (ord(input.read(1)) << 8 ) 21 v += (ord(input.read(1)) << 16) 22 v += (ord(input.read(1)) << 24) 25 def compress (filename, input, output): 40 data = input.read(1024) 49 def decompress (input, output): 50 magic = input.read(2) 54 if ord(input.read(1)) != 8 [all...] |
/frameworks/support/jetifier/jetifier/core/src/main/kotlin/com/android/tools/build/jetifier/core/pom/ |
PomDependency.kt | 52 * Returns a new dependency created by taking all the items from the [input] dependency and then 55 fun rewrite(input: PomDependency, versions: DependencyVersions): PomDependency { 56 var newVersion = input.version 62 groupId = groupId ?: input.groupId, 63 artifactId = artifactId ?: input.artifactId, 65 classifier = classifier ?: input.classifier, 66 type = type ?: input.type, 67 scope = scope ?: input.scope, 68 systemPath = systemPath ?: input.systemPath, 69 optional = optional ?: input.optiona [all...] |
/external/ImageMagick/MagickWand/tests/ |
add_index.c | 27 *input, local 39 input = NewMagickWand(); 41 status = MagickReadImage(input, "font_0.gif" ) 42 && MagickReadImage(input, "font_1.gif" ) 43 && MagickReadImage(input, "font_2.gif" ) 44 && MagickReadImage(input, "font_3.gif" ); 46 ThrowWandException(input); 48 status = MagickAddImage(wand, input); 51 input=DestroyMagickWand(input); /* finished * [all...] |
/external/libchrome/base/ |
base64url.cc | 24 void Base64UrlEncode(const StringPiece& input, 27 Base64Encode(input, output); 47 bool Base64UrlDecode(const StringPiece& input, 52 if (input.find_first_of(kBase64Chars) != std::string::npos) 55 const size_t required_padding_characters = input.size() % 4; 57 input.find_first_of(kBase64UrlSafeChars) != std::string::npos; 61 // Fail if the required padding is not included in |input|. 69 // Fail if padding characters are included in |input|. 70 if (input.find_first_of(kPaddingChar) != std::string::npos) 76 // base64 ones, or additional padding, a copy of |input| needs to be made i [all...] |
/external/libmojo/mojo/public/cpp/bindings/lib/ |
handle_interface_serialization.h | 29 static size_t PrepareToSerialize(const AssociatedInterfacePtrInfo<T>& input, 31 if (input.handle().is_valid()) 36 static void Serialize(AssociatedInterfacePtrInfo<T>& input, 39 DCHECK(!input.handle().is_valid() || input.handle().pending_association()); 40 if (input.handle().is_valid()) { 44 context->associated_endpoint_handles.push_back(input.PassHandle()); 48 output->version = input.version(); 51 static bool Deserialize(AssociatedInterface_Data* input, 54 if (input->handle.is_valid()) [all...] |
/external/smali/smali/src/main/java/org/jf/smali/ |
SemanticException.java | 41 SemanticException(IntStream input, String errorMessage, Object... messageArguments) { 42 super(input); 46 SemanticException(IntStream input, Exception ex) { 47 super(input); 51 SemanticException(IntStream input, CommonTree tree, String errorMessage, Object... messageArguments) { 53 this.input = input; 61 SemanticException(IntStream input, Token token, String errorMessage, Object... messageArguments) { 63 this.input = input; [all...] |
/external/tensorflow/tensorflow/core/kernels/ |
mfcc_mel_filterbank_test.cc | 30 std::vector<double> input; local 32 input.reserve(kSampleCount); 34 input.push_back(i + 1); 38 input.size(), 22050 /* sample rate */, kChannelCount /* channels */, 42 filterbank.Compute(input, &output); 63 std::vector<double> input; local 70 // First call with nonzero input value, and an empty output vector, 72 input.assign(kSampleCount, 1.0); 73 filterbank.Compute(input, &output); 78 // Second call with zero input should also generate zero output. However [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
NullCipherSpi.java | 79 protected byte[] engineUpdate(byte[] input, int inputOffset, 81 if (input == null) return null; 83 System.arraycopy(input, inputOffset, x, 0, inputLen); 87 protected int engineUpdate(byte[] input, int inputOffset, 90 if (input == null) return 0; 91 System.arraycopy(input, inputOffset, output, outputOffset, inputLen); 95 protected byte[] engineDoFinal(byte[] input, int inputOffset, 98 return engineUpdate(input, inputOffset, inputLen); 101 protected int engineDoFinal(byte[] input, int inputOffset, 105 return engineUpdate(input, inputOffset, inputLen [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
DebugParser.cs | 55 public DebugParser(ITokenStream input, IDebugEventListener dbg, RecognizerSharedState state) 56 : base(input is DebugTokenStream ? input : new DebugTokenStream(input, dbg), state) { 60 public DebugParser(ITokenStream input, RecognizerSharedState state) 61 : base(input is DebugTokenStream ? input : new DebugTokenStream(input, null), state) { 64 public DebugParser(ITokenStream input, IDebugEventListener dbg) 65 : this(input is DebugTokenStream ? input : new DebugTokenStream(input, dbg), dbg, null) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
DebugParser.cs | 57 public DebugParser( ITokenStream input, IDebugEventListener dbg, RecognizerSharedState state ) 58 : base( input is DebugTokenStream ? input : new DebugTokenStream( input, dbg ), state ) 63 public DebugParser( ITokenStream input, RecognizerSharedState state ) 64 : base( input is DebugTokenStream ? input : new DebugTokenStream( input, null ), state ) 68 public DebugParser( ITokenStream input, IDebugEventListener dbg ) 69 : this( input is DebugTokenStream ? input : new DebugTokenStream( input, dbg ), dbg, null [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/treeparser/ |
LangLexer.m | 181 NSInteger LA1_0 = [input LA:1]; 191 if ((([input LA:1] >= 'a') && ([input LA:1] <= 'z'))) { 192 [input consume]; 194 ANTLRMismatchedSetException *mse = [ANTLRMismatchedSetException newException:nil stream:input]; 207 [ANTLREarlyExitException newException:input decisionNumber:1]; 248 NSInteger LA2_0 = [input LA:1]; 258 if ((([input LA:1] >= '0') && ([input LA:1] <= '9'))) { 259 [input consume] [all...] |
/frameworks/base/libs/hwui/ |
Interpolator.h | 32 virtual float interpolate(float input) = 0; 42 virtual float interpolate(float input) override; 48 virtual float interpolate(float input) override; 58 virtual float interpolate(float input) override; 67 virtual float interpolate(float input) override; 75 virtual float interpolate(float input) override; 81 virtual float interpolate(float input) override; 90 virtual float interpolate(float input) override; 98 virtual float interpolate(float input) override { return input; } [all...] |
/system/tools/aidl/tests/android/aidl/tests/ |
ITestService.aidl | 52 SimpleParcelable RepeatSimpleParcelable(in SimpleParcelable input, 54 PersistableBundle RepeatPersistableBundle(in PersistableBundle input); 57 boolean[] ReverseBoolean(in boolean[] input, out boolean[] repeated); 58 byte[] ReverseByte (in byte[] input, out byte[] repeated); 59 char[] ReverseChar (in char[] input, out char[] repeated); 60 int[] ReverseInt (in int[] input, out int[] repeated); 61 long[] ReverseLong (in long[] input, out long[] repeated); 62 float[] ReverseFloat (in float[] input, out float[] repeated); 63 double[] ReverseDouble (in double[] input, out double[] repeated); 64 String[] ReverseString (in String[] input, out String[] repeated) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/ |
utf_8_sig.py | 14 def encode(input, errors='strict'):
15 return (codecs.BOM_UTF8 + codecs.utf_8_encode(input, errors)[0], len(input))
17 def decode(input, errors='strict'):
19 if input[:3] == codecs.BOM_UTF8:
20 input = input[3:]
22 (output, consumed) = codecs.utf_8_decode(input, errors, True)
30 def encode(self, input, final=False):
33 return codecs.BOM_UTF8 + codecs.utf_8_encode(input, self.errors)[0] [all...] |