Searched refs:token (Results 501 - 525 of 1600) sorted by last modified time

<<21222324252627282930>>

/external/chromium_org/third_party/webrtc/base/
H A Dwin32regkey.cc1076 HANDLE token; local
1078 TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &token)) {
1086 if (::AdjustTokenPrivileges(token, FALSE, &privs, 0, NULL, 0)) {
1094 CloseHandle(token);
/external/chromium_org/third_party/skia/experimental/PdfViewer/
H A DSkPdfFont.cpp328 #define tokenIsKeyword(token,keyword) (token.fType == kKeyword_TokenType && \
329 token.fKeywordLength==sizeof(keyword)-1 && \
330 strncmp(token.fKeyword, keyword, sizeof(keyword)-1) == 0)
340 PdfToken token; local
355 while (tokenizer.readToken(&token)) {
357 if (tokenIsKeyword(token, "begincodespacerange")) {
358 while (tokenizer.readToken(&token) &&
359 !tokenIsKeyword(token, "endcodespacerange")) {
360 // tokenizer.PutBack(token);
[all...]
/external/chromium_org/third_party/skia/experimental/PdfViewer/inc/
H A DSkPdfTokenLooper.h51 * Consume a token, and draw to fCanvas as directed.
53 virtual SkPdfResult consumeToken(PdfToken& token) = 0;
/external/chromium_org/third_party/skia/experimental/PdfViewer/pdfparser/native/
H A DSkPdfNativeDoc.cpp169 SkPdfNativeObject token; local
170 current = nextObject(current, end, &token, NULL, NULL);
171 if (token.isInteger()) {
172 int id = (int)token.intValue();
174 token.reset();
175 current = nextObject(current, end, &token, NULL, NULL);
177 // int generation = (int)token.intValue();
179 token.reset();
180 current = nextObject(current, end, &token, NULL, NULL);
182 if (!token
252 SkPdfNativeObject token; local
335 SkPdfNativeObject token; local
[all...]
H A DSkPdfNativeTokenizer.cpp771 SkPdfNativeObject* token,
784 // no token, len would be 0
795 return readArray(current, end, token, allocator, doc);
798 return readString(start + 1, end, token, allocator);
803 return readDictionary(start + 2, end, token, allocator, doc); // skip <<
805 return readHexString(start + 1, end, token, allocator); // skip <
809 return readName(start + 1, end, token, allocator);
825 SkPdfNativeObject::makeNull(token);
831 SkPdfNativeObject::makeBoolean(true, token);
842 SkPdfNativeObject::makeBoolean(false, token);
770 nextObject(const unsigned char* start, const unsigned char* end, SkPdfNativeObject* token, SkPdfAllocator* allocator, SkPdfNativeDoc* doc) argument
934 readTokenCore(PdfToken* token) argument
979 PutBack(PdfToken token) argument
990 readToken(PdfToken* token, bool writeDiff) argument
[all...]
H A DSkPdfNativeTokenizer.h131 // Type of a parsed token.
167 // Reads one token. Returns false if there are no more tokens.
168 // If writeDiff is true, and a token was read, create a PNG highlighting
171 bool readToken(PdfToken* token, bool writeDiff = false);
173 // Put back a token to be read in the nextToken read. Only one token is allowed to be put
174 // back. Must not necesaarely be the last token read.
175 void PutBack(PdfToken token);
178 // token already.
182 bool readTokenCore(PdfToken* token);
[all...]
/external/chromium_org/third_party/skia/experimental/PdfViewer/src/
H A DSkPdfContext.cpp22 virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE;
85 SkPdfResult PdfMainLooper::consumeToken(PdfToken& token) { argument
86 if (token.fType == kKeyword_TokenType && token.fKeywordLength < 256)
89 if (gPdfOps.find(token.fKeyword, token.fKeywordLength, &pdfOperatorRenderer) &&
95 gRenderStats[result].find(token.fKeyword, token.fKeywordLength, &cnt);
96 gRenderStats[result].set(token.fKeyword, token
122 PdfToken token; local
[all...]
H A DSkPdfDiffEncoder.cpp33 void SkPdfDiffEncoder::WriteToFile(PdfToken* token) { argument
124 if (token->fType == kKeyword_TokenType && token->fKeyword && token->fKeywordLength > 0) {
125 gLastKeyword.set(token->fKeyword, token->fKeywordLength);
H A DSkPdfRenderer.cpp214 virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE;
226 virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE;
2728 SkPdfResult PdfInlineImageLooper::consumeToken(PdfToken& token) { argument
2740 SkPdfResult PdfCompatibilitySectionLooper::consumeToken(PdfToken& token) { argument
2741 return fParent->consumeToken(token);
2747 PdfToken token; local
2748 while (fTokenizer->readToken(&token)) {
2749 if (token.fType == kKeyword_TokenType && strcmp(token.fKeyword, "BX") == 0) {
2753 if (token
[all...]
/external/chromium_org/third_party/skia/experimental/webtry/res/js/cm/
H A Dclike.js128 token: function(stream, state) {
H A Dcodemirror.js3863 var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);
3907 // Fetch the parser token for a given character. Useful for hacks
4446 return {token: function(stream) {stream.skipToEnd();}};
5587 var style = mode.token(stream, state);
5593 // Run the given mode's parser over a line, calling f for each token.
5645 // Ensure there's a token end at the current position, and that i points at it
5722 // Optionally wire in some hacks into the token-rendering
5756 var token = elt("span", "\u2022", "cm-invalidchar");
5757 token.title = "\\u" + ch.charCodeAt(0).toString(16);
5758 return token;
[all...]
/external/chromium_org/third_party/skia/forth/
H A DForth.cpp313 const char* token = s++; local
318 *len = s - token;
319 return token;
367 // if we're not done with the token then the next char must be a decimal
403 const char* token = parse_token(&text, &len); local
404 if (NULL == token) {
408 if ('(' == *token) {
409 text = parse_comment(token);
415 if (';' == *token) {
418 if (':' == *token) {
[all...]
/external/chromium_org/third_party/skia/src/animator/
H A DSkAnimateMaker.cpp365 bool SkAnimateMaker::GetStep(const char* token, size_t len, void* stepPtr, SkScriptValue* value) { argument
366 if (SK_LITERAL_STR_EQUAL("step", token, len)) {
H A DSkAnimateMaker.h134 static bool GetStep(const char* token, size_t len, void* stepPtr, SkScriptValue* );
H A DSkAnimatorScript.cpp151 bool SkAnimatorScript::EvalEnum(const char* token, size_t len, void* callBack, SkScriptValue* value) { argument
154 if (MapEnums(tokens, token, len, (int*)&value->fOperand.fS32))
159 bool SkAnimatorScript::EvalID(const char* token, size_t len, void* user, SkScriptValue* value) { argument
163 bool success = ids->find(token, len, &displayable);
166 if (SK_LITERAL_STR_EQUAL("parent", token, len)) {
176 if (displayable && EvalMember(token, len, displayable, engine, value))
195 bool SkAnimatorScript::EvalNamedColor(const char* token, size_t len, void* callback, SkScriptValue* value) { argument
197 if (SkParse::FindNamedColor(token, len, (SkColor*) &value->fOperand.fS32) != NULL)
364 bool SkAnimatorScript::Infinity(const char* token, size_t len, void* user, SkScriptValue* value) { argument
365 if (SK_LITERAL_STR_EQUAL("Infinity", token, le
419 NaN(const char* token, size_t len, void* user, SkScriptValue* value) argument
[all...]
H A DSkAnimatorScript.h43 static bool EvalEnum(const char* token, size_t len, void* callBack, SkScriptValue* );
44 static bool EvalID(const char* token, size_t len, void* callBack, SkScriptValue* );
51 static bool EvalNamedColor(const char* token, size_t len, void* callBack, SkScriptValue* );
55 static bool Infinity(const char* token, size_t len, void* callBack, SkScriptValue* );
60 static bool NaN(const char* token, size_t len, void* callBack, SkScriptValue* );
H A DSkAnimatorScript2.cpp160 virtual bool getIndex(const char* token, int len, size_t* result) { argument
162 bool success = fEngine->getMaker().find(token, len, &displayable);
H A DSkDisplayType.h23 #define SK_LITERAL_STR_EQUAL(str, token, len) (sizeof(str) - 1 == len \
24 && strncmp(str, token, sizeof(str) - 1) == 0)
H A DSkDrawExtraPathEffect.cpp142 static bool GetContourLength(const char* token, size_t len, void* clen, SkScriptValue* value) { argument
143 if (SK_LITERAL_STR_EQUAL("contourLength", token, len)) {
151 static bool GetDistance(const char* token, size_t len, void* dist, SkScriptValue* value) { argument
152 if (SK_LITERAL_STR_EQUAL("distance", token, len)) {
283 static bool Get2D(const char* token, size_t len, void* s2D, SkScriptValue* value) { argument
287 if (SkAnimatorScript::MapEnums(match, token, len, &index) == false)
H A DSkScript.cpp43 "expected token", // kExpectedToken
44 "expected token before dot operator", // kExpectedTokenBeforeDotOperator
541 SkString token(fToken, fTokenLength);
543 const char* tokenName = token.c_str();
716 const char* token = script; local
729 success = evaluateDotParam(script, SkToBool(suppressed), token, tokenLength);
735 // get next token, and evaluate immediately
800 if (advance == 0) // unknown token
/external/chromium_org/third_party/skia/src/gpu/gl/builders/
H A DGrGLSLPrettyPrint.cpp32 * For long style comments like this one, we search for the ending token. We also
89 // hasToken automatically consumes the next token, if it is a match, and then tabs
90 // if necessary, before inserting the token into the pretty string
91 bool hasToken(const char* token) { argument
93 for (size_t j = 0; token[j] && fLength > i; i++, j++) {
94 if (token[j] != fInput[i]) {
100 fPretty.append(token);
119 void parseUntil(const char* token) { argument
129 if (this->hasToken(token)) {
/external/chromium_org/third_party/skia/src/views/
H A DSkOSMenu.cpp211 char* token = strtok((char*)temp.c_str(), gDelimiter); local
213 while (token != NULL) {
214 items[index].set(token, strlen(token));
215 token = strtok (NULL, gDelimiter);
/external/chromium_org/third_party/skia/third_party/lua/src/
H A Dllex.c49 static l_noret lexerror (LexState *ls, const char *msg, int token);
75 const char *luaX_token2str (LexState *ls, int token) { argument
76 if (token < FIRST_RESERVED) { /* single-byte symbols? */
77 lua_assert(token == cast(unsigned char, token));
78 return (lisprint(token)) ? luaO_pushfstring(ls->L, LUA_QL("%c"), token) :
79 luaO_pushfstring(ls->L, "char(%d)", token);
82 const char *s = luaX_tokens[token - FIRST_RESERVED];
83 if (token < TK_EO
91 txtToken(LexState *ls, int token) argument
104 lexerror(LexState *ls, const char *msg, int token) argument
[all...]
H A Dllex.h44 int token; member in struct:Token
54 int lastline; /* line of last token `consumed' */
55 Token t; /* current token */
56 Token lookahead; /* look ahead token */
75 LUAI_FUNC const char *luaX_token2str (LexState *ls, int token);
H A Dlparser.c61 /* last token from outer function must be EOS */
62 lua_assert(ls->fs != NULL || ls->t.token == TK_EOS);
63 if (ls->t.token == TK_NAME || ls->t.token == TK_STRING) {
72 ls->t.token = 0; /* remove 'near to' from final message */
77 static l_noret error_expected (LexState *ls, int token) { argument
79 luaO_pushfstring(ls->L, "%s expected", luaX_token2str(ls, token)));
102 if (ls->t.token == c) {
111 if (ls->t.token != c)
575 /* last token rea
[all...]

Completed in 242 milliseconds

<<21222324252627282930>>