/external/nist-sip/java/gov/nist/javax/sip/header/ |
UserAgent.java | 50 /** Product tokens. 60 StringBuffer tokens = new StringBuffer(); local 64 tokens.append((String) it.next()); 67 return tokens.toString();
|
/external/smack/src/org/xbill/DNS/ |
Address.java | 77 String [] tokens = s.split(":", -1); local 80 int last = tokens.length - 1; 82 if (tokens[0].length() == 0) { 83 // If the first two tokens are empty, it means the string 86 if (last - first > 0 && tokens[1].length() == 0) 92 if (tokens[last].length() == 0) { 93 // If the last two tokens are empty, it means the string 96 if (last - first > 0 && tokens[last - 1].length() == 0) 107 if (tokens[i].length() == 0) { 114 if (tokens[i].indexOf('.') >= 0) [all...] |
/frameworks/base/core/java/com/google/android/util/ |
SmileyParser.java | 64 ArrayList<Token> tokens = part.getTokens(); local 65 int len = tokens.size(); 67 Token token = tokens.get(i);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
Watermark.java | 54 Watermark(Display display, DisplayMetrics dm, SurfaceSession session, String[] tokens) { 57 for (int i=0; i<tokens.length; i++) { 58 Log.i(WindowManagerService.TAG, " TOKEN #" + i + ": " + tokens[i]); 63 mTokens = tokens; 84 int fontSize = WindowManagerService.getPropertyInt(tokens, 1, 95 mDeltaX = WindowManagerService.getPropertyInt(tokens, 2, 97 mDeltaY = WindowManagerService.getPropertyInt(tokens, 3, 99 int shadowColor = WindowManagerService.getPropertyInt(tokens, 4, 101 int color = WindowManagerService.getPropertyInt(tokens, 5, 103 int shadowRadius = WindowManagerService.getPropertyInt(tokens, 6 [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
streams.rb | 72 parsers with the means to sequential walk through series of tokens. 79 In a similar fashion to CommonTokenStream, CommonTreeNodeStream feeds tokens 82 the two-dimensional shape of the tree using special UP and DOWN tokens. The 99 is the <i>integer token type of the token</i> <tt>k</tt> tokens ahead of the 108 <b>TokenStreams</b>, this is the <i>full token structure</i> <tt>k</tt> tokens 282 sequence of tokens. Unlike simple character-based streams, such as StringStream, 287 <i>channel</i> feature, which allows you to hold on to all tokens of interest 288 while only presenting a specific set of interesting tokens to a parser. For 291 whitespace to channel value HIDDEN as it creates the tokens. 295 yield tokens that have the same value for <tt>channel</tt>. The stream skip 1044 def tokens( start = nil, stop = nil ) method in class:ANTLR3.that.CommonTokenStream [all...] |
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
BaseDevicePolicyTest.java | 141 String[] tokens = lines[i].split("\\{|\\}|:"); local 142 assertTrue(lines[i] + " doesn't contain 4 or 5 tokens", 143 tokens.length == 4 || tokens.length == 5); 144 users.add(Integer.parseInt(tokens[1])); 261 String[] tokens = feature.split(":"); local 263 tokens.length > 1); 264 assertEquals(feature, "feature", tokens[0]); 265 availableFeatures.add(tokens[1]); 285 String[] tokens = commandOutput.split("\\s+") local 301 String[] tokens = commandOutput.split("\\\\s+"); local 312 String[] tokens = commandOutput.split("\\\\n"); local [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
CommonTreeNodeStream.java | 45 protected TokenStream tokens; field in class:CommonTreeNodeStream 108 public TokenStream getTokenStream() { return tokens; } 110 public void setTokenStream(TokenStream tokens) { this.tokens = tokens; }
|
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/ |
tokens_test.py | 20 from closure_linter.common import tokens namespace 24 return tokens.Token('foo', None, 1, 1) 56 # Tokens on same line 62 # Tokens on different lines 73 # Tokens on same line 82 a = tokens.Token('foo', 'fakeType1', 1, 1) 87 a = tokens.Token('foo', 'fakeType1', 1, 1) 92 a = tokens.Token('foo', 'fakeType1', 1, 1)
|
/external/chromium_org/third_party/closure_linter/closure_linter/common/ |
tokens_test.py | 20 from closure_linter.common import tokens namespace 24 return tokens.Token('foo', None, 1, 1) 56 # Tokens on same line 62 # Tokens on different lines 73 # Tokens on same line 82 a = tokens.Token('foo', 'fakeType1', 1, 1) 87 a = tokens.Token('foo', 'fakeType1', 1, 1) 92 a = tokens.Token('foo', 'fakeType1', 1, 1)
|
/external/chromium_org/third_party/cython/src/Cython/Tempita/ |
_tempita.py | 709 def trim_lex(tokens): 711 Takes a lexed set of tokens, and removes whitespace when there is 714 >>> tokens = lex('{{if x}}\nx\n{{endif}}\ny', trim_whitespace=False) 715 >>> tokens 717 >>> trim_lex(tokens) 721 for i, current in enumerate(tokens): 731 prev = tokens[i - 1] 732 if i + 1 >= len(tokens): 735 next_chunk = tokens[i + 1] 746 or (i == len(tokens) - 2 and not next_chunk.strip()))) [all...] |
/external/deqp/framework/delibs/decpp/ |
deStringUtil.cpp | 86 //! Split a string into tokens. If `delim` is `'\0'`, separate by spans of 150 vector <string> tokens(splitString(" foo bar\n\tbaz ")); 151 DE_TEST_ASSERT(tokens.size() == 3); 152 DE_TEST_ASSERT(tokens[0] == "foo"); 153 DE_TEST_ASSERT(tokens[1] == "bar"); 154 DE_TEST_ASSERT(tokens[2] == "baz");
|
/external/antlr/antlr-3.4/runtime/Python/unittests/ |
testtreewizard.py | 138 self.tokens = [ 141 self.wizard = TreeWizard(self.adaptor, tokenNames=self.tokens) 240 self.tokens = [ 265 tokenNames=self.tokens 284 wiz = TreeWizard(self.adaptor, self.tokens) 292 wiz = TreeWizard(self.adaptor, self.tokens) 300 wiz = TreeWizard(self.adaptor, self.tokens) 308 wiz = TreeWizard(self.adaptor, self.tokens) 316 wiz = TreeWizard(self.adaptor, self.tokens) 324 wiz = TreeWizard(self.adaptor, self.tokens) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
tgsi_parse.c | 36 const struct tgsi_token *tokens ) 38 ctx->FullHeader.Header = *(struct tgsi_header *) &tokens[0]; 40 ctx->FullHeader.Processor = *(struct tgsi_processor *) &tokens[1]; 46 ctx->Tokens = tokens; 88 copy_token(token, &ctx->Tokens[ctx->Position]); 127 &ctx->Tokens[ctx->Position]; 306 tgsi_dup_tokens(const struct tgsi_token *tokens) 308 unsigned n = tgsi_num_tokens(tokens); 312 memcpy(new_tokens, tokens, bytes) [all...] |
/external/libvpx/libvpx/vp9/encoder/ |
vp9_encodemb.c | 96 // to scan previous tokens to work out the correct context. 115 vp9_token_state tokens[1025][2]; local 146 tokens[eob][0].rate = 0; 147 tokens[eob][0].error = 0; 148 tokens[eob][0].next = default_eob; 149 tokens[eob][0].token = EOB_TOKEN; 150 tokens[eob][0].qc = 0; 151 *(tokens[eob] + 1) = *(tokens[eob] + 0); 165 error0 = tokens[next][0].error [all...] |
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
tgsi_parse.c | 36 const struct tgsi_token *tokens ) 38 ctx->FullHeader.Header = *(struct tgsi_header *) &tokens[0]; 40 ctx->FullHeader.Processor = *(struct tgsi_processor *) &tokens[1]; 46 ctx->Tokens = tokens; 88 copy_token(token, &ctx->Tokens[ctx->Position]); 127 &ctx->Tokens[ctx->Position]; 306 tgsi_dup_tokens(const struct tgsi_token *tokens) 308 unsigned n = tgsi_num_tokens(tokens); 312 memcpy(new_tokens, tokens, bytes) [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
vp9_encodemb.c | 96 // to scan previous tokens to work out the correct context. 115 vp9_token_state tokens[1025][2]; local 146 tokens[eob][0].rate = 0; 147 tokens[eob][0].error = 0; 148 tokens[eob][0].next = default_eob; 149 tokens[eob][0].token = EOB_TOKEN; 150 tokens[eob][0].qc = 0; 151 *(tokens[eob] + 1) = *(tokens[eob] + 0); 165 error0 = tokens[next][0].error [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
svga_state_vs.c | 79 const struct tgsi_token *tokens; local 93 tokens = ureg_get_tokens(ureg, &num_tokens); 97 return tokens; 118 FREE((void *) vs->base.tokens); 119 vs->base.tokens = dummy; 136 result->tokens, 137 result->nr_tokens * sizeof result->tokens[0]);
|
/external/mesa3d/src/gallium/drivers/svga/ |
svga_state_vs.c | 79 const struct tgsi_token *tokens; local 93 tokens = ureg_get_tokens(ureg, &num_tokens); 97 return tokens; 118 FREE((void *) vs->base.tokens); 119 vs->base.tokens = dummy; 136 result->tokens, 137 result->nr_tokens * sizeof result->tokens[0]);
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
SuggestionsProvider.java | 76 String[] tokens = TextUtils.split(query, local 78 // There are multiple tokens, so query on the last token only. 79 if (tokens != null && tokens.length > 1) { 80 query = tokens[tokens.length - 1]; 84 for (int i = 0, size = tokens.length - 1; i < size; i++) { 85 mFullQueryTerms.add(tokens[i]);
|
/external/chromium_org/chrome/browser/resources/net_internals/ |
cros_log_entry.js | 22 // Parses network log into tokens like time, name, pid 26 var tokens = NetworkLogEntry.split(' '); 27 var timeTokens = tokens[0].split(/[\s|\:|\-|T|\.]/); 41 var process = tokens[2]; 52 this.level = hasLevelInfo(tokens[3]); 55 var descriptionStartPoint = NetworkLogEntry.indexOf(tokens[2]) + 56 tokens[2].length;
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
shaders_cache.c | 78 struct tgsi_token *tokens; local 80 tokens = (struct tgsi_token *) MALLOC(num_tokens * sizeof(tokens[0])); 82 tgsi_text_translate(txt, tokens, num_tokens); 85 tgsi_dump(tokens, 0); 88 return tokens; 227 shader->tokens = ureg_finalize(ureg); 228 if(!shader->tokens) 437 struct tgsi_token *tokens = tokens_from_assembly(txt, num_tokens); local 443 state.tokens = tokens [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
shaders_cache.c | 78 struct tgsi_token *tokens; local 80 tokens = (struct tgsi_token *) MALLOC(num_tokens * sizeof(tokens[0])); 82 tgsi_text_translate(txt, tokens, num_tokens); 85 tgsi_dump(tokens, 0); 88 return tokens; 227 shader->tokens = ureg_finalize(ureg); 228 if(!shader->tokens) 437 struct tgsi_token *tokens = tokens_from_assembly(txt, num_tokens); local 443 state.tokens = tokens [all...] |
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
CssTokensTest.java | 46 CssTokens tokens = CssTokens.lex(s); local 50 tokens.normalizedCss, 51 CssTokens.lex(tokens.normalizedCss).normalizedCss); 52 return tokens; 57 CssTokens tokens = lex("([foo[[||]])"); local 58 assertEquals("([foo[[||]]])", tokens.normalizedCss); 63 for (CssTokens.TokenIterator it = tokens.iterator(); it.hasNext();) { 65 partners.add(tokens.brackets.partner(it.tokenIndex())); 118 CssTokens tokens = lex(input); local 119 assertEquals(input, golden != null ? golden : "", tokens.normalizedCss) 208 CssTokens tokens = lex(input); local [all...] |
/external/chromium_org/third_party/motemplate/ |
motemplate.py | 764 '''The tokens that can appear in a template. 918 tokens = _TokenStream(template) 919 self._top_node = self._ParseSection(tokens) 922 if tokens.HasNext(): 923 raise ParseException('There are still tokens remaining at %s, ' 925 tokens.next_line) 927 def _ParseSection(self, tokens): 929 while tokens.HasNext(): 930 if tokens.next_token in (_Token.OPEN_END_SECTION, 935 # leftover tokens after termination [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/tree-parser/ |
basic.rb | 33 tokens = ANTLR3::CommonTokenStream.new( lexer ) 34 parser = FlatList::Parser.new( tokens ) 38 nodes.token_stream = tokens 69 tokens = ANTLR3::CommonTokenStream.new( lexer ) 70 parser = SimpleTree::Parser.new( tokens ) 74 nodes.token_stream = tokens 108 tokens = ANTLR3::CommonTokenStream.new( lexer ) 109 parser = FlatVsTreeDecision::Parser.new( tokens ) 113 nodes.token_stream = tokens 146 tokens = ANTLR3::CommonTokenStream.new( lexer [all...] |